@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
package/es/Tooltip/style.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":[],"sources":["../../src/Tooltip/style.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"style.mjs","names":["cssVar"],"sources":["../../src/Tooltip/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n arrow: css`\n fill: ${cssVar.colorText};\n `,\n content: css`\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 8px;\n border-radius: ${cssVar.borderRadiusSM};\n\n color: ${cssVar.colorBgLayout};\n word-break: normal;\n\n background-color: ${cssVar.colorTextBase};\n `,\n tooltip: css`\n pointer-events: none;\n\n /* Keep the class name for backwards compatibility and user overrides */\n position: relative;\n z-index: 114514;\n filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 12%));\n `,\n tooltipLayout: css`\n transition: all 0.2s ease-in-out;\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,OAAO,KAAG;cACAA,SAAO,UAAU;;EAE3B,SAAS,KAAG;;;;;;;uBAOOA,SAAO,eAAe;;eAE9BA,SAAO,cAAc;;;0BAGVA,SAAO,cAAc;;EAE3C,SAAS,KAAG;;;;;;;;EAQZ,eAAe,KAAG;;;EAGnB;EACD"}
|
package/es/Video/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlexboxProps } from "../Flex/type.mjs";
|
|
2
2
|
import "../Flex/index.mjs";
|
|
3
3
|
import { VideoProps as VideoProps$1 } from "../types/index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react60 from "react";
|
|
5
5
|
import { CSSProperties, Ref } from "react";
|
|
6
6
|
|
|
7
7
|
//#region src/Video/index.d.ts
|
|
@@ -39,7 +39,7 @@ interface VideoProps extends VideoProps$1, Pick<FlexboxProps, 'width' | 'height'
|
|
|
39
39
|
};
|
|
40
40
|
variant?: 'borderless' | 'filled' | 'outlined';
|
|
41
41
|
}
|
|
42
|
-
declare const Video:
|
|
42
|
+
declare const Video: react60.NamedExoticComponent<VideoProps>;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { Video, VideoProps };
|
|
45
45
|
//# sourceMappingURL=index.d.mts.map
|
package/es/Video/index.mjs
CHANGED
|
@@ -2,35 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
import FlexBasic_default from "../Flex/FlexBasic.mjs";
|
|
4
4
|
import ActionIcon_default from "../ActionIcon/ActionIcon.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { styles, variants } from "./style.mjs";
|
|
6
6
|
import { memo, useMemo, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Skeleton } from "antd";
|
|
9
|
-
import {
|
|
9
|
+
import { cssVar, cx } from "antd-style";
|
|
10
10
|
import { PlayIcon } from "lucide-react";
|
|
11
11
|
|
|
12
12
|
//#region src/Video/index.tsx
|
|
13
13
|
const Video = memo(({ ref, preload = "auto", src, style, classNames, className, maxHeight = "100%", maxWidth = "100%", minHeight, minWidth, onEnded, onPause, onPlay, onPlaying, width, height, onMouseEnter, styles: customStyles, onMouseLeave, preview = true, isLoading, variant = "filled", autoPlay, ...rest }) => {
|
|
14
14
|
const [isPlaying, setIsPlaying] = useState(false);
|
|
15
15
|
const [showControls, setShowControls] = useState(false);
|
|
16
|
-
const
|
|
16
|
+
const cssVariables = useMemo(() => {
|
|
17
|
+
const vars = {};
|
|
18
|
+
if (maxHeight !== void 0) vars["--video-max-height"] = typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight;
|
|
19
|
+
if (maxWidth !== void 0) vars["--video-max-width"] = typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth;
|
|
20
|
+
if (minHeight !== void 0) vars["--video-min-height"] = typeof minHeight === "number" ? `${minHeight}px` : minHeight;
|
|
21
|
+
if (minWidth !== void 0) vars["--video-min-width"] = typeof minWidth === "number" ? `${minWidth}px` : minWidth;
|
|
22
|
+
return vars;
|
|
23
|
+
}, [
|
|
17
24
|
maxHeight,
|
|
18
25
|
maxWidth,
|
|
19
26
|
minHeight,
|
|
20
27
|
minWidth
|
|
21
|
-
|
|
22
|
-
const variants = useMemo(() => cva(styles.root, {
|
|
23
|
-
defaultVariants: { variant: "filled" },
|
|
24
|
-
variants: { variant: {
|
|
25
|
-
filled: styles.filled,
|
|
26
|
-
outlined: styles.outlined,
|
|
27
|
-
borderless: styles.borderless
|
|
28
|
-
} }
|
|
29
|
-
}), [styles]);
|
|
28
|
+
]);
|
|
30
29
|
if (isLoading) return /* @__PURE__ */ jsx(Skeleton.Avatar, {
|
|
31
30
|
active: true,
|
|
32
31
|
style: {
|
|
33
|
-
borderRadius:
|
|
32
|
+
borderRadius: cssVar.borderRadiusLG,
|
|
34
33
|
height,
|
|
35
34
|
maxHeight,
|
|
36
35
|
maxWidth,
|
|
@@ -44,6 +43,7 @@ const Video = memo(({ ref, preload = "auto", src, style, classNames, className,
|
|
|
44
43
|
height,
|
|
45
44
|
ref,
|
|
46
45
|
style: {
|
|
46
|
+
...cssVariables,
|
|
47
47
|
...style,
|
|
48
48
|
...customStyles?.wrapper
|
|
49
49
|
},
|
package/es/Video/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Flexbox","ActionIcon"],"sources":["../../src/Video/index.tsx"],"sourcesContent":["'use client';\n\nimport { Skeleton } from 'antd';\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["vars: Record<string, string>","Flexbox","ActionIcon"],"sources":["../../src/Video/index.tsx"],"sourcesContent":["'use client';\n\nimport { Skeleton } from 'antd';\nimport { cssVar, cx } from 'antd-style';\nimport { PlayIcon } from 'lucide-react';\nimport { type CSSProperties, type Ref, memo, useMemo, useState } from 'react';\n\nimport ActionIcon from '@/ActionIcon';\nimport { Flexbox, FlexboxProps } from '@/Flex';\nimport type { VideoProps as VProps } from '@/types';\n\nimport { styles, variants } from './style';\n\nexport interface VideoProps extends VProps, Pick<FlexboxProps, 'width' | 'height'> {\n autoPlay?: boolean;\n classNames?: {\n mask?: string;\n video?: string;\n wrapper?: string;\n };\n isLoading?: boolean;\n loop?: boolean;\n maxHeight?: number | string;\n maxWidth?: number | string;\n minHeight?: number | string;\n minWidth?: number | string;\n muted?: HTMLVideoElement['muted'];\n onEnded?: VProps['onEnded'];\n onMouseEnter?: VProps['onMouseEnter'];\n onMouseLeave?: VProps['onMouseLeave'];\n onPause?: VProps['onPause'];\n onPlay?: VProps['onPlay'];\n onPlaying?: VProps['onPlaying'];\n onProgress?: VProps['onProgress'];\n poster?: string;\n preload?: HTMLVideoElement['preload'];\n preview?: boolean;\n ref?: Ref<HTMLDivElement>;\n size?: number | string;\n src: string;\n styles?: {\n mask?: CSSProperties;\n video?: CSSProperties;\n wrapper?: CSSProperties;\n };\n variant?: 'borderless' | 'filled' | 'outlined';\n}\n\nconst Video = memo<VideoProps>(\n ({\n ref,\n preload = 'auto',\n src,\n style,\n classNames,\n className,\n maxHeight = '100%',\n maxWidth = '100%',\n minHeight,\n minWidth,\n onEnded,\n onPause,\n onPlay,\n onPlaying,\n width,\n height,\n onMouseEnter,\n styles: customStyles,\n onMouseLeave,\n preview = true,\n isLoading,\n variant = 'filled',\n autoPlay,\n ...rest\n }) => {\n const [isPlaying, setIsPlaying] = useState(false);\n const [showControls, setShowControls] = useState(false);\n\n // Convert props to CSS variables\n const cssVariables = useMemo<Record<string, string>>(() => {\n const vars: Record<string, string> = {};\n if (maxHeight !== undefined) {\n vars['--video-max-height'] = typeof maxHeight === 'number' ? `${maxHeight}px` : maxHeight;\n }\n if (maxWidth !== undefined) {\n vars['--video-max-width'] = typeof maxWidth === 'number' ? `${maxWidth}px` : maxWidth;\n }\n if (minHeight !== undefined) {\n vars['--video-min-height'] = typeof minHeight === 'number' ? `${minHeight}px` : minHeight;\n }\n if (minWidth !== undefined) {\n vars['--video-min-width'] = typeof minWidth === 'number' ? `${minWidth}px` : minWidth;\n }\n return vars;\n }, [maxHeight, maxWidth, minHeight, minWidth]);\n\n if (isLoading)\n return (\n <Skeleton.Avatar\n active\n style={{\n borderRadius: cssVar.borderRadiusLG,\n height,\n maxHeight,\n maxWidth,\n minHeight,\n minWidth,\n width,\n }}\n />\n );\n\n return (\n <Flexbox\n className={cx(variants({ variant }), className, classNames?.wrapper)}\n height={height}\n ref={ref}\n style={{\n ...cssVariables,\n ...style,\n ...customStyles?.wrapper,\n }}\n width={width}\n >\n {preview && !isPlaying && (\n <Flexbox\n align={'center'}\n className={cx(styles.mask, classNames?.mask)}\n justify={'center'}\n style={customStyles?.mask}\n >\n <ActionIcon color={'#fff'} icon={PlayIcon} variant={'filled'} />\n </Flexbox>\n )}\n <video\n autoPlay={autoPlay}\n className={cx(styles.video, classNames?.video)}\n controls={showControls}\n height={height}\n onEnded={(e) => {\n setIsPlaying(false);\n onEnded?.(e);\n }}\n onMouseEnter={(e) => {\n setShowControls(true);\n onMouseEnter?.(e);\n }}\n onMouseLeave={(e) => {\n setShowControls(false);\n onMouseLeave?.(e);\n }}\n onPause={(e) => {\n setIsPlaying(false);\n onPause?.(e);\n }}\n onPlay={(e) => {\n setIsPlaying(true);\n onPlay?.(e);\n }}\n onPlaying={(e) => {\n setIsPlaying(true);\n onPlaying?.(e);\n }}\n preload={preload}\n style={{\n height: 'auto',\n maxWidth: '100%',\n ...customStyles?.video,\n }}\n width={width}\n {...rest}\n >\n <source src={src} />\n </video>\n </Flexbox>\n );\n },\n);\n\nVideo.displayName = 'Video';\n\nexport default Video;\n"],"mappings":";;;;;;;;;;;;AAgDA,MAAM,QAAQ,MACX,EACC,KACA,UAAU,QACV,KACA,OACA,YACA,WACA,YAAY,QACZ,WAAW,QACX,WACA,UACA,SACA,SACA,QACA,WACA,OACA,QACA,cACA,QAAQ,cACR,cACA,UAAU,MACV,WACA,UAAU,UACV,UACA,GAAG,WACC;CACJ,MAAM,CAAC,WAAW,gBAAgB,SAAS,MAAM;CACjD,MAAM,CAAC,cAAc,mBAAmB,SAAS,MAAM;CAGvD,MAAM,eAAe,cAAsC;EACzD,MAAMA,OAA+B,EAAE;AACvC,MAAI,cAAc,OAChB,MAAK,wBAAwB,OAAO,cAAc,WAAW,GAAG,UAAU,MAAM;AAElF,MAAI,aAAa,OACf,MAAK,uBAAuB,OAAO,aAAa,WAAW,GAAG,SAAS,MAAM;AAE/E,MAAI,cAAc,OAChB,MAAK,wBAAwB,OAAO,cAAc,WAAW,GAAG,UAAU,MAAM;AAElF,MAAI,aAAa,OACf,MAAK,uBAAuB,OAAO,aAAa,WAAW,GAAG,SAAS,MAAM;AAE/E,SAAO;IACN;EAAC;EAAW;EAAU;EAAW;EAAS,CAAC;AAE9C,KAAI,UACF,QACE,oBAAC,SAAS;EACR;EACA,OAAO;GACL,cAAc,OAAO;GACrB;GACA;GACA;GACA;GACA;GACA;GACD;GACD;AAGN,QACE,qBAACC;EACC,WAAW,GAAG,SAAS,EAAE,SAAS,CAAC,EAAE,WAAW,YAAY,QAAQ;EAC5D;EACH;EACL,OAAO;GACL,GAAG;GACH,GAAG;GACH,GAAG,cAAc;GAClB;EACM;aAEN,WAAW,CAAC,aACX,oBAACA;GACC,OAAO;GACP,WAAW,GAAG,OAAO,MAAM,YAAY,KAAK;GAC5C,SAAS;GACT,OAAO,cAAc;aAErB,oBAACC;IAAW,OAAO;IAAQ,MAAM;IAAU,SAAS;KAAY;IACxD,EAEZ,oBAAC;GACW;GACV,WAAW,GAAG,OAAO,OAAO,YAAY,MAAM;GAC9C,UAAU;GACF;GACR,UAAU,MAAM;AACd,iBAAa,MAAM;AACnB,cAAU,EAAE;;GAEd,eAAe,MAAM;AACnB,oBAAgB,KAAK;AACrB,mBAAe,EAAE;;GAEnB,eAAe,MAAM;AACnB,oBAAgB,MAAM;AACtB,mBAAe,EAAE;;GAEnB,UAAU,MAAM;AACd,iBAAa,MAAM;AACnB,cAAU,EAAE;;GAEd,SAAS,MAAM;AACb,iBAAa,KAAK;AAClB,aAAS,EAAE;;GAEb,YAAY,MAAM;AAChB,iBAAa,KAAK;AAClB,gBAAY,EAAE;;GAEP;GACT,OAAO;IACL,QAAQ;IACR,UAAU;IACV,GAAG,cAAc;IAClB;GACM;GACP,GAAI;aAEJ,oBAAC,YAAY,MAAO;IACd;GACA;EAGf;AAED,MAAM,cAAc;AAEpB,oBAAe"}
|
package/es/Video/style.mjs
CHANGED
|
@@ -1,60 +1,67 @@
|
|
|
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/Video/style.ts
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const MIN_WIDTH = typeof minWidth === "number" ? `${minWidth}px` : minWidth;
|
|
9
|
-
const mask = cx$1(css$1`
|
|
10
|
-
pointer-events: none;
|
|
11
|
-
|
|
12
|
-
position: absolute;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
inset: 0;
|
|
6
|
+
const maskHoverCls = "lobe-video-mask";
|
|
7
|
+
const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => {
|
|
8
|
+
const mask = css$1`
|
|
9
|
+
pointer-events: none;
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
position: absolute;
|
|
12
|
+
z-index: 1;
|
|
13
|
+
inset: 0;
|
|
14
|
+
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
opacity: 0;
|
|
19
|
+
background: ${cssVar$1.colorBgMask};
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
transition: opacity 0.2s ease;
|
|
22
|
+
`;
|
|
24
23
|
return {
|
|
25
|
-
borderless:
|
|
26
|
-
filled: cx
|
|
27
|
-
mask,
|
|
28
|
-
outlined:
|
|
24
|
+
borderless: staticStylish.variantBorderlessWithoutHover,
|
|
25
|
+
filled: cx(staticStylish.variantOutlinedWithoutHover, staticStylish.variantFilledWithoutHover),
|
|
26
|
+
mask: cx(maskHoverCls, mask),
|
|
27
|
+
outlined: staticStylish.variantOutlinedWithoutHover,
|
|
29
28
|
root: css$1`
|
|
30
|
-
|
|
29
|
+
position: relative;
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
overflow: hidden;
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
width: 100%;
|
|
34
|
+
min-width: var(--video-min-width, unset);
|
|
35
|
+
max-width: var(--video-max-width, 100%);
|
|
36
|
+
height: auto;
|
|
37
|
+
min-height: var(--video-min-height, unset);
|
|
38
|
+
max-height: var(--video-max-height, 100%);
|
|
39
|
+
margin-block: 0 1em;
|
|
40
|
+
border-radius: ${cssVar$1.borderRadius};
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
border-radius: ${token.borderRadius}px;
|
|
42
|
+
background: ${cssVar$1.colorFillTertiary};
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
44
|
+
&:hover {
|
|
45
|
+
[class*='${maskHoverCls}'] {
|
|
46
|
+
opacity: 1;
|
|
49
47
|
}
|
|
50
|
-
|
|
48
|
+
}
|
|
49
|
+
`,
|
|
51
50
|
video: css$1`
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
width: 100%;
|
|
53
|
+
`
|
|
55
54
|
};
|
|
56
55
|
});
|
|
56
|
+
const variants = cva(styles.root, {
|
|
57
|
+
defaultVariants: { variant: "filled" },
|
|
58
|
+
variants: { variant: {
|
|
59
|
+
filled: styles.filled,
|
|
60
|
+
outlined: styles.outlined,
|
|
61
|
+
borderless: styles.borderless
|
|
62
|
+
} }
|
|
63
|
+
});
|
|
57
64
|
|
|
58
65
|
//#endregion
|
|
59
|
-
export {
|
|
66
|
+
export { styles, variants };
|
|
60
67
|
//# sourceMappingURL=style.mjs.map
|
package/es/Video/style.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":["
|
|
1
|
+
{"version":3,"file":"style.mjs","names":["cssVar","lobeStaticStylish"],"sources":["../../src/Video/style.ts"],"sourcesContent":["import { createStaticStyles, cx } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { lobeStaticStylish } from '@/styles';\n\n// 用于 hover 选择器的类名标识\nexport const maskHoverCls = 'lobe-video-mask';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n const mask = css`\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: 0;\n background: ${cssVar.colorBgMask};\n\n transition: opacity 0.2s ease;\n `;\n\n return {\n borderless: lobeStaticStylish.variantBorderlessWithoutHover,\n filled: cx(\n lobeStaticStylish.variantOutlinedWithoutHover,\n lobeStaticStylish.variantFilledWithoutHover,\n ),\n mask: cx(maskHoverCls, mask),\n outlined: lobeStaticStylish.variantOutlinedWithoutHover,\n root: css`\n position: relative;\n\n overflow: hidden;\n\n width: 100%;\n min-width: var(--video-min-width, unset);\n max-width: var(--video-max-width, 100%);\n height: auto;\n min-height: var(--video-min-height, unset);\n max-height: var(--video-max-height, 100%);\n margin-block: 0 1em;\n border-radius: ${cssVar.borderRadius};\n\n background: ${cssVar.colorFillTertiary};\n\n &:hover {\n [class*='${maskHoverCls}'] {\n opacity: 1;\n }\n }\n `,\n video: css`\n cursor: pointer;\n width: 100%;\n `,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n variant: 'filled',\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 },\n },\n /* eslint-enable sort-keys-fix/sort-keys-fix */\n});\n"],"mappings":";;;;;AAMA,MAAa,eAAe;AAE5B,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;CAC5D,MAAM,OAAO,KAAG;;;;;;;;;;;kBAWAA,SAAO,YAAY;;;;AAKnC,QAAO;EACL,YAAYC,cAAkB;EAC9B,QAAQ,GACNA,cAAkB,6BAClBA,cAAkB,0BACnB;EACD,MAAM,GAAG,cAAc,KAAK;EAC5B,UAAUA,cAAkB;EAC5B,MAAM,KAAG;;;;;;;;;;;;uBAYUD,SAAO,aAAa;;oBAEvBA,SAAO,kBAAkB;;;mBAG1B,aAAa;;;;;EAK5B,OAAO,KAAG;;;;EAIX;EACD;AAEF,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB,EACf,SAAS,UACV;CAED,UAAU,EACR,SAAS;EACP,QAAQ,OAAO;EACf,UAAU,OAAO;EACjB,YAAY,OAAO;EACpB,EACF;CAEF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AuroraBackgroundProps } from "./type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react113 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/awesome/AuroraBackground/AuroraBackground.d.ts
|
|
5
|
-
declare const AuroraBackground:
|
|
5
|
+
declare const AuroraBackground: react113.NamedExoticComponent<AuroraBackgroundProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AuroraBackground };
|
|
8
8
|
//# sourceMappingURL=AuroraBackground.d.mts.map
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { styles } from "./style.mjs";
|
|
5
5
|
import { memo } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { cx, useThemeMode } from "antd-style";
|
|
7
8
|
|
|
8
9
|
//#region src/awesome/AuroraBackground/AuroraBackground.tsx
|
|
9
10
|
const AuroraBackground = memo(({ ref, classNames, styles: customStyles, children, ...rest }) => {
|
|
10
|
-
const {
|
|
11
|
+
const { isDarkMode } = useThemeMode();
|
|
11
12
|
return /* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
12
13
|
ref,
|
|
13
14
|
...rest,
|
|
14
15
|
children: [/* @__PURE__ */ jsx(FlexBasic_default, {
|
|
15
16
|
className: cx(styles.wrapper, classNames?.wrapper),
|
|
16
17
|
style: customStyles?.wrapper,
|
|
17
|
-
children: /* @__PURE__ */ jsx("div", { className: styles.
|
|
18
|
+
children: /* @__PURE__ */ jsx("div", { className: isDarkMode ? styles.bgDark : styles.bgLight })
|
|
18
19
|
}), /* @__PURE__ */ jsx(FlexBasic_default, {
|
|
19
20
|
className: classNames?.content,
|
|
20
21
|
flex: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuroraBackground.mjs","names":["Flexbox"],"sources":["../../../src/awesome/AuroraBackground/AuroraBackground.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\n\nimport {
|
|
1
|
+
{"version":3,"file":"AuroraBackground.mjs","names":["Flexbox"],"sources":["../../../src/awesome/AuroraBackground/AuroraBackground.tsx"],"sourcesContent":["'use client';\n\nimport { cx, useThemeMode } from 'antd-style';\nimport { memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\n\nimport { styles } from './style';\nimport type { AuroraBackgroundProps } from './type';\n\nconst AuroraBackground = memo<AuroraBackgroundProps>(\n ({ ref, classNames, styles: customStyles, children, ...rest }) => {\n const { isDarkMode } = useThemeMode();\n return (\n <Flexbox ref={ref} {...rest}>\n <Flexbox className={cx(styles.wrapper, classNames?.wrapper)} style={customStyles?.wrapper}>\n <div className={isDarkMode ? styles.bgDark : styles.bgLight} />\n </Flexbox>\n <Flexbox\n className={classNames?.content}\n flex={1}\n style={{ zIndex: 1, ...customStyles?.content }}\n width={'100%'}\n >\n {children}\n </Flexbox>\n </Flexbox>\n );\n },\n);\n\nAuroraBackground.displayName = 'AuroraBackground';\n\nexport default AuroraBackground;\n"],"mappings":";;;;;;;;;AAUA,MAAM,mBAAmB,MACtB,EAAE,KAAK,YAAY,QAAQ,cAAc,UAAU,GAAG,WAAW;CAChE,MAAM,EAAE,eAAe,cAAc;AACrC,QACE,qBAACA;EAAa;EAAK,GAAI;aACrB,oBAACA;GAAQ,WAAW,GAAG,OAAO,SAAS,YAAY,QAAQ;GAAE,OAAO,cAAc;aAChF,oBAAC,SAAI,WAAW,aAAa,OAAO,SAAS,OAAO,UAAW;IACvD,EACV,oBAACA;GACC,WAAW,YAAY;GACvB,MAAM;GACN,OAAO;IAAE,QAAQ;IAAG,GAAG,cAAc;IAAS;GAC9C,OAAO;GAEN;IACO;GACF;EAGf;AAED,iBAAiB,cAAc;AAE/B,+BAAe"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createStaticStyles, keyframes, responsive } from "antd-style";
|
|
2
2
|
|
|
3
3
|
//#region src/awesome/AuroraBackground/style.ts
|
|
4
|
-
const
|
|
5
|
-
const aurora = keyframes`
|
|
4
|
+
const aurora = keyframes`
|
|
6
5
|
0% {
|
|
7
6
|
background-position: 50% 50%, 50% 50%;
|
|
8
7
|
}
|
|
@@ -10,95 +9,135 @@ const useStyles = createStyles(({ cx: cx$1, isDarkMode, css: css$1, responsive }
|
|
|
10
9
|
background-position: 350% 50%, 350% 50%;
|
|
11
10
|
}
|
|
12
11
|
`;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
12
|
+
const darkBackground = `
|
|
13
|
+
background-image:
|
|
14
|
+
repeating-linear-gradient(
|
|
15
|
+
100deg,
|
|
16
|
+
rgb(0, 0, 0) 0%,
|
|
17
|
+
rgb(0, 0, 0) 7%,
|
|
18
|
+
rgba(0, 0, 0, 0%) 10%,
|
|
19
|
+
rgba(0, 0, 0, 0%) 12%,
|
|
20
|
+
rgb(0, 0, 0) 16%
|
|
21
|
+
),
|
|
22
|
+
repeating-linear-gradient(
|
|
23
|
+
100deg,
|
|
24
|
+
rgb(59, 130, 246) 10%,
|
|
25
|
+
rgb(165, 180, 252) 15%,
|
|
26
|
+
rgb(147, 197, 253) 20%,
|
|
27
|
+
rgb(221, 214, 254) 25%,
|
|
28
|
+
rgb(96, 165, 250) 30%
|
|
29
|
+
);
|
|
30
|
+
`;
|
|
31
|
+
const lightBackground = `
|
|
32
|
+
background-image:
|
|
33
|
+
repeating-linear-gradient(
|
|
34
|
+
100deg,
|
|
35
|
+
rgb(255, 255, 255) 0%,
|
|
36
|
+
rgb(255, 255, 255) 7%,
|
|
37
|
+
rgba(0, 0, 0, 0%) 10%,
|
|
38
|
+
rgba(0, 0, 0, 0%) 12%,
|
|
39
|
+
rgb(255, 255, 255) 16%
|
|
40
|
+
),
|
|
41
|
+
repeating-linear-gradient(
|
|
42
|
+
100deg,
|
|
43
|
+
rgb(59, 130, 246) 10%,
|
|
44
|
+
rgb(165, 180, 252) 15%,
|
|
45
|
+
rgb(147, 197, 253) 20%,
|
|
46
|
+
rgb(221, 214, 254) 25%,
|
|
47
|
+
rgb(96, 165, 250) 30%
|
|
48
|
+
);
|
|
49
|
+
`;
|
|
50
|
+
const styles = createStaticStyles(({ css: css$1 }) => ({
|
|
51
|
+
bgDark: css$1`
|
|
52
|
+
${darkBackground}
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
will-change: transform;
|
|
55
|
+
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset: -10px;
|
|
58
|
+
|
|
59
|
+
max-height: 100vh;
|
|
60
|
+
|
|
61
|
+
opacity: 0.3;
|
|
62
|
+
background-position:
|
|
63
|
+
50% 50%,
|
|
64
|
+
50% 50%;
|
|
65
|
+
background-size: 300%, 200%;
|
|
66
|
+
filter: blur(10px) invert(0);
|
|
67
|
+
|
|
68
|
+
animation: ${aurora} 100s linear infinite;
|
|
69
|
+
|
|
70
|
+
mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);
|
|
71
|
+
|
|
72
|
+
&::after {
|
|
73
|
+
${darkBackground}
|
|
74
|
+
position: absolute;
|
|
75
|
+
|
|
76
|
+
content: '';
|
|
77
|
+
|
|
78
|
+
inset: 0;
|
|
79
|
+
|
|
80
|
+
animation: ${aurora} 100s linear infinite;
|
|
81
|
+
|
|
82
|
+
mix-blend-mode: difference;
|
|
83
|
+
background-attachment: fixed;
|
|
84
|
+
background-size: 200%, 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
${responsive.sm} {
|
|
88
|
+
transform: scale(2);
|
|
89
|
+
max-height: 25vh;
|
|
90
|
+
}
|
|
91
|
+
`,
|
|
92
|
+
bgLight: css$1`
|
|
93
|
+
${lightBackground}
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
will-change: transform;
|
|
96
|
+
|
|
97
|
+
position: absolute;
|
|
98
|
+
inset: -10px;
|
|
99
|
+
|
|
100
|
+
max-height: 100vh;
|
|
101
|
+
|
|
102
|
+
opacity: 0.6;
|
|
103
|
+
background-position:
|
|
104
|
+
50% 50%,
|
|
105
|
+
50% 50%;
|
|
106
|
+
background-size: 300%, 200%;
|
|
107
|
+
filter: blur(10px) invert(1);
|
|
108
|
+
|
|
109
|
+
animation: ${aurora} 100s linear infinite;
|
|
110
|
+
|
|
111
|
+
mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);
|
|
112
|
+
|
|
113
|
+
&::after {
|
|
114
|
+
${lightBackground}
|
|
94
115
|
position: absolute;
|
|
95
|
-
|
|
116
|
+
|
|
117
|
+
content: '';
|
|
118
|
+
|
|
96
119
|
inset: 0;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
120
|
+
|
|
121
|
+
animation: ${aurora} 100s linear infinite;
|
|
122
|
+
|
|
123
|
+
mix-blend-mode: difference;
|
|
124
|
+
background-attachment: fixed;
|
|
125
|
+
background-size: 200%, 100%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
${responsive.sm} {
|
|
129
|
+
transform: scale(2);
|
|
130
|
+
max-height: 25vh;
|
|
131
|
+
}
|
|
132
|
+
`,
|
|
133
|
+
wrapper: css$1`
|
|
134
|
+
position: absolute;
|
|
135
|
+
z-index: 0;
|
|
136
|
+
inset: 0;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
`
|
|
139
|
+
}));
|
|
101
140
|
|
|
102
141
|
//#endregion
|
|
103
|
-
export {
|
|
142
|
+
export { styles };
|
|
104
143
|
//# sourceMappingURL=style.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":[
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/awesome/AuroraBackground/style.ts"],"sourcesContent":["import { createStaticStyles, keyframes, responsive } from 'antd-style';\n\nconst aurora = keyframes`\n 0% {\n background-position: 50% 50%, 50% 50%;\n }\n 100% {\n background-position: 350% 50%, 350% 50%;\n }\n`;\n\nconst darkBackground = `\n background-image:\n repeating-linear-gradient(\n 100deg,\n rgb(0, 0, 0) 0%,\n rgb(0, 0, 0) 7%,\n rgba(0, 0, 0, 0%) 10%,\n rgba(0, 0, 0, 0%) 12%,\n rgb(0, 0, 0) 16%\n ),\n repeating-linear-gradient(\n 100deg,\n rgb(59, 130, 246) 10%,\n rgb(165, 180, 252) 15%,\n rgb(147, 197, 253) 20%,\n rgb(221, 214, 254) 25%,\n rgb(96, 165, 250) 30%\n );\n`;\n\nconst lightBackground = `\n background-image:\n repeating-linear-gradient(\n 100deg,\n rgb(255, 255, 255) 0%,\n rgb(255, 255, 255) 7%,\n rgba(0, 0, 0, 0%) 10%,\n rgba(0, 0, 0, 0%) 12%,\n rgb(255, 255, 255) 16%\n ),\n repeating-linear-gradient(\n 100deg,\n rgb(59, 130, 246) 10%,\n rgb(165, 180, 252) 15%,\n rgb(147, 197, 253) 20%,\n rgb(221, 214, 254) 25%,\n rgb(96, 165, 250) 30%\n );\n`;\n\nexport const styles = createStaticStyles(({ css }) => ({\n bgDark: css`\n ${darkBackground}\n pointer-events: none;\n will-change: transform;\n\n position: absolute;\n inset: -10px;\n\n max-height: 100vh;\n\n opacity: 0.3;\n background-position:\n 50% 50%,\n 50% 50%;\n background-size: 300%, 200%;\n filter: blur(10px) invert(0);\n\n animation: ${aurora} 100s linear infinite;\n\n mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);\n\n &::after {\n ${darkBackground}\n position: absolute;\n\n content: '';\n\n inset: 0;\n\n animation: ${aurora} 100s linear infinite;\n\n mix-blend-mode: difference;\n background-attachment: fixed;\n background-size: 200%, 100%;\n }\n\n ${responsive.sm} {\n transform: scale(2);\n max-height: 25vh;\n }\n `,\n\n bgLight: css`\n ${lightBackground}\n pointer-events: none;\n will-change: transform;\n\n position: absolute;\n inset: -10px;\n\n max-height: 100vh;\n\n opacity: 0.6;\n background-position:\n 50% 50%,\n 50% 50%;\n background-size: 300%, 200%;\n filter: blur(10px) invert(1);\n\n animation: ${aurora} 100s linear infinite;\n\n mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);\n\n &::after {\n ${lightBackground}\n position: absolute;\n\n content: '';\n\n inset: 0;\n\n animation: ${aurora} 100s linear infinite;\n\n mix-blend-mode: difference;\n background-attachment: fixed;\n background-size: 200%, 100%;\n }\n\n ${responsive.sm} {\n transform: scale(2);\n max-height: 25vh;\n }\n `,\n\n wrapper: css`\n position: absolute;\n z-index: 0;\n inset: 0;\n overflow: hidden;\n `,\n}));\n"],"mappings":";;;AAEA,MAAM,SAAS,SAAS;;;;;;;;AASxB,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;AAoBvB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;AAoBxB,MAAa,SAAS,oBAAoB,EAAE,kBAAW;CACrD,QAAQ,KAAG;MACP,eAAe;;;;;;;;;;;;;;;;iBAgBJ,OAAO;;;;;QAKhB,eAAe;;;;;;;mBAOJ,OAAO;;;;;;;MAOpB,WAAW,GAAG;;;;;CAMlB,SAAS,KAAG;MACR,gBAAgB;;;;;;;;;;;;;;;;iBAgBL,OAAO;;;;;QAKhB,gBAAgB;;;;;;;mBAOL,OAAO;;;;;;;MAOpB,WAAW,GAAG;;;;;CAMlB,SAAS,KAAG;;;;;;CAMb,EAAE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ButtonProps } from "../../Button/type.mjs";
|
|
2
2
|
import "../../Button/index.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react115 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/awesome/BottomGradientButton/BottomGradientButton.d.ts
|
|
6
|
-
declare const BottomGradientButton:
|
|
6
|
+
declare const BottomGradientButton: react115.NamedExoticComponent<ButtonProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { BottomGradientButton };
|
|
9
9
|
//# sourceMappingURL=BottomGradientButton.d.mts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import Button_default from "../../Button/Button.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { styles } from "./style.mjs";
|
|
5
5
|
import { memo } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { cx } from "antd-style";
|
|
7
8
|
|
|
8
9
|
//#region src/awesome/BottomGradientButton/BottomGradientButton.tsx
|
|
9
10
|
const BottomGradientButton = memo(({ className, children, style, ref, ...rest }) => {
|
|
10
|
-
const { cx, styles } = useStyles();
|
|
11
11
|
return /* @__PURE__ */ jsx(Button_default, {
|
|
12
12
|
className: cx(styles, className),
|
|
13
13
|
ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomGradientButton.mjs","names":["Button"],"sources":["../../../src/awesome/BottomGradientButton/BottomGradientButton.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport Button from '@/Button';\n\nimport {
|
|
1
|
+
{"version":3,"file":"BottomGradientButton.mjs","names":["Button"],"sources":["../../../src/awesome/BottomGradientButton/BottomGradientButton.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport Button from '@/Button';\n\nimport { styles } from './style';\nimport type { BottomGradientButtonProps } from './type';\n\nconst BottomGradientButton = memo<BottomGradientButtonProps>(\n ({ className, children, style, ref, ...rest }) => {\n return (\n <Button\n className={cx(styles, className)}\n ref={ref}\n shape={'round'}\n style={{\n paddingInline: 16,\n width: 'unset',\n ...style,\n }}\n variant={'filled'}\n {...rest}\n >\n {children}\n </Button>\n );\n },\n);\n\nBottomGradientButton.displayName = 'BottomGradientButton';\n\nexport default BottomGradientButton;\n"],"mappings":";;;;;;;;;AAUA,MAAM,uBAAuB,MAC1B,EAAE,WAAW,UAAU,OAAO,KAAK,GAAG,WAAW;AAChD,QACE,oBAACA;EACC,WAAW,GAAG,QAAQ,UAAU;EAC3B;EACL,OAAO;EACP,OAAO;GACL,eAAe;GACf,OAAO;GACP,GAAG;GACJ;EACD,SAAS;EACT,GAAI;EAEH;GACM;EAGd;AAED,qBAAqB,cAAc;AAEnC,mCAAe"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { staticStylish } from "../../styles/theme/customStylishStatic.mjs";
|
|
2
|
+
import { createStaticStyles, cx } from "antd-style";
|
|
2
3
|
|
|
3
4
|
//#region src/awesome/BottomGradientButton/style.ts
|
|
4
|
-
const
|
|
5
|
+
const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => cx(staticStylish.resetLinkColor, css$1`
|
|
5
6
|
overflow: hidden;
|
|
6
7
|
font-weight: bold;
|
|
7
|
-
color: ${
|
|
8
|
+
color: ${cssVar$1.colorTextSecondary};
|
|
8
9
|
transition: all 0.2s ease-in-out;
|
|
9
10
|
|
|
10
11
|
&::before {
|
|
@@ -19,7 +20,7 @@ const useStyles = createStyles(({ cx: cx$1, stylish, css: css$1, token }) => cx$
|
|
|
19
20
|
height: 1px;
|
|
20
21
|
|
|
21
22
|
opacity: 0;
|
|
22
|
-
background-image: linear-gradient(to right, transparent, ${
|
|
23
|
+
background-image: linear-gradient(to right, transparent, ${cssVar$1.gold}, transparent);
|
|
23
24
|
|
|
24
25
|
transition: all 0.2s ease-in-out;
|
|
25
26
|
}
|
|
@@ -32,5 +33,5 @@ const useStyles = createStyles(({ cx: cx$1, stylish, css: css$1, token }) => cx$
|
|
|
32
33
|
`));
|
|
33
34
|
|
|
34
35
|
//#endregion
|
|
35
|
-
export {
|
|
36
|
+
export { styles };
|
|
36
37
|
//# sourceMappingURL=style.mjs.map
|