@lobehub/ui 4.3.2 → 4.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Accordion/Accordion.mjs +2 -2
- package/es/Accordion/Accordion.mjs.map +1 -1
- package/es/Accordion/AccordionItem.mjs +11 -2
- package/es/Accordion/AccordionItem.mjs.map +1 -1
- package/es/Accordion/style.mjs +12 -9
- package/es/Accordion/style.mjs.map +1 -1
- package/es/ActionIcon/ActionIcon.d.mts +2 -2
- package/es/ActionIcon/ActionIcon.mjs +2 -57
- package/es/ActionIcon/ActionIcon.mjs.map +1 -1
- package/es/ActionIcon/style.mjs +76 -20
- package/es/ActionIcon/style.mjs.map +1 -1
- package/es/ActionIconGroup/ActionIconGroup.mjs +2 -30
- package/es/ActionIconGroup/ActionIconGroup.mjs.map +1 -1
- package/es/ActionIconGroup/style.mjs +39 -10
- package/es/ActionIconGroup/style.mjs.map +1 -1
- package/es/Alert/Alert.d.mts +2 -2
- package/es/Alert/Alert.mjs +17 -60
- package/es/Alert/Alert.mjs.map +1 -1
- package/es/Alert/style.mjs +318 -82
- package/es/Alert/style.mjs.map +1 -1
- package/es/AutoComplete/Select.d.mts +2 -2
- package/es/AutoComplete/Select.mjs +7 -21
- package/es/AutoComplete/Select.mjs.map +1 -1
- package/es/AutoComplete/style.mjs +32 -15
- package/es/AutoComplete/style.mjs.map +1 -1
- package/es/Avatar/Avatar.mjs +12 -24
- package/es/Avatar/Avatar.mjs.map +1 -1
- package/es/Avatar/AvatarGroup/index.d.mts +2 -2
- package/es/Avatar/AvatarGroup/index.mjs +3 -3
- package/es/Avatar/AvatarGroup/index.mjs.map +1 -1
- package/es/Avatar/AvatarGroup/style.mjs +9 -8
- package/es/Avatar/AvatarGroup/style.mjs.map +1 -1
- package/es/Avatar/style.mjs +30 -10
- package/es/Avatar/style.mjs.map +1 -1
- package/es/Block/Block.mjs +3 -48
- package/es/Block/Block.mjs.map +1 -1
- package/es/Block/style.mjs +58 -12
- package/es/Block/style.mjs.map +1 -1
- package/es/Burger/Burger.d.mts +2 -2
- package/es/Burger/Burger.mjs +21 -8
- package/es/Burger/Burger.mjs.map +1 -1
- package/es/Burger/style.mjs +115 -96
- package/es/Burger/style.mjs.map +1 -1
- package/es/Button/Button.mjs +6 -21
- package/es/Button/Button.mjs.map +1 -1
- package/es/Button/style.mjs +25 -7
- package/es/Button/style.mjs.map +1 -1
- package/es/Checkbox/Checkbox.mjs +2 -2
- package/es/Checkbox/Checkbox.mjs.map +1 -1
- package/es/Checkbox/style.mjs +12 -13
- package/es/Checkbox/style.mjs.map +1 -1
- package/es/CodeEditor/CodeEditor.d.mts +2 -2
- package/es/CodeEditor/CodeEditor.mjs +5 -13
- package/es/CodeEditor/CodeEditor.mjs.map +1 -1
- package/es/CodeEditor/style.mjs +21 -12
- package/es/CodeEditor/style.mjs.map +1 -1
- package/es/Collapse/Collapse.d.mts +2 -2
- package/es/Collapse/Collapse.mjs +4 -29
- package/es/Collapse/Collapse.mjs.map +1 -1
- package/es/Collapse/style.mjs +78 -18
- package/es/Collapse/style.mjs.map +1 -1
- package/es/ColorSwatches/ColorSwatches.mjs +20 -14
- package/es/ColorSwatches/ColorSwatches.mjs.map +1 -1
- package/es/ColorSwatches/style.mjs +35 -34
- package/es/ColorSwatches/style.mjs.map +1 -1
- package/es/ConfigProvider/index.d.mts +2 -2
- package/es/CopyButton/CopyButton.d.mts +2 -2
- package/es/DatePicker/DatePicker.d.mts +2 -2
- package/es/DatePicker/DatePicker.mjs +7 -21
- package/es/DatePicker/DatePicker.mjs.map +1 -1
- package/es/DatePicker/style.mjs +24 -7
- package/es/DatePicker/style.mjs.map +1 -1
- package/es/DraggablePanel/DraggablePanel.mjs +19 -62
- package/es/DraggablePanel/DraggablePanel.mjs.map +1 -1
- package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelBody.mjs +2 -2
- package/es/DraggablePanel/components/DraggablePanelBody.mjs.map +1 -1
- package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelContainer.mjs +2 -2
- package/es/DraggablePanel/components/DraggablePanelContainer.mjs.map +1 -1
- package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelFooter.mjs +2 -2
- package/es/DraggablePanel/components/DraggablePanelFooter.mjs.map +1 -1
- package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelHeader.mjs +2 -2
- package/es/DraggablePanel/components/DraggablePanelHeader.mjs.map +1 -1
- package/es/DraggablePanel/components/style.mjs +6 -6
- package/es/DraggablePanel/components/style.mjs.map +1 -1
- package/es/DraggablePanel/style.mjs +336 -194
- package/es/DraggablePanel/style.mjs.map +1 -1
- package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
- package/es/DraggableSideNav/DraggableSideNav.mjs +11 -8
- package/es/DraggableSideNav/DraggableSideNav.mjs.map +1 -1
- package/es/DraggableSideNav/style.mjs +192 -181
- package/es/DraggableSideNav/style.mjs.map +1 -1
- package/es/Drawer/Drawer.d.mts +2 -2
- package/es/Drawer/Drawer.mjs +11 -13
- package/es/Drawer/Drawer.mjs.map +1 -1
- package/es/Dropdown/Dropdown.d.mts +2 -2
- package/es/EditableText/EditableText.d.mts +2 -2
- package/es/EditableText/EditableText.mjs +1 -1
- package/es/EmojiPicker/AvatarUploader.mjs +3 -4
- package/es/EmojiPicker/AvatarUploader.mjs.map +1 -1
- package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
- package/es/EmojiPicker/EmojiPicker.mjs +11 -4
- package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
- package/es/EmojiPicker/style.mjs +9 -9
- package/es/EmojiPicker/style.mjs.map +1 -1
- package/es/Empty/Empty.mjs +4 -4
- package/es/Empty/Empty.mjs.map +1 -1
- package/es/FileTypeIcon/FileTypeIcon.mjs +5 -6
- package/es/FileTypeIcon/FileTypeIcon.mjs.map +1 -1
- package/es/FileTypeIcon/components/FileIcon.mjs +5 -5
- package/es/FileTypeIcon/components/FileIcon.mjs.map +1 -1
- package/es/FileTypeIcon/components/FolderIcon.mjs +4 -4
- package/es/FileTypeIcon/components/FolderIcon.mjs.map +1 -1
- package/es/FileTypeIcon/style.mjs +3 -3
- package/es/FileTypeIcon/style.mjs.map +1 -1
- package/es/Flex/FlexBasic.d.mts +2 -2
- package/es/FluentEmoji/FluentEmoji.mjs +2 -2
- package/es/FluentEmoji/FluentEmoji.mjs.map +1 -1
- package/es/FluentEmoji/style.mjs +3 -3
- package/es/FluentEmoji/style.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 +10 -8
- package/es/Footer/Footer.mjs.map +1 -1
- package/es/Footer/style.mjs +169 -133
- package/es/Footer/style.mjs.map +1 -1
- package/es/Form/Form.mjs +4 -14
- package/es/Form/Form.mjs.map +1 -1
- package/es/Form/components/FormDivider.mjs +3 -4
- package/es/Form/components/FormDivider.mjs.map +1 -1
- package/es/Form/components/FormFlatGroup.mjs +4 -14
- package/es/Form/components/FormFlatGroup.mjs.map +1 -1
- package/es/Form/components/FormGroup.d.mts +2 -2
- package/es/Form/components/FormGroup.mjs +5 -13
- package/es/Form/components/FormGroup.mjs.map +1 -1
- package/es/Form/components/FormItem.d.mts +2 -2
- package/es/Form/components/FormItem.mjs +12 -27
- package/es/Form/components/FormItem.mjs.map +1 -1
- package/es/Form/components/FormSubmitFooter.d.mts +2 -2
- package/es/Form/components/FormSubmitFooter.mjs +5 -4
- package/es/Form/components/FormSubmitFooter.mjs.map +1 -1
- package/es/Form/components/FormTitle.mjs +5 -5
- package/es/Form/components/FormTitle.mjs.map +1 -1
- package/es/Form/style.mjs +120 -72
- package/es/Form/style.mjs.map +1 -1
- package/es/FormModal/FormModal.d.mts +2 -2
- package/es/FormModal/FormModal.mjs +7 -8
- package/es/FormModal/FormModal.mjs.map +1 -1
- package/es/FormModal/style.mjs +7 -7
- package/es/FormModal/style.mjs.map +1 -1
- package/es/Grid/Grid.mjs +17 -4
- package/es/Grid/Grid.mjs.map +1 -1
- package/es/Grid/style.mjs +15 -16
- package/es/Grid/style.mjs.map +1 -1
- package/es/GroupAvatar/GroupAvatar.mjs +2 -14
- package/es/GroupAvatar/GroupAvatar.mjs.map +1 -1
- package/es/GroupAvatar/style.mjs +27 -16
- package/es/GroupAvatar/style.mjs.map +1 -1
- package/es/GuideCard/GuideCard.d.mts +2 -2
- package/es/GuideCard/GuideCard.mjs +5 -21
- package/es/GuideCard/GuideCard.mjs.map +1 -1
- package/es/GuideCard/style.mjs +57 -15
- package/es/GuideCard/style.mjs.map +1 -1
- package/es/Header/Header.d.mts +2 -2
- package/es/Header/Header.mjs +6 -7
- package/es/Header/Header.mjs.map +1 -1
- package/es/Header/style.mjs +8 -10
- package/es/Header/style.mjs.map +1 -1
- package/es/Highlighter/FullFeatured.mjs +2 -40
- package/es/Highlighter/FullFeatured.mjs.map +1 -1
- package/es/Highlighter/Highlighter.d.mts +2 -2
- package/es/Highlighter/Highlighter.mjs +2 -25
- package/es/Highlighter/Highlighter.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs +1 -1
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs +11 -31
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
- package/es/Highlighter/SyntaxHighlighter/index.mjs +3 -31
- package/es/Highlighter/SyntaxHighlighter/index.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/style.mjs +43 -16
- package/es/Highlighter/SyntaxHighlighter/style.mjs.map +1 -1
- package/es/Highlighter/style.mjs +64 -25
- package/es/Highlighter/style.mjs.map +1 -1
- package/es/Highlighter/theme/lobe-theme.mjs +370 -0
- package/es/Highlighter/theme/lobe-theme.mjs.map +1 -0
- package/es/Hotkey/Hotkey.d.mts +2 -2
- package/es/Hotkey/Hotkey.mjs +5 -20
- package/es/Hotkey/Hotkey.mjs.map +1 -1
- package/es/Hotkey/style.mjs +53 -17
- package/es/Hotkey/style.mjs.map +1 -1
- package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
- package/es/HotkeyInput/HotkeyInput.mjs +5 -36
- package/es/HotkeyInput/HotkeyInput.mjs.map +1 -1
- package/es/HotkeyInput/style.mjs +46 -14
- package/es/HotkeyInput/style.mjs.map +1 -1
- package/es/Icon/Icon.d.mts +2 -2
- package/es/Icon/Icon.mjs +2 -10
- package/es/Icon/Icon.mjs.map +1 -1
- package/es/Icon/components/IconProvider.d.mts +3 -3
- package/es/Icon/style.mjs +15 -6
- package/es/Icon/style.mjs.map +1 -1
- package/es/Image/Image.mjs +8 -15
- package/es/Image/Image.mjs.map +1 -1
- package/es/Image/PreviewGroup.d.mts +2 -2
- package/es/Image/components/Toolbar.mjs +1 -2
- package/es/Image/components/Toolbar.mjs.map +1 -1
- package/es/Image/components/usePreview.mjs +2 -2
- package/es/Image/components/usePreview.mjs.map +1 -1
- package/es/Image/components/usePreviewGroup.mjs +4 -4
- package/es/Image/components/usePreviewGroup.mjs.map +1 -1
- package/es/Image/style.mjs +79 -54
- package/es/Image/style.mjs.map +1 -1
- package/es/ImageSelect/ImageSelect.mjs +2 -2
- package/es/ImageSelect/ImageSelect.mjs.map +1 -1
- package/es/ImageSelect/styles.mjs +11 -10
- package/es/ImageSelect/styles.mjs.map +1 -1
- package/es/Input/Input.d.mts +2 -2
- package/es/Input/Input.mjs +7 -21
- package/es/Input/Input.mjs.map +1 -1
- package/es/Input/InputNumber.d.mts +2 -2
- package/es/Input/InputNumber.mjs +7 -21
- package/es/Input/InputNumber.mjs.map +1 -1
- package/es/Input/InputOPT.d.mts +2 -2
- package/es/Input/InputOPT.mjs +7 -22
- package/es/Input/InputOPT.mjs.map +1 -1
- package/es/Input/InputPassword.d.mts +2 -2
- package/es/Input/InputPassword.mjs +6 -21
- package/es/Input/InputPassword.mjs.map +1 -1
- package/es/Input/TextArea.d.mts +2 -2
- package/es/Input/TextArea.mjs +6 -21
- package/es/Input/TextArea.mjs.map +1 -1
- package/es/Input/style.mjs +57 -25
- package/es/Input/style.mjs.map +1 -1
- package/es/Layout/Layout.mjs +36 -33
- package/es/Layout/Layout.mjs.map +1 -1
- package/es/Layout/components/LayoutFooter.d.mts +2 -2
- package/es/Layout/components/LayoutFooter.mjs +2 -2
- package/es/Layout/components/LayoutFooter.mjs.map +1 -1
- package/es/Layout/components/LayoutHeader.d.mts +2 -2
- package/es/Layout/components/LayoutHeader.mjs +2 -2
- package/es/Layout/components/LayoutHeader.mjs.map +1 -1
- package/es/Layout/components/LayoutMain.d.mts +2 -2
- package/es/Layout/components/LayoutMain.mjs +2 -2
- package/es/Layout/components/LayoutMain.mjs.map +1 -1
- package/es/Layout/components/LayoutSidebar.d.mts +2 -2
- package/es/Layout/components/LayoutSidebar.mjs +3 -3
- package/es/Layout/components/LayoutSidebar.mjs.map +1 -1
- package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
- package/es/Layout/components/LayoutSidebarInner.mjs +2 -2
- package/es/Layout/components/LayoutSidebarInner.mjs.map +1 -1
- package/es/Layout/components/LayoutToc.d.mts +2 -2
- package/es/Layout/components/LayoutToc.mjs +2 -2
- package/es/Layout/components/LayoutToc.mjs.map +1 -1
- package/es/Layout/style.mjs +6 -5
- package/es/Layout/style.mjs.map +1 -1
- package/es/List/ListItem/index.d.mts +2 -2
- package/es/List/ListItem/index.mjs +2 -2
- package/es/List/ListItem/index.mjs.map +1 -1
- package/es/List/ListItem/style.mjs +12 -11
- package/es/List/ListItem/style.mjs.map +1 -1
- package/es/Markdown/Markdown.d.mts +2 -2
- package/es/Markdown/Markdown.mjs +3 -25
- package/es/Markdown/Markdown.mjs.map +1 -1
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs +1 -2
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs.map +1 -1
- package/es/Markdown/SyntaxMarkdown/style.mjs +3 -3
- package/es/Markdown/SyntaxMarkdown/style.mjs.map +1 -1
- package/es/Markdown/Typography.d.mts +2 -2
- package/es/Markdown/Typography.mjs +2 -2
- package/es/Markdown/Typography.mjs.map +1 -1
- package/es/Markdown/components/CodeBlock.mjs +1 -0
- package/es/Markdown/components/CodeBlock.mjs.map +1 -1
- package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs +1 -2
- 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/style.mjs +3 -3
- package/es/Markdown/components/SearchResultCards/style.mjs.map +1 -1
- package/es/Markdown/markdown.style.mjs +23 -23
- package/es/Markdown/markdown.style.mjs.map +1 -1
- package/es/Markdown/style.mjs +48 -26
- package/es/Markdown/style.mjs.map +1 -1
- package/es/MaskShadow/MaskShadow.d.mts +2 -2
- package/es/MaskShadow/MaskShadow.mjs +8 -12
- package/es/MaskShadow/MaskShadow.mjs.map +1 -1
- package/es/MaskShadow/style.mjs +33 -8
- package/es/MaskShadow/style.mjs.map +1 -1
- package/es/Menu/Menu.d.mts +2 -2
- package/es/Menu/Menu.mjs +3 -25
- package/es/Menu/Menu.mjs.map +1 -1
- package/es/Menu/style.mjs +40 -15
- package/es/Menu/style.mjs.map +1 -1
- package/es/Mermaid/FullFeatured.mjs +2 -35
- package/es/Mermaid/FullFeatured.mjs.map +1 -1
- package/es/Mermaid/Mermaid.d.mts +2 -2
- package/es/Mermaid/Mermaid.mjs +5 -28
- package/es/Mermaid/Mermaid.mjs.map +1 -1
- package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs +82 -0
- package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs.map +1 -0
- package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs +94 -0
- package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs.map +1 -0
- package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
- package/es/Mermaid/SyntaxMermaid/index.mjs +36 -58
- package/es/Mermaid/SyntaxMermaid/index.mjs.map +1 -1
- package/es/Mermaid/SyntaxMermaid/style.mjs +80 -0
- package/es/Mermaid/SyntaxMermaid/style.mjs.map +1 -0
- package/es/Mermaid/type.d.mts +3 -2
- package/es/Modal/Modal.d.mts +2 -2
- package/es/Modal/Modal.mjs +8 -9
- package/es/Modal/Modal.mjs.map +1 -1
- package/es/Modal/style.mjs +13 -11
- package/es/Modal/style.mjs.map +1 -1
- package/es/MotionProvider/index.d.mts +2 -2
- package/es/ScrollShadow/ScrollShadow.mjs +20 -43
- package/es/ScrollShadow/ScrollShadow.mjs.map +1 -1
- package/es/ScrollShadow/style.mjs +54 -12
- package/es/ScrollShadow/style.mjs.map +1 -1
- package/es/SearchBar/SearchBar.d.mts +2 -2
- package/es/SearchBar/SearchBar.mjs +2 -2
- package/es/SearchBar/SearchBar.mjs.map +1 -1
- package/es/SearchBar/style.mjs +7 -6
- package/es/SearchBar/style.mjs.map +1 -1
- package/es/Segmented/Segmented.d.mts +2 -2
- package/es/Segmented/Segmented.mjs +4 -26
- package/es/Segmented/Segmented.mjs.map +1 -1
- package/es/Segmented/style.mjs +33 -9
- package/es/Segmented/style.mjs.map +1 -1
- package/es/Select/Select.d.mts +2 -2
- package/es/Select/Select.mjs +7 -21
- package/es/Select/Select.mjs.map +1 -1
- package/es/Select/style.mjs +36 -19
- package/es/Select/style.mjs.map +1 -1
- package/es/SideNav/SideNav.d.mts +2 -2
- package/es/SideNav/SideNav.mjs +2 -2
- package/es/SideNav/SideNav.mjs.map +1 -1
- package/es/SideNav/style.mjs +5 -5
- package/es/SideNav/style.mjs.map +1 -1
- package/es/Skeleton/Skeleton.mjs +2 -2
- package/es/Skeleton/Skeleton.mjs.map +1 -1
- package/es/Skeleton/SkeletonAvatar.mjs +3 -3
- package/es/Skeleton/SkeletonAvatar.mjs.map +1 -1
- package/es/Skeleton/SkeletonBlock.mjs +2 -2
- package/es/Skeleton/SkeletonBlock.mjs.map +1 -1
- package/es/Skeleton/SkeletonButton.mjs +5 -6
- package/es/Skeleton/SkeletonButton.mjs.map +1 -1
- package/es/Skeleton/SkeletonTags.mjs +5 -5
- package/es/Skeleton/SkeletonTags.mjs.map +1 -1
- package/es/Skeleton/SkeletonTitle.mjs +2 -2
- package/es/Skeleton/SkeletonTitle.mjs.map +1 -1
- package/es/Skeleton/style.mjs +7 -8
- package/es/Skeleton/style.mjs.map +1 -1
- package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
- package/es/Snippet/Snippet.mjs +2 -21
- package/es/Snippet/Snippet.mjs.map +1 -1
- package/es/Snippet/style.mjs +27 -9
- package/es/Snippet/style.mjs.map +1 -1
- package/es/SortableList/SortableList.mjs +1 -2
- package/es/SortableList/SortableList.mjs.map +1 -1
- package/es/SortableList/components/DragHandle.d.mts +2 -2
- package/es/SortableList/components/SortableItem.d.mts +2 -2
- package/es/SortableList/components/SortableItem.mjs +3 -22
- package/es/SortableList/components/SortableItem.mjs.map +1 -1
- package/es/SortableList/style.mjs +24 -7
- package/es/SortableList/style.mjs.map +1 -1
- package/es/Tabs/Tabs.mjs +3 -26
- package/es/Tabs/Tabs.mjs.map +1 -1
- package/es/Tabs/style.mjs +34 -10
- package/es/Tabs/style.mjs.map +1 -1
- package/es/Tag/Tag.mjs +3 -21
- package/es/Tag/Tag.mjs.map +1 -1
- package/es/Tag/styles.mjs +36 -10
- package/es/Tag/styles.mjs.map +1 -1
- package/es/Text/Text.mjs +2 -35
- package/es/Text/Text.mjs.map +1 -1
- package/es/Text/styles.mjs +49 -17
- package/es/Text/styles.mjs.map +1 -1
- package/es/ThemeProvider/ConfigProvider.mjs +11 -12
- package/es/ThemeProvider/ConfigProvider.mjs.map +1 -1
- package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
- package/es/ThemeProvider/ThemeProvider.mjs +1 -1
- package/es/Toc/Toc.d.mts +2 -2
- package/es/Toc/Toc.mjs +8 -6
- package/es/Toc/Toc.mjs.map +1 -1
- package/es/Toc/TocMobile.mjs +1 -5
- package/es/Toc/TocMobile.mjs.map +1 -1
- package/es/Toc/style.mjs +52 -52
- package/es/Toc/style.mjs.map +1 -1
- package/es/Tooltip/TooltipFloating.mjs +2 -2
- package/es/Tooltip/TooltipFloating.mjs.map +1 -1
- package/es/Tooltip/TooltipPortal.mjs +3 -1
- package/es/Tooltip/TooltipPortal.mjs.map +1 -1
- package/es/Tooltip/style.mjs +7 -7
- package/es/Tooltip/style.mjs.map +1 -1
- package/es/Video/index.d.mts +2 -2
- package/es/Video/index.mjs +13 -13
- package/es/Video/index.mjs.map +1 -1
- package/es/Video/style.mjs +49 -42
- package/es/Video/style.mjs.map +1 -1
- package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
- package/es/awesome/AuroraBackground/AuroraBackground.mjs +4 -3
- package/es/awesome/AuroraBackground/AuroraBackground.mjs.map +1 -1
- package/es/awesome/AuroraBackground/style.mjs +129 -90
- package/es/awesome/AuroraBackground/style.mjs.map +1 -1
- package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs +2 -2
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs.map +1 -1
- package/es/awesome/BottomGradientButton/style.mjs +6 -5
- package/es/awesome/BottomGradientButton/style.mjs.map +1 -1
- package/es/awesome/Features/FeatureItem.mjs +10 -7
- package/es/awesome/Features/FeatureItem.mjs.map +1 -1
- package/es/awesome/Features/Features.d.mts +2 -2
- package/es/awesome/Features/style.mjs +141 -90
- package/es/awesome/Features/style.mjs.map +1 -1
- package/es/awesome/Giscus/Giscus.d.mts +2 -2
- package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
- package/es/awesome/GradientButton/GradientButton.mjs +26 -5
- package/es/awesome/GradientButton/GradientButton.mjs.map +1 -1
- package/es/awesome/GradientButton/style.mjs +93 -63
- package/es/awesome/GradientButton/style.mjs.map +1 -1
- package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
- package/es/awesome/GridBackground/GridBackground.mjs +30 -9
- package/es/awesome/GridBackground/GridBackground.mjs.map +1 -1
- package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
- package/es/awesome/GridBackground/style.mjs +70 -62
- package/es/awesome/GridBackground/style.mjs.map +1 -1
- package/es/awesome/Hero/Hero.d.mts +2 -2
- package/es/awesome/Hero/Hero.mjs +1 -2
- package/es/awesome/Hero/Hero.mjs.map +1 -1
- package/es/awesome/Hero/style.mjs +11 -10
- package/es/awesome/Hero/style.mjs.map +1 -1
- package/es/awesome/Spline/ParentSize.mjs +1 -1
- package/es/awesome/Spline/Spine.d.mts +2 -2
- package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
- package/es/awesome/Spotlight/Spotlight.mjs +15 -7
- package/es/awesome/Spotlight/Spotlight.mjs.map +1 -1
- package/es/awesome/Spotlight/style.mjs +76 -23
- package/es/awesome/Spotlight/style.mjs.map +1 -1
- package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
- package/es/awesome/SpotlightCard/SpotlightCard.mjs +11 -7
- package/es/awesome/SpotlightCard/SpotlightCard.mjs.map +1 -1
- package/es/awesome/SpotlightCard/SpotlightCardItem.mjs +10 -7
- package/es/awesome/SpotlightCard/SpotlightCardItem.mjs.map +1 -1
- package/es/awesome/SpotlightCard/style.mjs +121 -69
- package/es/awesome/SpotlightCard/style.mjs.map +1 -1
- package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
- package/es/awesome/TypewriterEffect/TypewriterEffect.mjs +6 -5
- package/es/awesome/TypewriterEffect/TypewriterEffect.mjs.map +1 -1
- package/es/awesome/TypewriterEffect/style.mjs +8 -8
- package/es/awesome/TypewriterEffect/style.mjs.map +1 -1
- package/es/brand/BrandLoading/{style-Cz42xGgB.css → style-DX648z7a.css} +1 -1
- package/es/brand/BrandLoading/{style-Cz42xGgB.css.map → style-DX648z7a.css.map} +1 -1
- package/es/brand/LobeChat/index.d.mts +2 -2
- package/es/brand/LobeChat/index.mjs +5 -7
- package/es/brand/LobeChat/index.mjs.map +1 -1
- package/es/brand/LobeHub/index.d.mts +2 -2
- package/es/brand/LobeHub/index.mjs +5 -7
- package/es/brand/LobeHub/index.mjs.map +1 -1
- package/es/brand/LobeHub/style.mjs +3 -3
- package/es/brand/LobeHub/style.mjs.map +1 -1
- package/es/brand/LogoFlat/index.d.mts +3 -6
- package/es/brand/LogoFlat/index.mjs +2 -76
- package/es/brand/LogoFlat/index.mjs.map +1 -1
- package/es/brand/LogoMono/index.d.mts +2 -10
- package/es/brand/LogoMono/index.mjs +2 -84
- package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
- package/es/brand/LogoThree/index.d.mts +2 -2
- package/es/brand/index.d.mts +3 -3
- package/es/brand/index.mjs +2 -2
- package/es/chat/BackBottom/BackBottom.d.mts +2 -2
- package/es/chat/BackBottom/BackBottom.mjs +3 -3
- package/es/chat/BackBottom/BackBottom.mjs.map +1 -1
- package/es/chat/BackBottom/style.mjs +27 -8
- package/es/chat/BackBottom/style.mjs.map +1 -1
- package/es/chat/ChatHeader/ChatHeader.mjs +2 -2
- package/es/chat/ChatHeader/ChatHeader.mjs.map +1 -1
- package/es/chat/ChatHeader/ChatHeaderTitle.mjs +8 -9
- package/es/chat/ChatHeader/ChatHeaderTitle.mjs.map +1 -1
- package/es/chat/ChatHeader/style.mjs +7 -7
- package/es/chat/ChatHeader/style.mjs.map +1 -1
- package/es/chat/ChatInputArea/ChatInputArea.mjs +1 -2
- package/es/chat/ChatInputArea/ChatInputArea.mjs.map +1 -1
- package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs +4 -5
- 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/ChatSendButton.mjs +2 -3
- package/es/chat/ChatInputArea/components/ChatSendButton.mjs.map +1 -1
- package/es/chat/ChatInputArea/style.mjs +6 -5
- package/es/chat/ChatInputArea/style.mjs.map +1 -1
- package/es/chat/ChatItem/ChatItem.d.mts +2 -2
- package/es/chat/ChatItem/ChatItem.mjs +19 -16
- package/es/chat/ChatItem/ChatItem.mjs.map +1 -1
- package/es/chat/ChatItem/components/Actions.mjs +8 -8
- package/es/chat/ChatItem/components/Actions.mjs.map +1 -1
- package/es/chat/ChatItem/components/Avatar.mjs +7 -3
- package/es/chat/ChatItem/components/Avatar.mjs.map +1 -1
- package/es/chat/ChatItem/components/ErrorContent.mjs +2 -3
- package/es/chat/ChatItem/components/ErrorContent.mjs.map +1 -1
- package/es/chat/ChatItem/components/Loading.mjs +3 -4
- package/es/chat/ChatItem/components/Loading.mjs.map +1 -1
- package/es/chat/ChatItem/components/MessageContent.mjs +11 -10
- package/es/chat/ChatItem/components/MessageContent.mjs.map +1 -1
- package/es/chat/ChatItem/components/Title.mjs +3 -8
- package/es/chat/ChatItem/components/Title.mjs.map +1 -1
- package/es/chat/ChatItem/style.mjs +294 -142
- package/es/chat/ChatItem/style.mjs.map +1 -1
- package/es/chat/ChatList/ChatList.d.mts +2 -2
- package/es/chat/ChatList/ChatList.mjs +2 -2
- package/es/chat/ChatList/ChatList.mjs.map +1 -1
- package/es/chat/ChatList/style.mjs +3 -3
- package/es/chat/ChatList/style.mjs.map +1 -1
- package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
- package/es/chat/EditableMessage/EditableMessage.mjs +1 -1
- package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
- package/es/chat/LoadingDots/LoadingDots.mjs +17 -10
- package/es/chat/LoadingDots/LoadingDots.mjs.map +1 -1
- package/es/chat/LoadingDots/style.mjs +117 -116
- package/es/chat/LoadingDots/style.mjs.map +1 -1
- package/es/chat/LoadingDots/type.d.mts +6 -0
- package/es/chat/MessageInput/MessageInput.d.mts +2 -2
- package/es/chat/MessageInput/MessageInput.mjs +4 -5
- package/es/chat/MessageInput/MessageInput.mjs.map +1 -1
- package/es/chat/MessageInput/style.mjs +4 -4
- package/es/chat/MessageInput/style.mjs.map +1 -1
- package/es/chat/MessageModal/MessageModal.d.mts +2 -2
- package/es/chat/MessageModal/MessageModal.mjs +4 -5
- package/es/chat/MessageModal/MessageModal.mjs.map +1 -1
- package/es/chat/TokenTag/TokenTag.mjs +5 -6
- package/es/chat/TokenTag/TokenTag.mjs.map +1 -1
- package/es/color/ColorScales/ScaleRow.mjs +1 -2
- package/es/color/ColorScales/ScaleRow.mjs.map +1 -1
- package/es/color/ColorScales/index.d.mts +2 -2
- package/es/color/ColorScales/index.mjs +1 -2
- package/es/color/ColorScales/index.mjs.map +1 -1
- package/es/color/ColorScales/style.mjs +4 -4
- package/es/color/ColorScales/style.mjs.map +1 -1
- package/es/hooks/useHighlight.mjs +84 -227
- package/es/hooks/useHighlight.mjs.map +1 -1
- package/es/hooks/useMermaid.mjs +104 -57
- package/es/hooks/useMermaid.mjs.map +1 -1
- package/es/hooks/useStreamHighlight.mjs +221 -0
- package/es/hooks/useStreamHighlight.mjs.map +1 -0
- package/es/hooks/useStreamMermaid.mjs +87 -0
- package/es/hooks/useStreamMermaid.mjs.map +1 -0
- package/es/i18n/context.d.mts +2 -2
- package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
- package/es/icons/lucideExtra/CreateBotIcon.d.mts +2 -2
- 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 +3 -3
- 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 +3 -3
- package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
- package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
- package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
- package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
- package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +3 -3
- package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
- package/es/index.d.mts +2 -1
- package/es/index.mjs +9 -8
- package/es/mdx/Callout/index.mjs +8 -7
- package/es/mdx/Callout/index.mjs.map +1 -1
- package/es/mdx/Callout/style.mjs +3 -4
- package/es/mdx/Callout/style.mjs.map +1 -1
- package/es/mdx/Cards/Card.mjs +14 -16
- package/es/mdx/Cards/Card.mjs.map +1 -1
- package/es/mdx/Cards/index.mjs +2 -2
- package/es/mdx/Cards/index.mjs.map +1 -1
- package/es/mdx/Cards/style.mjs +3 -3
- package/es/mdx/Cards/style.mjs.map +1 -1
- package/es/mdx/FileTree/Folder.mjs +1 -16
- package/es/mdx/FileTree/Folder.mjs.map +1 -1
- package/es/mdx/FileTree/index.mjs +2 -2
- package/es/mdx/FileTree/index.mjs.map +1 -1
- package/es/mdx/FileTree/style.mjs +19 -7
- package/es/mdx/FileTree/style.mjs.map +1 -1
- package/es/mdx/Mdx/index.d.mts +2 -2
- package/es/mdx/Mdx/index.mjs +2 -2
- package/es/mdx/Mdx/index.mjs.map +1 -1
- package/es/mdx/Steps/index.mjs +2 -2
- package/es/mdx/Steps/index.mjs.map +1 -1
- package/es/mdx/Steps/style.mjs +8 -8
- package/es/mdx/Steps/style.mjs.map +1 -1
- package/es/mdx/Tabs/Tab.mjs +3 -12
- package/es/mdx/Tabs/Tab.mjs.map +1 -1
- package/es/mdx/Tabs/index.mjs +2 -2
- package/es/mdx/Tabs/index.mjs.map +1 -1
- package/es/mdx/Tabs/style.mjs +12 -14
- package/es/mdx/Tabs/style.mjs.map +1 -1
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs +1 -22
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs.map +1 -1
- package/es/mdx/mdxComponents/Citation/index.mjs +3 -17
- package/es/mdx/mdxComponents/Citation/index.mjs.map +1 -1
- package/es/mdx/mdxComponents/Citation/style.mjs +39 -0
- package/es/mdx/mdxComponents/Citation/style.mjs.map +1 -0
- package/es/mdx/mdxComponents/Pre.mjs +7 -9
- package/es/mdx/mdxComponents/Pre.mjs.map +1 -1
- package/es/mobile/ChatHeader/ChatHeader.mjs +2 -2
- package/es/mobile/ChatHeader/ChatHeader.mjs.map +1 -1
- package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs +7 -8
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs.map +1 -1
- package/es/mobile/ChatHeader/style.mjs +6 -6
- package/es/mobile/ChatHeader/style.mjs.map +1 -1
- package/es/mobile/ChatInputArea/ChatInputArea.mjs +2 -2
- package/es/mobile/ChatInputArea/ChatInputArea.mjs.map +1 -1
- package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
- package/es/mobile/ChatInputArea/style.mjs +5 -5
- package/es/mobile/ChatInputArea/style.mjs.map +1 -1
- package/es/mobile/SafeArea/SafeArea.mjs +2 -2
- package/es/mobile/SafeArea/SafeArea.mjs.map +1 -1
- package/es/mobile/SafeArea/style.mjs +3 -3
- package/es/mobile/SafeArea/style.mjs.map +1 -1
- package/es/mobile/TabBar/TabBar.mjs +2 -2
- package/es/mobile/TabBar/TabBar.mjs.map +1 -1
- package/es/mobile/TabBar/style.mjs +7 -7
- package/es/mobile/TabBar/style.mjs.map +1 -1
- package/es/storybook/StoryBook/index.d.mts +2 -2
- package/es/storybook/StoryBook/index.mjs +4 -5
- package/es/storybook/StoryBook/index.mjs.map +1 -1
- package/es/storybook/StoryBook/style.mjs +27 -24
- package/es/storybook/StoryBook/style.mjs.map +1 -1
- package/es/styles/index.d.mts +2 -1
- package/es/styles/index.mjs +2 -1
- package/es/styles/theme/customStylishStatic.d.mts +7 -0
- package/es/styles/theme/customStylishStatic.mjs +161 -0
- package/es/styles/theme/customStylishStatic.mjs.map +1 -0
- package/package.json +3 -2
- package/es/brand/LogoMono/index.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.mjs","names":["AntInput"],"sources":["../../src/Input/TextArea.tsx"],"sourcesContent":["'use client';\n\nimport { Input as AntInput } from 'antd';\nimport {
|
|
1
|
+
{"version":3,"file":"TextArea.mjs","names":["AntInput"],"sources":["../../src/Input/TextArea.tsx"],"sourcesContent":["'use client';\n\nimport { Input as AntInput } from 'antd';\nimport { cx, useThemeMode } from 'antd-style';\nimport { memo } from 'react';\n\nimport { variants } from './style';\nimport type { TextAreaProps } from './type';\n\nconst TextArea = memo<TextAreaProps>(\n ({ ref, variant, shadow, className, resize = false, style, ...rest }) => {\n const { isDarkMode } = useThemeMode();\n\n return (\n <AntInput.TextArea\n className={cx(\n variants({ shadow, variant: variant || (isDarkMode ? 'filled' : 'outlined') }),\n className,\n )}\n ref={ref}\n style={{\n resize: resize ? undefined : 'none',\n ...style,\n }}\n variant={variant || (isDarkMode ? 'filled' : 'outlined')}\n {...rest}\n />\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n\nexport default TextArea;\n"],"mappings":";;;;;;;;;AASA,MAAM,WAAW,MACd,EAAE,KAAK,SAAS,QAAQ,WAAW,SAAS,OAAO,OAAO,GAAG,WAAW;CACvE,MAAM,EAAE,eAAe,cAAc;AAErC,QACE,oBAACA,MAAS;EACR,WAAW,GACT,SAAS;GAAE;GAAQ,SAAS,YAAY,aAAa,WAAW;GAAa,CAAC,EAC9E,UACD;EACI;EACL,OAAO;GACL,QAAQ,SAAS,SAAY;GAC7B,GAAG;GACJ;EACD,SAAS,YAAY,aAAa,WAAW;EAC7C,GAAI;GACJ;EAGP;AAED,SAAS,cAAc;AAEvB,uBAAe"}
|
package/es/Input/style.mjs
CHANGED
|
@@ -1,64 +1,96 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { staticStylish } from "../styles/theme/customStylishStatic.mjs";
|
|
2
|
+
import { createStaticStyles, cx } from "antd-style";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
2
4
|
|
|
3
5
|
//#region src/Input/style.ts
|
|
4
|
-
const
|
|
6
|
+
const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => {
|
|
5
7
|
return {
|
|
6
8
|
borderless: css$1`
|
|
7
|
-
|
|
8
|
-
${
|
|
9
|
+
&[class*='ant-input'] {
|
|
10
|
+
${staticStylish.variantBorderless}
|
|
9
11
|
&:hover {
|
|
10
|
-
${
|
|
12
|
+
${staticStylish.variantBorderlessWithoutHover}
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
`,
|
|
14
16
|
borderlessOPT: css$1`
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
${
|
|
17
|
+
&[class*='ant-otp'] {
|
|
18
|
+
[class*='ant-otp-input'] {
|
|
19
|
+
${staticStylish.variantBorderless};
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
`,
|
|
21
|
-
filled: cx
|
|
23
|
+
filled: cx(staticStylish.variantFilled, css$1`
|
|
22
24
|
&:focus-within {
|
|
23
|
-
${
|
|
25
|
+
${staticStylish.variantFilledWithoutHover}
|
|
24
26
|
}
|
|
25
27
|
`),
|
|
26
28
|
filledOPT: css$1`
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
${
|
|
29
|
+
&[class*='ant-otp'] {
|
|
30
|
+
[class*='ant-otp-input'] {
|
|
31
|
+
${staticStylish.variantFilled};
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
`,
|
|
33
|
-
outlined:
|
|
35
|
+
outlined: staticStylish.variantOutlined,
|
|
34
36
|
outlinedOPT: css$1`
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
${
|
|
37
|
+
&[class*='ant-otp'] {
|
|
38
|
+
[class*='ant-otp-input'] {
|
|
39
|
+
${staticStylish.variantOutlined};
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
`,
|
|
41
43
|
root: css$1``,
|
|
42
44
|
rootOPT: css$1`
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
&[class*='ant-otp'] {
|
|
46
|
+
[class*='ant-otp-input'] {
|
|
45
47
|
&:focus-within {
|
|
46
|
-
border-color: ${
|
|
48
|
+
border-color: ${cssVar$1.colorBorder};
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
`,
|
|
51
|
-
shadow:
|
|
53
|
+
shadow: staticStylish.shadow,
|
|
52
54
|
shadowOPT: css$1`
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
${
|
|
55
|
+
&[class*='ant-otp'] {
|
|
56
|
+
[class*='ant-otp-input'] {
|
|
57
|
+
${staticStylish.shadow};
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
`
|
|
59
61
|
};
|
|
60
62
|
});
|
|
63
|
+
const variants = cva(styles.root, {
|
|
64
|
+
defaultVariants: { shadow: false },
|
|
65
|
+
variants: {
|
|
66
|
+
variant: {
|
|
67
|
+
filled: styles.filled,
|
|
68
|
+
outlined: styles.outlined,
|
|
69
|
+
borderless: styles.borderless,
|
|
70
|
+
underlined: null
|
|
71
|
+
},
|
|
72
|
+
shadow: {
|
|
73
|
+
false: null,
|
|
74
|
+
true: styles.shadow
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
const variantsOPT = cva(styles.rootOPT, {
|
|
79
|
+
defaultVariants: { shadow: false },
|
|
80
|
+
variants: {
|
|
81
|
+
variant: {
|
|
82
|
+
filled: styles.filledOPT,
|
|
83
|
+
outlined: styles.outlinedOPT,
|
|
84
|
+
borderless: styles.borderlessOPT,
|
|
85
|
+
underlined: null
|
|
86
|
+
},
|
|
87
|
+
shadow: {
|
|
88
|
+
false: null,
|
|
89
|
+
true: styles.shadowOPT
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
61
93
|
|
|
62
94
|
//#endregion
|
|
63
|
-
export {
|
|
95
|
+
export { variants, variantsOPT };
|
|
64
96
|
//# sourceMappingURL=style.mjs.map
|
package/es/Input/style.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":["
|
|
1
|
+
{"version":3,"file":"style.mjs","names":["lobeStaticStylish","cssVar"],"sources":["../../src/Input/style.ts"],"sourcesContent":["import { createStaticStyles, cx } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { lobeStaticStylish } from '@/styles';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n borderless: css`\n &[class*='ant-input'] {\n ${lobeStaticStylish.variantBorderless}\n &:hover {\n ${lobeStaticStylish.variantBorderlessWithoutHover}\n }\n }\n `,\n borderlessOPT: css`\n &[class*='ant-otp'] {\n [class*='ant-otp-input'] {\n ${lobeStaticStylish.variantBorderless};\n }\n }\n `,\n filled: cx(\n lobeStaticStylish.variantFilled,\n css`\n &:focus-within {\n ${lobeStaticStylish.variantFilledWithoutHover}\n }\n `,\n ),\n\n filledOPT: css`\n &[class*='ant-otp'] {\n [class*='ant-otp-input'] {\n ${lobeStaticStylish.variantFilled};\n }\n }\n `,\n outlined: lobeStaticStylish.variantOutlined,\n outlinedOPT: css`\n &[class*='ant-otp'] {\n [class*='ant-otp-input'] {\n ${lobeStaticStylish.variantOutlined};\n }\n }\n `,\n root: css``,\n rootOPT: css`\n &[class*='ant-otp'] {\n [class*='ant-otp-input'] {\n &:focus-within {\n border-color: ${cssVar.colorBorder};\n }\n }\n }\n `,\n shadow: lobeStaticStylish.shadow,\n shadowOPT: css`\n &[class*='ant-otp'] {\n [class*='ant-otp-input'] {\n ${lobeStaticStylish.shadow};\n }\n }\n `,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n shadow: false,\n },\n /* eslint-disable sort-keys-fix/sort-keys-fix */\n variants: {\n variant: {\n filled: styles.filled,\n outlined: styles.outlined,\n borderless: styles.borderless,\n underlined: null,\n },\n shadow: {\n false: null,\n true: styles.shadow,\n },\n },\n /* eslint-enable sort-keys-fix/sort-keys-fix */\n});\n\nexport const variantsOPT = cva(styles.rootOPT, {\n defaultVariants: {\n shadow: false,\n },\n /* eslint-disable sort-keys-fix/sort-keys-fix */\n variants: {\n variant: {\n filled: styles.filledOPT,\n outlined: styles.outlinedOPT,\n borderless: styles.borderlessOPT,\n underlined: null,\n },\n shadow: {\n false: null,\n true: styles.shadowOPT,\n },\n },\n /* eslint-enable sort-keys-fix/sort-keys-fix */\n});\n"],"mappings":";;;;;AAKA,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,YAAY,KAAG;;UAETA,cAAkB,kBAAkB;;YAElCA,cAAkB,8BAA8B;;;;EAIxD,eAAe,KAAG;;;YAGVA,cAAkB,kBAAkB;;;;EAI5C,QAAQ,GACNA,cAAkB,eAClB,KAAG;;YAEGA,cAAkB,0BAA0B;;QAGnD;EAED,WAAW,KAAG;;;YAGNA,cAAkB,cAAc;;;;EAIxC,UAAUA,cAAkB;EAC5B,aAAa,KAAG;;;YAGRA,cAAkB,gBAAgB;;;;EAI1C,MAAM,KAAG;EACT,SAAS,KAAG;;;;4BAIYC,SAAO,YAAY;;;;;EAK3C,QAAQD,cAAkB;EAC1B,WAAW,KAAG;;;YAGNA,cAAkB,OAAO;;;;EAIlC;EACD;AAEF,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB,EACf,QAAQ,OACT;CAED,UAAU;EACR,SAAS;GACP,QAAQ,OAAO;GACf,UAAU,OAAO;GACjB,YAAY,OAAO;GACnB,YAAY;GACb;EACD,QAAQ;GACN,OAAO;GACP,MAAM,OAAO;GACd;EACF;CAEF,CAAC;AAEF,MAAa,cAAc,IAAI,OAAO,SAAS;CAC7C,iBAAiB,EACf,QAAQ,OACT;CAED,UAAU;EACR,SAAS;GACP,QAAQ,OAAO;GACf,UAAU,OAAO;GACjB,YAAY,OAAO;GACnB,YAAY;GACb;EACD,QAAQ;GACN,OAAO;GACP,MAAM,OAAO;GACd;EACF;CAEF,CAAC"}
|
package/es/Layout/Layout.mjs
CHANGED
|
@@ -1,57 +1,60 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import DraggablePanel_default from "../DraggablePanel/index.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { styles } from "./style.mjs";
|
|
5
5
|
import LayoutFooter_default from "./components/LayoutFooter.mjs";
|
|
6
6
|
import LayoutHeader_default from "./components/LayoutHeader.mjs";
|
|
7
7
|
import LayoutMain_default from "./components/LayoutMain.mjs";
|
|
8
8
|
import LayoutSidebar_default from "./components/LayoutSidebar.mjs";
|
|
9
9
|
import LayoutSidebarInner_default from "./components/LayoutSidebarInner.mjs";
|
|
10
10
|
import LayoutToc_default from "./components/LayoutToc.mjs";
|
|
11
|
-
import { memo, useEffect, useState } from "react";
|
|
12
|
-
import {
|
|
11
|
+
import { memo, useEffect, useMemo, useState } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useResponsive } from "antd-style";
|
|
14
14
|
|
|
15
15
|
//#region src/Layout/Layout.tsx
|
|
16
16
|
const Layout = memo(({ helmet, headerHeight = 64, header, footer, sidebar, asideWidth, toc, children, tocWidth }) => {
|
|
17
|
-
const {
|
|
17
|
+
const cssVariables = useMemo(() => ({ "--layout-header-height": `${headerHeight}px` }), [headerHeight]);
|
|
18
18
|
const { mobile, laptop } = useResponsive();
|
|
19
19
|
const [expand, setExpand] = useState(true);
|
|
20
20
|
useEffect(() => {
|
|
21
21
|
setExpand(Boolean(laptop));
|
|
22
22
|
}, [laptop]);
|
|
23
|
-
return /* @__PURE__ */ jsxs(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ jsxs(LayoutMain_default, { children: [
|
|
30
|
-
!mobile && !sidebar && /* @__PURE__ */ jsx("nav", { style: { width: tocWidth } }),
|
|
31
|
-
!mobile && sidebar && /* @__PURE__ */ jsx(LayoutSidebar_default, {
|
|
23
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
24
|
+
style: cssVariables,
|
|
25
|
+
children: [
|
|
26
|
+
helmet,
|
|
27
|
+
header && /* @__PURE__ */ jsxs(LayoutHeader_default, {
|
|
32
28
|
headerHeight,
|
|
33
|
-
children: /* @__PURE__ */ jsx(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
children: [header, mobile && toc && /* @__PURE__ */ jsx(LayoutToc_default, { children: toc })]
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ jsxs(LayoutMain_default, { children: [
|
|
32
|
+
!mobile && !sidebar && /* @__PURE__ */ jsx("nav", { style: { width: tocWidth } }),
|
|
33
|
+
!mobile && sidebar && /* @__PURE__ */ jsx(LayoutSidebar_default, {
|
|
34
|
+
headerHeight,
|
|
35
|
+
children: /* @__PURE__ */ jsx(DraggablePanel_default, {
|
|
36
|
+
expand,
|
|
37
|
+
maxWidth: asideWidth,
|
|
38
|
+
onExpandChange: setExpand,
|
|
39
|
+
placement: "left",
|
|
40
|
+
children: /* @__PURE__ */ jsx(LayoutSidebarInner_default, {
|
|
41
|
+
headerHeight,
|
|
42
|
+
children: sidebar
|
|
43
|
+
})
|
|
41
44
|
})
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ jsx("section", {
|
|
47
|
+
className: styles.content,
|
|
48
|
+
children
|
|
49
|
+
}),
|
|
50
|
+
!mobile && toc && /* @__PURE__ */ jsx(LayoutToc_default, {
|
|
51
|
+
tocWidth,
|
|
52
|
+
children: toc
|
|
42
53
|
})
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
-
!mobile && toc && /* @__PURE__ */ jsx(LayoutToc_default, {
|
|
49
|
-
tocWidth,
|
|
50
|
-
children: toc
|
|
51
|
-
})
|
|
52
|
-
] }),
|
|
53
|
-
footer && /* @__PURE__ */ jsx(LayoutFooter_default, { children: footer })
|
|
54
|
-
] });
|
|
54
|
+
] }),
|
|
55
|
+
footer && /* @__PURE__ */ jsx(LayoutFooter_default, { children: footer })
|
|
56
|
+
]
|
|
57
|
+
});
|
|
55
58
|
});
|
|
56
59
|
var Layout_default = Layout;
|
|
57
60
|
|
package/es/Layout/Layout.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.mjs","names":["LayoutHeader","LayoutToc","LayoutMain","LayoutSidebar","DraggablePanel","LayoutSidebarInner","LayoutFooter"],"sources":["../../src/Layout/Layout.tsx"],"sourcesContent":["'use client';\n\nimport { useResponsive } from 'antd-style';\nimport { memo, useEffect, useState } from 'react';\n\nimport DraggablePanel from '@/DraggablePanel';\n\nimport LayoutFooter from './components/LayoutFooter';\nimport LayoutHeader from './components/LayoutHeader';\nimport LayoutMain from './components/LayoutMain';\nimport LayoutSidebar from './components/LayoutSidebar';\nimport LayoutSidebarInner from './components/LayoutSidebarInner';\nimport LayoutToc from './components/LayoutToc';\nimport {
|
|
1
|
+
{"version":3,"file":"Layout.mjs","names":["LayoutHeader","LayoutToc","LayoutMain","LayoutSidebar","DraggablePanel","LayoutSidebarInner","LayoutFooter"],"sources":["../../src/Layout/Layout.tsx"],"sourcesContent":["'use client';\n\nimport { useResponsive } from 'antd-style';\nimport { memo, useEffect, useMemo, useState } from 'react';\n\nimport DraggablePanel from '@/DraggablePanel';\n\nimport LayoutFooter from './components/LayoutFooter';\nimport LayoutHeader from './components/LayoutHeader';\nimport LayoutMain from './components/LayoutMain';\nimport LayoutSidebar from './components/LayoutSidebar';\nimport LayoutSidebarInner from './components/LayoutSidebarInner';\nimport LayoutToc from './components/LayoutToc';\nimport { styles } from './style';\nimport type { LayoutProps } from './type';\n\nconst Layout = memo<LayoutProps>(\n ({ helmet, headerHeight = 64, header, footer, sidebar, asideWidth, toc, children, tocWidth }) => {\n // Convert headerHeight prop to CSS variable\n const cssVariables = useMemo<Record<string, string>>(\n () => ({\n '--layout-header-height': `${headerHeight}px`,\n }),\n [headerHeight],\n );\n const { mobile, laptop } = useResponsive();\n const [expand, setExpand] = useState(true);\n useEffect(() => {\n setExpand(Boolean(laptop));\n }, [laptop]);\n\n return (\n <div style={cssVariables}>\n {helmet}\n {header && (\n <LayoutHeader headerHeight={headerHeight}>\n {header}\n {mobile && toc && <LayoutToc>{toc}</LayoutToc>}\n </LayoutHeader>\n )}\n <LayoutMain>\n {!mobile && !sidebar && <nav style={{ width: tocWidth }} />}\n {!mobile && sidebar && (\n <LayoutSidebar headerHeight={headerHeight}>\n <DraggablePanel\n expand={expand}\n maxWidth={asideWidth}\n onExpandChange={setExpand}\n placement=\"left\"\n >\n <LayoutSidebarInner headerHeight={headerHeight}>{sidebar}</LayoutSidebarInner>\n </DraggablePanel>\n </LayoutSidebar>\n )}\n <section className={styles.content}>{children}</section>\n {!mobile && toc && <LayoutToc tocWidth={tocWidth}>{toc}</LayoutToc>}\n </LayoutMain>\n {footer && <LayoutFooter>{footer}</LayoutFooter>}\n </div>\n );\n },\n);\n\nexport default Layout;\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAM,SAAS,MACZ,EAAE,QAAQ,eAAe,IAAI,QAAQ,QAAQ,SAAS,YAAY,KAAK,UAAU,eAAe;CAE/F,MAAM,eAAe,eACZ,EACL,0BAA0B,GAAG,aAAa,KAC3C,GACD,CAAC,aAAa,CACf;CACD,MAAM,EAAE,QAAQ,WAAW,eAAe;CAC1C,MAAM,CAAC,QAAQ,aAAa,SAAS,KAAK;AAC1C,iBAAgB;AACd,YAAU,QAAQ,OAAO,CAAC;IACzB,CAAC,OAAO,CAAC;AAEZ,QACE,qBAAC;EAAI,OAAO;;GACT;GACA,UACC,qBAACA;IAA2B;eACzB,QACA,UAAU,OAAO,oBAACC,+BAAW,MAAgB;KACjC;GAEjB,qBAACC;IACE,CAAC,UAAU,CAAC,WAAW,oBAAC,SAAI,OAAO,EAAE,OAAO,UAAU,GAAI;IAC1D,CAAC,UAAU,WACV,oBAACC;KAA4B;eAC3B,oBAACC;MACS;MACR,UAAU;MACV,gBAAgB;MAChB,WAAU;gBAEV,oBAACC;OAAiC;iBAAe;QAA6B;OAC/D;MACH;IAElB,oBAAC;KAAQ,WAAW,OAAO;KAAU;MAAmB;IACvD,CAAC,UAAU,OAAO,oBAACJ;KAAoB;eAAW;MAAgB;OACxD;GACZ,UAAU,oBAACK,kCAAc,SAAsB;;GAC5C;EAGX;AAED,qBAAe"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DivProps } from "../../types/index.mjs";
|
|
2
2
|
import "../../index.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react3 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/Layout/components/LayoutFooter.d.ts
|
|
6
|
-
declare const LayoutFooter:
|
|
6
|
+
declare const LayoutFooter: react3.NamedExoticComponent<DivProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { LayoutFooter };
|
|
9
9
|
//# sourceMappingURL=LayoutFooter.d.mts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { styles } from "../style.mjs";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cx } from "antd-style";
|
|
6
7
|
|
|
7
8
|
//#region src/Layout/components/LayoutFooter.tsx
|
|
8
9
|
const LayoutFooter = memo(({ children, className, ...rest }) => {
|
|
9
|
-
const { cx, styles } = useStyles();
|
|
10
10
|
return /* @__PURE__ */ jsx("footer", {
|
|
11
11
|
className: cx(styles.footer, className),
|
|
12
12
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutFooter.mjs","names":[],"sources":["../../../src/Layout/components/LayoutFooter.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"LayoutFooter.mjs","names":[],"sources":["../../../src/Layout/components/LayoutFooter.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutFooterProps } from '../type';\n\nexport const LayoutFooter = memo<LayoutFooterProps>(({ children, className, ...rest }) => {\n return (\n <footer className={cx(styles.footer, className)} {...rest}>\n {children}\n </footer>\n );\n});\n\nLayoutFooter.displayName = 'LayoutFooter';\n\nexport default LayoutFooter;\n"],"mappings":";;;;;;;;AAQA,MAAa,eAAe,MAAyB,EAAE,UAAU,WAAW,GAAG,WAAW;AACxF,QACE,oBAAC;EAAO,WAAW,GAAG,OAAO,QAAQ,UAAU;EAAE,GAAI;EAClD;GACM;EAEX;AAEF,aAAa,cAAc;AAE3B,2BAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LayoutHeaderProps } from "../type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react2 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Layout/components/LayoutHeader.d.ts
|
|
5
|
-
declare const LayoutHeader:
|
|
5
|
+
declare const LayoutHeader: react2.NamedExoticComponent<LayoutHeaderProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { LayoutHeader };
|
|
8
8
|
//# sourceMappingURL=LayoutHeader.d.mts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { styles } from "../style.mjs";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cx } from "antd-style";
|
|
6
7
|
|
|
7
8
|
//#region src/Layout/components/LayoutHeader.tsx
|
|
8
9
|
const LayoutHeader = memo(({ headerHeight, children, className, style, ...rest }) => {
|
|
9
|
-
const { cx, styles } = useStyles(headerHeight);
|
|
10
10
|
return /* @__PURE__ */ jsx("header", {
|
|
11
11
|
className: cx(styles.header, className),
|
|
12
12
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutHeader.mjs","names":[],"sources":["../../../src/Layout/components/LayoutHeader.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"LayoutHeader.mjs","names":[],"sources":["../../../src/Layout/components/LayoutHeader.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutHeaderProps } from '../type';\n\nexport const LayoutHeader = memo<LayoutHeaderProps>(\n ({ headerHeight, children, className, style, ...rest }) => {\n return (\n <header\n className={cx(styles.header, className)}\n style={{\n height: headerHeight,\n ...style,\n }}\n {...rest}\n >\n {children}\n </header>\n );\n },\n);\n\nLayoutHeader.displayName = 'LayoutHeader';\n\nexport default LayoutHeader;\n"],"mappings":";;;;;;;;AAQA,MAAa,eAAe,MACzB,EAAE,cAAc,UAAU,WAAW,OAAO,GAAG,WAAW;AACzD,QACE,oBAAC;EACC,WAAW,GAAG,OAAO,QAAQ,UAAU;EACvC,OAAO;GACL,QAAQ;GACR,GAAG;GACJ;EACD,GAAI;EAEH;GACM;EAGd;AAED,aAAa,cAAc;AAE3B,2BAAe"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DivProps } from "../../types/index.mjs";
|
|
2
2
|
import "../../index.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react5 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/Layout/components/LayoutMain.d.ts
|
|
6
|
-
declare const LayoutMain:
|
|
6
|
+
declare const LayoutMain: react5.NamedExoticComponent<DivProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { LayoutMain };
|
|
9
9
|
//# sourceMappingURL=LayoutMain.d.mts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { styles } from "../style.mjs";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cx } from "antd-style";
|
|
6
7
|
|
|
7
8
|
//#region src/Layout/components/LayoutMain.tsx
|
|
8
9
|
const LayoutMain = memo(({ children, className, ...rest }) => {
|
|
9
|
-
const { cx, styles } = useStyles();
|
|
10
10
|
return /* @__PURE__ */ jsx("main", {
|
|
11
11
|
className: cx(styles.main, className),
|
|
12
12
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutMain.mjs","names":[],"sources":["../../../src/Layout/components/LayoutMain.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"LayoutMain.mjs","names":[],"sources":["../../../src/Layout/components/LayoutMain.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutMainProps } from '../type';\n\nexport const LayoutMain = memo<LayoutMainProps>(({ children, className, ...rest }) => {\n return (\n <main className={cx(styles.main, className)} {...rest}>\n {children}\n </main>\n );\n});\n\nLayoutMain.displayName = 'LayoutMain';\n\nexport default LayoutMain;\n"],"mappings":";;;;;;;;AAQA,MAAa,aAAa,MAAuB,EAAE,UAAU,WAAW,GAAG,WAAW;AACpF,QACE,oBAAC;EAAK,WAAW,GAAG,OAAO,MAAM,UAAU;EAAE,GAAI;EAC9C;GACI;EAET;AAEF,WAAW,cAAc;AAEzB,yBAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LayoutSidebarProps } from "../type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react4 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Layout/components/LayoutSidebar.d.ts
|
|
5
|
-
declare const LayoutSidebar:
|
|
5
|
+
declare const LayoutSidebar: react4.NamedExoticComponent<LayoutSidebarProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { LayoutSidebar };
|
|
8
8
|
//# sourceMappingURL=LayoutSidebar.d.mts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { styles } from "../style.mjs";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cx } from "antd-style";
|
|
6
7
|
|
|
7
8
|
//#region src/Layout/components/LayoutSidebar.tsx
|
|
8
9
|
const LayoutSidebar = memo(({ headerHeight, children, className, style, ...rest }) => {
|
|
9
|
-
const { cx, styles } = useStyles(headerHeight);
|
|
10
10
|
return /* @__PURE__ */ jsx("aside", {
|
|
11
11
|
className: cx(styles.aside, className),
|
|
12
12
|
style: {
|
|
13
|
-
top: headerHeight
|
|
13
|
+
top: `var(--layout-header-height, ${headerHeight}px)`,
|
|
14
14
|
...style
|
|
15
15
|
},
|
|
16
16
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutSidebar.mjs","names":[],"sources":["../../../src/Layout/components/LayoutSidebar.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"LayoutSidebar.mjs","names":[],"sources":["../../../src/Layout/components/LayoutSidebar.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutSidebarProps } from '../type';\n\nexport const LayoutSidebar = memo<LayoutSidebarProps>(\n ({ headerHeight, children, className, style, ...rest }) => {\n return (\n <aside\n className={cx(styles.aside, className)}\n style={{\n top: `var(--layout-header-height, ${headerHeight}px)`,\n ...style,\n }}\n {...rest}\n >\n {children}\n </aside>\n );\n },\n);\n\nLayoutSidebar.displayName = 'LayoutSidebar';\n\nexport default LayoutSidebar;\n"],"mappings":";;;;;;;;AAQA,MAAa,gBAAgB,MAC1B,EAAE,cAAc,UAAU,WAAW,OAAO,GAAG,WAAW;AACzD,QACE,oBAAC;EACC,WAAW,GAAG,OAAO,OAAO,UAAU;EACtC,OAAO;GACL,KAAK,+BAA+B,aAAa;GACjD,GAAG;GACJ;EACD,GAAI;EAEH;GACK;EAGb;AAED,cAAc,cAAc;AAE5B,4BAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LayoutSidebarInnerProps } from "../type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react6 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Layout/components/LayoutSidebarInner.d.ts
|
|
5
|
-
declare const LayoutSidebarInner:
|
|
5
|
+
declare const LayoutSidebarInner: react6.NamedExoticComponent<LayoutSidebarInnerProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { LayoutSidebarInner };
|
|
8
8
|
//# sourceMappingURL=LayoutSidebarInner.d.mts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { styles } from "../style.mjs";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cx } from "antd-style";
|
|
6
7
|
|
|
7
8
|
//#region src/Layout/components/LayoutSidebarInner.tsx
|
|
8
9
|
const LayoutSidebarInner = memo(({ headerHeight, children, className, ...rest }) => {
|
|
9
|
-
const { cx, styles } = useStyles(headerHeight);
|
|
10
10
|
return /* @__PURE__ */ jsx("div", {
|
|
11
11
|
className: cx(styles.asideInner, className),
|
|
12
12
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutSidebarInner.mjs","names":[],"sources":["../../../src/Layout/components/LayoutSidebarInner.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"LayoutSidebarInner.mjs","names":[],"sources":["../../../src/Layout/components/LayoutSidebarInner.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutSidebarInnerProps } from '../type';\n\nexport const LayoutSidebarInner = memo<LayoutSidebarInnerProps>(\n ({ headerHeight, children, className, ...rest }) => {\n // headerHeight is part of the interface but not used in this component\n void headerHeight;\n return (\n <div className={cx(styles.asideInner, className)} {...rest}>\n {children}\n </div>\n );\n },\n);\n\nLayoutSidebarInner.displayName = 'LayoutSidebarInner';\n\nexport default LayoutSidebarInner;\n"],"mappings":";;;;;;;;AAQA,MAAa,qBAAqB,MAC/B,EAAE,cAAc,UAAU,WAAW,GAAG,WAAW;AAGlD,QACE,oBAAC;EAAI,WAAW,GAAG,OAAO,YAAY,UAAU;EAAE,GAAI;EACnD;GACG;EAGX;AAED,mBAAmB,cAAc;AAEjC,iCAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LayoutTocProps } from "../type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react7 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Layout/components/LayoutToc.d.ts
|
|
5
|
-
declare const LayoutToc:
|
|
5
|
+
declare const LayoutToc: react7.NamedExoticComponent<LayoutTocProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { LayoutToc };
|
|
8
8
|
//# sourceMappingURL=LayoutToc.d.mts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { styles } from "../style.mjs";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cx } from "antd-style";
|
|
6
7
|
|
|
7
8
|
//#region src/Layout/components/LayoutToc.tsx
|
|
8
9
|
const LayoutToc = memo(({ tocWidth, style, className, children, ...rest }) => {
|
|
9
|
-
const { cx, styles } = useStyles();
|
|
10
10
|
return /* @__PURE__ */ jsx("nav", {
|
|
11
11
|
className: cx(styles.toc, className),
|
|
12
12
|
style: tocWidth ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutToc.mjs","names":[],"sources":["../../../src/Layout/components/LayoutToc.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"LayoutToc.mjs","names":[],"sources":["../../../src/Layout/components/LayoutToc.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutTocProps } from '../type';\n\nexport const LayoutToc = memo<LayoutTocProps>(\n ({ tocWidth, style, className, children, ...rest }) => {\n return (\n <nav\n className={cx(styles.toc, className)}\n style={tocWidth ? { width: tocWidth, ...style } : style}\n {...rest}\n >\n {children}\n </nav>\n );\n },\n);\n\nLayoutToc.displayName = 'LayoutToc';\n\nexport default LayoutToc;\n"],"mappings":";;;;;;;;AAQA,MAAa,YAAY,MACtB,EAAE,UAAU,OAAO,WAAW,UAAU,GAAG,WAAW;AACrD,QACE,oBAAC;EACC,WAAW,GAAG,OAAO,KAAK,UAAU;EACpC,OAAO,WAAW;GAAE,OAAO;GAAU,GAAG;GAAO,GAAG;EAClD,GAAI;EAEH;GACG;EAGX;AAED,UAAU,cAAc;AAExB,wBAAe"}
|
package/es/Layout/style.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { staticStylish } from "../styles/theme/customStylishStatic.mjs";
|
|
2
|
+
import { createStaticStyles, cx } from "antd-style";
|
|
2
3
|
|
|
3
4
|
//#region src/Layout/style.ts
|
|
4
|
-
const
|
|
5
|
+
const styles = createStaticStyles(({ css: css$1 }) => {
|
|
5
6
|
return {
|
|
6
7
|
app: css$1`
|
|
7
8
|
overflow: hidden auto;
|
|
@@ -15,7 +16,7 @@ const useStyles = createStyles(({ cx: cx$1, css: css$1, stylish }, headerHeight)
|
|
|
15
16
|
asideInner: css$1`
|
|
16
17
|
overflow: hidden auto;
|
|
17
18
|
width: 100%;
|
|
18
|
-
height: calc(100dvh -
|
|
19
|
+
height: calc(100dvh - var(--layout-header-height, 64px));
|
|
19
20
|
`,
|
|
20
21
|
content: css$1`
|
|
21
22
|
position: relative;
|
|
@@ -26,7 +27,7 @@ const useStyles = createStyles(({ cx: cx$1, css: css$1, stylish }, headerHeight)
|
|
|
26
27
|
position: relative;
|
|
27
28
|
max-width: 100%;
|
|
28
29
|
`,
|
|
29
|
-
header: cx
|
|
30
|
+
header: cx(staticStylish.blur, css$1`
|
|
30
31
|
position: sticky;
|
|
31
32
|
z-index: 999;
|
|
32
33
|
inset-block-start: 0;
|
|
@@ -43,5 +44,5 @@ const useStyles = createStyles(({ cx: cx$1, css: css$1, stylish }, headerHeight)
|
|
|
43
44
|
});
|
|
44
45
|
|
|
45
46
|
//#endregion
|
|
46
|
-
export {
|
|
47
|
+
export { styles };
|
|
47
48
|
//# sourceMappingURL=style.mjs.map
|
package/es/Layout/style.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":["
|
|
1
|
+
{"version":3,"file":"style.mjs","names":["lobeStaticStylish"],"sources":["../../src/Layout/style.ts"],"sourcesContent":["import { createStaticStyles, cx } from 'antd-style';\n\nimport { lobeStaticStylish } from '@/styles';\n\nexport const styles = createStaticStyles(({ css }) => {\n return {\n app: css`\n overflow: hidden auto;\n height: 100dvh;\n `,\n aside: css`\n position: sticky;\n z-index: 2;\n height: 100%;\n `,\n asideInner: css`\n overflow: hidden auto;\n width: 100%;\n height: calc(100dvh - var(--layout-header-height, 64px));\n `,\n content: css`\n position: relative;\n flex: 1;\n max-width: 100%;\n `,\n\n footer: css`\n position: relative;\n max-width: 100%;\n `,\n header: cx(\n lobeStaticStylish.blur,\n css`\n position: sticky;\n z-index: 999;\n inset-block-start: 0;\n max-width: 100%;\n `,\n ),\n main: css`\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n `,\n toc: css``,\n };\n});\n"],"mappings":";;;;AAIA,MAAa,SAAS,oBAAoB,EAAE,iBAAU;AACpD,QAAO;EACL,KAAK,KAAG;;;;EAIR,OAAO,KAAG;;;;;EAKV,YAAY,KAAG;;;;;EAKf,SAAS,KAAG;;;;;EAMZ,QAAQ,KAAG;;;;EAIX,QAAQ,GACNA,cAAkB,MAClB,KAAG;;;;;QAMJ;EACD,MAAM,KAAG;;;;;;EAMT,KAAK,KAAG;EACT;EACD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ListItemProps } from "../type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react53 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/List/ListItem/index.d.ts
|
|
5
|
-
declare const ListItem:
|
|
5
|
+
declare const ListItem: react53.NamedExoticComponent<ListItemProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ListItem };
|
|
8
8
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
4
4
|
import Icon_default from "../../Icon/Icon.mjs";
|
|
5
5
|
import Text_default from "../../Text/Text.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { styles } from "./style.mjs";
|
|
7
7
|
import { getChatItemTime } from "./time.mjs";
|
|
8
8
|
import { memo } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { cx } from "antd-style";
|
|
10
11
|
import { Loader2, MessageSquare } from "lucide-react";
|
|
11
12
|
|
|
12
13
|
//#region src/List/ListItem/index.tsx
|
|
13
14
|
const ListItem = memo(({ ref, active, avatar, loading, description, date, title, onHoverChange, actions, className, style, showAction, children, classNames, addon, pin, styles: customStyles, ...rest }) => {
|
|
14
|
-
const { styles, cx } = useStyles();
|
|
15
15
|
const loadingNode = /* @__PURE__ */ jsx(Icon_default, {
|
|
16
16
|
icon: Loader2,
|
|
17
17
|
spin: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Icon","Flexbox","Text"],"sources":["../../../src/List/ListItem/index.tsx"],"sourcesContent":["'use client';\n\nimport { Loader2, MessageSquare } from 'lucide-react';\nimport { memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\nimport Icon from '@/Icon';\nimport Text from '@/Text';\n\nimport type { ListItemProps } from '../type';\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Icon","Flexbox","Text"],"sources":["../../../src/List/ListItem/index.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { Loader2, MessageSquare } from 'lucide-react';\nimport { memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\nimport Icon from '@/Icon';\nimport Text from '@/Text';\n\nimport type { ListItemProps } from '../type';\nimport { styles } from './style';\nimport { getChatItemTime } from './time';\n\nconst ListItem = memo<ListItemProps>(\n ({\n ref,\n active,\n avatar,\n loading,\n description,\n date,\n title,\n onHoverChange,\n actions,\n className,\n style,\n showAction,\n children,\n classNames,\n addon,\n pin,\n styles: customStyles,\n ...rest\n }) => {\n const loadingNode = <Icon icon={Loader2} spin />;\n\n const pinNode = pin && (\n <div className={cx(styles.pin, classNames?.pin)} style={customStyles?.pin}>\n <div className={styles.triangle} />\n </div>\n );\n\n const actionsNode = actions && (\n <Flexbox\n className={cx(styles.actions, classNames?.actions)}\n gap={4}\n horizontal\n onClick={(e: any) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n style={{ display: showAction ? undefined : 'none', ...customStyles?.actions }}\n >\n {actions}\n </Flexbox>\n );\n\n const timeNode = date && (\n <div\n className={cx(styles.date, classNames?.date)}\n style={{ opacity: showAction ? 0 : undefined, ...customStyles?.date }}\n >\n {getChatItemTime(date)}\n </div>\n );\n\n return (\n <Flexbox\n align={'flex-start'}\n className={cx(styles.root, active && styles.active, className)}\n distribution={'space-between'}\n gap={8}\n horizontal\n onMouseEnter={() => {\n onHoverChange?.(true);\n }}\n onMouseLeave={() => {\n onHoverChange?.(false);\n }}\n padding={12}\n ref={ref}\n style={style}\n {...rest}\n >\n {pinNode}\n <Flexbox\n align={'flex-start'}\n className={classNames?.container}\n flex={1}\n gap={8}\n horizontal\n style={{ overflow: 'hidden', ...customStyles?.container }}\n >\n {avatar ?? <Icon icon={MessageSquare} style={{ marginTop: 4 }} />}\n <Flexbox\n className={cx(styles.content, classNames?.content)}\n gap={4}\n style={customStyles?.content}\n >\n <Text\n as={'h3'}\n className={cx(styles.title, classNames?.title)}\n ellipsis\n style={customStyles?.title}\n >\n {title}\n </Text>\n {description && (\n <Text\n className={cx(styles.desc, classNames?.desc)}\n ellipsis\n style={customStyles?.desc}\n >\n {description}\n </Text>\n )}\n {addon}\n </Flexbox>\n </Flexbox>\n {loading ? (\n loadingNode\n ) : (\n <>\n {actionsNode}\n {timeNode}\n </>\n )}\n {children}\n </Flexbox>\n );\n },\n);\n\nListItem.displayName = 'ListItem';\n\nexport default ListItem;\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,WAAW,MACd,EACC,KACA,QACA,QACA,SACA,aACA,MACA,OACA,eACA,SACA,WACA,OACA,YACA,UACA,YACA,OACA,KACA,QAAQ,cACR,GAAG,WACC;CACJ,MAAM,cAAc,oBAACA;EAAK,MAAM;EAAS;GAAO;CAEhD,MAAM,UAAU,OACd,oBAAC;EAAI,WAAW,GAAG,OAAO,KAAK,YAAY,IAAI;EAAE,OAAO,cAAc;YACpE,oBAAC,SAAI,WAAW,OAAO,WAAY;GAC/B;CAGR,MAAM,cAAc,WAClB,oBAACC;EACC,WAAW,GAAG,OAAO,SAAS,YAAY,QAAQ;EAClD,KAAK;EACL;EACA,UAAU,MAAW;AACnB,KAAE,gBAAgB;AAClB,KAAE,iBAAiB;;EAErB,OAAO;GAAE,SAAS,aAAa,SAAY;GAAQ,GAAG,cAAc;GAAS;YAE5E;GACO;CAGZ,MAAM,WAAW,QACf,oBAAC;EACC,WAAW,GAAG,OAAO,MAAM,YAAY,KAAK;EAC5C,OAAO;GAAE,SAAS,aAAa,IAAI;GAAW,GAAG,cAAc;GAAM;YAEpE,gBAAgB,KAAK;GAClB;AAGR,QACE,qBAACA;EACC,OAAO;EACP,WAAW,GAAG,OAAO,MAAM,UAAU,OAAO,QAAQ,UAAU;EAC9D,cAAc;EACd,KAAK;EACL;EACA,oBAAoB;AAClB,mBAAgB,KAAK;;EAEvB,oBAAoB;AAClB,mBAAgB,MAAM;;EAExB,SAAS;EACJ;EACE;EACP,GAAI;;GAEH;GACD,qBAACA;IACC,OAAO;IACP,WAAW,YAAY;IACvB,MAAM;IACN,KAAK;IACL;IACA,OAAO;KAAE,UAAU;KAAU,GAAG,cAAc;KAAW;eAExD,UAAU,oBAACD;KAAK,MAAM;KAAe,OAAO,EAAE,WAAW,GAAG;MAAI,EACjE,qBAACC;KACC,WAAW,GAAG,OAAO,SAAS,YAAY,QAAQ;KAClD,KAAK;KACL,OAAO,cAAc;;MAErB,oBAACC;OACC,IAAI;OACJ,WAAW,GAAG,OAAO,OAAO,YAAY,MAAM;OAC9C;OACA,OAAO,cAAc;iBAEpB;QACI;MACN,eACC,oBAACA;OACC,WAAW,GAAG,OAAO,MAAM,YAAY,KAAK;OAC5C;OACA,OAAO,cAAc;iBAEpB;QACI;MAER;;MACO;KACF;GACT,UACC,cAEA,8CACG,aACA,YACA;GAEJ;;GACO;EAGf;AAED,SAAS,cAAc;AAEvB,uBAAe"}
|