@lobehub/ui 1.171.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/A/index.d.ts +5 -3
- package/es/A/index.js +7 -10
- package/es/ActionIcon/ActionIcon.d.ts +4 -0
- package/es/ActionIcon/ActionIcon.js +158 -0
- package/es/ActionIcon/components/utils.d.ts +5 -0
- package/es/ActionIcon/components/utils.js +47 -0
- package/es/ActionIcon/index.d.ts +2 -70
- package/es/ActionIcon/index.js +1 -130
- package/es/ActionIcon/style.d.ts +13 -9
- package/es/ActionIcon/style.js +17 -14
- package/es/ActionIcon/type.d.ts +25 -0
- package/es/ActionIconGroup/ActionIconGroup.d.ts +4 -0
- package/es/ActionIconGroup/ActionIconGroup.js +135 -0
- package/es/ActionIconGroup/index.d.ts +2 -57
- package/es/ActionIconGroup/index.js +1 -88
- package/es/ActionIconGroup/style.d.ts +8 -4
- package/es/ActionIconGroup/style.js +10 -6
- package/es/ActionIconGroup/type.d.ts +19 -0
- package/es/Alert/Alert.d.ts +4 -0
- package/es/Alert/Alert.js +244 -0
- package/es/Alert/index.d.ts +2 -18
- package/es/Alert/index.js +1 -146
- package/es/Alert/style.d.ts +6 -5
- package/es/Alert/style.js +15 -13
- package/es/Alert/type.d.ts +22 -0
- package/es/AutoComplete/Select.d.ts +4 -0
- package/es/AutoComplete/Select.js +56 -0
- package/es/AutoComplete/index.d.ts +2 -0
- package/es/AutoComplete/index.js +1 -0
- package/es/AutoComplete/style.d.ts +7 -0
- package/es/AutoComplete/style.js +15 -0
- package/es/AutoComplete/type.d.ts +4 -0
- package/es/AutoComplete/type.js +1 -0
- package/es/Avatar/Avatar.d.ts +4 -0
- package/es/Avatar/Avatar.js +136 -0
- package/es/Avatar/AvatarGroup/index.d.ts +4 -0
- package/es/Avatar/AvatarGroup/index.js +92 -0
- package/es/Avatar/AvatarGroup/style.d.ts +4 -0
- package/es/Avatar/AvatarGroup/style.js +12 -0
- package/es/Avatar/index.d.ts +9 -28
- package/es/Avatar/index.js +6 -80
- package/es/Avatar/style.d.ts +7 -6
- package/es/Avatar/style.js +10 -10
- package/es/Avatar/type.d.ts +41 -0
- package/es/Avatar/type.js +1 -0
- package/es/Block/Block.d.ts +4 -0
- package/es/Block/Block.js +87 -0
- package/es/Block/index.d.ts +2 -0
- package/es/Block/index.js +1 -0
- package/es/Block/style.d.ts +12 -0
- package/es/Block/style.js +20 -0
- package/es/Block/type.d.ts +9 -0
- package/es/Block/type.js +1 -0
- package/es/Burger/Burger.d.ts +4 -0
- package/es/Burger/Burger.js +83 -0
- package/es/Burger/index.d.ts +2 -39
- package/es/Burger/index.js +1 -79
- package/es/Burger/type.d.ts +21 -0
- package/es/Burger/type.js +1 -0
- package/es/Button/Button.d.ts +4 -0
- package/es/Button/Button.js +99 -0
- package/es/Button/index.d.ts +2 -0
- package/es/Button/index.js +1 -0
- package/es/Button/style.d.ts +7 -0
- package/es/Button/style.js +16 -0
- package/es/Button/type.d.ts +10 -0
- package/es/Button/type.js +1 -0
- package/es/CodeEditor/CodeEditor.d.ts +4 -0
- package/es/CodeEditor/CodeEditor.js +114 -0
- package/es/CodeEditor/index.d.ts +2 -52
- package/es/CodeEditor/index.js +1 -429
- package/es/CodeEditor/style.d.ts +5 -6
- package/es/CodeEditor/style.js +10 -12
- package/es/CodeEditor/type.d.ts +21 -0
- package/es/CodeEditor/type.js +1 -0
- package/es/Collapse/Collapse.d.ts +4 -0
- package/es/Collapse/Collapse.js +152 -0
- package/es/Collapse/index.d.ts +2 -14
- package/es/Collapse/index.js +2 -61
- package/es/Collapse/style.d.ts +11 -11
- package/es/Collapse/style.js +19 -22
- package/es/Collapse/type.d.ts +29 -0
- package/es/Collapse/type.js +1 -0
- package/es/ColorSwatches/ColorSwatches.d.ts +4 -0
- package/es/ColorSwatches/ColorSwatches.js +129 -0
- package/es/ColorSwatches/index.d.ts +2 -22
- package/es/ColorSwatches/index.js +2 -140
- package/es/ColorSwatches/type.d.ts +23 -0
- package/es/ColorSwatches/type.js +1 -0
- package/es/ConfigProvider/index.js +3 -19
- package/es/CopyButton/CopyButton.d.ts +4 -0
- package/es/CopyButton/CopyButton.js +64 -0
- package/es/CopyButton/index.d.ts +2 -10
- package/es/CopyButton/index.js +2 -67
- package/es/CopyButton/type.d.ts +4 -0
- package/es/CopyButton/type.js +1 -0
- package/es/DatePicker/DatePicker.d.ts +4 -0
- package/es/DatePicker/DatePicker.js +56 -0
- package/es/DatePicker/index.d.ts +2 -0
- package/es/DatePicker/index.js +1 -0
- package/es/DatePicker/style.d.ts +7 -0
- package/es/DatePicker/style.js +14 -0
- package/es/DatePicker/type.d.ts +4 -0
- package/es/DatePicker/type.js +1 -0
- package/es/DraggablePanel/DraggablePanel.d.ts +4 -0
- package/es/DraggablePanel/DraggablePanel.js +340 -0
- package/es/DraggablePanel/components/DraggablePanelBody.js +1 -0
- package/es/DraggablePanel/components/DraggablePanelContainer.js +1 -0
- package/es/DraggablePanel/components/DraggablePanelFooter.js +1 -0
- package/es/DraggablePanel/components/DraggablePanelHeader.js +3 -8
- package/es/DraggablePanel/components/style.d.ts +1 -0
- package/es/DraggablePanel/components/style.js +6 -5
- package/es/DraggablePanel/index.d.ts +18 -98
- package/es/DraggablePanel/index.js +15 -250
- package/es/DraggablePanel/style.d.ts +15 -9
- package/es/DraggablePanel/style.js +65 -28
- package/es/DraggablePanel/type.d.ts +37 -0
- package/es/DraggablePanel/type.js +1 -0
- package/es/DraggablePanel/utils.d.ts +2 -2
- package/es/Drawer/Drawer.d.ts +4 -0
- package/es/Drawer/Drawer.js +176 -0
- package/es/Drawer/index.d.ts +2 -26
- package/es/Drawer/index.js +1 -174
- package/es/Drawer/type.d.ts +25 -0
- package/es/Drawer/type.js +1 -0
- package/es/Dropdown/Dropdown.d.ts +4 -0
- package/es/Dropdown/Dropdown.js +44 -0
- package/es/Dropdown/index.d.ts +2 -0
- package/es/Dropdown/index.js +1 -0
- package/es/Dropdown/type.d.ts +8 -0
- package/es/Dropdown/type.js +1 -0
- package/es/EditableText/ControlInput.d.ts +16 -0
- package/es/{components → EditableText}/ControlInput.js +56 -43
- package/es/EditableText/EditableText.d.ts +4 -0
- package/es/EditableText/EditableText.js +126 -0
- package/es/EditableText/index.d.ts +2 -9
- package/es/EditableText/index.js +1 -61
- package/es/EditableText/type.d.ts +19 -0
- package/es/EditableText/type.js +1 -0
- package/es/EmojiPicker/AvatarUploader.js +14 -17
- package/es/EmojiPicker/EmojiPicker.d.ts +4 -0
- package/es/EmojiPicker/EmojiPicker.js +212 -0
- package/es/EmojiPicker/index.d.ts +2 -47
- package/es/EmojiPicker/index.js +1 -264
- package/es/EmojiPicker/style.d.ts +1 -2
- package/es/EmojiPicker/style.js +5 -6
- package/es/EmojiPicker/type.d.ts +44 -0
- package/es/EmojiPicker/type.js +1 -0
- package/es/FileTypeIcon/FileTypeIcon.d.ts +4 -0
- package/es/FileTypeIcon/FileTypeIcon.js +84 -0
- package/es/FileTypeIcon/components/FileIcon.d.ts +12 -0
- package/es/{Swatches/index.js → FileTypeIcon/components/FileIcon.js} +40 -50
- package/es/FileTypeIcon/components/FolderIcon.d.ts +12 -0
- package/es/FileTypeIcon/components/FolderIcon.js +52 -0
- package/es/FileTypeIcon/index.d.ts +2 -13
- package/es/FileTypeIcon/index.js +1 -123
- package/es/{mobile/MobileNavBar → FileTypeIcon}/style.d.ts +1 -3
- package/es/FileTypeIcon/style.js +11 -0
- package/es/FileTypeIcon/type.d.ts +13 -0
- package/es/FileTypeIcon/type.js +1 -0
- package/es/FluentEmoji/FluentEmoji.d.ts +4 -0
- package/es/FluentEmoji/FluentEmoji.js +78 -0
- package/es/FluentEmoji/index.d.ts +2 -22
- package/es/FluentEmoji/index.js +1 -68
- package/es/FluentEmoji/type.d.ts +10 -0
- package/es/FluentEmoji/type.js +1 -0
- package/es/FluentEmoji/utils.d.ts +1 -1
- package/es/FluentEmoji/utils.js +1 -1
- package/es/FontLoader/index.d.ts +0 -3
- package/es/FontLoader/index.js +19 -4
- package/es/Footer/Footer.d.ts +4 -0
- package/es/Footer/Footer.js +46 -0
- package/es/Footer/index.d.ts +2 -24
- package/es/Footer/index.js +1 -29
- package/es/Footer/style.d.ts +1 -1
- package/es/Footer/style.js +2 -2
- package/es/Footer/type.d.ts +9 -0
- package/es/Footer/type.js +1 -0
- package/es/Form/Form.d.ts +4 -0
- package/es/Form/Form.js +184 -0
- package/es/Form/components/FormDivider.d.ts +3 -4
- package/es/Form/components/FormDivider.js +23 -7
- package/es/Form/components/FormFlatGroup.d.ts +1 -5
- package/es/Form/components/FormFlatGroup.js +26 -13
- package/es/Form/components/FormFooter.d.ts +1 -3
- package/es/Form/components/FormFooter.js +7 -16
- package/es/Form/components/FormGroup.d.ts +2 -42
- package/es/Form/components/FormGroup.js +56 -54
- package/es/Form/components/FormItem.d.ts +1 -20
- package/es/Form/components/FormItem.js +47 -34
- package/es/Form/components/FormProvider.js +5 -3
- package/es/Form/components/FormSubmitFooter.d.ts +2 -19
- package/es/Form/components/FormSubmitFooter.js +35 -39
- package/es/Form/components/FormTitle.d.ts +2 -11
- package/es/Form/components/FormTitle.js +43 -40
- package/es/Form/components/merge.d.ts +19 -0
- package/es/Form/components/merge.js +112 -0
- package/es/Form/index.d.ts +12 -18
- package/es/Form/index.js +8 -142
- package/es/Form/style.d.ts +35 -2
- package/es/Form/style.js +67 -4
- package/es/Form/type.d.ts +110 -0
- package/es/Form/type.js +1 -0
- package/es/FormModal/FormModal.d.ts +4 -0
- package/es/FormModal/FormModal.js +143 -0
- package/es/FormModal/index.d.ts +2 -19
- package/es/FormModal/index.js +1 -138
- package/es/FormModal/type.d.ts +20 -0
- package/es/FormModal/type.js +1 -0
- package/es/Grid/Grid.d.ts +4 -0
- package/es/Grid/Grid.js +43 -0
- package/es/Grid/index.d.ts +2 -16
- package/es/Grid/index.js +1 -53
- package/es/Grid/style.d.ts +5 -0
- package/es/Grid/style.js +11 -0
- package/es/Grid/type.d.ts +8 -0
- package/es/Grid/type.js +1 -0
- package/es/GuideCard/GuideCard.d.ts +4 -0
- package/es/GuideCard/GuideCard.js +116 -0
- package/es/GuideCard/index.d.ts +2 -0
- package/es/GuideCard/index.js +1 -0
- package/es/{EmptyCard → GuideCard}/style.d.ts +7 -2
- package/es/GuideCard/style.js +22 -0
- package/es/GuideCard/type.d.ts +31 -0
- package/es/GuideCard/type.js +1 -0
- package/es/Header/Header.d.ts +4 -0
- package/es/Header/Header.js +102 -0
- package/es/Header/index.d.ts +2 -42
- package/es/Header/index.js +1 -100
- package/es/Header/style.d.ts +1 -2
- package/es/Header/style.js +5 -7
- package/es/Header/type.d.ts +14 -0
- package/es/Header/type.js +1 -0
- package/es/Highlighter/FullFeatured.d.ts +5 -3
- package/es/Highlighter/FullFeatured.js +90 -47
- package/es/Highlighter/Highlighter.d.ts +4 -0
- package/es/Highlighter/Highlighter.js +130 -0
- package/es/Highlighter/SyntaxHighlighter/index.d.ts +1 -6
- package/es/Highlighter/SyntaxHighlighter/index.js +61 -31
- package/es/Highlighter/SyntaxHighlighter/style.d.ts +4 -1
- package/es/Highlighter/SyntaxHighlighter/style.js +8 -7
- package/es/Highlighter/const.d.ts +7 -0
- package/es/Highlighter/const.js +17 -0
- package/es/Highlighter/index.d.ts +4 -6
- package/es/Highlighter/index.js +2 -99
- package/es/Highlighter/style.d.ts +15 -5
- package/es/Highlighter/style.js +22 -12
- package/es/Highlighter/type.d.ts +18 -34
- package/es/Hotkey/Hotkey.d.ts +4 -0
- package/es/Hotkey/Hotkey.js +197 -0
- package/es/Hotkey/const.d.ts +34 -0
- package/es/Hotkey/const.js +49 -0
- package/es/Hotkey/index.d.ts +3 -20
- package/es/Hotkey/index.js +2 -165
- package/es/Hotkey/style.d.ts +7 -1
- package/es/Hotkey/style.js +14 -5
- package/es/Hotkey/type.d.ts +15 -34
- package/es/Hotkey/type.js +1 -49
- package/es/Hotkey/utils.js +1 -1
- package/es/HotkeyInput/HotkeyInput.d.ts +4 -0
- package/es/HotkeyInput/HotkeyInput.js +322 -0
- package/es/HotkeyInput/index.d.ts +2 -27
- package/es/HotkeyInput/index.js +2 -282
- package/es/HotkeyInput/style.d.ts +9 -7
- package/es/HotkeyInput/style.js +15 -14
- package/es/HotkeyInput/type.d.ts +26 -0
- package/es/HotkeyInput/type.js +1 -0
- package/es/Icon/Icon.d.ts +4 -0
- package/es/Icon/Icon.js +86 -0
- package/es/Icon/components/IconProvider.d.ts +9 -0
- package/es/Icon/components/IconProvider.js +17 -0
- package/es/Icon/components/utils.d.ts +8 -0
- package/es/Icon/components/utils.js +45 -0
- package/es/Icon/index.d.ts +3 -28
- package/es/Icon/index.js +2 -55
- package/es/Icon/type.d.ts +15 -0
- package/es/Icon/type.js +1 -0
- package/es/Image/Image.d.ts +4 -0
- package/es/Image/Image.js +122 -0
- package/es/Image/PreviewGroup.d.ts +4 -0
- package/es/Image/{ImageGallery.js → PreviewGroup.js} +7 -6
- package/es/Image/{Preview.d.ts → components/Preview.d.ts} +1 -1
- package/es/Image/components/Toolbar.d.ts +10 -0
- package/es/Image/components/Toolbar.js +56 -0
- package/es/Image/components/usePreview.d.ts +4 -0
- package/es/Image/components/usePreview.js +84 -0
- package/es/Image/components/usePreviewGroup.d.ts +4 -0
- package/es/Image/components/usePreviewGroup.js +84 -0
- package/es/Image/index.d.ts +9 -19
- package/es/Image/index.js +6 -95
- package/es/Image/style.d.ts +10 -4
- package/es/Image/style.js +21 -12
- package/es/Image/type.d.ts +38 -0
- package/es/Image/type.js +1 -0
- package/es/ImageSelect/ImageSelect.d.ts +4 -0
- package/es/{SelectWithImg/index.js → ImageSelect/ImageSelect.js} +25 -24
- package/es/ImageSelect/index.d.ts +2 -0
- package/es/ImageSelect/index.js +2 -0
- package/es/{SelectWithImg → ImageSelect}/styles.d.ts +1 -2
- package/es/ImageSelect/styles.js +15 -0
- package/es/{SelectWithImg/index.d.ts → ImageSelect/type.d.ts} +9 -9
- package/es/ImageSelect/type.js +1 -0
- package/es/Img/index.d.ts +6 -5
- package/es/Img/index.js +11 -13
- package/es/Input/Input.d.ts +4 -0
- package/es/Input/Input.js +58 -0
- package/es/Input/InputNumber.d.ts +4 -0
- package/es/Input/InputNumber.js +58 -0
- package/es/Input/InputOPT.d.ts +4 -0
- package/es/Input/InputOPT.js +58 -0
- package/es/Input/InputPassword.d.ts +4 -0
- package/es/Input/InputPassword.js +58 -0
- package/es/Input/TextArea.d.ts +4 -0
- package/es/Input/TextArea.js +64 -0
- package/es/Input/index.d.ts +6 -24
- package/es/Input/index.js +5 -54
- package/es/Input/style.d.ts +11 -5
- package/es/Input/style.js +14 -7
- package/es/Input/type.d.ts +26 -0
- package/es/Input/type.js +1 -0
- package/es/Layout/Layout.d.ts +4 -0
- package/es/Layout/Layout.js +80 -0
- package/es/Layout/components/LayoutFooter.d.ts +3 -0
- package/es/Layout/components/LayoutFooter.js +29 -0
- package/es/Layout/components/LayoutHeader.d.ts +4 -0
- package/es/Layout/components/LayoutHeader.js +34 -0
- package/es/Layout/components/LayoutMain.d.ts +3 -0
- package/es/{TabsNav/index.js → Layout/components/LayoutMain.js} +14 -12
- package/es/Layout/components/LayoutSidebar.d.ts +4 -0
- package/es/Layout/components/LayoutSidebar.js +34 -0
- package/es/Layout/components/LayoutSidebarInner.d.ts +4 -0
- package/es/Layout/components/LayoutSidebarInner.js +30 -0
- package/es/Layout/components/LayoutToc.d.ts +4 -0
- package/es/Layout/components/LayoutToc.js +34 -0
- package/es/Layout/index.d.ts +24 -65
- package/es/Layout/index.js +21 -184
- package/es/Layout/style.d.ts +1 -2
- package/es/Layout/style.js +12 -14
- package/es/Layout/type.d.ts +28 -0
- package/es/Layout/type.js +1 -0
- package/es/List/List.d.ts +4 -0
- package/es/List/List.js +63 -0
- package/es/List/ListItem/index.d.ts +3 -20
- package/es/List/ListItem/index.js +51 -39
- package/es/List/ListItem/style.d.ts +3 -3
- package/es/List/ListItem/style.js +14 -11
- package/es/List/index.d.ts +10 -5
- package/es/List/index.js +5 -6
- package/es/List/type.d.ts +50 -0
- package/es/List/type.js +1 -0
- package/es/Markdown/Markdown.d.ts +4 -0
- package/es/Markdown/Markdown.js +202 -0
- package/es/Markdown/Typography.d.ts +3 -9
- package/es/Markdown/Typography.js +9 -5
- package/es/Markdown/index.d.ts +3 -44
- package/es/Markdown/index.js +2 -234
- package/es/Markdown/markdown.style.d.ts +4 -1
- package/es/Markdown/markdown.style.js +5 -2
- package/es/Markdown/type.d.ts +49 -0
- package/es/Markdown/type.js +1 -0
- package/es/Markdown/utils.d.ts +15 -0
- package/es/Markdown/utils.js +55 -0
- package/es/MaskShadow/MaskShadow.d.ts +4 -0
- package/es/MaskShadow/MaskShadow.js +54 -0
- package/es/MaskShadow/index.d.ts +2 -0
- package/es/MaskShadow/index.js +1 -0
- package/es/MaskShadow/style.d.ts +7 -0
- package/es/MaskShadow/style.js +14 -0
- package/es/MaskShadow/type.d.ts +6 -0
- package/es/MaskShadow/type.js +1 -0
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.ts +4 -0
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +86 -0
- package/es/MaterialFileTypeIcon/icon-map.json +1 -3713
- package/es/MaterialFileTypeIcon/index.d.ts +2 -12
- package/es/MaterialFileTypeIcon/index.js +1 -85
- package/es/MaterialFileTypeIcon/type.d.ts +13 -0
- package/es/MaterialFileTypeIcon/type.js +1 -0
- package/es/MaterialFileTypeIcon/utils.d.ts +5 -6
- package/es/Menu/Menu.d.ts +4 -0
- package/es/Menu/Menu.js +102 -0
- package/es/Menu/index.d.ts +3 -0
- package/es/Menu/index.js +2 -0
- package/es/{TabsNav → Menu}/style.d.ts +5 -1
- package/es/Menu/style.js +18 -0
- package/es/Menu/type.d.ts +32 -0
- package/es/Menu/type.js +1 -0
- package/es/Menu/utils.d.ts +3 -0
- package/es/Menu/utils.js +47 -0
- package/es/Mermaid/FullFeatured.js +80 -29
- package/es/Mermaid/Mermaid.d.ts +5 -0
- package/es/Mermaid/Mermaid.js +130 -0
- package/es/Mermaid/SyntaxMermaid/index.d.ts +4 -0
- package/es/Mermaid/SyntaxMermaid/index.js +87 -0
- package/es/Mermaid/const.d.ts +7 -0
- package/es/Mermaid/const.js +24 -0
- package/es/Mermaid/index.d.ts +4 -5
- package/es/Mermaid/index.js +3 -96
- package/es/Mermaid/type.d.ts +16 -5
- package/es/Modal/Modal.d.ts +4 -0
- package/es/Modal/Modal.js +173 -0
- package/es/Modal/index.d.ts +2 -13
- package/es/Modal/index.js +1 -168
- package/es/Modal/style.d.ts +2 -4
- package/es/Modal/style.js +6 -8
- package/es/Modal/type.d.ts +9 -0
- package/es/Modal/type.js +1 -0
- package/es/ScrollShadow/ScrollShadow.d.ts +4 -0
- package/es/ScrollShadow/ScrollShadow.js +153 -0
- package/es/ScrollShadow/index.d.ts +2 -0
- package/es/ScrollShadow/index.js +1 -0
- package/es/ScrollShadow/style.d.ts +12 -0
- package/es/ScrollShadow/style.js +21 -0
- package/es/ScrollShadow/type.d.ts +15 -0
- package/es/ScrollShadow/type.js +1 -0
- package/es/ScrollShadow/useScrollOverflow.d.ts +21 -0
- package/es/ScrollShadow/useScrollOverflow.js +83 -0
- package/es/SearchBar/SearchBar.d.ts +4 -0
- package/es/SearchBar/SearchBar.js +126 -0
- package/es/{SearchResultCard → SearchBar/components/SearchResultCard}/index.d.ts +1 -5
- package/es/{EmptyCard → SearchBar/components/SearchResultCard}/index.js +54 -52
- package/es/SearchBar/components/SearchResultCard/style.d.ts +5 -0
- package/es/SearchBar/components/SearchResultCard/style.js +12 -0
- package/es/SearchBar/components/SearchResultCards/index.d.ts +4 -0
- package/es/SearchBar/components/SearchResultCards/index.js +39 -0
- package/es/SearchBar/index.d.ts +3 -34
- package/es/SearchBar/index.js +2 -132
- package/es/SearchBar/style.d.ts +0 -1
- package/es/SearchBar/style.js +3 -4
- package/es/SearchBar/type.d.ts +38 -0
- package/es/SearchBar/type.js +1 -0
- package/es/Segmented/Segmented.d.ts +4 -0
- package/es/Segmented/Segmented.js +69 -0
- package/es/Segmented/index.d.ts +2 -0
- package/es/Segmented/index.js +1 -0
- package/es/Segmented/style.d.ts +8 -0
- package/es/Segmented/style.js +16 -0
- package/es/Segmented/type.d.ts +11 -0
- package/es/Segmented/type.js +1 -0
- package/es/Select/Select.d.ts +4 -0
- package/es/Select/Select.js +70 -0
- package/es/Select/index.d.ts +2 -0
- package/es/Select/index.js +1 -0
- package/es/Select/style.d.ts +7 -0
- package/es/Select/style.js +16 -0
- package/es/Select/type.d.ts +9 -0
- package/es/Select/type.js +1 -0
- package/es/SideNav/SideNav.d.ts +4 -0
- package/es/SideNav/SideNav.js +51 -0
- package/es/SideNav/index.d.ts +2 -18
- package/es/SideNav/index.js +1 -50
- package/es/SideNav/style.js +1 -1
- package/es/SideNav/type.d.ts +7 -0
- package/es/SideNav/type.js +1 -0
- package/es/SliderWithInput/SliderWithInput.d.ts +4 -0
- package/es/SliderWithInput/SliderWithInput.js +95 -0
- package/es/SliderWithInput/index.d.ts +2 -11
- package/es/SliderWithInput/index.js +1 -77
- package/es/SliderWithInput/type.d.ts +18 -0
- package/es/SliderWithInput/type.js +1 -0
- package/es/Snippet/Snippet.d.ts +4 -0
- package/es/Snippet/Snippet.js +82 -0
- package/es/Snippet/index.d.ts +2 -34
- package/es/Snippet/index.js +1 -54
- package/es/Snippet/style.d.ts +7 -2
- package/es/Snippet/style.js +8 -5
- package/es/Snippet/type.d.ts +12 -0
- package/es/Snippet/type.js +1 -0
- package/es/SortableList/SortableList.d.ts +11 -0
- package/es/{Image/usePreview.js → SortableList/SortableList.js} +76 -86
- package/es/SortableList/components/DragHandle.d.ts +4 -0
- package/es/SortableList/{DragHandle.js → components/DragHandle.js} +9 -6
- package/es/SortableList/{SortableItem.d.ts → components/SortableItem.d.ts} +1 -0
- package/es/SortableList/{SortableItem.js → components/SortableItem.js} +39 -5
- package/es/SortableList/{SortableOverlay.js → components/SortableOverlay.js} +3 -0
- package/es/SortableList/index.d.ts +2 -20
- package/es/SortableList/index.js +1 -98
- package/es/SortableList/style.d.ts +4 -0
- package/es/SortableList/style.js +9 -3
- package/es/SortableList/type.d.ts +12 -0
- package/es/SortableList/type.js +1 -0
- package/es/Tabs/Tabs.d.ts +4 -0
- package/es/Tabs/Tabs.js +74 -0
- package/es/Tabs/index.d.ts +2 -0
- package/es/Tabs/index.js +1 -0
- package/es/Tabs/style.d.ts +9 -0
- package/es/Tabs/style.js +17 -0
- package/es/Tabs/type.d.ts +5 -0
- package/es/Tabs/type.js +1 -0
- package/es/Tag/Tag.d.ts +4 -0
- package/es/Tag/Tag.js +104 -0
- package/es/Tag/index.d.ts +2 -8
- package/es/Tag/index.js +1 -50
- package/es/Tag/styles.d.ts +8 -0
- package/es/Tag/styles.js +17 -0
- package/es/Tag/type.d.ts +8 -0
- package/es/Tag/type.js +1 -0
- package/es/Tag/utils.d.ts +4 -0
- package/es/Tag/utils.js +15 -0
- package/es/ThemeProvider/GlobalStyle/antdOverride.js +1 -1
- package/es/ThemeProvider/Meta.d.ts +1 -5
- package/es/ThemeProvider/ThemeProvider.d.ts +4 -0
- package/es/ThemeProvider/ThemeProvider.js +91 -0
- package/es/ThemeProvider/index.d.ts +3 -28
- package/es/ThemeProvider/index.js +2 -91
- package/es/ThemeProvider/type.d.ts +25 -0
- package/es/ThemeProvider/type.js +1 -0
- package/es/ThemeSwitch/ThemeSwitch.d.ts +4 -0
- package/es/ThemeSwitch/ThemeSwitch.js +85 -0
- package/es/ThemeSwitch/index.d.ts +2 -33
- package/es/ThemeSwitch/index.js +1 -91
- package/es/ThemeSwitch/type.d.ts +15 -0
- package/es/ThemeSwitch/type.js +1 -0
- package/es/Toc/Toc.d.ts +4 -0
- package/es/Toc/Toc.js +43 -0
- package/es/Toc/TocMobile.d.ts +1 -54
- package/es/Toc/TocMobile.js +12 -35
- package/es/Toc/index.d.ts +2 -11
- package/es/Toc/index.js +1 -41
- package/es/Toc/style.js +1 -1
- package/es/Toc/type.d.ts +17 -0
- package/es/Toc/type.js +1 -0
- package/es/Toc/utils.d.ts +11 -0
- package/es/Toc/utils.js +17 -0
- package/es/Tooltip/Tooltip.d.ts +4 -0
- package/es/Tooltip/Tooltip.js +52 -0
- package/es/Tooltip/index.d.ts +2 -10
- package/es/Tooltip/index.js +1 -49
- package/es/Tooltip/type.d.ts +10 -0
- package/es/Tooltip/type.js +1 -0
- package/es/Video/index.d.ts +24 -9
- package/es/Video/index.js +82 -45
- package/es/Video/style.d.ts +9 -5
- package/es/Video/style.js +18 -11
- package/es/awesome/AuroraBackground/AuroraBackground.d.ts +4 -0
- package/es/awesome/{GaussianBackground/index.js → AuroraBackground/AuroraBackground.js} +22 -29
- package/es/awesome/AuroraBackground/index.d.ts +2 -4
- package/es/awesome/AuroraBackground/index.js +1 -38
- package/es/awesome/AuroraBackground/style.js +2 -2
- package/es/awesome/AuroraBackground/type.d.ts +13 -0
- package/es/awesome/AuroraBackground/type.js +1 -0
- package/es/awesome/BottomGradientButton/BottomGradientButton.d.ts +3 -0
- package/es/awesome/BottomGradientButton/BottomGradientButton.js +39 -0
- package/es/awesome/BottomGradientButton/index.d.ts +2 -0
- package/es/awesome/BottomGradientButton/index.js +1 -0
- package/es/awesome/BottomGradientButton/style.d.ts +1 -0
- package/es/awesome/BottomGradientButton/style.js +10 -0
- package/es/awesome/BottomGradientButton/type.d.ts +2 -0
- package/es/awesome/BottomGradientButton/type.js +1 -0
- package/es/awesome/Features/FeatureItem.d.ts +4 -0
- package/es/awesome/Features/{Item.js → FeatureItem.js} +9 -6
- package/es/awesome/Features/Features.d.ts +4 -0
- package/es/awesome/Features/Features.js +41 -0
- package/es/awesome/Features/index.d.ts +2 -24
- package/es/awesome/Features/index.js +1 -40
- package/es/awesome/Features/type.d.ts +27 -0
- package/es/awesome/Features/type.js +1 -0
- package/es/awesome/Giscus/Giscus.d.ts +4 -0
- package/es/awesome/Giscus/Giscus.js +51 -0
- package/es/awesome/Giscus/index.d.ts +2 -8
- package/es/awesome/Giscus/index.js +1 -50
- package/es/awesome/Giscus/type.d.ts +6 -0
- package/es/awesome/Giscus/type.js +1 -0
- package/es/awesome/GradientButton/GradientButton.d.ts +4 -0
- package/es/awesome/GradientButton/GradientButton.js +40 -0
- package/es/awesome/GradientButton/index.d.ts +2 -7
- package/es/awesome/GradientButton/index.js +1 -37
- package/es/awesome/GradientButton/style.d.ts +2 -2
- package/es/awesome/GradientButton/style.js +5 -4
- package/es/awesome/GradientButton/type.d.ts +4 -0
- package/es/awesome/GradientButton/type.js +1 -0
- package/es/awesome/GridBackground/GridBackground.d.ts +4 -0
- package/es/awesome/GridBackground/GridBackground.js +108 -0
- package/es/awesome/GridBackground/GridShowcase.d.ts +1 -6
- package/es/awesome/GridBackground/GridShowcase.js +2 -1
- package/es/awesome/GridBackground/{Grid.d.ts → components/Grid.d.ts} +2 -2
- package/es/awesome/GridBackground/{Grid.js → components/Grid.js} +14 -14
- package/es/awesome/GridBackground/index.d.ts +3 -16
- package/es/awesome/GridBackground/index.js +2 -107
- package/es/awesome/GridBackground/type.d.ts +18 -0
- package/es/awesome/GridBackground/type.js +1 -0
- package/es/awesome/Hero/Hero.d.ts +4 -0
- package/es/awesome/Hero/Hero.js +100 -0
- package/es/awesome/Hero/index.d.ts +2 -43
- package/es/awesome/Hero/index.js +1 -103
- package/es/awesome/Hero/type.d.ts +14 -0
- package/es/awesome/Hero/type.js +1 -0
- package/es/awesome/Spline/ParentSize.d.ts +6 -5
- package/es/awesome/Spline/ParentSize.js +7 -5
- package/es/awesome/Spline/Spine.d.ts +6 -0
- package/es/awesome/Spline/Spine.js +148 -0
- package/es/awesome/Spline/index.d.ts +2 -20
- package/es/awesome/Spline/index.js +1 -146
- package/es/awesome/Spline/type.d.ts +17 -0
- package/es/awesome/Spline/type.js +1 -0
- package/es/awesome/Spotlight/Spotlight.d.ts +4 -0
- package/es/awesome/Spotlight/Spotlight.js +45 -0
- package/es/awesome/Spotlight/index.d.ts +2 -11
- package/es/awesome/Spotlight/index.js +1 -79
- package/es/awesome/Spotlight/type.d.ts +4 -0
- package/es/awesome/Spotlight/type.js +1 -0
- package/es/awesome/Spotlight/useMouseOffset.d.ts +1 -0
- package/es/awesome/{GaussianBackground/useGaussianBackground.js → Spotlight/useMouseOffset.js} +32 -13
- package/es/awesome/SpotlightCard/SpotlightCard.d.ts +4 -0
- package/es/awesome/SpotlightCard/SpotlightCard.js +90 -0
- package/es/awesome/SpotlightCard/SpotlightCardItem.d.ts +1 -5
- package/es/awesome/SpotlightCard/SpotlightCardItem.js +3 -0
- package/es/awesome/SpotlightCard/index.d.ts +2 -14
- package/es/awesome/SpotlightCard/index.js +1 -89
- package/es/awesome/SpotlightCard/type.d.ts +16 -0
- package/es/awesome/SpotlightCard/type.js +1 -0
- package/es/awesome/index.d.ts +4 -5
- package/es/awesome/index.js +2 -3
- package/es/brand/BrandLoading/index.js +1 -0
- package/es/brand/LobeChat/index.d.ts +0 -11
- package/es/brand/LobeChat/index.js +1 -0
- package/es/brand/LobeChatText/index.js +1 -0
- package/es/brand/LobeHub/index.d.ts +0 -11
- package/es/brand/LobeHub/index.js +1 -0
- package/es/brand/LobeHubText/index.js +1 -0
- package/es/brand/Logo3d/index.js +3 -0
- package/es/brand/LogoFlat/index.d.ts +3 -3
- package/es/brand/LogoFlat/index.js +5 -5
- package/es/brand/LogoMono/index.d.ts +3 -3
- package/es/brand/LogoMono/index.js +5 -5
- package/es/brand/LogoThree/Loading.js +1 -3
- package/es/brand/LogoThree/index.js +1 -0
- package/es/chat/BackBottom/BackBottom.d.ts +4 -0
- package/es/chat/BackBottom/BackBottom.js +63 -0
- package/es/chat/BackBottom/index.d.ts +2 -13
- package/es/chat/BackBottom/index.js +1 -62
- package/es/chat/BackBottom/style.d.ts +1 -1
- package/es/chat/BackBottom/style.js +2 -6
- package/es/chat/BackBottom/type.d.ts +11 -0
- package/es/chat/BackBottom/type.js +1 -0
- package/es/chat/Bubble/Bubble.d.ts +4 -0
- package/es/chat/Bubble/Bubble.js +60 -0
- package/es/chat/Bubble/index.d.ts +2 -0
- package/es/chat/Bubble/index.js +1 -0
- package/es/chat/Bubble/style.d.ts +7 -0
- package/es/chat/Bubble/style.js +16 -0
- package/es/chat/Bubble/type.d.ts +7 -0
- package/es/chat/Bubble/type.js +1 -0
- package/es/chat/ChatHeader/ChatHeader.d.ts +4 -0
- package/es/chat/ChatHeader/ChatHeader.js +79 -0
- package/es/chat/ChatHeader/ChatHeaderTitle.d.ts +2 -6
- package/es/chat/ChatHeader/ChatHeaderTitle.js +5 -19
- package/es/chat/ChatHeader/index.d.ts +9 -23
- package/es/chat/ChatHeader/index.js +6 -81
- package/es/chat/ChatHeader/style.d.ts +9 -1
- package/es/chat/ChatHeader/style.js +16 -7
- package/es/{mobile/MobileNavBar/index.d.ts → chat/ChatHeader/type.d.ts} +13 -13
- package/es/chat/ChatHeader/type.js +1 -0
- package/es/chat/ChatInputArea/ChatInputArea.d.ts +4 -20
- package/es/chat/ChatInputArea/ChatInputArea.js +20 -30
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.ts +4 -0
- package/es/chat/ChatInputArea/components/ChatInputActionBar.js +57 -0
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.ts +4 -0
- package/es/chat/ChatInputArea/{ChatInputAreaInner.js → components/ChatInputAreaInner.js} +9 -7
- package/es/chat/ChatInputArea/components/ChatSendButton.d.ts +4 -0
- package/es/chat/ChatInputArea/components/ChatSendButton.js +83 -0
- package/es/chat/ChatInputArea/index.d.ts +17 -4
- package/es/chat/ChatInputArea/index.js +12 -4
- package/es/chat/ChatInputArea/style.d.ts +10 -0
- package/es/chat/ChatInputArea/style.js +21 -0
- package/es/chat/ChatInputArea/type.d.ts +50 -0
- package/es/chat/ChatInputArea/type.js +1 -0
- package/es/chat/ChatItem/ChatItem.d.ts +5 -0
- package/es/chat/ChatItem/ChatItem.js +183 -0
- package/es/chat/ChatItem/components/Actions.d.ts +2 -2
- package/es/chat/ChatItem/components/Actions.js +2 -2
- package/es/chat/ChatItem/components/Avatar.d.ts +2 -1
- package/es/chat/ChatItem/components/Avatar.js +2 -0
- package/es/chat/ChatItem/components/Loading.js +1 -1
- package/es/chat/ChatItem/components/MessageContent.d.ts +1 -1
- package/es/chat/ChatItem/components/MessageContent.js +2 -2
- package/es/chat/ChatItem/index.d.ts +2 -5
- package/es/chat/ChatItem/index.js +1 -180
- package/es/chat/ChatItem/style.d.ts +1 -1
- package/es/chat/ChatItem/style.js +9 -9
- package/es/chat/ChatItem/type.d.ts +5 -4
- package/es/chat/ChatList/ChatList.d.ts +4 -0
- package/es/chat/ChatList/ChatList.js +70 -0
- package/es/chat/ChatList/components/ChatActionsBar.d.ts +4 -0
- package/es/chat/ChatList/{ActionsBar.js → components/ChatActionsBar.js} +10 -7
- package/es/chat/ChatList/components/ChatListItem.d.ts +4 -0
- package/es/chat/ChatList/{Item.js → components/ChatListItem.js} +11 -10
- package/es/chat/ChatList/{HistoryDivider.js → components/HistoryDivider.js} +2 -2
- package/es/{hooks → chat/ChatList/components}/useChatListActionsBar.d.ts +5 -5
- package/es/chat/ChatList/index.d.ts +3 -15
- package/es/chat/ChatList/index.js +2 -70
- package/es/chat/ChatList/{Item.d.ts → type.d.ts} +22 -11
- package/es/chat/ChatList/type.js +1 -0
- package/es/chat/EditableMessage/EditableMessage.d.ts +4 -0
- package/es/chat/EditableMessage/EditableMessage.js +113 -0
- package/es/chat/EditableMessage/index.d.ts +2 -78
- package/es/chat/EditableMessage/index.js +1 -111
- package/es/chat/EditableMessage/type.d.ts +36 -0
- package/es/chat/EditableMessage/type.js +1 -0
- package/es/chat/EditableMessageList/EditableMessageList.d.ts +4 -0
- package/es/chat/EditableMessageList/EditableMessageList.js +109 -0
- package/es/chat/EditableMessageList/index.d.ts +2 -20
- package/es/chat/EditableMessageList/index.js +1 -113
- package/es/chat/EditableMessageList/messageReducer.d.ts +1 -2
- package/es/chat/EditableMessageList/type.d.ts +6 -0
- package/es/chat/EditableMessageList/type.js +1 -0
- package/es/chat/MessageInput/MessageInput.d.ts +4 -0
- package/es/chat/MessageInput/MessageInput.js +123 -0
- package/es/chat/MessageInput/index.d.ts +2 -45
- package/es/chat/MessageInput/index.js +1 -131
- package/es/chat/MessageInput/type.d.ts +24 -0
- package/es/chat/MessageInput/type.js +1 -0
- package/es/chat/MessageModal/MessageModal.d.ts +4 -0
- package/es/chat/MessageModal/MessageModal.js +110 -0
- package/es/chat/MessageModal/TextArea.d.ts +1 -1
- package/es/chat/MessageModal/index.d.ts +2 -41
- package/es/chat/MessageModal/index.js +1 -129
- package/es/chat/MessageModal/type.d.ts +22 -0
- package/es/chat/MessageModal/type.js +1 -0
- package/es/chat/TokenTag/TokenTag.d.ts +4 -0
- package/es/chat/TokenTag/TokenTag.js +95 -0
- package/es/chat/TokenTag/index.d.ts +2 -25
- package/es/chat/TokenTag/index.js +1 -71
- package/es/chat/TokenTag/style.d.ts +5 -6
- package/es/chat/TokenTag/style.js +8 -30
- package/es/chat/TokenTag/type.d.ts +15 -0
- package/es/chat/TokenTag/type.js +1 -0
- package/es/chat/index.d.ts +4 -5
- package/es/chat/index.js +5 -6
- package/es/chat/types/chatMessage.js +1 -0
- package/es/chat/types/index.d.ts +4 -0
- package/es/chat/types/index.js +4 -0
- package/es/chat/types/meta.js +1 -0
- package/es/color/colors/gold.js +2 -2
- package/es/color/colors/gray.js +1 -1
- package/es/color/colors/green.js +3 -3
- package/es/color/colors/orange.js +2 -2
- package/es/color/colors/purple.js +1 -1
- package/es/color/colors/volcano.js +1 -1
- package/es/hooks/useCopied.js +2 -0
- package/es/hooks/useHighlight.d.ts +9 -4
- package/es/hooks/useHighlight.js +42 -24
- package/es/hooks/useMermaid.d.ts +5 -1
- package/es/hooks/useMermaid.js +10 -6
- package/es/icons/Auth0/components/Mono.js +2 -3
- package/es/icons/Authelia/components/Color.js +2 -3
- package/es/icons/Authelia/components/Mono.js +2 -3
- package/es/icons/Authentik/components/Color.js +2 -3
- package/es/icons/Authentik/components/Mono.js +2 -3
- package/es/icons/Casdoor/components/Color.js +2 -3
- package/es/icons/Casdoor/components/Mono.js +2 -3
- package/es/icons/Clerk/components/Color.js +2 -3
- package/es/icons/Clerk/components/Mono.js +2 -3
- package/es/icons/Logto/components/Color.js +2 -3
- package/es/icons/Logto/components/Mono.js +2 -3
- package/es/icons/MicrosoftEntra/components/Color.js +2 -3
- package/es/icons/MicrosoftEntra/components/Mono.js +2 -3
- package/es/icons/NextAuth/components/Color.js +2 -3
- package/es/icons/NextAuth/components/Mono.js +2 -3
- package/es/icons/Zitadel/components/Color.js +2 -3
- package/es/icons/Zitadel/components/Mono.js +2 -3
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +1 -0
- package/es/icons/lucideExtra/DiscordIcon.d.ts +3 -0
- package/es/icons/lucideExtra/DiscordIcon.js +17 -0
- package/es/icons/lucideExtra/GlobeOffIcon.d.ts +3 -0
- package/es/icons/lucideExtra/GlobeOffIcon.js +25 -0
- package/es/icons/lucideExtra/LeftClickIcon.d.ts +3 -0
- package/es/icons/lucideExtra/LeftClickIcon.js +11 -0
- package/es/icons/lucideExtra/LeftDoubleClickIcon.d.ts +3 -0
- package/es/{Hotkey/components → icons/lucideExtra}/LeftDoubleClickIcon.js +4 -3
- package/es/icons/lucideExtra/RightClickIcon.d.ts +3 -0
- package/es/icons/lucideExtra/RightClickIcon.js +11 -0
- package/es/icons/lucideExtra/RightDoubleClickIcon.d.ts +3 -0
- package/es/{Hotkey/components → icons/lucideExtra}/RightDoubleClickIcon.js +4 -3
- package/es/icons/lucideExtra/index.d.ts +6 -0
- package/es/icons/lucideExtra/index.js +6 -0
- package/es/index.d.ts +63 -7
- package/es/index.js +62 -7
- package/es/mdx/Callout/index.js +44 -45
- package/es/{awesome/GaussianBackground → mdx/Callout}/style.d.ts +1 -1
- package/es/mdx/Callout/style.js +11 -0
- package/es/mdx/Cards/Card.d.ts +3 -3
- package/es/mdx/Cards/Card.js +12 -7
- package/es/mdx/Cards/index.d.ts +1 -1
- package/es/mdx/Cards/index.js +10 -17
- package/es/{Mermaid/components → mdx/Cards}/style.d.ts +1 -1
- package/es/mdx/Cards/style.js +9 -0
- package/es/mdx/FileTree/File.js +1 -0
- package/es/mdx/FileTree/Folder.js +1 -0
- package/es/mdx/FileTree/index.js +6 -14
- package/es/mdx/FileTree/style.d.ts +3 -0
- package/es/mdx/FileTree/style.js +10 -0
- package/es/mdx/Mdx/index.d.ts +1 -1
- package/es/mdx/Mdx/index.js +4 -3
- package/es/mdx/Steps/index.js +6 -14
- package/es/mdx/Steps/style.d.ts +3 -0
- package/es/mdx/Steps/style.js +10 -0
- package/es/mdx/Tabs/Tab.js +1 -0
- package/es/mdx/Tabs/index.d.ts +2 -2
- package/es/mdx/Tabs/index.js +14 -25
- package/es/mdx/Tabs/style.d.ts +4 -0
- package/es/mdx/Tabs/style.js +12 -0
- package/es/mdx/mdxComponents/Citation/PopoverPanel.d.ts +2 -2
- package/es/mdx/mdxComponents/Citation/PopoverPanel.js +4 -3
- package/es/mdx/mdxComponents/Citation/index.d.ts +2 -2
- package/es/mdx/mdxComponents/Citation/index.js +4 -4
- package/es/mdx/mdxComponents/CodeBlock.d.ts +1 -1
- package/es/mdx/mdxComponents/CodeBlock.js +1 -0
- package/es/mdx/mdxComponents/Footnotes.d.ts +2 -2
- package/es/mdx/mdxComponents/Footnotes.js +5 -2
- package/es/mdx/mdxComponents/Image.d.ts +2 -5
- package/es/mdx/mdxComponents/Image.js +4 -20
- package/es/mdx/mdxComponents/Link.d.ts +3 -3
- package/es/mdx/mdxComponents/Link.js +3 -0
- package/es/mdx/mdxComponents/Pre.d.ts +1 -1
- package/es/mdx/mdxComponents/Pre.js +13 -15
- package/es/mdx/mdxComponents/Section.d.ts +2 -2
- package/es/mdx/mdxComponents/Section.js +16 -4
- package/es/mdx/mdxComponents/Video.d.ts +2 -5
- package/es/mdx/mdxComponents/Video.js +3 -19
- package/es/mobile/ChatHeader/ChatHeader.d.ts +4 -0
- package/es/mobile/ChatHeader/ChatHeader.js +88 -0
- package/es/mobile/ChatHeader/ChatHeaderTitle.d.ts +4 -0
- package/es/mobile/ChatHeader/ChatHeaderTitle.js +58 -0
- package/es/mobile/ChatHeader/index.d.ts +11 -0
- package/es/mobile/ChatHeader/index.js +6 -0
- package/es/mobile/ChatHeader/style.d.ts +14 -0
- package/es/mobile/{MobileNavBar → ChatHeader}/style.js +12 -1
- package/es/mobile/ChatHeader/type.d.ts +31 -0
- package/es/mobile/ChatHeader/type.js +1 -0
- package/es/mobile/ChatInputArea/ChatInputArea.d.ts +4 -0
- package/es/mobile/{MobileChatInputArea/index.js → ChatInputArea/ChatInputArea.js} +29 -41
- package/es/mobile/ChatInputArea/components/ChatSendButton.d.ts +4 -0
- package/es/mobile/{MobileChatInputArea/SendButton.js → ChatInputArea/components/ChatSendButton.js} +20 -27
- package/es/mobile/ChatInputArea/index.d.ts +11 -0
- package/es/mobile/ChatInputArea/index.js +6 -0
- package/es/mobile/ChatInputArea/style.d.ts +7 -0
- package/es/mobile/ChatInputArea/style.js +14 -0
- package/es/mobile/ChatInputArea/type.d.ts +19 -0
- package/es/mobile/ChatInputArea/type.js +1 -0
- package/es/mobile/SafeArea/SafeArea.d.ts +4 -0
- package/es/mobile/{MobileSafeArea/index.js → SafeArea/SafeArea.js} +4 -3
- package/es/mobile/SafeArea/index.d.ts +2 -0
- package/es/mobile/SafeArea/index.js +1 -0
- package/es/mobile/SafeArea/type.d.ts +4 -0
- package/es/mobile/SafeArea/type.js +1 -0
- package/es/mobile/TabBar/TabBar.d.ts +4 -0
- package/es/mobile/TabBar/TabBar.js +84 -0
- package/es/mobile/TabBar/index.d.ts +2 -0
- package/es/mobile/TabBar/index.js +1 -0
- package/es/mobile/{MobileTabBar → TabBar}/style.js +1 -2
- package/es/mobile/TabBar/type.d.ts +16 -0
- package/es/mobile/TabBar/type.js +1 -0
- package/es/mobile/index.d.ts +4 -6
- package/es/mobile/index.js +4 -6
- package/es/storybook/StoryBook/index.d.ts +3 -9
- package/es/storybook/StoryBook/index.js +14 -14
- package/es/styles/theme/antdTheme.js +28 -0
- package/es/styles/theme/customStylish.js +19 -8
- package/es/styles/theme/customToken.d.ts +1 -1
- package/es/styles/theme/customToken.js +2 -1
- package/es/styles/theme/generateColorPalette.js +2 -1
- package/es/styles/theme/token/base.js +3 -3
- package/es/styles/theme/token/light.js +2 -2
- package/es/types/customStylish.d.ts +12 -1
- package/es/types/customToken.d.ts +9 -2
- package/es/types/customToken.js +1 -0
- package/es/types/index.d.ts +1 -3
- package/es/types/index.js +0 -3
- package/es/utils/genCdnUrl.js +0 -23
- package/package.json +10 -6
- package/es/ActionIcon/calcSize.d.ts +0 -5
- package/es/ActionIcon/calcSize.js +0 -40
- package/es/ContextMenu/index.d.ts +0 -5
- package/es/ContextMenu/index.js +0 -17
- package/es/EmptyCard/index.d.ts +0 -19
- package/es/EmptyCard/style.js +0 -15
- package/es/Hotkey/components/LeftClickIcon.d.ts +0 -3
- package/es/Hotkey/components/LeftClickIcon.js +0 -10
- package/es/Hotkey/components/LeftDoubleClickIcon.d.ts +0 -3
- package/es/Hotkey/components/RightClickIcon.d.ts +0 -3
- package/es/Hotkey/components/RightClickIcon.js +0 -10
- package/es/Hotkey/components/RightDoubleClickIcon.d.ts +0 -3
- package/es/Icon/calcSize.d.ts +0 -5
- package/es/Icon/calcSize.js +0 -39
- package/es/Icon/icons/DiscordIcon.d.ts +0 -3
- package/es/Icon/icons/DiscordIcon.js +0 -20
- package/es/Icon/icons/index.d.ts +0 -1
- package/es/Icon/icons/index.js +0 -1
- package/es/Image/ImageGallery.d.ts +0 -11
- package/es/Image/usePreview.d.ts +0 -7
- package/es/MaterialFileTypeIcon/types.d.ts +0 -5
- package/es/Mermaid/components/Controls.d.ts +0 -3
- package/es/Mermaid/components/Controls.js +0 -49
- package/es/Mermaid/components/MermaidContainer.d.ts +0 -5
- package/es/Mermaid/components/MermaidContainer.js +0 -42
- package/es/Mermaid/components/MermaidZoomableContainer.d.ts +0 -5
- package/es/Mermaid/components/MermaidZoomableContainer.js +0 -21
- package/es/Mermaid/components/style.js +0 -12
- package/es/Mermaid/style.d.ts +0 -8
- package/es/Mermaid/style.js +0 -22
- package/es/SearchResultCard/index.js +0 -79
- package/es/SearchResultCards/index.d.ts +0 -12
- package/es/SearchResultCards/index.js +0 -30
- package/es/SelectWithImg/styles.js +0 -17
- package/es/SortableList/DragHandle.d.ts +0 -4
- package/es/Swatches/index.d.ts +0 -25
- package/es/Swatches/style.d.ts +0 -4
- package/es/Swatches/style.js +0 -11
- package/es/TabsNav/index.d.ts +0 -7
- package/es/TabsNav/style.js +0 -15
- package/es/awesome/Features/Item.d.ts +0 -55
- package/es/awesome/GaussianBackground/index.d.ts +0 -17
- package/es/awesome/GaussianBackground/style.js +0 -11
- package/es/awesome/GaussianBackground/useGaussianBackground.d.ts +0 -7
- package/es/awesome/GaussianBackground/vendor/gaussianBackground.d.ts +0 -38
- package/es/awesome/GaussianBackground/vendor/gaussianBackground.js +0 -226
- package/es/awesome/GaussianBackground/vendor/stackBlur.d.ts +0 -1
- package/es/awesome/GaussianBackground/vendor/stackBlur.js +0 -188
- package/es/awesome/GaussianBackground/vendor/stackBlurTable.d.ts +0 -2
- package/es/awesome/GaussianBackground/vendor/stackBlurTable.js +0 -2
- package/es/chat/ChatInputArea/ChatInputActionBar.d.ts +0 -9
- package/es/chat/ChatInputArea/ChatInputActionBar.js +0 -54
- package/es/chat/ChatInputArea/ChatInputAreaInner.d.ts +0 -12
- package/es/chat/ChatInputArea/SendButton.d.ts +0 -17
- package/es/chat/ChatInputArea/SendButton.js +0 -76
- package/es/chat/ChatList/ActionsBar.d.ts +0 -12
- package/es/components/ControlInput.d.ts +0 -22
- package/es/components.d.ts +0 -71
- package/es/components.js +0 -69
- package/es/hooks/languageMap.d.ts +0 -2
- package/es/hooks/languageMap.js +0 -1
- package/es/mobile/MobileChatInputArea/SendButton.d.ts +0 -9
- package/es/mobile/MobileChatInputArea/index.d.ts +0 -15
- package/es/mobile/MobileNavBar/MobileNavBarTitle.d.ts +0 -8
- package/es/mobile/MobileNavBar/MobileNavBarTitle.js +0 -70
- package/es/mobile/MobileNavBar/index.js +0 -75
- package/es/mobile/MobileSafeArea/index.d.ts +0 -7
- package/es/mobile/MobileTabBar/index.d.ts +0 -18
- package/es/mobile/MobileTabBar/index.js +0 -71
- /package/es/{MaterialFileTypeIcon/types.js → ActionIcon/type.js} +0 -0
- /package/es/{types/chatMessage.js → ActionIconGroup/type.js} +0 -0
- /package/es/{types/meta.js → Alert/type.js} +0 -0
- /package/es/Image/{Preview.js → components/Preview.js} +0 -0
- /package/es/SortableList/{SortableOverlay.d.ts → components/SortableOverlay.d.ts} +0 -0
- /package/es/chat/ChatList/{HistoryDivider.d.ts → components/HistoryDivider.d.ts} +0 -0
- /package/es/{hooks → chat/ChatList/components}/useChatListActionsBar.js +0 -0
- /package/es/{types → chat/types}/chatMessage.d.ts +0 -0
- /package/es/{types → chat/types}/error.d.ts +0 -0
- /package/es/{types → chat/types}/error.js +0 -0
- /package/es/{types → chat/types}/llm.d.ts +0 -0
- /package/es/{types → chat/types}/llm.js +0 -0
- /package/es/{types → chat/types}/meta.d.ts +0 -0
- /package/es/mobile/{MobileSafeArea → SafeArea}/style.d.ts +0 -0
- /package/es/mobile/{MobileSafeArea → SafeArea}/style.js +0 -0
- /package/es/mobile/{MobileTabBar → TabBar}/style.d.ts +0 -0
package/es/types/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, type HTMLAttributes } from 'react';
|
|
2
|
-
export * from './chatMessage';
|
|
3
2
|
export * from './customStylish';
|
|
4
3
|
export * from './customToken';
|
|
5
|
-
export * from './llm';
|
|
6
|
-
export * from './meta';
|
|
7
4
|
export type DivProps = HTMLAttributes<HTMLDivElement>;
|
|
8
5
|
export type VideoProps = HTMLAttributes<HTMLVideoElement>;
|
|
9
6
|
export type SvgProps = HTMLAttributes<SVGSVGElement>;
|
|
@@ -11,3 +8,4 @@ export type ImgProps = HTMLAttributes<HTMLImageElement>;
|
|
|
11
8
|
export type AProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
12
9
|
export type InputProps = HTMLAttributes<HTMLInputElement>;
|
|
13
10
|
export type TextAreaProps = HTMLAttributes<HTMLTextAreaElement>;
|
|
11
|
+
export type SpanProps = HTMLAttributes<HTMLSpanElement>;
|
package/es/types/index.js
CHANGED
package/es/utils/genCdnUrl.js
CHANGED
|
@@ -18,27 +18,4 @@ export var genCdnUrl = function genCdnUrl(_ref) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
// export type JsdelivrCDN = 'jsdelivr' | 'lobehub';
|
|
23
|
-
//
|
|
24
|
-
// const JSDELIVR_API = 'https://fastly.jsdelivr.net';
|
|
25
|
-
// const LOBEHUB_API = 'https://jsdelivr.lobeobjects.space';
|
|
26
|
-
//
|
|
27
|
-
// export interface JsdelivrApi {
|
|
28
|
-
// path: string;
|
|
29
|
-
// proxy?: JsdelivrCDN;
|
|
30
|
-
// repo: string;
|
|
31
|
-
// }
|
|
32
|
-
//
|
|
33
|
-
// export const genJsdelivrUrl = ({ path, proxy, repo }: JsdelivrApi): string => {
|
|
34
|
-
// switch (proxy) {
|
|
35
|
-
// case 'jsdelivr': {
|
|
36
|
-
// return urlJoin(JSDELIVR_API, 'gh', repo, path);
|
|
37
|
-
// }
|
|
38
|
-
// default: {
|
|
39
|
-
// return urlJoin(LOBEHUB_API, 'gh', repo, path);
|
|
40
|
-
// }
|
|
41
|
-
// }
|
|
42
|
-
// };
|
|
43
|
-
|
|
44
21
|
export { ALIYUN_API, UNPKG_API };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@emoji-mart/react": "^1.1.1",
|
|
55
55
|
"@floating-ui/react": "^0.27.5",
|
|
56
56
|
"@giscus/react": "^3.1.0",
|
|
57
|
-
"@lobehub/fluent-emoji": "^
|
|
58
|
-
"@lobehub/icons": "^
|
|
57
|
+
"@lobehub/fluent-emoji": "^2.0.0",
|
|
58
|
+
"@lobehub/icons": "^2.0.0",
|
|
59
59
|
"@mdx-js/mdx": "^3.1.0",
|
|
60
60
|
"@mdx-js/react": "^3.1.0",
|
|
61
61
|
"@radix-ui/react-slot": "^1.1.2",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"dayjs": "^1.11.13",
|
|
69
69
|
"emoji-mart": "^5.6.0",
|
|
70
70
|
"fast-deep-equal": "^3.1.3",
|
|
71
|
-
"framer-motion": "^
|
|
71
|
+
"framer-motion": "^12.6.3",
|
|
72
72
|
"immer": "^10.1.1",
|
|
73
73
|
"leva": "^0.10.0",
|
|
74
74
|
"lodash-es": "^4.17.21",
|
|
@@ -77,7 +77,10 @@
|
|
|
77
77
|
"numeral": "^2.0.6",
|
|
78
78
|
"polished": "^4.3.1",
|
|
79
79
|
"query-string": "^9.1.1",
|
|
80
|
+
"rc-collapse": "^4.0.0",
|
|
80
81
|
"rc-footer": "^0.6.8",
|
|
82
|
+
"rc-image": "^7.11.1",
|
|
83
|
+
"rc-menu": "^9.16.1",
|
|
81
84
|
"re-resizable": "^6.11.2",
|
|
82
85
|
"react-avatar-editor": "^13.0.2",
|
|
83
86
|
"react-error-boundary": "^5.0.0",
|
|
@@ -102,7 +105,8 @@
|
|
|
102
105
|
},
|
|
103
106
|
"peerDependencies": {
|
|
104
107
|
"antd": "^5.23.0",
|
|
105
|
-
"
|
|
106
|
-
"react
|
|
108
|
+
"framer-motion": "^12.0.0",
|
|
109
|
+
"react": "^19.0.0",
|
|
110
|
+
"react-dom": "^19.0.0"
|
|
107
111
|
}
|
|
108
112
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export var calcSize = function calcSize(size) {
|
|
2
|
-
var blockSize;
|
|
3
|
-
var borderRadius;
|
|
4
|
-
switch (size) {
|
|
5
|
-
case 'large':
|
|
6
|
-
{
|
|
7
|
-
blockSize = 44;
|
|
8
|
-
borderRadius = 8;
|
|
9
|
-
break;
|
|
10
|
-
}
|
|
11
|
-
case 'normal':
|
|
12
|
-
{
|
|
13
|
-
blockSize = 36;
|
|
14
|
-
borderRadius = 5;
|
|
15
|
-
break;
|
|
16
|
-
}
|
|
17
|
-
case 'small':
|
|
18
|
-
{
|
|
19
|
-
blockSize = 24;
|
|
20
|
-
borderRadius = 5;
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
case 'site':
|
|
24
|
-
{
|
|
25
|
-
blockSize = 34;
|
|
26
|
-
borderRadius = 5;
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
default:
|
|
30
|
-
{
|
|
31
|
-
blockSize = (size === null || size === void 0 ? void 0 : size.blockSize) || 36;
|
|
32
|
-
borderRadius = (size === null || size === void 0 ? void 0 : size.borderRadius) || 5;
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
blockSize: blockSize,
|
|
38
|
-
borderRadius: borderRadius
|
|
39
|
-
};
|
|
40
|
-
};
|
package/es/ContextMenu/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
-
import { Dropdown } from 'antd';
|
|
10
|
-
import { memo } from 'react';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
var ContextMenu = /*#__PURE__*/memo(function (props) {
|
|
13
|
-
return /*#__PURE__*/_jsx(Dropdown, _objectSpread({
|
|
14
|
-
trigger: ['contextMenu']
|
|
15
|
-
}, props));
|
|
16
|
-
});
|
|
17
|
-
export default ContextMenu;
|
package/es/EmptyCard/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ImageProps } from 'antd';
|
|
3
|
-
import { DivProps, ImgProps } from "../types";
|
|
4
|
-
export interface EmptyCardProps extends DivProps {
|
|
5
|
-
alt?: string;
|
|
6
|
-
cover?: string;
|
|
7
|
-
defaultVisible?: boolean;
|
|
8
|
-
desc: string;
|
|
9
|
-
height?: number;
|
|
10
|
-
imageProps?: ImgProps & ImageProps & {
|
|
11
|
-
priority?: boolean;
|
|
12
|
-
};
|
|
13
|
-
onVisibleChange?: (visible: boolean) => void;
|
|
14
|
-
title: string;
|
|
15
|
-
visible?: boolean;
|
|
16
|
-
width?: number;
|
|
17
|
-
}
|
|
18
|
-
declare const EmptyCard: import("react").NamedExoticComponent<EmptyCardProps>;
|
|
19
|
-
export default EmptyCard;
|
package/es/EmptyCard/style.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
2
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import { createStyles } from 'antd-style';
|
|
4
|
-
export var useStyles = createStyles(function (_ref) {
|
|
5
|
-
var css = _ref.css,
|
|
6
|
-
token = _ref.token,
|
|
7
|
-
isDarkMode = _ref.isDarkMode;
|
|
8
|
-
return {
|
|
9
|
-
close: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-start: 8px;\n inset-inline-end: 8px;\n "]))),
|
|
10
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n overflow: hidden;\n\n background: linear-gradient(\n to bottom,\n ", ",\n ", "\n );\n border: 1px solid ", ";\n border-radius: ", "px;\n "])), isDarkMode ? token.colorBgElevated : token.colorBgLayout, token.colorBgContainer, token.colorBorderSecondary, token.borderRadius),
|
|
11
|
-
content: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding-block: 0 16px;\n padding-inline: 16px;\n "]))),
|
|
12
|
-
desc: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n "])), token.colorTextDescription),
|
|
13
|
-
image: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n align-self: center;\n "])))
|
|
14
|
-
};
|
|
15
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createLucideIcon } from 'lucide-react';
|
|
2
|
-
import { KeyMapEnum } from "../type";
|
|
3
|
-
var Icon = createLucideIcon(KeyMapEnum.LeftClick, [['path', {
|
|
4
|
-
d: 'M19 10a7 7 0 10-14 0v4a7 7 0 1014 0v-4zM2 9.333C2 6.36 3.491 3.71 5.814 2',
|
|
5
|
-
key: '1'
|
|
6
|
-
}], ['path', {
|
|
7
|
-
d: 'M12 4v7H6',
|
|
8
|
-
key: '2'
|
|
9
|
-
}]]);
|
|
10
|
-
export default Icon;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createLucideIcon } from 'lucide-react';
|
|
2
|
-
import { KeyMapEnum } from "../type";
|
|
3
|
-
var Icon = createLucideIcon(KeyMapEnum.RightClick, [['path', {
|
|
4
|
-
d: 'M19 10a7 7 0 10-14 0v4a7 7 0 1014 0v-4zM22 9.333C22 6.36 20.509 3.71 18.186 2',
|
|
5
|
-
key: '1'
|
|
6
|
-
}], ['path', {
|
|
7
|
-
d: 'M12 4v7h6',
|
|
8
|
-
key: '2'
|
|
9
|
-
}]]);
|
|
10
|
-
export default Icon;
|
package/es/Icon/calcSize.d.ts
DELETED
package/es/Icon/calcSize.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export var calcSize = function calcSize(size) {
|
|
2
|
-
var fontSize;
|
|
3
|
-
var strokeWidth;
|
|
4
|
-
switch (size) {
|
|
5
|
-
case 'large':
|
|
6
|
-
{
|
|
7
|
-
fontSize = 24;
|
|
8
|
-
strokeWidth = 2;
|
|
9
|
-
break;
|
|
10
|
-
}
|
|
11
|
-
case 'normal':
|
|
12
|
-
{
|
|
13
|
-
fontSize = 20;
|
|
14
|
-
strokeWidth = 2;
|
|
15
|
-
break;
|
|
16
|
-
}
|
|
17
|
-
case 'small':
|
|
18
|
-
{
|
|
19
|
-
fontSize = 14;
|
|
20
|
-
strokeWidth = 1.5;
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
default:
|
|
24
|
-
{
|
|
25
|
-
if (size) {
|
|
26
|
-
fontSize = (size === null || size === void 0 ? void 0 : size.fontSize) || 24;
|
|
27
|
-
strokeWidth = (size === null || size === void 0 ? void 0 : size.strokeWidth) || 2;
|
|
28
|
-
} else {
|
|
29
|
-
fontSize = '1em';
|
|
30
|
-
strokeWidth = 2;
|
|
31
|
-
}
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
fontSize: fontSize,
|
|
37
|
-
strokeWidth: strokeWidth
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { createLucideIcon } from 'lucide-react';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
var Discord = createLucideIcon('Discord', [['path', {
|
|
10
|
-
d: 'M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z',
|
|
11
|
-
key: '18tl5t'
|
|
12
|
-
}]]);
|
|
13
|
-
var DiscordIcon = function DiscordIcon(props) {
|
|
14
|
-
return /*#__PURE__*/_jsx(Discord, _objectSpread({
|
|
15
|
-
style: {
|
|
16
|
-
overflow: 'visible'
|
|
17
|
-
}
|
|
18
|
-
}, props));
|
|
19
|
-
};
|
|
20
|
-
export default DiscordIcon;
|
package/es/Icon/icons/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DiscordIcon } from './DiscordIcon';
|
package/es/Icon/icons/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DiscordIcon } from "./DiscordIcon";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ImageProps } from 'antd';
|
|
2
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
-
export interface ImageGalleryProps extends PropsWithChildren {
|
|
4
|
-
enable?: boolean;
|
|
5
|
-
items?: string[];
|
|
6
|
-
preview?: ImageProps['preview'] & {
|
|
7
|
-
toolbarAddon?: ReactNode;
|
|
8
|
-
} & any;
|
|
9
|
-
}
|
|
10
|
-
declare const ImageGallery: import("react").NamedExoticComponent<ImageGalleryProps>;
|
|
11
|
-
export default ImageGallery;
|
package/es/Image/usePreview.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ImageProps } from 'antd';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export type PreviewOptions = any & {
|
|
4
|
-
toolbarAddon?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const usePreview: ({ onVisibleChange, styles: previewStyle, minScale, maxScale, toolbarAddon, ...rest }?: PreviewOptions) => ImageProps['preview'];
|
|
7
|
-
export default usePreview;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type iconMap from './icon-map.json';
|
|
2
|
-
export type IconDefinitionsKey = keyof (typeof iconMap)['iconDefinitions'];
|
|
3
|
-
export type FileNamesKey = keyof (typeof iconMap)['fileNames'];
|
|
4
|
-
export type FolderNamesKey = keyof (typeof iconMap)['folderNames'];
|
|
5
|
-
export type FileExtensionsKey = keyof (typeof iconMap)['fileExtensions'];
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { AlignVerticalSpaceAroundIcon, MinusIcon, PlusIcon } from 'lucide-react';
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { Flexbox } from 'react-layout-kit';
|
|
4
|
-
import { useControls } from 'react-zoom-pan-pinch';
|
|
5
|
-
import ActionIcon from "../../ActionIcon";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
var Controls = /*#__PURE__*/memo(function () {
|
|
9
|
-
var _useControls = useControls(),
|
|
10
|
-
zoomIn = _useControls.zoomIn,
|
|
11
|
-
zoomOut = _useControls.zoomOut,
|
|
12
|
-
resetTransform = _useControls.resetTransform;
|
|
13
|
-
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
14
|
-
gap: 4,
|
|
15
|
-
horizontal: true,
|
|
16
|
-
style: {
|
|
17
|
-
bottom: 8,
|
|
18
|
-
position: 'absolute',
|
|
19
|
-
right: 8,
|
|
20
|
-
zIndex: 1
|
|
21
|
-
},
|
|
22
|
-
children: [/*#__PURE__*/_jsx(ActionIcon, {
|
|
23
|
-
active: true,
|
|
24
|
-
glass: true,
|
|
25
|
-
icon: PlusIcon,
|
|
26
|
-
onClick: function onClick() {
|
|
27
|
-
return zoomIn();
|
|
28
|
-
},
|
|
29
|
-
size: 'small'
|
|
30
|
-
}), /*#__PURE__*/_jsx(ActionIcon, {
|
|
31
|
-
active: true,
|
|
32
|
-
glass: true,
|
|
33
|
-
icon: MinusIcon,
|
|
34
|
-
onClick: function onClick() {
|
|
35
|
-
return zoomOut();
|
|
36
|
-
},
|
|
37
|
-
size: 'small'
|
|
38
|
-
}), /*#__PURE__*/_jsx(ActionIcon, {
|
|
39
|
-
active: true,
|
|
40
|
-
glass: true,
|
|
41
|
-
icon: AlignVerticalSpaceAroundIcon,
|
|
42
|
-
onClick: function onClick() {
|
|
43
|
-
return resetTransform();
|
|
44
|
-
},
|
|
45
|
-
size: 'small'
|
|
46
|
-
})]
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
export default Controls;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { kebabCase } from 'lodash-es';
|
|
2
|
-
import { Loader2 } from 'lucide-react';
|
|
3
|
-
import { memo, useId } from 'react';
|
|
4
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
5
|
-
import Icon from "../../Icon";
|
|
6
|
-
import { useMermaid } from "../../hooks/useMermaid";
|
|
7
|
-
import { useStyles } from "./style";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
var MermaidContainer = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
-
var _ref$children = _ref.children,
|
|
13
|
-
children = _ref$children === void 0 ? '' : _ref$children;
|
|
14
|
-
var _useStyles = useStyles(),
|
|
15
|
-
styles = _useStyles.styles;
|
|
16
|
-
var id = useId();
|
|
17
|
-
var mermaidId = kebabCase("mermaid-".concat(id));
|
|
18
|
-
var _useMermaid = useMermaid(mermaidId, children),
|
|
19
|
-
data = _useMermaid.data,
|
|
20
|
-
isLoading = _useMermaid.isLoading;
|
|
21
|
-
if (!data) return null;
|
|
22
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
23
|
-
children: [/*#__PURE__*/_jsx(Center, {
|
|
24
|
-
as: 'pre',
|
|
25
|
-
dangerouslySetInnerHTML: {
|
|
26
|
-
__html: data
|
|
27
|
-
},
|
|
28
|
-
id: "mermaid-".concat(id)
|
|
29
|
-
}), isLoading && /*#__PURE__*/_jsx(Flexbox, {
|
|
30
|
-
align: 'center',
|
|
31
|
-
className: styles.loading,
|
|
32
|
-
gap: 8,
|
|
33
|
-
horizontal: true,
|
|
34
|
-
justify: 'center',
|
|
35
|
-
children: /*#__PURE__*/_jsx(Icon, {
|
|
36
|
-
icon: Loader2,
|
|
37
|
-
spin: true
|
|
38
|
-
})
|
|
39
|
-
})]
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
export default MermaidContainer;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
|
-
import { TransformComponent, TransformWrapper } from 'react-zoom-pan-pinch';
|
|
3
|
-
import Controls from "./Controls";
|
|
4
|
-
import MermaidContainer from "./MermaidContainer";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
var MermaidZoomableContainer = /*#__PURE__*/memo(function (_ref) {
|
|
8
|
-
var children = _ref.children;
|
|
9
|
-
return /*#__PURE__*/_jsxs(TransformWrapper, {
|
|
10
|
-
children: [/*#__PURE__*/_jsx(Controls, {}), /*#__PURE__*/_jsx(TransformComponent, {
|
|
11
|
-
wrapperStyle: {
|
|
12
|
-
minHeight: 240,
|
|
13
|
-
width: '100%'
|
|
14
|
-
},
|
|
15
|
-
children: /*#__PURE__*/_jsx(MermaidContainer, {
|
|
16
|
-
children: children
|
|
17
|
-
})
|
|
18
|
-
})]
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
export default MermaidZoomableContainer;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import { createStyles } from 'antd-style';
|
|
4
|
-
export var useStyles = createStyles(function (_ref) {
|
|
5
|
-
var css = _ref.css,
|
|
6
|
-
token = _ref.token,
|
|
7
|
-
cx = _ref.cx,
|
|
8
|
-
stylish = _ref.stylish;
|
|
9
|
-
return {
|
|
10
|
-
loading: cx(stylish.blur, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 10;\n inset-block-start: 0;\n inset-inline-end: 0;\n\n height: 34px;\n padding-block: 0;\n padding-inline: 8px;\n\n font-family: ", ";\n color: ", ";\n\n border-radius: ", ";\n "])), token.fontFamilyCode, token.colorTextTertiary, token.borderRadius))
|
|
11
|
-
};
|
|
12
|
-
});
|
package/es/Mermaid/style.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: "block" | "pure" | "ghost" | undefined) => import("antd-style").ReturnStyles<{
|
|
2
|
-
button: string;
|
|
3
|
-
container: string;
|
|
4
|
-
header: import("antd-style").SerializedStyles;
|
|
5
|
-
lang: string;
|
|
6
|
-
scroller: import("antd-style").SerializedStyles;
|
|
7
|
-
select: import("antd-style").SerializedStyles;
|
|
8
|
-
}>;
|
package/es/Mermaid/style.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
2
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import { createStyles } from 'antd-style';
|
|
4
|
-
export var useStyles = createStyles(function (_ref, type) {
|
|
5
|
-
var token = _ref.token,
|
|
6
|
-
css = _ref.css,
|
|
7
|
-
cx = _ref.cx,
|
|
8
|
-
prefixCls = _ref.prefixCls,
|
|
9
|
-
stylish = _ref.stylish;
|
|
10
|
-
var prefix = "".concat(prefixCls, "-highlighter");
|
|
11
|
-
var buttonHoverCls = "".concat(prefix, "-hover-btn");
|
|
12
|
-
var langHoverCls = "".concat(prefix, "-hover-lang");
|
|
13
|
-
var typeStylish = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n border: 1px solid ", ";\n "])), type === 'block' ? token.colorFillQuaternary : 'transparent', type === 'block' ? 'transparent' : token.colorBorderSecondary);
|
|
14
|
-
return {
|
|
15
|
-
button: cx(buttonHoverCls, css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 2;\n inset-block-start: ", ";\n inset-inline-end: ", ";\n\n opacity: 0;\n "])), type === 'pure' ? 0 : '8px', type === 'pure' ? 0 : '8px')),
|
|
16
|
-
container: cx(prefix, type !== 'pure' && typeStylish, css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n border-radius: ", "px;\n transition: background-color 100ms ", ";\n\n &:hover {\n .", " {\n opacity: 1;\n }\n\n .", " {\n opacity: 1;\n }\n }\n\n .prism-code {\n background: none !important;\n }\n\n pre {\n overflow: auto hidden;\n\n margin: 0 !important;\n padding: ", " !important;\n\n white-space: break-spaces;\n\n background: none !important;\n }\n\n code {\n background: transparent !important;\n }\n\n svg {\n height: fit-content;\n line-height: 1.2;\n }\n "])), token.borderRadius, token.motionEaseOut, buttonHoverCls, langHoverCls, type === 'pure' ? 0 : "16px")),
|
|
17
|
-
header: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n padding-block: 4px;\n padding-inline: 8px;\n background: ", ";\n "])), token.colorFillQuaternary),
|
|
18
|
-
lang: cx(langHoverCls, stylish.blur, css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 2;\n inset-block-end: 8px;\n inset-inline-end: 0;\n\n font-family: ", ";\n color: ", ";\n\n opacity: 0;\n\n transition: opacity 0.1s;\n "])), token.fontFamilyCode, token.colorTextSecondary)),
|
|
19
|
-
scroller: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow: auto;\n width: 100%;\n height: 100%;\n "]))),
|
|
20
|
-
select: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n user-select: none;\n\n position: absolute;\n inset-inline-start: 50%;\n transform: translateX(-50%);\n\n min-width: 100px;\n\n font-size: 14px;\n color: ", ";\n text-align: center;\n .", "-select-selection-item {\n min-width: 100px;\n padding-inline-end: 0 !important;\n color: ", ";\n text-align: center;\n }\n "])), token.colorTextDescription, prefixCls, token.colorTextDescription)
|
|
21
|
-
};
|
|
22
|
-
});
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
|
-
import { Typography } from 'antd';
|
|
12
|
-
import { createStyles } from 'antd-style';
|
|
13
|
-
import { memo, useMemo } from 'react';
|
|
14
|
-
import { Flexbox } from 'react-layout-kit';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
var useStyles = createStyles(function (_ref) {
|
|
18
|
-
var css = _ref.css,
|
|
19
|
-
token = _ref.token;
|
|
20
|
-
return {
|
|
21
|
-
container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n min-width: 160px;\n max-width: 160px;\n height: 100%;\n padding: 8px;\n\n font-size: 12px;\n color: initial;\n\n background: ", ";\n border-radius: 8px;\n\n &:hover {\n background: ", ";\n }\n "])), token.colorFillQuaternary, token.colorFillTertiary),
|
|
22
|
-
title: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n\n text-overflow: ellipsis;\n "]))),
|
|
23
|
-
url: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n\n text-overflow: ellipsis;\n "])))
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
var SearchResultCard = /*#__PURE__*/memo(function (_ref2) {
|
|
27
|
-
var url = _ref2.url,
|
|
28
|
-
title = _ref2.title,
|
|
29
|
-
alt = _ref2.alt;
|
|
30
|
-
var _useStyles = useStyles(),
|
|
31
|
-
styles = _useStyles.styles;
|
|
32
|
-
var _useMemo = useMemo(function () {
|
|
33
|
-
try {
|
|
34
|
-
var urlObj = new URL(url);
|
|
35
|
-
var _domain = urlObj.hostname.replace('www.', '');
|
|
36
|
-
var hostForUrl = urlObj.host;
|
|
37
|
-
var _displayTitle = title;
|
|
38
|
-
if (title === url) {
|
|
39
|
-
_displayTitle = hostForUrl + urlObj.pathname;
|
|
40
|
-
}
|
|
41
|
-
return [_displayTitle, _domain, hostForUrl];
|
|
42
|
-
} catch (_unused) {
|
|
43
|
-
return [title, url, url];
|
|
44
|
-
}
|
|
45
|
-
}, [url, title]),
|
|
46
|
-
_useMemo2 = _slicedToArray(_useMemo, 3),
|
|
47
|
-
displayTitle = _useMemo2[0],
|
|
48
|
-
domain = _useMemo2[1],
|
|
49
|
-
host = _useMemo2[2];
|
|
50
|
-
return /*#__PURE__*/_jsx("a", {
|
|
51
|
-
href: url,
|
|
52
|
-
rel: "noreferrer",
|
|
53
|
-
target: '_blank',
|
|
54
|
-
children: /*#__PURE__*/_jsxs(Flexbox, {
|
|
55
|
-
className: styles.container,
|
|
56
|
-
gap: 2,
|
|
57
|
-
justify: 'space-between',
|
|
58
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
59
|
-
className: styles.title,
|
|
60
|
-
children: displayTitle
|
|
61
|
-
}), /*#__PURE__*/_jsxs(Flexbox, {
|
|
62
|
-
align: 'center',
|
|
63
|
-
gap: 4,
|
|
64
|
-
horizontal: true,
|
|
65
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
66
|
-
alt: alt || title || url,
|
|
67
|
-
height: 14,
|
|
68
|
-
src: "https://icons.duckduckgo.com/ip3/".concat(host, ".ico"),
|
|
69
|
-
width: 14
|
|
70
|
-
}), /*#__PURE__*/_jsx(Typography.Text, {
|
|
71
|
-
className: styles.url,
|
|
72
|
-
type: 'secondary',
|
|
73
|
-
children: domain
|
|
74
|
-
})]
|
|
75
|
-
})]
|
|
76
|
-
}, url)
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
export default SearchResultCard;
|