@lobehub/ui 4.33.3 → 4.34.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.
- package/README.md +3 -3
- package/es/A/index.mjs.map +1 -1
- package/es/Accordion/Accordion.d.mts +2 -2
- package/es/Accordion/Accordion.mjs +3 -3
- package/es/Accordion/Accordion.mjs.map +1 -1
- package/es/Accordion/AccordionItem.d.mts +2 -2
- package/es/Accordion/AccordionItem.mjs +15 -15
- package/es/Accordion/AccordionItem.mjs.map +1 -1
- package/es/Accordion/context.mjs +2 -2
- package/es/Accordion/context.mjs.map +1 -1
- package/es/ActionIcon/ActionIcon.d.mts +2 -2
- package/es/ActionIcon/ActionIcon.mjs +2 -2
- package/es/ActionIcon/ActionIcon.mjs.map +1 -1
- package/es/ActionIcon/style.mjs.map +1 -1
- package/es/ActionIconGroup/ActionIconGroup.mjs +3 -3
- package/es/ActionIconGroup/ActionIconGroup.mjs.map +1 -1
- package/es/ActionIconGroup/style.mjs.map +1 -1
- package/es/Alert/Alert.d.mts +2 -2
- package/es/Alert/Alert.mjs +6 -6
- package/es/Alert/Alert.mjs.map +1 -1
- package/es/Alert/style.mjs.map +1 -1
- package/es/AutoComplete/Select.d.mts +2 -2
- package/es/AutoComplete/Select.mjs +1 -1
- package/es/AutoComplete/Select.mjs.map +1 -1
- package/es/AutoComplete/style.mjs.map +1 -1
- package/es/Avatar/Avatar.mjs +4 -4
- package/es/Avatar/Avatar.mjs.map +1 -1
- package/es/Avatar/AvatarGroup/index.d.mts +2 -2
- package/es/Avatar/AvatarGroup/index.mjs +5 -5
- package/es/Avatar/AvatarGroup/index.mjs.map +1 -1
- package/es/Avatar/index.mjs.map +1 -1
- package/es/Avatar/style.mjs.map +1 -1
- package/es/Avatar/utils.mjs.map +1 -1
- package/es/Block/style.mjs.map +1 -1
- package/es/Burger/Burger.d.mts +2 -2
- package/es/Burger/Burger.mjs +2 -2
- package/es/Burger/Burger.mjs.map +1 -1
- package/es/Burger/type.d.mts +1 -1
- package/es/Button/Button.mjs +7 -7
- package/es/Button/Button.mjs.map +1 -1
- package/es/Button/style.mjs.map +1 -1
- package/es/Checkbox/Checkbox.mjs +8 -8
- package/es/Checkbox/Checkbox.mjs.map +1 -1
- package/es/Checkbox/CheckboxGroup.mjs +4 -4
- package/es/Checkbox/CheckboxGroup.mjs.map +1 -1
- package/es/Checkbox/index.mjs.map +1 -1
- package/es/CodeDiff/CodeDiff.d.mts +2 -2
- package/es/CodeDiff/CodeDiff.mjs +3 -3
- package/es/CodeDiff/CodeDiff.mjs.map +1 -1
- package/es/CodeDiff/PatchDiff.d.mts +2 -2
- package/es/CodeDiff/PatchDiff.mjs +3 -3
- package/es/CodeDiff/PatchDiff.mjs.map +1 -1
- package/es/CodeDiff/style.mjs.map +1 -1
- package/es/CodeEditor/CodeEditor.d.mts +2 -2
- package/es/CodeEditor/CodeEditor.mjs +5 -5
- package/es/CodeEditor/CodeEditor.mjs.map +1 -1
- package/es/CodeEditor/style.mjs.map +1 -1
- package/es/Collapse/Collapse.d.mts +2 -2
- package/es/Collapse/Collapse.mjs +5 -5
- package/es/Collapse/Collapse.mjs.map +1 -1
- package/es/Collapse/style.mjs.map +1 -1
- package/es/ColorSwatches/ColorSwatches.mjs +11 -11
- package/es/ColorSwatches/ColorSwatches.mjs.map +1 -1
- package/es/ConfigProvider/index.d.mts +3 -3
- package/es/ConfigProvider/index.mjs.map +1 -1
- package/es/ContextMenu/ContextMenuHost.d.mts +3 -3
- package/es/ContextMenu/ContextMenuHost.mjs +10 -3
- package/es/ContextMenu/ContextMenuHost.mjs.map +1 -1
- package/es/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
- package/es/ContextMenu/renderItems.d.mts +1 -1
- package/es/ContextMenu/renderItems.mjs +39 -14
- package/es/ContextMenu/renderItems.mjs.map +1 -1
- package/es/ContextMenu/store.d.mts +3 -1
- package/es/ContextMenu/store.mjs +1 -0
- package/es/ContextMenu/store.mjs.map +1 -1
- package/es/CopyButton/CopyButton.d.mts +2 -2
- package/es/DatePicker/DatePicker.d.mts +2 -2
- package/es/DatePicker/DatePicker.mjs +1 -1
- package/es/DatePicker/DatePicker.mjs.map +1 -1
- package/es/DatePicker/style.mjs.map +1 -1
- package/es/DraggablePanel/DraggablePanel.mjs +9 -9
- package/es/DraggablePanel/DraggablePanel.mjs.map +1 -1
- 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/DraggablePanelFooter.mjs +1 -1
- package/es/DraggablePanel/components/DraggablePanelFooter.mjs.map +1 -1
- package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelHeader.mjs +7 -7
- package/es/DraggablePanel/components/DraggablePanelHeader.mjs.map +1 -1
- package/es/DraggablePanel/index.mjs +1 -1
- package/es/DraggablePanel/index.mjs.map +1 -1
- package/es/DraggablePanel/style.mjs.map +1 -1
- package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
- package/es/DraggableSideNav/DraggableSideNav.mjs +5 -5
- package/es/DraggableSideNav/DraggableSideNav.mjs.map +1 -1
- package/es/Drawer/Drawer.d.mts +2 -2
- package/es/Drawer/Drawer.mjs +5 -5
- package/es/Drawer/Drawer.mjs.map +1 -1
- package/es/Dropdown/Dropdown.d.mts +2 -2
- package/es/DropdownMenu/DropdownMenu.d.mts +2 -2
- package/es/DropdownMenu/DropdownMenu.mjs +7 -3
- package/es/DropdownMenu/DropdownMenu.mjs.map +1 -1
- package/es/DropdownMenu/atoms.d.mts +33 -17
- package/es/DropdownMenu/atoms.mjs +20 -6
- package/es/DropdownMenu/atoms.mjs.map +1 -1
- package/es/DropdownMenu/index.d.mts +2 -2
- package/es/DropdownMenu/index.mjs +2 -2
- package/es/DropdownMenu/renderItems.d.mts +1 -1
- package/es/DropdownMenu/renderItems.mjs +36 -14
- package/es/DropdownMenu/renderItems.mjs.map +1 -1
- package/es/DropdownMenu/type.d.mts +8 -1
- package/es/EditableText/ControlInput.mjs +29 -29
- package/es/EditableText/ControlInput.mjs.map +1 -1
- package/es/EditableText/EditableText.d.mts +2 -2
- package/es/EditableText/EditableText.mjs +16 -16
- package/es/EditableText/EditableText.mjs.map +1 -1
- package/es/EditorSlashMenu/EditorSlashMenu.mjs +2 -2
- package/es/EditorSlashMenu/EditorSlashMenu.mjs.map +1 -1
- package/es/EditorSlashMenu/MenuItemRenderer.mjs +1 -1
- package/es/EditorSlashMenu/MenuItemRenderer.mjs.map +1 -1
- package/es/EditorSlashMenu/atoms.d.mts +22 -13
- package/es/EditorSlashMenu/atoms.mjs +3 -4
- package/es/EditorSlashMenu/atoms.mjs.map +1 -1
- package/es/EmojiPicker/AvatarUploader.mjs +5 -5
- package/es/EmojiPicker/AvatarUploader.mjs.map +1 -1
- package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
- package/es/EmojiPicker/EmojiPicker.mjs +23 -23
- package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
- package/es/Empty/Empty.mjs +2 -2
- package/es/Empty/Empty.mjs.map +1 -1
- package/es/FileTypeIcon/components/FileIcon.mjs.map +1 -1
- package/es/FileTypeIcon/components/FolderIcon.mjs.map +1 -1
- package/es/Flex/FlexBasic.d.mts +2 -2
- package/es/FluentEmoji/FluentEmoji.mjs +1 -1
- package/es/FluentEmoji/FluentEmoji.mjs.map +1 -1
- package/es/FontLoader/index.d.mts +2 -2
- package/es/Footer/Footer.d.mts +2 -2
- package/es/Footer/Footer.mjs +1 -1
- package/es/Footer/Footer.mjs.map +1 -1
- package/es/Form/Form.mjs +12 -12
- package/es/Form/Form.mjs.map +1 -1
- package/es/Form/components/FormGroup.d.mts +2 -2
- package/es/Form/components/FormGroup.mjs +5 -5
- package/es/Form/components/FormGroup.mjs.map +1 -1
- package/es/Form/components/FormItem.d.mts +2 -2
- package/es/Form/components/FormProvider.mjs.map +1 -1
- package/es/Form/components/FormSubmitFooter.d.mts +2 -2
- package/es/Form/components/FormSubmitFooter.mjs +5 -5
- package/es/Form/components/FormSubmitFooter.mjs.map +1 -1
- package/es/Form/components/FormTitle.mjs +1 -1
- package/es/Form/components/FormTitle.mjs.map +1 -1
- package/es/Form/components/merge.mjs.map +1 -1
- package/es/Form/index.mjs +1 -1
- package/es/Form/index.mjs.map +1 -1
- package/es/Form/style.mjs.map +1 -1
- package/es/Form/type.d.mts +1 -1
- package/es/FormModal/FormModal.d.mts +2 -2
- package/es/FormModal/FormModal.mjs +10 -10
- package/es/FormModal/FormModal.mjs.map +1 -1
- package/es/GroupAvatar/style.mjs.map +1 -1
- package/es/GroupAvatar/type.d.mts +1 -1
- package/es/GuideCard/GuideCard.d.mts +2 -2
- package/es/GuideCard/style.mjs.map +1 -1
- package/es/Header/Header.d.mts +2 -2
- package/es/Header/Header.mjs +5 -5
- package/es/Header/Header.mjs.map +1 -1
- package/es/Highlighter/FullFeatured.mjs +9 -9
- package/es/Highlighter/FullFeatured.mjs.map +1 -1
- package/es/Highlighter/Highlighter.d.mts +2 -2
- package/es/Highlighter/Highlighter.mjs +4 -4
- package/es/Highlighter/Highlighter.mjs.map +1 -1
- package/es/Highlighter/LangSelect.mjs +6 -6
- package/es/Highlighter/LangSelect.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs +2 -2
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
- package/es/Highlighter/SyntaxHighlighter/style.mjs.map +1 -1
- package/es/Highlighter/style.mjs.map +1 -1
- package/es/Hotkey/Hotkey.d.mts +2 -2
- package/es/Hotkey/Hotkey.mjs +5 -5
- package/es/Hotkey/Hotkey.mjs.map +1 -1
- package/es/Hotkey/style.mjs.map +1 -1
- package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
- package/es/HotkeyInput/HotkeyInput.mjs +10 -10
- package/es/HotkeyInput/HotkeyInput.mjs.map +1 -1
- package/es/HotkeyInput/style.mjs.map +1 -1
- package/es/Icon/Icon.d.mts +2 -2
- package/es/Icon/Icon.mjs.map +1 -1
- package/es/Icon/components/IconProvider.d.mts +3 -3
- package/es/Icon/components/IconProvider.mjs.map +1 -1
- package/es/Icon/style.mjs.map +1 -1
- package/es/Image/Image.mjs +3 -3
- package/es/Image/Image.mjs.map +1 -1
- package/es/Image/PreviewGroup.d.mts +2 -2
- package/es/Image/PreviewGroup.mjs.map +1 -1
- package/es/Image/components/Preview.mjs.map +1 -1
- package/es/Image/components/Toolbar.mjs +1 -1
- package/es/Image/components/Toolbar.mjs.map +1 -1
- package/es/Image/components/usePreviewGroup.mjs.map +1 -1
- package/es/Image/style.mjs.map +1 -1
- package/es/ImageSelect/ImageSelect.d.mts +2 -2
- package/es/ImageSelect/ImageSelect.mjs +7 -7
- package/es/ImageSelect/ImageSelect.mjs.map +1 -1
- package/es/Img/index.mjs.map +1 -1
- package/es/Input/Input.d.mts +2 -2
- package/es/Input/Input.mjs +2 -2
- package/es/Input/Input.mjs.map +1 -1
- package/es/Input/InputNumber.d.mts +2 -2
- package/es/Input/InputNumber.mjs +2 -2
- package/es/Input/InputNumber.mjs.map +1 -1
- package/es/Input/InputOPT.mjs +2 -2
- package/es/Input/InputOPT.mjs.map +1 -1
- package/es/Input/InputPassword.d.mts +2 -2
- package/es/Input/InputPassword.mjs +2 -2
- package/es/Input/InputPassword.mjs.map +1 -1
- package/es/Input/TextArea.d.mts +2 -2
- package/es/Input/TextArea.mjs +2 -2
- package/es/Input/TextArea.mjs.map +1 -1
- package/es/Input/style.mjs.map +1 -1
- package/es/Layout/Layout.mjs +1 -1
- package/es/Layout/Layout.mjs.map +1 -1
- 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/Layout/index.mjs.map +1 -1
- package/es/List/List.mjs +6 -6
- package/es/List/List.mjs.map +1 -1
- package/es/List/ListItem/index.d.mts +2 -2
- package/es/List/ListItem/index.mjs +11 -11
- package/es/List/ListItem/index.mjs.map +1 -1
- package/es/LobeSelect/LobeSelect.d.mts +2 -2
- package/es/LobeSelect/LobeSelect.mjs +16 -16
- package/es/LobeSelect/LobeSelect.mjs.map +1 -1
- package/es/LobeSelect/atoms.d.mts +19 -19
- package/es/LobeSelect/atoms.mjs +1 -1
- package/es/LobeSelect/atoms.mjs.map +1 -1
- package/es/LobeSwitch/LobeSwitch.d.mts +2 -2
- package/es/LobeSwitch/LobeSwitch.mjs +2 -2
- package/es/LobeSwitch/LobeSwitch.mjs.map +1 -1
- package/es/LobeSwitch/atoms.d.mts +4 -4
- package/es/LobeSwitch/atoms.mjs +10 -10
- package/es/LobeSwitch/atoms.mjs.map +1 -1
- package/es/Markdown/Markdown.d.mts +2 -2
- package/es/Markdown/Markdown.mjs +3 -3
- package/es/Markdown/Markdown.mjs.map +1 -1
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs.map +1 -1
- package/es/Markdown/Typography.d.mts +2 -2
- package/es/Markdown/components/CodeBlock.mjs.map +1 -1
- package/es/Markdown/components/Footnotes.mjs +3 -3
- package/es/Markdown/components/Footnotes.mjs.map +1 -1
- package/es/Markdown/components/MarkdownProvider.mjs.map +1 -1
- package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs +3 -3
- package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs.map +1 -1
- package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
- package/es/Markdown/components/SearchResultCards/index.mjs +1 -1
- package/es/Markdown/components/SearchResultCards/index.mjs.map +1 -1
- package/es/Markdown/plugins/rehypeCustomFootnotes.mjs.map +1 -1
- package/es/Markdown/plugins/rehypeKatexDir.mjs.map +1 -1
- package/es/Markdown/plugins/rehypeStreamAnimated.mjs.map +1 -1
- package/es/Markdown/plugins/remarkColor.mjs +1 -1
- package/es/Markdown/plugins/remarkColor.mjs.map +1 -1
- package/es/Markdown/plugins/remarkCustomFootnotes.mjs.map +1 -1
- package/es/Markdown/plugins/remarkVideo.mjs +3 -3
- package/es/Markdown/plugins/remarkVideo.mjs.map +1 -1
- package/es/Markdown/style.mjs.map +1 -1
- package/es/MaskShadow/MaskShadow.d.mts +2 -2
- package/es/MaskShadow/style.mjs.map +1 -1
- package/es/Menu/Menu.d.mts +2 -2
- package/es/Menu/Menu.mjs.map +1 -1
- package/es/Menu/checkboxItem.d.mts +1 -0
- package/es/Menu/index.d.mts +2 -2
- package/es/Menu/renderUtils.d.mts +4 -1
- package/es/Menu/renderUtils.mjs.map +1 -1
- package/es/Menu/sharedStyle.d.mts +4 -0
- package/es/Menu/sharedStyle.mjs +24 -0
- package/es/Menu/sharedStyle.mjs.map +1 -1
- package/es/Menu/style.mjs.map +1 -1
- package/es/Menu/switchItem.d.mts +1 -0
- package/es/Menu/type.d.mts +3 -1
- package/es/Mermaid/FullFeatured.mjs +7 -7
- package/es/Mermaid/FullFeatured.mjs.map +1 -1
- package/es/Mermaid/Mermaid.d.mts +2 -2
- package/es/Mermaid/Mermaid.mjs +1 -1
- package/es/Mermaid/Mermaid.mjs.map +1 -1
- package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs +3 -3
- package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs.map +1 -1
- package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs +3 -3
- package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs.map +1 -1
- package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
- package/es/Mermaid/SyntaxMermaid/style.mjs.map +1 -1
- package/es/Modal/Modal.d.mts +2 -2
- package/es/Modal/Modal.mjs +25 -25
- package/es/Modal/Modal.mjs.map +1 -1
- package/es/Modal/ModalProvider.d.mts +2 -2
- package/es/Modal/ModalStackItem.mjs +1 -1
- package/es/Modal/ModalStackItem.mjs.map +1 -1
- package/es/Modal/imperative.d.mts +2 -2
- package/es/Modal/imperative.mjs +5 -5
- package/es/Modal/imperative.mjs.map +1 -1
- package/es/MotionProvider/index.d.mts +2 -2
- package/es/MotionProvider/index.mjs.map +1 -1
- package/es/Popover/ArrowIcon.d.mts +2 -2
- package/es/Popover/Popover.mjs +2 -2
- package/es/Popover/Popover.mjs.map +1 -1
- package/es/Popover/PopoverGroup.mjs +2 -2
- package/es/Popover/PopoverGroup.mjs.map +1 -1
- package/es/Popover/PopoverInGroup.mjs +2 -2
- 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 +9 -9
- package/es/Popover/atoms.mjs +1 -1
- package/es/Popover/atoms.mjs.map +1 -1
- package/es/Popover/context.d.mts +2 -2
- package/es/Popover/context.mjs.map +1 -1
- package/es/Popover/groupContext.mjs.map +1 -1
- package/es/ScrollArea/atoms.d.mts +7 -7
- package/es/ScrollArea/type.d.mts +1 -1
- package/es/ScrollShadow/style.mjs.map +1 -1
- package/es/ScrollShadow/useScrollOverflow.mjs.map +1 -1
- package/es/SearchBar/SearchBar.d.mts +2 -2
- package/es/SearchBar/SearchBar.mjs +14 -14
- package/es/SearchBar/SearchBar.mjs.map +1 -1
- package/es/Segmented/Segmented.d.mts +2 -2
- package/es/Segmented/style.mjs.map +1 -1
- package/es/Select/Select.d.mts +2 -2
- package/es/Select/Select.mjs +2 -2
- package/es/Select/Select.mjs.map +1 -1
- package/es/Select/style.mjs.map +1 -1
- package/es/SideNav/SideNav.d.mts +2 -2
- package/es/Skeleton/Skeleton.mjs +1 -1
- package/es/Skeleton/Skeleton.mjs.map +1 -1
- package/es/Skeleton/SkeletonBlock.mjs.map +1 -1
- package/es/Skeleton/SkeletonTags.mjs +3 -3
- package/es/Skeleton/SkeletonTags.mjs.map +1 -1
- package/es/Skeleton/SkeletonTitle.mjs +1 -1
- package/es/Skeleton/SkeletonTitle.mjs.map +1 -1
- package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
- package/es/SliderWithInput/SliderWithInput.mjs +3 -3
- package/es/SliderWithInput/SliderWithInput.mjs.map +1 -1
- package/es/Snippet/Snippet.mjs +1 -1
- package/es/Snippet/Snippet.mjs.map +1 -1
- package/es/Snippet/style.mjs.map +1 -1
- package/es/SortableList/SortableList.mjs +1 -1
- package/es/SortableList/SortableList.mjs.map +1 -1
- package/es/SortableList/components/DragHandle.d.mts +2 -2
- package/es/SortableList/components/DragHandle.mjs +3 -3
- package/es/SortableList/components/DragHandle.mjs.map +1 -1
- package/es/SortableList/components/SortableItem.d.mts +2 -2
- package/es/SortableList/components/SortableItem.mjs +1 -1
- package/es/SortableList/components/SortableItem.mjs.map +1 -1
- package/es/SortableList/components/SortableOverlay.mjs.map +1 -1
- package/es/SortableList/style.mjs.map +1 -1
- package/es/SortableList/type.d.mts +2 -2
- package/es/Tabs/style.mjs.map +1 -1
- package/es/Tag/Tag.mjs +2 -2
- package/es/Tag/Tag.mjs.map +1 -1
- package/es/Tag/styles.mjs.map +1 -1
- package/es/Text/Text.mjs +27 -14
- package/es/Text/Text.mjs.map +1 -1
- package/es/Text/type.d.mts +18 -1
- package/es/ThemeProvider/ConfigProvider.mjs.map +1 -1
- package/es/ThemeProvider/GlobalStyle/antdOverride.mjs.map +1 -1
- package/es/ThemeProvider/GlobalStyle/global.mjs.map +1 -1
- package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
- package/es/ThemeProvider/ThemeProvider.mjs.map +1 -1
- package/es/ThemeSwitch/ThemeSwitch.mjs +4 -4
- package/es/ThemeSwitch/ThemeSwitch.mjs.map +1 -1
- package/es/Toast/Toast.mjs +3 -3
- package/es/Toast/Toast.mjs.map +1 -1
- package/es/Toast/imperative.d.mts +3 -3
- package/es/Toast/imperative.mjs +1 -1
- package/es/Toast/imperative.mjs.map +1 -1
- package/es/Toc/Toc.d.mts +2 -2
- package/es/Toc/Toc.mjs.map +1 -1
- package/es/Toc/TocMobile.mjs +6 -6
- package/es/Toc/TocMobile.mjs.map +1 -1
- package/es/Toc/utils.mjs.map +1 -1
- package/es/Tooltip/Tooltip.mjs +2 -2
- package/es/Tooltip/Tooltip.mjs.map +1 -1
- package/es/Tooltip/TooltipContent.mjs.map +1 -1
- package/es/Tooltip/TooltipGroup.mjs +3 -3
- package/es/Tooltip/TooltipGroup.mjs.map +1 -1
- package/es/Tooltip/TooltipInGroup.mjs +3 -3
- package/es/Tooltip/TooltipInGroup.mjs.map +1 -1
- package/es/Tooltip/TooltipStandalone.mjs +2 -2
- package/es/Tooltip/TooltipStandalone.mjs.map +1 -1
- package/es/Tooltip/groupContext.mjs.map +1 -1
- package/es/Tooltip/type.d.mts +1 -1
- package/es/Video/index.d.mts +2 -2
- package/es/Video/index.mjs +8 -8
- package/es/Video/index.mjs.map +1 -1
- package/es/Video/style.mjs.map +1 -1
- package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
- package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs +1 -1
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs.map +1 -1
- package/es/awesome/Features/FeatureItem.mjs +1 -1
- package/es/awesome/Features/FeatureItem.mjs.map +1 -1
- package/es/awesome/Features/Features.d.mts +2 -2
- package/es/awesome/Features/Features.mjs +4 -4
- package/es/awesome/Features/Features.mjs.map +1 -1
- package/es/awesome/Features/type.d.mts +1 -1
- package/es/awesome/Giscus/Giscus.d.mts +2 -2
- package/es/awesome/GradientButton/GradientButton.mjs +2 -2
- package/es/awesome/GradientButton/GradientButton.mjs.map +1 -1
- package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
- package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
- package/es/awesome/GridBackground/GridShowcase.mjs +5 -5
- package/es/awesome/GridBackground/GridShowcase.mjs.map +1 -1
- package/es/awesome/GridBackground/components/Grid.mjs.map +1 -1
- package/es/awesome/Hero/Hero.d.mts +2 -2
- package/es/awesome/Hero/Hero.mjs +3 -3
- package/es/awesome/Hero/Hero.mjs.map +1 -1
- package/es/awesome/Hero/type.d.mts +1 -1
- package/es/awesome/Spline/ParentSize.mjs.map +1 -1
- package/es/awesome/Spline/Spine.mjs +2 -2
- package/es/awesome/Spline/Spine.mjs.map +1 -1
- package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
- package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
- package/es/brand/BrandLoading/index.mjs.map +1 -1
- package/es/brand/LobeChat/index.d.mts +2 -2
- package/es/brand/LobeChat/index.mjs +3 -3
- package/es/brand/LobeChat/index.mjs.map +1 -1
- package/es/brand/LobeChatText/index.mjs.map +1 -1
- package/es/brand/LobeHub/index.d.mts +2 -2
- package/es/brand/LobeHub/index.mjs +3 -3
- package/es/brand/LobeHub/index.mjs.map +1 -1
- package/es/brand/LobeHubText/index.mjs.map +1 -1
- package/es/brand/Logo3d/index.mjs.map +1 -1
- package/es/brand/LogoThree/Loading.mjs +2 -2
- package/es/brand/LogoThree/Loading.mjs.map +1 -1
- package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
- package/es/brand/LogoThree/LogoSpline.mjs +1 -1
- package/es/brand/LogoThree/LogoSpline.mjs.map +1 -1
- package/es/brand/LogoThree/index.d.mts +2 -2
- package/es/brand/LogoThree/index.mjs +4 -4
- package/es/brand/LogoThree/index.mjs.map +1 -1
- package/es/brand/components/Divider.mjs.map +1 -1
- package/es/chat/BackBottom/BackBottom.d.mts +2 -2
- package/es/chat/BackBottom/BackBottom.mjs +2 -2
- package/es/chat/BackBottom/BackBottom.mjs.map +1 -1
- package/es/chat/ChatHeader/ChatHeader.mjs +6 -6
- package/es/chat/ChatHeader/ChatHeader.mjs.map +1 -1
- package/es/chat/ChatHeader/ChatHeaderTitle.mjs +4 -4
- package/es/chat/ChatHeader/ChatHeaderTitle.mjs.map +1 -1
- package/es/chat/ChatInputArea/ChatInputArea.mjs +3 -3
- package/es/chat/ChatInputArea/ChatInputArea.mjs.map +1 -1
- package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs +3 -3
- package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs.map +1 -1
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs +3 -3
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs.map +1 -1
- package/es/chat/ChatInputArea/components/ChatSendButton.mjs +5 -5
- package/es/chat/ChatInputArea/components/ChatSendButton.mjs.map +1 -1
- package/es/chat/ChatItem/ChatItem.mjs +9 -9
- package/es/chat/ChatItem/ChatItem.mjs.map +1 -1
- package/es/chat/ChatItem/components/Actions.mjs.map +1 -1
- package/es/chat/ChatItem/components/Avatar.mjs +2 -2
- package/es/chat/ChatItem/components/Avatar.mjs.map +1 -1
- package/es/chat/ChatItem/components/ErrorContent.mjs +1 -1
- package/es/chat/ChatItem/components/ErrorContent.mjs.map +1 -1
- package/es/chat/ChatItem/components/Loading.mjs +2 -2
- package/es/chat/ChatItem/components/Loading.mjs.map +1 -1
- package/es/chat/ChatItem/components/MessageContent.mjs +4 -4
- package/es/chat/ChatItem/components/MessageContent.mjs.map +1 -1
- package/es/chat/ChatItem/components/Title.mjs.map +1 -1
- package/es/chat/ChatList/ChatList.d.mts +2 -2
- package/es/chat/ChatList/components/ChatListItem.mjs +14 -14
- package/es/chat/ChatList/components/ChatListItem.mjs.map +1 -1
- package/es/chat/ChatList/type.d.mts +1 -1
- package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
- package/es/chat/EditableMessage/EditableMessage.mjs +18 -18
- package/es/chat/EditableMessage/EditableMessage.mjs.map +1 -1
- package/es/chat/EditableMessageList/EditableMessageList.mjs +17 -17
- package/es/chat/EditableMessageList/EditableMessageList.mjs.map +1 -1
- package/es/chat/MessageInput/MessageInput.d.mts +2 -2
- package/es/chat/MessageInput/MessageInput.mjs +8 -8
- package/es/chat/MessageInput/MessageInput.mjs.map +1 -1
- package/es/chat/MessageModal/MessageModal.d.mts +2 -2
- package/es/chat/MessageModal/MessageModal.mjs +15 -15
- package/es/chat/MessageModal/MessageModal.mjs.map +1 -1
- package/es/chat/TokenTag/TokenTag.mjs +2 -2
- package/es/chat/TokenTag/TokenTag.mjs.map +1 -1
- package/es/chat/types/error.mjs.map +1 -1
- package/es/color/ColorScales/ScaleRow.mjs +3 -3
- package/es/color/ColorScales/ScaleRow.mjs.map +1 -1
- package/es/color/ColorScales/index.d.mts +2 -2
- package/es/color/ColorScales/index.mjs +4 -4
- package/es/color/ColorScales/index.mjs.map +1 -1
- package/es/color/CssVar/ScaleRow.mjs +4 -4
- package/es/color/CssVar/ScaleRow.mjs.map +1 -1
- package/es/color/CssVar/VarRow.mjs +2 -2
- package/es/color/CssVar/VarRow.mjs.map +1 -1
- package/es/color/CssVar/index.d.mts +2 -2
- package/es/color/CssVar/index.mjs +4 -4
- package/es/color/CssVar/index.mjs.map +1 -1
- package/es/color/colors/blue.mjs.map +1 -1
- package/es/color/colors/cyan.mjs.map +1 -1
- package/es/color/colors/geekblue.mjs.map +1 -1
- package/es/color/colors/gold.mjs.map +1 -1
- package/es/color/colors/gray.mjs.map +1 -1
- package/es/color/colors/green.mjs.map +1 -1
- package/es/color/colors/lime.mjs.map +1 -1
- package/es/color/colors/magenta.mjs.map +1 -1
- package/es/color/colors/orange.mjs.map +1 -1
- package/es/color/colors/primary.mjs.map +1 -1
- package/es/color/colors/purple.mjs.map +1 -1
- package/es/color/colors/red.mjs.map +1 -1
- package/es/color/colors/volcano.mjs.map +1 -1
- package/es/color/colors/yellow.mjs.map +1 -1
- package/es/color/neutrals/mauve.mjs.map +1 -1
- package/es/color/neutrals/olive.mjs.map +1 -1
- package/es/color/neutrals/sage.mjs.map +1 -1
- package/es/color/neutrals/sand.mjs.map +1 -1
- package/es/color/neutrals/slate.mjs.map +1 -1
- package/es/hooks/useFloatingLayer.mjs +2 -2
- package/es/hooks/useFloatingLayer.mjs.map +1 -1
- package/es/hooks/useHighlight.mjs.map +1 -1
- package/es/hooks/useMarkdown/latex.mjs +12 -12
- package/es/hooks/useMarkdown/latex.mjs.map +1 -1
- package/es/hooks/useMarkdown/useMarkdownComponents.mjs +1 -1
- package/es/hooks/useMarkdown/useMarkdownComponents.mjs.map +1 -1
- package/es/hooks/useMarkdown/utils.mjs +4 -4
- package/es/hooks/useMarkdown/utils.mjs.map +1 -1
- package/es/hooks/useNativeButton.mjs.map +1 -1
- package/es/hooks/useStreamHighlight.mjs.map +1 -1
- package/es/i18n/context.d.mts +3 -3
- package/es/i18n/context.mjs.map +1 -1
- package/es/icons/Authelia/components/Color.mjs.map +1 -1
- package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
- package/es/icons/lucideExtra/CreateBotIcon.d.mts +3 -3
- package/es/icons/lucideExtra/DiscordIcon.d.mts +2 -2
- package/es/icons/lucideExtra/GlobeOffIcon.d.mts +3 -3
- package/es/icons/lucideExtra/GroupBotIcon.d.mts +2 -2
- package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
- package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
- package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
- package/es/icons/lucideExtra/McpIcon.d.mts +2 -2
- 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/mdx/Callout/index.mjs +1 -1
- package/es/mdx/Callout/index.mjs.map +1 -1
- package/es/mdx/Cards/Card.mjs +2 -2
- package/es/mdx/Cards/Card.mjs.map +1 -1
- package/es/mdx/FileTree/File.mjs +1 -1
- package/es/mdx/FileTree/File.mjs.map +1 -1
- package/es/mdx/FileTree/Folder.mjs +1 -1
- package/es/mdx/FileTree/Folder.mjs.map +1 -1
- package/es/mdx/FileTree/index.mjs.map +1 -1
- package/es/mdx/Mdx/index.d.mts +2 -2
- package/es/mdx/Mdx/index.mjs +3 -3
- package/es/mdx/Mdx/index.mjs.map +1 -1
- package/es/mdx/Steps/index.mjs.map +1 -1
- package/es/mdx/Tabs/Tab.mjs.map +1 -1
- package/es/mdx/Tabs/index.mjs +1 -1
- package/es/mdx/Tabs/index.mjs.map +1 -1
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs +3 -3
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs.map +1 -1
- package/es/mdx/mdxComponents/Citation/index.mjs.map +1 -1
- package/es/mdx/mdxComponents/Link.mjs +1 -1
- package/es/mdx/mdxComponents/Link.mjs.map +1 -1
- package/es/mobile/ChatHeader/ChatHeader.mjs +4 -4
- package/es/mobile/ChatHeader/ChatHeader.mjs.map +1 -1
- package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs +5 -5
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs.map +1 -1
- package/es/mobile/ChatInputArea/ChatInputArea.mjs +9 -9
- package/es/mobile/ChatInputArea/ChatInputArea.mjs.map +1 -1
- package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
- package/es/mobile/ChatInputArea/components/ChatSendButton.mjs +2 -2
- package/es/mobile/ChatInputArea/components/ChatSendButton.mjs.map +1 -1
- package/es/mobile/SafeArea/SafeArea.mjs.map +1 -1
- package/es/mobile/TabBar/TabBar.d.mts +2 -2
- package/es/mobile/TabBar/TabBar.mjs +3 -3
- package/es/mobile/TabBar/TabBar.mjs.map +1 -1
- package/es/storybook/StoryBook/index.d.mts +2 -2
- package/es/storybook/StoryBook/index.mjs.map +1 -1
- package/es/styles/theme/algorithms/darkAlgorithm.mjs.map +1 -1
- package/es/styles/theme/algorithms/lightAlgorithm.mjs.map +1 -1
- package/es/styles/theme/antdTheme.mjs.map +1 -1
- package/es/styles/theme/customStylish.mjs.map +1 -1
- package/es/styles/theme/customToken.mjs.map +1 -1
- package/es/styles/theme/generateColorPalette.mjs.map +1 -1
- package/es/styles/theme/token/base.mjs.map +1 -1
- package/es/styles/theme/token/dark.mjs.map +1 -1
- package/es/styles/theme/token/light.mjs.map +1 -1
- package/package.json +79 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChatHeaderTitleProps } from "./type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react127 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/mobile/ChatHeader/ChatHeaderTitle.d.ts
|
|
5
|
-
declare const ChatHeaderTitle:
|
|
5
|
+
declare const ChatHeaderTitle: react127.NamedExoticComponent<ChatHeaderTitleProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ChatHeaderTitle };
|
|
8
8
|
//# sourceMappingURL=ChatHeaderTitle.d.mts.map
|
|
@@ -13,21 +13,21 @@ const ChatHeaderTitle = memo(({ title, desc, tag }) => {
|
|
|
13
13
|
gap: 4,
|
|
14
14
|
justify: "center",
|
|
15
15
|
children: [/* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
16
|
+
horizontal: true,
|
|
16
17
|
align: "center",
|
|
17
18
|
className: titleStyles.titleContainer,
|
|
18
19
|
gap: 4,
|
|
19
|
-
horizontal: true,
|
|
20
20
|
children: [/* @__PURE__ */ jsx("div", {
|
|
21
21
|
className: titleStyles.titleWithDesc,
|
|
22
22
|
children: title
|
|
23
23
|
}), tag && /* @__PURE__ */ jsx(FlexBasic_default, {
|
|
24
|
-
className: titleStyles.tag,
|
|
25
24
|
horizontal: true,
|
|
25
|
+
className: titleStyles.tag,
|
|
26
26
|
children: tag
|
|
27
27
|
})]
|
|
28
28
|
}), /* @__PURE__ */ jsx(FlexBasic_default, {
|
|
29
|
-
align: "center",
|
|
30
29
|
horizontal: true,
|
|
30
|
+
align: "center",
|
|
31
31
|
children: /* @__PURE__ */ jsx("div", {
|
|
32
32
|
className: titleStyles.desc,
|
|
33
33
|
children: desc
|
|
@@ -35,17 +35,17 @@ const ChatHeaderTitle = memo(({ title, desc, tag }) => {
|
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
37
37
|
return /* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
38
|
+
horizontal: true,
|
|
38
39
|
align: "center",
|
|
39
40
|
flex: 1,
|
|
40
41
|
gap: 4,
|
|
41
|
-
horizontal: true,
|
|
42
42
|
justify: "center",
|
|
43
43
|
children: [/* @__PURE__ */ jsx("div", {
|
|
44
44
|
className: titleStyles.title,
|
|
45
45
|
children: title
|
|
46
46
|
}), /* @__PURE__ */ jsx(FlexBasic_default, {
|
|
47
|
-
className: titleStyles.tag,
|
|
48
47
|
horizontal: true,
|
|
48
|
+
className: titleStyles.tag,
|
|
49
49
|
children: tag
|
|
50
50
|
})]
|
|
51
51
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeaderTitle.mjs","names":["Flexbox","styles"],"sources":["../../../src/mobile/ChatHeader/ChatHeaderTitle.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\n\nimport { titleStyles as styles } from './style';\nimport { ChatHeaderTitleProps } from './type';\n\nconst ChatHeaderTitle = memo<ChatHeaderTitleProps>(({ title, desc, tag }) => {\n if (desc)\n return (\n <Flexbox align={'center'} flex={1} gap={4} justify={'center'}>\n <Flexbox align={'center'} className={styles.titleContainer} gap={4}
|
|
1
|
+
{"version":3,"file":"ChatHeaderTitle.mjs","names":["Flexbox","styles"],"sources":["../../../src/mobile/ChatHeader/ChatHeaderTitle.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\n\nimport { titleStyles as styles } from './style';\nimport type { ChatHeaderTitleProps } from './type';\n\nconst ChatHeaderTitle = memo<ChatHeaderTitleProps>(({ title, desc, tag }) => {\n if (desc)\n return (\n <Flexbox align={'center'} flex={1} gap={4} justify={'center'}>\n <Flexbox horizontal align={'center'} className={styles.titleContainer} gap={4}>\n <div className={styles.titleWithDesc}>{title}</div>\n {tag && (\n <Flexbox horizontal className={styles.tag}>\n {tag}\n </Flexbox>\n )}\n </Flexbox>\n <Flexbox horizontal align={'center'}>\n <div className={styles.desc}>{desc}</div>\n </Flexbox>\n </Flexbox>\n );\n return (\n <Flexbox horizontal align={'center'} flex={1} gap={4} justify={'center'}>\n <div className={styles.title}>{title}</div>\n <Flexbox horizontal className={styles.tag}>\n {tag}\n </Flexbox>\n </Flexbox>\n );\n});\n\nChatHeaderTitle.displayName = 'ChatHeaderTitle';\n\nexport default ChatHeaderTitle;\n"],"mappings":";;;;;;;;AASA,MAAM,kBAAkB,MAA4B,EAAE,OAAO,MAAM,UAAU;AAC3E,KAAI,KACF,QACE,qBAACA;EAAQ,OAAO;EAAU,MAAM;EAAG,KAAK;EAAG,SAAS;aAClD,qBAACA;GAAQ;GAAW,OAAO;GAAU,WAAWC,YAAO;GAAgB,KAAK;cAC1E,oBAAC;IAAI,WAAWA,YAAO;cAAgB;KAAY,EAClD,OACC,oBAACD;IAAQ;IAAW,WAAWC,YAAO;cACnC;KACO;IAEJ,EACV,oBAACD;GAAQ;GAAW,OAAO;aACzB,oBAAC;IAAI,WAAWC,YAAO;cAAO;KAAW;IACjC;GACF;AAEd,QACE,qBAACD;EAAQ;EAAW,OAAO;EAAU,MAAM;EAAG,KAAK;EAAG,SAAS;aAC7D,oBAAC;GAAI,WAAWC,YAAO;aAAQ;IAAY,EAC3C,oBAACD;GAAQ;GAAW,WAAWC,YAAO;aACnC;IACO;GACF;EAEZ;AAEF,gBAAgB,cAAc;AAE9B,8BAAe"}
|
|
@@ -26,8 +26,8 @@ const ChatInputArea = memo(({ ref, className, style, topAddons, textAreaLeftAddo
|
|
|
26
26
|
gap: 8,
|
|
27
27
|
children: [
|
|
28
28
|
/* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
29
|
-
gap: 8,
|
|
30
29
|
horizontal: true,
|
|
30
|
+
gap: 8,
|
|
31
31
|
justify: "flex-end",
|
|
32
32
|
children: [r.textAreaLeftAddons, r.textAreaRightAddons]
|
|
33
33
|
}),
|
|
@@ -36,10 +36,10 @@ const ChatInputArea = memo(({ ref, className, style, topAddons, textAreaLeftAddo
|
|
|
36
36
|
r.bottomAddons
|
|
37
37
|
]
|
|
38
38
|
}) : /* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
39
|
+
horizontal: true,
|
|
39
40
|
align: "flex-end",
|
|
40
41
|
className: styles.inner,
|
|
41
42
|
gap: 8,
|
|
42
|
-
horizontal: true,
|
|
43
43
|
children: [
|
|
44
44
|
r.textAreaLeftAddons,
|
|
45
45
|
children,
|
|
@@ -65,13 +65,13 @@ const ChatInputArea = memo(({ ref, className, style, topAddons, textAreaLeftAddo
|
|
|
65
65
|
className: styles.expandButton,
|
|
66
66
|
icon: expand ? ChevronDown : ChevronUp,
|
|
67
67
|
id: "sssssss",
|
|
68
|
-
onClick: () => setExpand?.(!expand),
|
|
69
68
|
size: {
|
|
70
69
|
blockSize: 24,
|
|
71
70
|
borderRadius: "50%",
|
|
72
71
|
size: 14
|
|
73
72
|
},
|
|
74
|
-
style: expand ? { top: 6 } : {}
|
|
73
|
+
style: expand ? { top: 6 } : {},
|
|
74
|
+
onClick: () => setExpand?.(!expand)
|
|
75
75
|
}), /* @__PURE__ */ jsx(InnerContainer, {
|
|
76
76
|
bottomAddons,
|
|
77
77
|
textAreaLeftAddons,
|
|
@@ -84,17 +84,17 @@ const ChatInputArea = memo(({ ref, className, style, topAddons, textAreaLeftAddo
|
|
|
84
84
|
},
|
|
85
85
|
className: styles.expandTextArea,
|
|
86
86
|
loading,
|
|
87
|
-
onBlur: () => setIsFocused(false),
|
|
88
|
-
onFocus: () => setIsFocused(true),
|
|
89
|
-
onInput,
|
|
90
|
-
onSend,
|
|
91
87
|
ref,
|
|
92
88
|
style: {
|
|
93
89
|
height: 36,
|
|
94
90
|
paddingBlock: 6
|
|
95
91
|
},
|
|
96
92
|
value,
|
|
97
|
-
variant: expand ? "borderless" : "filled"
|
|
93
|
+
variant: expand ? "borderless" : "filled",
|
|
94
|
+
onBlur: () => setIsFocused(false),
|
|
95
|
+
onFocus: () => setIsFocused(true),
|
|
96
|
+
onInput,
|
|
97
|
+
onSend
|
|
98
98
|
})
|
|
99
99
|
})]
|
|
100
100
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInputArea.mjs","names":["InnerContainer: FC<\n PropsWithChildren & {\n bottomAddons?: ReactNode;\n textAreaLeftAddons?: ReactNode;\n textAreaRightAddons?: ReactNode;\n topAddons?: ReactNode;\n }\n >","Flexbox","ActionIcon","ChatInputAreaInner","SafeArea"],"sources":["../../../src/mobile/ChatInputArea/ChatInputArea.tsx"],"sourcesContent":["'use client';\n\nimport { useSize } from 'ahooks';\nimport { cx } from 'antd-style';\nimport { ChevronDown, ChevronUp } from 'lucide-react';\nimport {\n FC,\n
|
|
1
|
+
{"version":3,"file":"ChatInputArea.mjs","names":["InnerContainer: FC<\n PropsWithChildren & {\n bottomAddons?: ReactNode;\n textAreaLeftAddons?: ReactNode;\n textAreaRightAddons?: ReactNode;\n topAddons?: ReactNode;\n }\n >","Flexbox","ActionIcon","ChatInputAreaInner","SafeArea"],"sources":["../../../src/mobile/ChatInputArea/ChatInputArea.tsx"],"sourcesContent":["'use client';\n\nimport { useSize } from 'ahooks';\nimport { cx } from 'antd-style';\nimport { ChevronDown, ChevronUp } from 'lucide-react';\nimport {\n type FC,\n memo,\n type PropsWithChildren,\n type ReactNode,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\nimport ActionIcon from '@/ActionIcon';\nimport ChatInputAreaInner from '@/chat/ChatInputArea/components/ChatInputAreaInner';\nimport { Flexbox } from '@/Flex';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { styles } from './style';\nimport { type ChatInputAreaProps } from './type';\n\nconst ChatInputArea = memo<ChatInputAreaProps>(\n ({\n ref,\n className,\n style,\n topAddons,\n textAreaLeftAddons,\n textAreaRightAddons,\n bottomAddons,\n expand = false,\n setExpand,\n onSend,\n onInput,\n loading,\n value,\n safeArea,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const size = useSize(containerRef);\n const [showFullscreen, setShowFullscreen] = useState<boolean>(false);\n const [isFocused, setIsFocused] = useState<boolean>(false);\n\n useEffect(() => {\n if (!size?.height) return;\n setShowFullscreen(size.height > 72);\n }, [size]);\n\n const InnerContainer: FC<\n PropsWithChildren & {\n bottomAddons?: ReactNode;\n textAreaLeftAddons?: ReactNode;\n textAreaRightAddons?: ReactNode;\n topAddons?: ReactNode;\n }\n > = useCallback(\n ({ children, ...r }) =>\n expand ? (\n <Flexbox className={styles.inner} gap={8}>\n <Flexbox horizontal gap={8} justify={'flex-end'}>\n {r.textAreaLeftAddons}\n {r.textAreaRightAddons}\n </Flexbox>\n {children}\n {r.topAddons}\n {r.bottomAddons}\n </Flexbox>\n ) : (\n <Flexbox horizontal align={'flex-end'} className={styles.inner} gap={8}>\n {r.textAreaLeftAddons}\n {children}\n {r.textAreaRightAddons}\n </Flexbox>\n ),\n [expand, loading],\n );\n\n const showAddons = !expand && !isFocused;\n\n return (\n <Flexbox\n className={cx(styles.container, expand && styles.expand, className)}\n gap={12}\n style={style}\n >\n {topAddons && <Flexbox style={showAddons ? {} : { display: 'none' }}>{topAddons}</Flexbox>}\n <Flexbox\n className={cx(expand && styles.expand)}\n ref={containerRef}\n style={{ position: 'relative' }}\n >\n {showFullscreen && (\n <ActionIcon\n active\n className={styles.expandButton}\n icon={expand ? ChevronDown : ChevronUp}\n id={'sssssss'}\n size={{ blockSize: 24, borderRadius: '50%', size: 14 }}\n style={expand ? { top: 6 } : {}}\n onClick={() => setExpand?.(!expand)}\n />\n )}\n <InnerContainer\n bottomAddons={bottomAddons}\n textAreaLeftAddons={textAreaLeftAddons}\n textAreaRightAddons={textAreaRightAddons}\n topAddons={topAddons}\n >\n <ChatInputAreaInner\n autoSize={expand ? false : { maxRows: 6, minRows: 1 }}\n className={styles.expandTextArea}\n loading={loading}\n ref={ref}\n style={{ height: 36, paddingBlock: 6 }}\n value={value}\n variant={expand ? 'borderless' : 'filled'}\n onBlur={() => setIsFocused(false)}\n onFocus={() => setIsFocused(true)}\n onInput={onInput}\n onSend={onSend}\n />\n </InnerContainer>\n </Flexbox>\n {bottomAddons && (\n <Flexbox style={showAddons ? {} : { display: 'none' }}>{bottomAddons}</Flexbox>\n )}\n {safeArea && !isFocused && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nChatInputArea.displayName = 'ChatInputArea';\n\nexport default ChatInputArea;\n"],"mappings":";;;;;;;;;;;;;;AAwBA,MAAM,gBAAgB,MACnB,EACC,KACA,WACA,OACA,WACA,oBACA,qBACA,cACA,SAAS,OACT,WACA,QACA,SACA,SACA,OACA,eACI;CACJ,MAAM,eAAe,OAAuB,KAAK;CACjD,MAAM,OAAO,QAAQ,aAAa;CAClC,MAAM,CAAC,gBAAgB,qBAAqB,SAAkB,MAAM;CACpE,MAAM,CAAC,WAAW,gBAAgB,SAAkB,MAAM;AAE1D,iBAAgB;AACd,MAAI,CAAC,MAAM,OAAQ;AACnB,oBAAkB,KAAK,SAAS,GAAG;IAClC,CAAC,KAAK,CAAC;CAEV,MAAMA,iBAOF,aACD,EAAE,UAAU,GAAG,QACd,SACE,qBAACC;EAAQ,WAAW,OAAO;EAAO,KAAK;;GACrC,qBAACA;IAAQ;IAAW,KAAK;IAAG,SAAS;eAClC,EAAE,oBACF,EAAE;KACK;GACT;GACA,EAAE;GACF,EAAE;;GACK,GAEV,qBAACA;EAAQ;EAAW,OAAO;EAAY,WAAW,OAAO;EAAO,KAAK;;GAClE,EAAE;GACF;GACA,EAAE;;GACK,EAEd,CAAC,QAAQ,QAAQ,CAClB;CAED,MAAM,aAAa,CAAC,UAAU,CAAC;AAE/B,QACE,qBAACA;EACC,WAAW,GAAG,OAAO,WAAW,UAAU,OAAO,QAAQ,UAAU;EACnE,KAAK;EACE;;GAEN,aAAa,oBAACA;IAAQ,OAAO,aAAa,EAAE,GAAG,EAAE,SAAS,QAAQ;cAAG;KAAoB;GAC1F,qBAACA;IACC,WAAW,GAAG,UAAU,OAAO,OAAO;IACtC,KAAK;IACL,OAAO,EAAE,UAAU,YAAY;eAE9B,kBACC,oBAACC;KACC;KACA,WAAW,OAAO;KAClB,MAAM,SAAS,cAAc;KAC7B,IAAI;KACJ,MAAM;MAAE,WAAW;MAAI,cAAc;MAAO,MAAM;MAAI;KACtD,OAAO,SAAS,EAAE,KAAK,GAAG,GAAG,EAAE;KAC/B,eAAe,YAAY,CAAC,OAAO;MACnC,EAEJ,oBAAC;KACe;KACM;KACC;KACV;eAEX,oBAACC;MACC,UAAU,SAAS,QAAQ;OAAE,SAAS;OAAG,SAAS;OAAG;MACrD,WAAW,OAAO;MACT;MACJ;MACL,OAAO;OAAE,QAAQ;OAAI,cAAc;OAAG;MAC/B;MACP,SAAS,SAAS,eAAe;MACjC,cAAc,aAAa,MAAM;MACjC,eAAe,aAAa,KAAK;MACxB;MACD;OACR;MACa;KACT;GACT,gBACC,oBAACF;IAAQ,OAAO,aAAa,EAAE,GAAG,EAAE,SAAS,QAAQ;cAAG;KAAuB;GAEhF,YAAY,CAAC,aAAa,oBAACG,oBAAS,UAAU,WAAY;;GACnD;EAGf;AAED,cAAc,cAAc;AAE5B,4BAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChatSendButtonProps } from "../type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react128 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/mobile/ChatInputArea/components/ChatSendButton.d.ts
|
|
5
|
-
declare const ChatSendButton:
|
|
5
|
+
declare const ChatSendButton: react128.NamedExoticComponent<ChatSendButtonProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ChatSendButton };
|
|
8
8
|
//# sourceMappingURL=ChatSendButton.d.mts.map
|
|
@@ -10,13 +10,13 @@ const ChatSendButton = memo(({ ref, loading, onStop, onSend, ...rest }) => {
|
|
|
10
10
|
return /* @__PURE__ */ jsx(Button_default, {
|
|
11
11
|
icon: SendHorizontal,
|
|
12
12
|
loading,
|
|
13
|
+
ref,
|
|
14
|
+
type: "primary",
|
|
13
15
|
onClick: (e) => {
|
|
14
16
|
e.preventDefault();
|
|
15
17
|
if (loading) onStop?.(e);
|
|
16
18
|
else onSend?.(e);
|
|
17
19
|
},
|
|
18
|
-
ref,
|
|
19
|
-
type: "primary",
|
|
20
20
|
...rest
|
|
21
21
|
});
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSendButton.mjs","names":["Button"],"sources":["../../../../src/mobile/ChatInputArea/components/ChatSendButton.tsx"],"sourcesContent":["'use client';\n\nimport { SendHorizontal } from 'lucide-react';\nimport { memo } from 'react';\n\nimport Button from '@/Button';\n\nimport type { ChatSendButtonProps } from '../type';\n\nconst ChatSendButton = memo<ChatSendButtonProps>(({ ref, loading, onStop, onSend, ...rest }) => {\n return (\n <Button\n icon={SendHorizontal}\n loading={loading}\n onClick={(e) => {\n e.preventDefault();\n if (loading) {\n onStop?.(e);\n } else {\n onSend?.(e);\n }\n }}\n
|
|
1
|
+
{"version":3,"file":"ChatSendButton.mjs","names":["Button"],"sources":["../../../../src/mobile/ChatInputArea/components/ChatSendButton.tsx"],"sourcesContent":["'use client';\n\nimport { SendHorizontal } from 'lucide-react';\nimport { memo } from 'react';\n\nimport Button from '@/Button';\n\nimport type { ChatSendButtonProps } from '../type';\n\nconst ChatSendButton = memo<ChatSendButtonProps>(({ ref, loading, onStop, onSend, ...rest }) => {\n return (\n <Button\n icon={SendHorizontal}\n loading={loading}\n ref={ref}\n type={'primary'}\n onClick={(e) => {\n e.preventDefault();\n if (loading) {\n onStop?.(e);\n } else {\n onSend?.(e);\n }\n }}\n {...rest}\n />\n );\n});\n\nChatSendButton.displayName = 'ChatSendButton';\n\nexport default ChatSendButton;\n"],"mappings":";;;;;;;;AASA,MAAM,iBAAiB,MAA2B,EAAE,KAAK,SAAS,QAAQ,QAAQ,GAAG,WAAW;AAC9F,QACE,oBAACA;EACC,MAAM;EACG;EACJ;EACL,MAAM;EACN,UAAU,MAAM;AACd,KAAE,gBAAgB;AAClB,OAAI,QACF,UAAS,EAAE;OAEX,UAAS,EAAE;;EAGf,GAAI;GACJ;EAEJ;AAEF,eAAe,cAAc;AAE7B,6BAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeArea.mjs","names":["SafeArea: FC<SafeAreaProps>"],"sources":["../../../src/mobile/SafeArea/SafeArea.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { type FC } from 'react';\n\nimport { styles } from './style';\nimport { SafeAreaProps } from './type';\n\nconst SafeArea: FC<SafeAreaProps> = ({ position, className, ...rest }) => {\n return <div className={cx(styles.container, styles[position], className)} {...rest} />;\n};\n\nSafeArea.displayName = 'SafeArea';\n\nexport default SafeArea;\n"],"mappings":";;;;;;;AAQA,MAAMA,YAA+B,EAAE,UAAU,WAAW,GAAG,WAAW;AACxE,QAAO,oBAAC;EAAI,WAAW,GAAG,OAAO,WAAW,OAAO,WAAW,UAAU;EAAE,GAAI;GAAQ;;AAGxF,SAAS,cAAc;AAEvB,uBAAe"}
|
|
1
|
+
{"version":3,"file":"SafeArea.mjs","names":["SafeArea: FC<SafeAreaProps>"],"sources":["../../../src/mobile/SafeArea/SafeArea.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { type FC } from 'react';\n\nimport { styles } from './style';\nimport type { SafeAreaProps } from './type';\n\nconst SafeArea: FC<SafeAreaProps> = ({ position, className, ...rest }) => {\n return <div className={cx(styles.container, styles[position], className)} {...rest} />;\n};\n\nSafeArea.displayName = 'SafeArea';\n\nexport default SafeArea;\n"],"mappings":";;;;;;;AAQA,MAAMA,YAA+B,EAAE,UAAU,WAAW,GAAG,WAAW;AACxE,QAAO,oBAAC;EAAI,WAAW,GAAG,OAAO,WAAW,OAAO,WAAW,UAAU;EAAE,GAAI;GAAQ;;AAGxF,SAAS,cAAc;AAEvB,uBAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TabBarProps } from "./type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react126 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/mobile/TabBar/TabBar.d.ts
|
|
5
|
-
declare const TabBar:
|
|
5
|
+
declare const TabBar: react126.NamedExoticComponent<TabBarProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { TabBar };
|
|
8
8
|
//# sourceMappingURL=TabBar.d.mts.map
|
|
@@ -6,11 +6,11 @@ import { styles } from "./style.mjs";
|
|
|
6
6
|
import { memo } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cx } from "antd-style";
|
|
9
|
-
import
|
|
9
|
+
import useMergeState from "use-merge-value";
|
|
10
10
|
|
|
11
11
|
//#region src/mobile/TabBar/TabBar.tsx
|
|
12
12
|
const TabBar = memo(({ ref, className, safeArea, items, activeKey, defaultActiveKey, onChange, ...rest }) => {
|
|
13
|
-
const [currentActive, setCurrentActive] =
|
|
13
|
+
const [currentActive, setCurrentActive] = useMergeState(defaultActiveKey || items[0].key, {
|
|
14
14
|
defaultValue: defaultActiveKey,
|
|
15
15
|
onChange,
|
|
16
16
|
value: activeKey
|
|
@@ -21,9 +21,9 @@ const TabBar = memo(({ ref, className, safeArea, items, activeKey, defaultActive
|
|
|
21
21
|
ref,
|
|
22
22
|
...rest,
|
|
23
23
|
children: [/* @__PURE__ */ jsx(FlexBasic_default, {
|
|
24
|
+
horizontal: true,
|
|
24
25
|
align: "center",
|
|
25
26
|
className: cx(styles.inner, className),
|
|
26
|
-
horizontal: true,
|
|
27
27
|
justify: "space-around",
|
|
28
28
|
children: items.map((item) => {
|
|
29
29
|
const active = item.key === currentActive;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabBar.mjs","names":["
|
|
1
|
+
{"version":3,"file":"TabBar.mjs","names":["Flexbox","SafeArea"],"sources":["../../../src/mobile/TabBar/TabBar.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\nimport useMergeState from 'use-merge-value';\n\nimport { Flexbox } from '@/Flex';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { styles } from './style';\nimport type { TabBarProps } from './type';\n\nconst TabBar = memo<TabBarProps>(\n ({ ref, className, safeArea, items, activeKey, defaultActiveKey, onChange, ...rest }) => {\n const [currentActive, setCurrentActive] = useMergeState<string>(\n defaultActiveKey || items[0].key,\n {\n defaultValue: defaultActiveKey,\n onChange,\n value: activeKey,\n },\n );\n\n return (\n <Flexbox as={'footer'} className={cx(styles.container, className)} ref={ref} {...rest}>\n <Flexbox\n horizontal\n align={'center'}\n className={cx(styles.inner, className)}\n justify={'space-around'}\n >\n {items.map((item) => {\n const active = item.key === currentActive;\n return (\n <Flexbox\n align={'center'}\n className={cx(styles.tab, active && styles.active)}\n gap={4}\n justify={'center'}\n key={item.key}\n onClick={() => {\n setCurrentActive(item.key);\n item?.onClick?.();\n }}\n >\n <Flexbox align={'center'} className={styles.icon} justify={'center'}>\n {typeof item.icon === 'function' ? item.icon(active) : item.icon}\n </Flexbox>\n <div className={styles.title}>\n {typeof item.title === 'function' ? item.title(active) : item.title}\n </div>\n </Flexbox>\n );\n })}\n </Flexbox>\n {safeArea && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nTabBar.displayName = 'MobileTabBar';\n\nexport default TabBar;\n"],"mappings":";;;;;;;;;;;AAYA,MAAM,SAAS,MACZ,EAAE,KAAK,WAAW,UAAU,OAAO,WAAW,kBAAkB,UAAU,GAAG,WAAW;CACvF,MAAM,CAAC,eAAe,oBAAoB,cACxC,oBAAoB,MAAM,GAAG,KAC7B;EACE,cAAc;EACd;EACA,OAAO;EACR,CACF;AAED,QACE,qBAACA;EAAQ,IAAI;EAAU,WAAW,GAAG,OAAO,WAAW,UAAU;EAAO;EAAK,GAAI;aAC/E,oBAACA;GACC;GACA,OAAO;GACP,WAAW,GAAG,OAAO,OAAO,UAAU;GACtC,SAAS;aAER,MAAM,KAAK,SAAS;IACnB,MAAM,SAAS,KAAK,QAAQ;AAC5B,WACE,qBAACA;KACC,OAAO;KACP,WAAW,GAAG,OAAO,KAAK,UAAU,OAAO,OAAO;KAClD,KAAK;KACL,SAAS;KAET,eAAe;AACb,uBAAiB,KAAK,IAAI;AAC1B,YAAM,WAAW;;gBAGnB,oBAACA;MAAQ,OAAO;MAAU,WAAW,OAAO;MAAM,SAAS;gBACxD,OAAO,KAAK,SAAS,aAAa,KAAK,KAAK,OAAO,GAAG,KAAK;OACpD,EACV,oBAAC;MAAI,WAAW,OAAO;gBACpB,OAAO,KAAK,UAAU,aAAa,KAAK,MAAM,OAAO,GAAG,KAAK;OAC1D;OAXD,KAAK,IAYF;KAEZ;IACM,EACT,YAAY,oBAACC,oBAAS,UAAU,WAAY;GACrC;EAGf;AAED,OAAO,cAAc;AAErB,qBAAe"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlexboxProps } from "../../Flex/type.mjs";
|
|
2
2
|
import "../../Flex/index.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react56 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: react56.NamedExoticComponent<StoryBookProps>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { StoryBook, StoryBookProps, useControls, useCreateStore };
|
|
16
16
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Flexbox","Center","DraggablePanel"],"sources":["../../../src/storybook/StoryBook/index.tsx"],"sourcesContent":["'use client';\n\nimport { cx, useResponsive } from 'antd-style';\nimport { LevaPanel } from 'leva';\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Flexbox","Center","DraggablePanel"],"sources":["../../../src/storybook/StoryBook/index.tsx"],"sourcesContent":["'use client';\n\nimport { cx, useResponsive } from 'antd-style';\nimport { LevaPanel } from 'leva';\nimport { memo, type Ref } from 'react';\n\nimport DraggablePanel from '@/DraggablePanel';\nimport { Center, Flexbox, type FlexboxProps } from '@/Flex';\n\nimport { styles } from './style';\n\nexport interface StoryBookProps extends FlexboxProps {\n levaStore: any;\n noPadding?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const StoryBook = memo<StoryBookProps>(\n ({ ref, levaStore, noPadding, className, children, ...rest }) => {\n const { mobile } = useResponsive();\n\n return (\n <Flexbox\n align={'stretch'}\n className={cx(styles.editor, className)}\n horizontal={!mobile}\n justify={'stretch'}\n ref={ref}\n >\n <Center className={cx(noPadding ? styles.left : styles.leftWithPadding)} flex={1} {...rest}>\n {children}\n </Center>\n <DraggablePanel\n className={styles.right}\n minWidth={280}\n placement={mobile ? 'bottom' : 'right'}\n >\n <div className={styles.leva}>\n <LevaPanel fill flat store={levaStore} titleBar={false} />{' '}\n </div>\n </DraggablePanel>\n </Flexbox>\n );\n },\n);\n\nStoryBook.displayName = 'StoryBook';\n\nexport default StoryBook;\n\nexport { useControls, useCreateStore } from 'leva';\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAa,YAAY,MACtB,EAAE,KAAK,WAAW,WAAW,WAAW,UAAU,GAAG,WAAW;CAC/D,MAAM,EAAE,WAAW,eAAe;AAElC,QACE,qBAACA;EACC,OAAO;EACP,WAAW,GAAG,OAAO,QAAQ,UAAU;EACvC,YAAY,CAAC;EACb,SAAS;EACJ;aAEL,oBAACC;GAAO,WAAW,GAAG,YAAY,OAAO,OAAO,OAAO,gBAAgB;GAAE,MAAM;GAAG,GAAI;GACnF;IACM,EACT,oBAACC;GACC,WAAW,OAAO;GAClB,UAAU;GACV,WAAW,SAAS,WAAW;aAE/B,qBAAC;IAAI,WAAW,OAAO;eACrB,oBAAC;KAAU;KAAK;KAAK,OAAO;KAAW,UAAU;MAAS,EAAC;KACvD;IACS;GACT;EAGf;AAED,UAAU,cAAc;AAExB,wBAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"darkAlgorithm.mjs","names":["darkAlgorithm: MappingAlgorithm","primaryScale: ColorScaleItem","darkBaseToken"],"sources":["../../../../src/styles/theme/algorithms/darkAlgorithm.ts"],"sourcesContent":["import { MappingAlgorithm } from 'antd/es/theme/interface';\n\nimport { colorScales } from '@/color/colors';\nimport { neutralColorScales } from '@/color/neutrals';\nimport type { ColorScaleItem } from '@/color/types';\nimport { generateCustomColorToken } from '@/styles/theme/customToken';\nimport darkBaseToken from '@/styles/theme/token/dark';\n\nimport { NeutralColors, PrimaryColors } from '../../customTheme';\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nexport const darkAlgorithm: MappingAlgorithm = (seedToken, mapToken) => {\n const primaryColor = (seedToken as any).primaryColor as PrimaryColors;\n const neutralColor = (seedToken as any).neutralColor as NeutralColors;\n\n let primaryTokens = {};\n let neutralTokens = {};\n\n // generate primary color Token with colorPrimary\n const primaryScale: ColorScaleItem = colorScales[primaryColor];\n\n if (primaryScale) {\n primaryTokens = generateColorPalette({\n appearance: 'dark',\n scale: primaryScale,\n type: 'Primary',\n });\n }\n\n // generate neutral color Token with colorBgBase\n const neutralScale = neutralColorScales[neutralColor];\n if (neutralScale) {\n neutralTokens = generateColorNeutralPalette({ appearance: 'dark', scale: neutralScale });\n }\n\n return {\n ...mapToken!,\n ...darkBaseToken,\n ...primaryTokens,\n ...neutralTokens,\n ...generateCustomColorToken(true),\n };\n};\n"],"mappings":";;;;;;;AAWA,MAAaA,iBAAmC,WAAW,aAAa;CACtE,MAAM,eAAgB,UAAkB;CACxC,MAAM,eAAgB,UAAkB;CAExC,IAAI,gBAAgB,EAAE;CACtB,IAAI,gBAAgB,EAAE;CAGtB,MAAMC,eAA+B,YAAY;AAEjD,KAAI,aACF,iBAAgB,qBAAqB;EACnC,YAAY;EACZ,OAAO;EACP,MAAM;EACP,CAAC;CAIJ,MAAM,eAAe,mBAAmB;AACxC,KAAI,aACF,iBAAgB,4BAA4B;EAAE,YAAY;EAAQ,OAAO;EAAc,CAAC;AAG1F,QAAO;EACL,GAAG;EACH,GAAGC;EACH,GAAG;EACH,GAAG;EACH,GAAG,yBAAyB,KAAK;EAClC"}
|
|
1
|
+
{"version":3,"file":"darkAlgorithm.mjs","names":["darkAlgorithm: MappingAlgorithm","primaryScale: ColorScaleItem","darkBaseToken"],"sources":["../../../../src/styles/theme/algorithms/darkAlgorithm.ts"],"sourcesContent":["import type { MappingAlgorithm } from 'antd/es/theme/interface';\n\nimport { colorScales } from '@/color/colors';\nimport { neutralColorScales } from '@/color/neutrals';\nimport type { ColorScaleItem } from '@/color/types';\nimport { generateCustomColorToken } from '@/styles/theme/customToken';\nimport darkBaseToken from '@/styles/theme/token/dark';\n\nimport type { NeutralColors, PrimaryColors } from '../../customTheme';\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nexport const darkAlgorithm: MappingAlgorithm = (seedToken, mapToken) => {\n const primaryColor = (seedToken as any).primaryColor as PrimaryColors;\n const neutralColor = (seedToken as any).neutralColor as NeutralColors;\n\n let primaryTokens = {};\n let neutralTokens = {};\n\n // generate primary color Token with colorPrimary\n const primaryScale: ColorScaleItem = colorScales[primaryColor];\n\n if (primaryScale) {\n primaryTokens = generateColorPalette({\n appearance: 'dark',\n scale: primaryScale,\n type: 'Primary',\n });\n }\n\n // generate neutral color Token with colorBgBase\n const neutralScale = neutralColorScales[neutralColor];\n if (neutralScale) {\n neutralTokens = generateColorNeutralPalette({ appearance: 'dark', scale: neutralScale });\n }\n\n return {\n ...mapToken!,\n ...darkBaseToken,\n ...primaryTokens,\n ...neutralTokens,\n ...generateCustomColorToken(true),\n };\n};\n"],"mappings":";;;;;;;AAWA,MAAaA,iBAAmC,WAAW,aAAa;CACtE,MAAM,eAAgB,UAAkB;CACxC,MAAM,eAAgB,UAAkB;CAExC,IAAI,gBAAgB,EAAE;CACtB,IAAI,gBAAgB,EAAE;CAGtB,MAAMC,eAA+B,YAAY;AAEjD,KAAI,aACF,iBAAgB,qBAAqB;EACnC,YAAY;EACZ,OAAO;EACP,MAAM;EACP,CAAC;CAIJ,MAAM,eAAe,mBAAmB;AACxC,KAAI,aACF,iBAAgB,4BAA4B;EAAE,YAAY;EAAQ,OAAO;EAAc,CAAC;AAG1F,QAAO;EACL,GAAG;EACH,GAAGC;EACH,GAAG;EACH,GAAG;EACH,GAAG,yBAAyB,KAAK;EAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lightAlgorithm.mjs","names":["lightAlgorithm: MappingAlgorithm","primaryScale: ColorScaleItem","lightBaseToken"],"sources":["../../../../src/styles/theme/algorithms/lightAlgorithm.ts"],"sourcesContent":["import { MappingAlgorithm } from 'antd/es/theme/interface';\n\nimport { colorScales } from '@/color/colors';\nimport { neutralColorScales } from '@/color/neutrals';\nimport type { ColorScaleItem } from '@/color/types';\n\nimport { NeutralColors, PrimaryColors } from '../../customTheme';\nimport { generateCustomColorToken } from '../customToken';\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\nimport lightBaseToken from '../token/light';\n\nexport const lightAlgorithm: MappingAlgorithm = (seedToken, mapToken) => {\n const primaryColor = (seedToken as any).primaryColor as PrimaryColors;\n const neutralColor = (seedToken as any).neutralColor as NeutralColors;\n\n let primaryTokens = {};\n let neutralTokens = {};\n const primaryScale: ColorScaleItem = colorScales[primaryColor];\n\n if (primaryScale) {\n primaryTokens = generateColorPalette({\n appearance: 'light',\n scale: primaryScale,\n type: 'Primary',\n });\n }\n\n const neutralScale = neutralColorScales[neutralColor];\n if (neutralScale) {\n neutralTokens = generateColorNeutralPalette({ appearance: 'light', scale: neutralScale });\n }\n\n return {\n ...mapToken!,\n ...lightBaseToken,\n ...primaryTokens,\n ...neutralTokens,\n ...generateCustomColorToken(false),\n };\n};\n"],"mappings":";;;;;;;AAWA,MAAaA,kBAAoC,WAAW,aAAa;CACvE,MAAM,eAAgB,UAAkB;CACxC,MAAM,eAAgB,UAAkB;CAExC,IAAI,gBAAgB,EAAE;CACtB,IAAI,gBAAgB,EAAE;CACtB,MAAMC,eAA+B,YAAY;AAEjD,KAAI,aACF,iBAAgB,qBAAqB;EACnC,YAAY;EACZ,OAAO;EACP,MAAM;EACP,CAAC;CAGJ,MAAM,eAAe,mBAAmB;AACxC,KAAI,aACF,iBAAgB,4BAA4B;EAAE,YAAY;EAAS,OAAO;EAAc,CAAC;AAG3F,QAAO;EACL,GAAG;EACH,GAAGC;EACH,GAAG;EACH,GAAG;EACH,GAAG,yBAAyB,MAAM;EACnC"}
|
|
1
|
+
{"version":3,"file":"lightAlgorithm.mjs","names":["lightAlgorithm: MappingAlgorithm","primaryScale: ColorScaleItem","lightBaseToken"],"sources":["../../../../src/styles/theme/algorithms/lightAlgorithm.ts"],"sourcesContent":["import type { MappingAlgorithm } from 'antd/es/theme/interface';\n\nimport { colorScales } from '@/color/colors';\nimport { neutralColorScales } from '@/color/neutrals';\nimport type { ColorScaleItem } from '@/color/types';\n\nimport type { NeutralColors, PrimaryColors } from '../../customTheme';\nimport { generateCustomColorToken } from '../customToken';\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\nimport lightBaseToken from '../token/light';\n\nexport const lightAlgorithm: MappingAlgorithm = (seedToken, mapToken) => {\n const primaryColor = (seedToken as any).primaryColor as PrimaryColors;\n const neutralColor = (seedToken as any).neutralColor as NeutralColors;\n\n let primaryTokens = {};\n let neutralTokens = {};\n const primaryScale: ColorScaleItem = colorScales[primaryColor];\n\n if (primaryScale) {\n primaryTokens = generateColorPalette({\n appearance: 'light',\n scale: primaryScale,\n type: 'Primary',\n });\n }\n\n const neutralScale = neutralColorScales[neutralColor];\n if (neutralScale) {\n neutralTokens = generateColorNeutralPalette({ appearance: 'light', scale: neutralScale });\n }\n\n return {\n ...mapToken!,\n ...lightBaseToken,\n ...primaryTokens,\n ...neutralTokens,\n ...generateCustomColorToken(false),\n };\n};\n"],"mappings":";;;;;;;AAWA,MAAaA,kBAAoC,WAAW,aAAa;CACvE,MAAM,eAAgB,UAAkB;CACxC,MAAM,eAAgB,UAAkB;CAExC,IAAI,gBAAgB,EAAE;CACtB,IAAI,gBAAgB,EAAE;CACtB,MAAMC,eAA+B,YAAY;AAEjD,KAAI,aACF,iBAAgB,qBAAqB;EACnC,YAAY;EACZ,OAAO;EACP,MAAM;EACP,CAAC;CAGJ,MAAM,eAAe,mBAAmB;AACxC,KAAI,aACF,iBAAgB,4BAA4B;EAAE,YAAY;EAAS,OAAO;EAAc,CAAC;AAG3F,QAAO;EACL,GAAG;EACH,GAAGC;EACH,GAAG;EACH,GAAG;EACH,GAAG,yBAAyB,MAAM;EACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antdTheme.mjs","names":[],"sources":["../../../src/styles/theme/antdTheme.ts"],"sourcesContent":["import { ThemeConfig } from 'antd';\nimport { ThemeAppearance } from 'antd-style';\n\nimport { NeutralColors, PrimaryColors } from '../customTheme';\nimport { darkAlgorithm } from './algorithms/darkAlgorithm';\nimport { lightAlgorithm } from './algorithms/lightAlgorithm';\nimport { baseToken } from './token/base';\n\nexport interface LobeAntdThemeParams {\n appearance: ThemeAppearance;\n neutralColor?: NeutralColors;\n primaryColor?: PrimaryColors;\n}\n\n/**\n * create A LobeHub Style Antd Theme Object\n * @param neutralColor\n * @param appearance\n * @param primaryColor\n */\nexport const createLobeAntdTheme = ({\n neutralColor,\n appearance,\n primaryColor,\n}: LobeAntdThemeParams): ThemeConfig => {\n const isDark = appearance === 'dark';\n\n return {\n algorithm: isDark ? darkAlgorithm : lightAlgorithm,\n components: {\n Button: {\n contentFontSizeSM: 12,\n },\n DatePicker: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Input: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n InputNumber: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Mentions: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Select: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n },\n token: {\n ...baseToken,\n // @ts-ignore\n neutralColor,\n primaryColor,\n },\n };\n};\n"],"mappings":";;;;;;;;;;;AAoBA,MAAa,uBAAuB,EAClC,cACA,YACA,mBACsC;AAGtC,QAAO;EACL,WAHa,eAAe,SAGR,gBAAgB;EACpC,YAAY;GACV,QAAQ,EACN,mBAAmB,IACpB;GACD,YAAY;IACV,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,OAAO;IACL,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,aAAa;IACX,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,UAAU;IACR,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,QAAQ;IACN,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACF;EACD,OAAO;GACL,GAAG;GAEH;GACA;GACD;EACF"}
|
|
1
|
+
{"version":3,"file":"antdTheme.mjs","names":[],"sources":["../../../src/styles/theme/antdTheme.ts"],"sourcesContent":["import type { ThemeConfig } from 'antd';\nimport type { ThemeAppearance } from 'antd-style';\n\nimport type { NeutralColors, PrimaryColors } from '../customTheme';\nimport { darkAlgorithm } from './algorithms/darkAlgorithm';\nimport { lightAlgorithm } from './algorithms/lightAlgorithm';\nimport { baseToken } from './token/base';\n\nexport interface LobeAntdThemeParams {\n appearance: ThemeAppearance;\n neutralColor?: NeutralColors;\n primaryColor?: PrimaryColors;\n}\n\n/**\n * create A LobeHub Style Antd Theme Object\n * @param neutralColor\n * @param appearance\n * @param primaryColor\n */\nexport const createLobeAntdTheme = ({\n neutralColor,\n appearance,\n primaryColor,\n}: LobeAntdThemeParams): ThemeConfig => {\n const isDark = appearance === 'dark';\n\n return {\n algorithm: isDark ? darkAlgorithm : lightAlgorithm,\n components: {\n Button: {\n contentFontSizeSM: 12,\n },\n DatePicker: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Input: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n InputNumber: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Mentions: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Select: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n },\n token: {\n ...baseToken,\n // @ts-ignore\n neutralColor,\n primaryColor,\n },\n };\n};\n"],"mappings":";;;;;;;;;;;AAoBA,MAAa,uBAAuB,EAClC,cACA,YACA,mBACsC;AAGtC,QAAO;EACL,WAHa,eAAe,SAGR,gBAAgB;EACpC,YAAY;GACV,QAAQ,EACN,mBAAmB,IACpB;GACD,YAAY;IACV,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,OAAO;IACL,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,aAAa;IACX,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,UAAU;IACR,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACD,QAAQ;IACN,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;IAC7B;GACF;EACD,OAAO;GACL,GAAG;GAEH;GACA;GACD;EACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customStylish.mjs","names":["generateCustomStylish: GetCustomStylish<LobeCustomStylish>"],"sources":["../../../src/styles/theme/customStylish.ts"],"sourcesContent":["import { GetCustomStylish, keyframes } from 'antd-style';\n\nimport { LobeCustomStylish } from '@/types/customStylish';\n\nexport const generateCustomStylish: GetCustomStylish<LobeCustomStylish> = ({\n css,\n token,\n isDarkMode,\n}) => {\n const gradient = keyframes`\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n `;\n\n return {\n active: css`\n color: ${token.colorText};\n background: ${token.colorFillSecondary};\n\n &:hover {\n color: ${token.colorText};\n background: ${token.colorFill};\n }\n `,\n blur: css`\n backdrop-filter: saturate(150%) blur(10px);\n `,\n blurStrong: css`\n backdrop-filter: saturate(150%) blur(36px);\n `,\n bottomScrollbar: css`\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n border-radius: 4px;\n background-color: ${token.colorFill};\n transition: background-color 500ms ${token.motionEaseOut};\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n `,\n disabled: css`\n cursor: not-allowed;\n opacity: 0.5;\n `,\n gradientAnimation: css`\n border-radius: inherit;\n background-image: linear-gradient(\n -45deg,\n ${token.gold},\n ${token.magenta},\n ${token.geekblue},\n ${token.cyan}\n );\n background-size: 400% 400%;\n animation: 5s ${gradient} 5s ease infinite;\n `,\n noScrollbar: css`\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n `,\n resetLinkColor: css`\n cursor: pointer;\n color: ${token.colorTextSecondary};\n\n &:hover {\n color: ${token.colorText};\n }\n `,\n shadow: css`\n box-shadow:\n 0 1px 0 -1px ${isDarkMode ? token.colorBgLayout : token.colorBorder},\n 0 1px 2px -0.5px ${isDarkMode ? token.colorBgLayout : token.colorBorder},\n 0 2px 2px -1px ${isDarkMode ? token.colorBgLayout : token.colorBorderSecondary},\n 0 3px 6px -4px ${isDarkMode ? token.colorBgLayout : token.colorBorderSecondary};\n `,\n variantBorderless: css`\n border: none;\n background: none;\n box-shadow: none;\n\n &:hover {\n background: ${token.colorFillTertiary};\n }\n `,\n variantBorderlessDanger: css`\n border: none;\n background: none;\n box-shadow: none;\n\n &:hover {\n background: ${token.colorErrorFillTertiary};\n box-shadow: inset 0 0 0 1px ${token.colorErrorFillTertiary};\n }\n `,\n variantBorderlessWithoutHover: css`\n border: none;\n background: none;\n box-shadow: none;\n `,\n variantFilled: css`\n background: ${token.colorFillTertiary};\n\n &:hover {\n background: ${token.colorFillSecondary};\n }\n `,\n variantFilledDanger: css`\n background: ${token.colorErrorFillTertiary};\n\n &:hover {\n background: ${token.colorErrorFillSecondary};\n }\n `,\n variantFilledWithoutHover: css`\n background: ${token.colorFillTertiary};\n `,\n variantOutlined: css`\n border: 1px solid ${token.colorBorderSecondary};\n background: ${token.colorBgContainer};\n\n &:hover {\n border: 1px solid ${token.colorBorder};\n background: ${token.colorBgContainer};\n }\n `,\n\n variantOutlinedDanger: css`\n border: 1px solid ${token.colorErrorBorder};\n\n &:hover {\n border: 1px solid ${token.colorErrorBorder};\n }\n `,\n variantOutlinedWithoutHover: css`\n border: 1px solid ${token.colorBorderSecondary};\n background: ${token.colorBgContainer};\n `,\n };\n};\n"],"mappings":";;;AAIA,MAAaA,yBAA8D,EACzE,YACA,OACA,iBACI;CACJ,MAAM,WAAW,SAAS;;;;;;;;;;;AAY1B,QAAO;EACL,QAAQ,KAAG;eACA,MAAM,UAAU;oBACX,MAAM,mBAAmB;;;iBAG5B,MAAM,UAAU;sBACX,MAAM,UAAU;;;EAGlC,MAAM,KAAG;;;EAGT,YAAY,KAAG;;;EAGf,iBAAiB,KAAG;;;;;;;;8BAQM,MAAM,UAAU;+CACC,MAAM,cAAc;;;;;;;;;;EAU/D,UAAU,KAAG;;;;EAIb,mBAAmB,KAAG;;;;UAIhB,MAAM,KAAK;UACX,MAAM,QAAQ;UACd,MAAM,SAAS;UACf,MAAM,KAAK;;;sBAGC,SAAS;;EAE3B,aAAa,KAAG;;;;;;;;EAQhB,gBAAgB,KAAG;;eAER,MAAM,mBAAmB;;;iBAGvB,MAAM,UAAU;;;EAG7B,QAAQ,KAAG;;uBAEQ,aAAa,MAAM,gBAAgB,MAAM,YAAY;2BACjD,aAAa,MAAM,gBAAgB,MAAM,YAAY;yBACvD,aAAa,MAAM,gBAAgB,MAAM,qBAAqB;yBAC9D,aAAa,MAAM,gBAAgB,MAAM,qBAAqB;;EAEnF,mBAAmB,KAAG;;;;;;sBAMJ,MAAM,kBAAkB;;;EAG1C,yBAAyB,KAAG;;;;;;sBAMV,MAAM,uBAAuB;sCACb,MAAM,uBAAuB;;;EAG/D,+BAA+B,KAAG;;;;;EAKlC,eAAe,KAAG;oBACF,MAAM,kBAAkB;;;sBAGtB,MAAM,mBAAmB;;;EAG3C,qBAAqB,KAAG;oBACR,MAAM,uBAAuB;;;sBAG3B,MAAM,wBAAwB;;;EAGhD,2BAA2B,KAAG;oBACd,MAAM,kBAAkB;;EAExC,iBAAiB,KAAG;0BACE,MAAM,qBAAqB;oBACjC,MAAM,iBAAiB;;;4BAGf,MAAM,YAAY;sBACxB,MAAM,iBAAiB;;;EAIzC,uBAAuB,KAAG;0BACJ,MAAM,iBAAiB;;;4BAGrB,MAAM,iBAAiB;;;EAG/C,6BAA6B,KAAG;0BACV,MAAM,qBAAqB;oBACjC,MAAM,iBAAiB;;EAExC"}
|
|
1
|
+
{"version":3,"file":"customStylish.mjs","names":["generateCustomStylish: GetCustomStylish<LobeCustomStylish>"],"sources":["../../../src/styles/theme/customStylish.ts"],"sourcesContent":["import { type GetCustomStylish, keyframes } from 'antd-style';\n\nimport type { LobeCustomStylish } from '@/types/customStylish';\n\nexport const generateCustomStylish: GetCustomStylish<LobeCustomStylish> = ({\n css,\n token,\n isDarkMode,\n}) => {\n const gradient = keyframes`\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n `;\n\n return {\n active: css`\n color: ${token.colorText};\n background: ${token.colorFillSecondary};\n\n &:hover {\n color: ${token.colorText};\n background: ${token.colorFill};\n }\n `,\n blur: css`\n backdrop-filter: saturate(150%) blur(10px);\n `,\n blurStrong: css`\n backdrop-filter: saturate(150%) blur(36px);\n `,\n bottomScrollbar: css`\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n border-radius: 4px;\n background-color: ${token.colorFill};\n transition: background-color 500ms ${token.motionEaseOut};\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n `,\n disabled: css`\n cursor: not-allowed;\n opacity: 0.5;\n `,\n gradientAnimation: css`\n border-radius: inherit;\n background-image: linear-gradient(\n -45deg,\n ${token.gold},\n ${token.magenta},\n ${token.geekblue},\n ${token.cyan}\n );\n background-size: 400% 400%;\n animation: 5s ${gradient} 5s ease infinite;\n `,\n noScrollbar: css`\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n `,\n resetLinkColor: css`\n cursor: pointer;\n color: ${token.colorTextSecondary};\n\n &:hover {\n color: ${token.colorText};\n }\n `,\n shadow: css`\n box-shadow:\n 0 1px 0 -1px ${isDarkMode ? token.colorBgLayout : token.colorBorder},\n 0 1px 2px -0.5px ${isDarkMode ? token.colorBgLayout : token.colorBorder},\n 0 2px 2px -1px ${isDarkMode ? token.colorBgLayout : token.colorBorderSecondary},\n 0 3px 6px -4px ${isDarkMode ? token.colorBgLayout : token.colorBorderSecondary};\n `,\n variantBorderless: css`\n border: none;\n background: none;\n box-shadow: none;\n\n &:hover {\n background: ${token.colorFillTertiary};\n }\n `,\n variantBorderlessDanger: css`\n border: none;\n background: none;\n box-shadow: none;\n\n &:hover {\n background: ${token.colorErrorFillTertiary};\n box-shadow: inset 0 0 0 1px ${token.colorErrorFillTertiary};\n }\n `,\n variantBorderlessWithoutHover: css`\n border: none;\n background: none;\n box-shadow: none;\n `,\n variantFilled: css`\n background: ${token.colorFillTertiary};\n\n &:hover {\n background: ${token.colorFillSecondary};\n }\n `,\n variantFilledDanger: css`\n background: ${token.colorErrorFillTertiary};\n\n &:hover {\n background: ${token.colorErrorFillSecondary};\n }\n `,\n variantFilledWithoutHover: css`\n background: ${token.colorFillTertiary};\n `,\n variantOutlined: css`\n border: 1px solid ${token.colorBorderSecondary};\n background: ${token.colorBgContainer};\n\n &:hover {\n border: 1px solid ${token.colorBorder};\n background: ${token.colorBgContainer};\n }\n `,\n\n variantOutlinedDanger: css`\n border: 1px solid ${token.colorErrorBorder};\n\n &:hover {\n border: 1px solid ${token.colorErrorBorder};\n }\n `,\n variantOutlinedWithoutHover: css`\n border: 1px solid ${token.colorBorderSecondary};\n background: ${token.colorBgContainer};\n `,\n };\n};\n"],"mappings":";;;AAIA,MAAaA,yBAA8D,EACzE,YACA,OACA,iBACI;CACJ,MAAM,WAAW,SAAS;;;;;;;;;;;AAY1B,QAAO;EACL,QAAQ,KAAG;eACA,MAAM,UAAU;oBACX,MAAM,mBAAmB;;;iBAG5B,MAAM,UAAU;sBACX,MAAM,UAAU;;;EAGlC,MAAM,KAAG;;;EAGT,YAAY,KAAG;;;EAGf,iBAAiB,KAAG;;;;;;;;8BAQM,MAAM,UAAU;+CACC,MAAM,cAAc;;;;;;;;;;EAU/D,UAAU,KAAG;;;;EAIb,mBAAmB,KAAG;;;;UAIhB,MAAM,KAAK;UACX,MAAM,QAAQ;UACd,MAAM,SAAS;UACf,MAAM,KAAK;;;sBAGC,SAAS;;EAE3B,aAAa,KAAG;;;;;;;;EAQhB,gBAAgB,KAAG;;eAER,MAAM,mBAAmB;;;iBAGvB,MAAM,UAAU;;;EAG7B,QAAQ,KAAG;;uBAEQ,aAAa,MAAM,gBAAgB,MAAM,YAAY;2BACjD,aAAa,MAAM,gBAAgB,MAAM,YAAY;yBACvD,aAAa,MAAM,gBAAgB,MAAM,qBAAqB;yBAC9D,aAAa,MAAM,gBAAgB,MAAM,qBAAqB;;EAEnF,mBAAmB,KAAG;;;;;;sBAMJ,MAAM,kBAAkB;;;EAG1C,yBAAyB,KAAG;;;;;;sBAMV,MAAM,uBAAuB;sCACb,MAAM,uBAAuB;;;EAG/D,+BAA+B,KAAG;;;;;EAKlC,eAAe,KAAG;oBACF,MAAM,kBAAkB;;;sBAGtB,MAAM,mBAAmB;;;EAG3C,qBAAqB,KAAG;oBACR,MAAM,uBAAuB;;;sBAG3B,MAAM,wBAAwB;;;EAGhD,2BAA2B,KAAG;oBACd,MAAM,kBAAkB;;EAExC,iBAAiB,KAAG;0BACE,MAAM,qBAAqB;oBACjC,MAAM,iBAAiB;;;4BAGf,MAAM,YAAY;sBACxB,MAAM,iBAAiB;;;EAIzC,uBAAuB,KAAG;0BACJ,MAAM,iBAAiB;;;4BAGrB,MAAM,iBAAiB;;;EAG/C,6BAA6B,KAAG;0BACV,MAAM,qBAAqB;oBACjC,MAAM,iBAAiB;;EAExC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customToken.mjs","names":["colorStepPalette: { [key: string]: string }","colorCustomToken: any","generateCustomToken: GetCustomToken<LobeCustomToken>"],"sources":["../../../src/styles/theme/customToken.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"customToken.mjs","names":["colorStepPalette: { [key: string]: string }","colorCustomToken: any","generateCustomToken: GetCustomToken<LobeCustomToken>"],"sources":["../../../src/styles/theme/customToken.ts"],"sourcesContent":["import { type AliasToken } from 'antd/es/theme/interface';\nimport { type GetCustomToken } from 'antd-style';\nimport { camelCase } from 'es-toolkit/compat';\nimport { mix } from 'polished';\n\nimport { colorScales } from '@/color/colors';\nimport { type ColorScaleItem } from '@/color/types';\nimport { type LobeCustomToken } from '@/types/customToken';\n\nconst generateColorPalette = ({\n name,\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n name: string;\n scale: ColorScaleItem;\n}) => {\n const isDarkMode = appearance === 'dark';\n return {\n [`${name}Fill`]: scale[`${appearance}A`][isDarkMode ? 3 : 4],\n [`${name}FillSecondary`]: scale[`${appearance}A`][isDarkMode ? 2 : 3],\n [`${name}FillTertiary`]: scale[`${appearance}A`][isDarkMode ? 1 : 2],\n [`${name}FillQuaternary`]: scale[`${appearance}A`][isDarkMode ? 0 : 1],\n [`${name}Bg`]: scale[`${appearance}A`][1],\n [`${name}BgHover`]: scale[`${appearance}A`][2],\n [`${name}Border`]: scale[appearance][4],\n [`${name}BorderSecondary`]: scale[appearance][3],\n [`${name}BorderHover`]: scale[appearance][isDarkMode ? 5 : 3],\n [`${name}Hover`]: scale[appearance][isDarkMode ? 10 : 8],\n [`${name}`]: scale[appearance][9],\n [`${name}Active`]: scale[appearance][isDarkMode ? 7 : 10],\n [`${name}TextHover`]: scale[`${appearance}A`][isDarkMode ? 10 : 8],\n [`${name}Text`]: scale[`${appearance}A`][9],\n [`${name}TextActive`]: scale[`${appearance}A`][isDarkMode ? 7 : 10],\n };\n};\n\nconst generateCustomColorPalette = ({\n name,\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n name: string;\n scale: ColorScaleItem;\n}): Partial<AliasToken> => {\n const colorStepPalette: { [key: string]: string } = {};\n\n for (const [index, color] of scale[appearance].entries()) {\n if (index === 0 || index === 12) continue;\n\n colorStepPalette[`${name}${index}`] = color;\n }\n for (const [index, color] of scale[`${appearance}A`].entries()) {\n if (index === 0 || index === 12) continue;\n\n colorStepPalette[`${name}${index}A`] = color;\n }\n\n return {\n ...colorStepPalette,\n ...generateColorPalette({ appearance, name, scale }),\n };\n};\n\nexport const generateCustomColorToken = (isDarkMode: boolean) => {\n let colorCustomToken: any = {};\n\n for (const [type, scale] of Object.entries(colorScales)) {\n colorCustomToken = {\n ...colorCustomToken,\n ...generateCustomColorPalette({\n appearance: isDarkMode ? 'dark' : 'light',\n name: camelCase(type),\n scale,\n }),\n };\n }\n\n return colorCustomToken;\n};\n\nexport const generateCustomToken: GetCustomToken<LobeCustomToken> = ({ isDarkMode, token }) => {\n return {\n ...generateCustomColorToken(isDarkMode),\n colorBgContainerSecondary: mix(0.5, token.colorBgLayout, token.colorBgContainer),\n };\n};\n"],"mappings":";;;;;AASA,MAAM,wBAAwB,EAC5B,MACA,OACA,iBAKI;CACJ,MAAM,aAAa,eAAe;AAClC,QAAO;GACJ,GAAG,KAAK,QAAQ,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACzD,GAAG,KAAK,iBAAiB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GAClE,GAAG,KAAK,gBAAgB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACjE,GAAG,KAAK,kBAAkB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACnE,GAAG,KAAK,MAAM,MAAM,GAAG,WAAW,IAAI;GACtC,GAAG,KAAK,WAAW,MAAM,GAAG,WAAW,IAAI;GAC3C,GAAG,KAAK,UAAU,MAAM,YAAY;GACpC,GAAG,KAAK,mBAAmB,MAAM,YAAY;GAC7C,GAAG,KAAK,eAAe,MAAM,YAAY,aAAa,IAAI;GAC1D,GAAG,KAAK,SAAS,MAAM,YAAY,aAAa,KAAK;GACrD,GAAG,SAAS,MAAM,YAAY;GAC9B,GAAG,KAAK,UAAU,MAAM,YAAY,aAAa,IAAI;GACrD,GAAG,KAAK,aAAa,MAAM,GAAG,WAAW,IAAI,aAAa,KAAK;GAC/D,GAAG,KAAK,QAAQ,MAAM,GAAG,WAAW,IAAI;GACxC,GAAG,KAAK,cAAc,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;EACjE;;AAGH,MAAM,8BAA8B,EAClC,MACA,OACA,iBAKyB;CACzB,MAAMA,mBAA8C,EAAE;AAEtD,MAAK,MAAM,CAAC,OAAO,UAAU,MAAM,YAAY,SAAS,EAAE;AACxD,MAAI,UAAU,KAAK,UAAU,GAAI;AAEjC,mBAAiB,GAAG,OAAO,WAAW;;AAExC,MAAK,MAAM,CAAC,OAAO,UAAU,MAAM,GAAG,WAAW,IAAI,SAAS,EAAE;AAC9D,MAAI,UAAU,KAAK,UAAU,GAAI;AAEjC,mBAAiB,GAAG,OAAO,MAAM,MAAM;;AAGzC,QAAO;EACL,GAAG;EACH,GAAG,qBAAqB;GAAE;GAAY;GAAM;GAAO,CAAC;EACrD;;AAGH,MAAa,4BAA4B,eAAwB;CAC/D,IAAIC,mBAAwB,EAAE;AAE9B,MAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,YAAY,CACrD,oBAAmB;EACjB,GAAG;EACH,GAAG,2BAA2B;GAC5B,YAAY,aAAa,SAAS;GAClC,MAAM,UAAU,KAAK;GACrB;GACD,CAAC;EACH;AAGH,QAAO;;AAGT,MAAaC,uBAAwD,EAAE,YAAY,YAAY;AAC7F,QAAO;EACL,GAAG,yBAAyB,WAAW;EACvC,2BAA2B,IAAI,IAAK,MAAM,eAAe,MAAM,iBAAiB;EACjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateColorPalette.mjs","names":[],"sources":["../../../src/styles/theme/generateColorPalette.ts"],"sourcesContent":["import { AliasToken } from 'antd/es/theme/interface';\nimport { capitalize } from 'es-toolkit/compat';\n\nimport type { ColorScaleItem } from '@/color/types';\n\nexport const generateColorPalette = ({\n type,\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n scale: ColorScaleItem;\n type: 'Primary' | 'Success' | 'Warning' | 'Error' | 'Info' | string;\n}): Partial<AliasToken> => {\n const name = capitalize(type);\n const isDarkMode = appearance === 'dark';\n return {\n [`color${name}Fill`]: scale[`${appearance}A`][isDarkMode ? 3 : 4],\n [`color${name}FillSecondary`]: scale[`${appearance}A`][isDarkMode ? 2 : 3],\n [`color${name}FillTertiary`]: scale[`${appearance}A`][isDarkMode ? 1 : 2],\n [`color${name}FillQuaternary`]: scale[`${appearance}A`][isDarkMode ? 0 : 1],\n [`color${name}Bg`]: scale[appearance][1],\n [`color${name}BgHover`]: scale[appearance][2],\n [`color${name}Border`]: scale[appearance][4],\n [`color${name}BorderHover`]: scale[appearance][isDarkMode ? 5 : 3],\n [`color${name}Hover`]: scale[appearance][isDarkMode ? 10 : 8],\n [`color${name}`]: scale[appearance][9],\n [`color${name}Active`]: scale[appearance][isDarkMode ? 7 : 10],\n [`color${name}TextHover`]: scale[appearance][isDarkMode ? 10 : 8],\n [`color${name}Text`]: scale[appearance][9],\n [`color${name}TextActive`]: scale[appearance][isDarkMode ? 7 : 10],\n };\n};\n\nexport const generateColorNeutralPalette = ({\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n scale: ColorScaleItem;\n}): Partial<AliasToken> => {\n return {\n colorBgContainer: appearance === 'dark' ? scale[appearance][1] : scale[appearance][0],\n colorBgElevated: appearance === 'dark' ? scale[appearance][2] : scale[appearance][0],\n colorBgLayout: appearance === 'dark' ? scale[appearance][0] : scale[appearance][1],\n colorBgMask: scale.lightA[8],\n colorBgSpotlight: scale[appearance][4],\n colorBorder: scale[appearance][3],\n colorBorderSecondary: scale[appearance][2],\n colorFill: scale[`${appearance}A`][3],\n colorFillQuaternary: scale[`${appearance}A`][0],\n colorFillSecondary: scale[`${appearance}A`][2],\n colorFillTertiary: scale[`${appearance}A`][1],\n colorText: scale[appearance][12],\n colorTextQuaternary: scale[appearance][6],\n colorTextSecondary: scale[appearance][10],\n colorTextTertiary: scale[appearance][8],\n };\n};\n"],"mappings":";;;AAKA,MAAa,wBAAwB,EACnC,MACA,OACA,iBAKyB;CACzB,MAAM,OAAO,WAAW,KAAK;CAC7B,MAAM,aAAa,eAAe;AAClC,QAAO;GACJ,QAAQ,KAAK,QAAQ,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GAC9D,QAAQ,KAAK,iBAAiB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACvE,QAAQ,KAAK,gBAAgB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACtE,QAAQ,KAAK,kBAAkB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACxE,QAAQ,KAAK,MAAM,MAAM,YAAY;GACrC,QAAQ,KAAK,WAAW,MAAM,YAAY;GAC1C,QAAQ,KAAK,UAAU,MAAM,YAAY;GACzC,QAAQ,KAAK,eAAe,MAAM,YAAY,aAAa,IAAI;GAC/D,QAAQ,KAAK,SAAS,MAAM,YAAY,aAAa,KAAK;GAC1D,QAAQ,SAAS,MAAM,YAAY;GACnC,QAAQ,KAAK,UAAU,MAAM,YAAY,aAAa,IAAI;GAC1D,QAAQ,KAAK,aAAa,MAAM,YAAY,aAAa,KAAK;GAC9D,QAAQ,KAAK,QAAQ,MAAM,YAAY;GACvC,QAAQ,KAAK,cAAc,MAAM,YAAY,aAAa,IAAI;EAChE;;AAGH,MAAa,+BAA+B,EAC1C,OACA,iBAIyB;AACzB,QAAO;EACL,kBAAkB,eAAe,SAAS,MAAM,YAAY,KAAK,MAAM,YAAY;EACnF,iBAAiB,eAAe,SAAS,MAAM,YAAY,KAAK,MAAM,YAAY;EAClF,eAAe,eAAe,SAAS,MAAM,YAAY,KAAK,MAAM,YAAY;EAChF,aAAa,MAAM,OAAO;EAC1B,kBAAkB,MAAM,YAAY;EACpC,aAAa,MAAM,YAAY;EAC/B,sBAAsB,MAAM,YAAY;EACxC,WAAW,MAAM,GAAG,WAAW,IAAI;EACnC,qBAAqB,MAAM,GAAG,WAAW,IAAI;EAC7C,oBAAoB,MAAM,GAAG,WAAW,IAAI;EAC5C,mBAAmB,MAAM,GAAG,WAAW,IAAI;EAC3C,WAAW,MAAM,YAAY;EAC7B,qBAAqB,MAAM,YAAY;EACvC,oBAAoB,MAAM,YAAY;EACtC,mBAAmB,MAAM,YAAY;EACtC"}
|
|
1
|
+
{"version":3,"file":"generateColorPalette.mjs","names":[],"sources":["../../../src/styles/theme/generateColorPalette.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\nimport { capitalize } from 'es-toolkit/compat';\n\nimport type { ColorScaleItem } from '@/color/types';\n\nexport const generateColorPalette = ({\n type,\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n scale: ColorScaleItem;\n type: 'Primary' | 'Success' | 'Warning' | 'Error' | 'Info' | string;\n}): Partial<AliasToken> => {\n const name = capitalize(type);\n const isDarkMode = appearance === 'dark';\n return {\n [`color${name}Fill`]: scale[`${appearance}A`][isDarkMode ? 3 : 4],\n [`color${name}FillSecondary`]: scale[`${appearance}A`][isDarkMode ? 2 : 3],\n [`color${name}FillTertiary`]: scale[`${appearance}A`][isDarkMode ? 1 : 2],\n [`color${name}FillQuaternary`]: scale[`${appearance}A`][isDarkMode ? 0 : 1],\n [`color${name}Bg`]: scale[appearance][1],\n [`color${name}BgHover`]: scale[appearance][2],\n [`color${name}Border`]: scale[appearance][4],\n [`color${name}BorderHover`]: scale[appearance][isDarkMode ? 5 : 3],\n [`color${name}Hover`]: scale[appearance][isDarkMode ? 10 : 8],\n [`color${name}`]: scale[appearance][9],\n [`color${name}Active`]: scale[appearance][isDarkMode ? 7 : 10],\n [`color${name}TextHover`]: scale[appearance][isDarkMode ? 10 : 8],\n [`color${name}Text`]: scale[appearance][9],\n [`color${name}TextActive`]: scale[appearance][isDarkMode ? 7 : 10],\n };\n};\n\nexport const generateColorNeutralPalette = ({\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n scale: ColorScaleItem;\n}): Partial<AliasToken> => {\n return {\n colorBgContainer: appearance === 'dark' ? scale[appearance][1] : scale[appearance][0],\n colorBgElevated: appearance === 'dark' ? scale[appearance][2] : scale[appearance][0],\n colorBgLayout: appearance === 'dark' ? scale[appearance][0] : scale[appearance][1],\n colorBgMask: scale.lightA[8],\n colorBgSpotlight: scale[appearance][4],\n colorBorder: scale[appearance][3],\n colorBorderSecondary: scale[appearance][2],\n colorFill: scale[`${appearance}A`][3],\n colorFillQuaternary: scale[`${appearance}A`][0],\n colorFillSecondary: scale[`${appearance}A`][2],\n colorFillTertiary: scale[`${appearance}A`][1],\n colorText: scale[appearance][12],\n colorTextQuaternary: scale[appearance][6],\n colorTextSecondary: scale[appearance][10],\n colorTextTertiary: scale[appearance][8],\n };\n};\n"],"mappings":";;;AAKA,MAAa,wBAAwB,EACnC,MACA,OACA,iBAKyB;CACzB,MAAM,OAAO,WAAW,KAAK;CAC7B,MAAM,aAAa,eAAe;AAClC,QAAO;GACJ,QAAQ,KAAK,QAAQ,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GAC9D,QAAQ,KAAK,iBAAiB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACvE,QAAQ,KAAK,gBAAgB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACtE,QAAQ,KAAK,kBAAkB,MAAM,GAAG,WAAW,IAAI,aAAa,IAAI;GACxE,QAAQ,KAAK,MAAM,MAAM,YAAY;GACrC,QAAQ,KAAK,WAAW,MAAM,YAAY;GAC1C,QAAQ,KAAK,UAAU,MAAM,YAAY;GACzC,QAAQ,KAAK,eAAe,MAAM,YAAY,aAAa,IAAI;GAC/D,QAAQ,KAAK,SAAS,MAAM,YAAY,aAAa,KAAK;GAC1D,QAAQ,SAAS,MAAM,YAAY;GACnC,QAAQ,KAAK,UAAU,MAAM,YAAY,aAAa,IAAI;GAC1D,QAAQ,KAAK,aAAa,MAAM,YAAY,aAAa,KAAK;GAC9D,QAAQ,KAAK,QAAQ,MAAM,YAAY;GACvC,QAAQ,KAAK,cAAc,MAAM,YAAY,aAAa,IAAI;EAChE;;AAGH,MAAa,+BAA+B,EAC1C,OACA,iBAIyB;AACzB,QAAO;EACL,kBAAkB,eAAe,SAAS,MAAM,YAAY,KAAK,MAAM,YAAY;EACnF,iBAAiB,eAAe,SAAS,MAAM,YAAY,KAAK,MAAM,YAAY;EAClF,eAAe,eAAe,SAAS,MAAM,YAAY,KAAK,MAAM,YAAY;EAChF,aAAa,MAAM,OAAO;EAC1B,kBAAkB,MAAM,YAAY;EACpC,aAAa,MAAM,YAAY;EAC/B,sBAAsB,MAAM,YAAY;EACxC,WAAW,MAAM,GAAG,WAAW,IAAI;EACnC,qBAAqB,MAAM,GAAG,WAAW,IAAI;EAC7C,oBAAoB,MAAM,GAAG,WAAW,IAAI;EAC5C,mBAAmB,MAAM,GAAG,WAAW,IAAI;EAC3C,WAAW,MAAM,YAAY;EAC7B,qBAAqB,MAAM,YAAY;EACvC,oBAAoB,MAAM,YAAY;EACtC,mBAAmB,MAAM,YAAY;EACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.mjs","names":["baseToken: Partial<AliasToken>"],"sources":["../../../../src/styles/theme/token/base.ts"],"sourcesContent":["import { AliasToken } from 'antd/es/theme/interface';\n\nconst FONT_EMOJI = `\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Apple Color Emoji\",\"Twemoji Mozilla\",\"Noto Color Emoji\",\"Android Emoji\"`;\nconst FONT_EN = `\"HarmonyOS Sans\",\"Segoe UI\",\"SF Pro Display\",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif`;\nconst FONT_CN = `\"HarmonyOS Sans SC\",\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft Yahei UI\",\"Microsoft Yahei\",\"Source Han Sans CN\",sans-serif`;\nconst FONT_CODE = `Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas`;\n\nexport const baseToken: Partial<AliasToken> = {\n borderRadius: 8,\n borderRadiusLG: 12,\n borderRadiusSM: 6,\n borderRadiusXS: 4,\n controlHeight: 36,\n fontFamily: [FONT_EN, FONT_CN, FONT_EMOJI].join(','),\n fontFamilyCode: [FONT_CODE, FONT_CN, FONT_EMOJI].join(','),\n};\n"],"mappings":";AAEA,MAAM,aAAa;AACnB,MAAM,UAAU;AAChB,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,MAAaA,YAAiC;CAC5C,cAAc;CACd,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,eAAe;CACf,YAAY;EAAC;EAAS;EAAS;EAAW,CAAC,KAAK,IAAI;CACpD,gBAAgB;EAAC;EAAW;EAAS;EAAW,CAAC,KAAK,IAAI;CAC3D"}
|
|
1
|
+
{"version":3,"file":"base.mjs","names":["baseToken: Partial<AliasToken>"],"sources":["../../../../src/styles/theme/token/base.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\nconst FONT_EMOJI = `\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Apple Color Emoji\",\"Twemoji Mozilla\",\"Noto Color Emoji\",\"Android Emoji\"`;\nconst FONT_EN = `\"HarmonyOS Sans\",\"Segoe UI\",\"SF Pro Display\",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif`;\nconst FONT_CN = `\"HarmonyOS Sans SC\",\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft Yahei UI\",\"Microsoft Yahei\",\"Source Han Sans CN\",sans-serif`;\nconst FONT_CODE = `Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas`;\n\nexport const baseToken: Partial<AliasToken> = {\n borderRadius: 8,\n borderRadiusLG: 12,\n borderRadiusSM: 6,\n borderRadiusXS: 4,\n controlHeight: 36,\n fontFamily: [FONT_EN, FONT_CN, FONT_EMOJI].join(','),\n fontFamilyCode: [FONT_CODE, FONT_CN, FONT_EMOJI].join(','),\n};\n"],"mappings":";AAEA,MAAM,aAAa;AACnB,MAAM,UAAU;AAChB,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,MAAaA,YAAiC;CAC5C,cAAc;CACd,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,eAAe;CACf,YAAY;EAAC;EAAS;EAAS;EAAW,CAAC,KAAK,IAAI;CACpD,gBAAgB;EAAC;EAAW;EAAS;EAAW,CAAC,KAAK,IAAI;CAC3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dark.mjs","names":["primary","gray","lime","gold","red","blue","darkBaseToken: Partial<AliasToken>"],"sources":["../../../../src/styles/theme/token/dark.ts"],"sourcesContent":["import { AliasToken } from 'antd/es/theme/interface';\n\nimport { blue, gold, gray, lime, primary, red } from '@/color/colors';\n\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nconst primaryToken = generateColorPalette({\n appearance: 'dark',\n scale: primary,\n type: 'Primary',\n});\n\nconst neutralToken = generateColorNeutralPalette({\n appearance: 'dark',\n scale: gray,\n});\n\nconst successToken = generateColorPalette({\n appearance: 'dark',\n scale: lime,\n type: 'Success',\n});\n\nconst warningToken = generateColorPalette({\n appearance: 'dark',\n scale: gold,\n type: 'Warning',\n});\n\nconst errorToken = generateColorPalette({\n appearance: 'dark',\n scale: red,\n type: 'Error',\n});\n\nconst infoToken = generateColorPalette({\n appearance: 'dark',\n scale: blue,\n type: 'Info',\n});\n\nconst darkBaseToken: Partial<AliasToken> = {\n ...primaryToken,\n ...neutralToken,\n ...successToken,\n ...warningToken,\n ...errorToken,\n ...infoToken,\n\n boxShadow: '0 20px 20px -8px rgba(0, 0, 0, 0.24)',\n boxShadowSecondary: '0 8px 16px -4px rgba(0, 0, 0, 0.2)',\n boxShadowTertiary: '0 3px 1px -1px rgba(26, 26, 26, 0.06)',\n colorLink: infoToken.colorInfoText,\n colorLinkActive: infoToken.colorInfoTextActive,\n\n colorLinkHover: infoToken.colorInfoTextHover,\n colorTextLightSolid: neutralToken.colorBgLayout,\n};\n\nexport default darkBaseToken;\n"],"mappings":";;;;;;;;;AAMA,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOA;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,4BAA4B;CAC/C,YAAY;CACZ,OAAOC;CACR,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,aAAa,qBAAqB;CACtC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,YAAY,qBAAqB;CACrC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAMC,gBAAqC;CACzC,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CAEH,WAAW;CACX,oBAAoB;CACpB,mBAAmB;CACnB,WAAW,UAAU;CACrB,iBAAiB,UAAU;CAE3B,gBAAgB,UAAU;CAC1B,qBAAqB,aAAa;CACnC;AAED,mBAAe"}
|
|
1
|
+
{"version":3,"file":"dark.mjs","names":["primary","gray","lime","gold","red","blue","darkBaseToken: Partial<AliasToken>"],"sources":["../../../../src/styles/theme/token/dark.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\nimport { blue, gold, gray, lime, primary, red } from '@/color/colors';\n\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nconst primaryToken = generateColorPalette({\n appearance: 'dark',\n scale: primary,\n type: 'Primary',\n});\n\nconst neutralToken = generateColorNeutralPalette({\n appearance: 'dark',\n scale: gray,\n});\n\nconst successToken = generateColorPalette({\n appearance: 'dark',\n scale: lime,\n type: 'Success',\n});\n\nconst warningToken = generateColorPalette({\n appearance: 'dark',\n scale: gold,\n type: 'Warning',\n});\n\nconst errorToken = generateColorPalette({\n appearance: 'dark',\n scale: red,\n type: 'Error',\n});\n\nconst infoToken = generateColorPalette({\n appearance: 'dark',\n scale: blue,\n type: 'Info',\n});\n\nconst darkBaseToken: Partial<AliasToken> = {\n ...primaryToken,\n ...neutralToken,\n ...successToken,\n ...warningToken,\n ...errorToken,\n ...infoToken,\n\n boxShadow: '0 20px 20px -8px rgba(0, 0, 0, 0.24)',\n boxShadowSecondary: '0 8px 16px -4px rgba(0, 0, 0, 0.2)',\n boxShadowTertiary: '0 3px 1px -1px rgba(26, 26, 26, 0.06)',\n colorLink: infoToken.colorInfoText,\n colorLinkActive: infoToken.colorInfoTextActive,\n\n colorLinkHover: infoToken.colorInfoTextHover,\n colorTextLightSolid: neutralToken.colorBgLayout,\n};\n\nexport default darkBaseToken;\n"],"mappings":";;;;;;;;;AAMA,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOA;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,4BAA4B;CAC/C,YAAY;CACZ,OAAOC;CACR,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,aAAa,qBAAqB;CACtC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,YAAY,qBAAqB;CACrC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAMC,gBAAqC;CACzC,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CAEH,WAAW;CACX,oBAAoB;CACpB,mBAAmB;CACnB,WAAW,UAAU;CACrB,iBAAiB,UAAU;CAE3B,gBAAgB,UAAU;CAC1B,qBAAqB,aAAa;CACnC;AAED,mBAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light.mjs","names":["primary","gray","green","gold","volcano","geekblue","lightBaseToken: Partial<AliasToken>"],"sources":["../../../../src/styles/theme/token/light.ts"],"sourcesContent":["import { AliasToken } from 'antd/es/theme/interface';\n\nimport { geekblue, gold, gray, green, primary, volcano } from '@/color/colors';\n\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nconst primaryToken = generateColorPalette({\n appearance: 'light',\n scale: primary,\n type: 'Primary',\n});\n\nconst neutralToken = generateColorNeutralPalette({\n appearance: 'light',\n scale: gray,\n});\n\nconst successToken = generateColorPalette({\n appearance: 'light',\n scale: green,\n type: 'Success',\n});\n\nconst warningToken = generateColorPalette({\n appearance: 'light',\n scale: gold,\n type: 'Warning',\n});\n\nconst errorToken = generateColorPalette({\n appearance: 'light',\n scale: volcano,\n type: 'Error',\n});\n\nconst infoToken = generateColorPalette({\n appearance: 'light',\n scale: geekblue,\n type: 'Info',\n});\n\nconst lightBaseToken: Partial<AliasToken> = {\n ...primaryToken,\n ...neutralToken,\n ...successToken,\n ...warningToken,\n ...errorToken,\n ...infoToken,\n\n boxShadow: '0 20px 20px -8px rgba(0, 0, 0, 0.24)',\n boxShadowSecondary: '0 8px 16px -4px rgba(0, 0, 0, 0.2)',\n boxShadowTertiary: '0 3px 1px -1px rgba(26, 26, 26, 0.06)',\n colorLink: infoToken.colorInfoText,\n colorLinkActive: infoToken.colorInfoTextActive,\n\n colorLinkHover: infoToken.colorInfoTextHover,\n colorTextLightSolid: neutralToken.colorBgLayout,\n};\n\nexport default lightBaseToken;\n"],"mappings":";;;;;;;;;AAMA,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOA;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,4BAA4B;CAC/C,YAAY;CACZ,OAAOC;CACR,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,aAAa,qBAAqB;CACtC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,YAAY,qBAAqB;CACrC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAMC,iBAAsC;CAC1C,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CAEH,WAAW;CACX,oBAAoB;CACpB,mBAAmB;CACnB,WAAW,UAAU;CACrB,iBAAiB,UAAU;CAE3B,gBAAgB,UAAU;CAC1B,qBAAqB,aAAa;CACnC;AAED,oBAAe"}
|
|
1
|
+
{"version":3,"file":"light.mjs","names":["primary","gray","green","gold","volcano","geekblue","lightBaseToken: Partial<AliasToken>"],"sources":["../../../../src/styles/theme/token/light.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\nimport { geekblue, gold, gray, green, primary, volcano } from '@/color/colors';\n\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nconst primaryToken = generateColorPalette({\n appearance: 'light',\n scale: primary,\n type: 'Primary',\n});\n\nconst neutralToken = generateColorNeutralPalette({\n appearance: 'light',\n scale: gray,\n});\n\nconst successToken = generateColorPalette({\n appearance: 'light',\n scale: green,\n type: 'Success',\n});\n\nconst warningToken = generateColorPalette({\n appearance: 'light',\n scale: gold,\n type: 'Warning',\n});\n\nconst errorToken = generateColorPalette({\n appearance: 'light',\n scale: volcano,\n type: 'Error',\n});\n\nconst infoToken = generateColorPalette({\n appearance: 'light',\n scale: geekblue,\n type: 'Info',\n});\n\nconst lightBaseToken: Partial<AliasToken> = {\n ...primaryToken,\n ...neutralToken,\n ...successToken,\n ...warningToken,\n ...errorToken,\n ...infoToken,\n\n boxShadow: '0 20px 20px -8px rgba(0, 0, 0, 0.24)',\n boxShadowSecondary: '0 8px 16px -4px rgba(0, 0, 0, 0.2)',\n boxShadowTertiary: '0 3px 1px -1px rgba(26, 26, 26, 0.06)',\n colorLink: infoToken.colorInfoText,\n colorLinkActive: infoToken.colorInfoTextActive,\n\n colorLinkHover: infoToken.colorInfoTextHover,\n colorTextLightSolid: neutralToken.colorBgLayout,\n};\n\nexport default lightBaseToken;\n"],"mappings":";;;;;;;;;AAMA,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOA;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,4BAA4B;CAC/C,YAAY;CACZ,OAAOC;CACR,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,aAAa,qBAAqB;CACtC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAM,YAAY,qBAAqB;CACrC,YAAY;CACZ,OAAOC;CACP,MAAM;CACP,CAAC;AAEF,MAAMC,iBAAsC;CAC1C,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CAEH,WAAW;CACX,oBAAoB;CACpB,mBAAmB;CACnB,WAAW,UAAU;CACrB,iBAAiB,UAAU;CAE3B,gBAAgB,UAAU;CAC1B,qBAAqB,aAAa;CACnC;AAED,oBAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -104,6 +104,24 @@
|
|
|
104
104
|
"test:update": "vitest -u",
|
|
105
105
|
"type-check": "tsc --noEmit"
|
|
106
106
|
},
|
|
107
|
+
"lint-staged": {
|
|
108
|
+
"*.md": [
|
|
109
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
110
|
+
],
|
|
111
|
+
"*.json": [
|
|
112
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
113
|
+
],
|
|
114
|
+
"*.{js,jsx}": [
|
|
115
|
+
"prettier --write",
|
|
116
|
+
"stylelint --fix",
|
|
117
|
+
"eslint --fix"
|
|
118
|
+
],
|
|
119
|
+
"*.{ts,tsx}": [
|
|
120
|
+
"prettier --parser=typescript --write",
|
|
121
|
+
"stylelint --fix",
|
|
122
|
+
"eslint --fix"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
107
125
|
"dependencies": {
|
|
108
126
|
"@ant-design/cssinjs": "^2.0.3",
|
|
109
127
|
"@base-ui/react": "1.0.0",
|
|
@@ -173,6 +191,61 @@
|
|
|
173
191
|
"uuid": "^13.0.0",
|
|
174
192
|
"virtua": "^0.48.5"
|
|
175
193
|
},
|
|
194
|
+
"devDependencies": {
|
|
195
|
+
"@ant-design/icons": "^6.1.0",
|
|
196
|
+
"@commitlint/cli": "^19.8.1",
|
|
197
|
+
"@lobehub/eslint-config": "2.0.0",
|
|
198
|
+
"@lobehub/fluent-emoji": "^4.1.0",
|
|
199
|
+
"@lobehub/icons": "^4.2.0",
|
|
200
|
+
"@lobehub/lint": "^2.0.0",
|
|
201
|
+
"@testing-library/react": "^16.3.2",
|
|
202
|
+
"@types/chroma-js": "^3.1.2",
|
|
203
|
+
"@types/hast": "^3.0.4",
|
|
204
|
+
"@types/katex": "^0.16.8",
|
|
205
|
+
"@types/mdx": "^2.0.13",
|
|
206
|
+
"@types/numeral": "^2.0.5",
|
|
207
|
+
"@types/pangu": "^4.0.2",
|
|
208
|
+
"@types/react": "^19.2.10",
|
|
209
|
+
"@types/react-avatar-editor": "^13.0.4",
|
|
210
|
+
"@types/react-dom": "^19.2.3",
|
|
211
|
+
"@types/unist": "^3.0.3",
|
|
212
|
+
"@types/uuid": "^11.0.0",
|
|
213
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
214
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
215
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
216
|
+
"antd": "^6.2.3",
|
|
217
|
+
"babel-plugin-antd-style": "^1.0.4",
|
|
218
|
+
"cheerio": "^1.2.0",
|
|
219
|
+
"clean-package": "^2.2.0",
|
|
220
|
+
"commitlint": "^19.8.1",
|
|
221
|
+
"concurrently": "^9.2.1",
|
|
222
|
+
"cross-env": "^10.1.0",
|
|
223
|
+
"dotenv": "^17.2.3",
|
|
224
|
+
"dpdm": "^3.14.0",
|
|
225
|
+
"dumi": "^2.4.23",
|
|
226
|
+
"dumi-theme-lobehub": "^4.0.2",
|
|
227
|
+
"eslint": "^9.39.2",
|
|
228
|
+
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
229
|
+
"figma-js": "1.16.1-0",
|
|
230
|
+
"husky": "^9.1.7",
|
|
231
|
+
"jsdom": "^26.1.0",
|
|
232
|
+
"lint-staged": "^16.2.7",
|
|
233
|
+
"mdast-util-to-markdown": "^2.1.2",
|
|
234
|
+
"prettier": "^3.8.1",
|
|
235
|
+
"react": "^19.2.4",
|
|
236
|
+
"react-dom": "^19.2.4",
|
|
237
|
+
"remark": "^15.0.1",
|
|
238
|
+
"remark-cli": "^12.0.1",
|
|
239
|
+
"semantic-release": "^21.1.2",
|
|
240
|
+
"stylelint": "^16.26.1",
|
|
241
|
+
"svgo": "^4.0.0",
|
|
242
|
+
"tsdown": "^0.18.2",
|
|
243
|
+
"tsx": "^4.21.0",
|
|
244
|
+
"typescript": "^5.9.3",
|
|
245
|
+
"unist-util-is": "^6.0.1",
|
|
246
|
+
"unist-util-visit": "^5.1.0",
|
|
247
|
+
"vitest": "^3.2.4"
|
|
248
|
+
},
|
|
176
249
|
"peerDependencies": {
|
|
177
250
|
"@lobehub/fluent-emoji": "^4.0.0",
|
|
178
251
|
"@lobehub/icons": "^4.0.0",
|
|
@@ -180,5 +253,10 @@
|
|
|
180
253
|
"motion": "^12.0.0",
|
|
181
254
|
"react": "^19.0.0",
|
|
182
255
|
"react-dom": "^19.0.0"
|
|
256
|
+
},
|
|
257
|
+
"publishConfig": {
|
|
258
|
+
"access": "public",
|
|
259
|
+
"provenance": true,
|
|
260
|
+
"registry": "https://registry.npmjs.org"
|
|
183
261
|
}
|
|
184
262
|
}
|