@lobehub/ui 3.4.2 → 3.4.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/A/index.mjs +18 -0
- package/es/A/index.mjs.map +1 -0
- package/es/Accordion/Accordion.d.mts +8 -0
- package/es/Accordion/Accordion.mjs +69 -0
- package/es/Accordion/Accordion.mjs.map +1 -0
- package/es/Accordion/AccordionItem.d.mts +8 -0
- package/es/Accordion/AccordionItem.mjs +263 -0
- package/es/Accordion/AccordionItem.mjs.map +1 -0
- package/es/Accordion/ArrowIcon.mjs +28 -0
- package/es/Accordion/ArrowIcon.mjs.map +1 -0
- package/es/Accordion/context.mjs +13 -0
- package/es/Accordion/context.mjs.map +1 -0
- package/es/Accordion/index.d.mts +4 -0
- package/es/Accordion/index.mjs +4 -0
- package/es/Accordion/style.mjs +65 -0
- package/es/Accordion/style.mjs.map +1 -0
- package/es/Accordion/type.d.mts +138 -0
- package/es/ActionIcon/ActionIcon.d.mts +8 -0
- package/es/ActionIcon/ActionIcon.mjs +132 -0
- package/es/ActionIcon/ActionIcon.mjs.map +1 -0
- package/es/ActionIcon/components/utils.mjs +45 -0
- package/es/ActionIcon/components/utils.mjs.map +1 -0
- package/es/ActionIcon/index.d.mts +3 -0
- package/es/ActionIcon/index.mjs +3 -0
- package/es/ActionIcon/style.mjs +51 -0
- package/es/ActionIcon/style.mjs.map +1 -0
- package/es/ActionIcon/type.d.mts +32 -0
- package/es/ActionIconGroup/ActionIconGroup.d.mts +8 -0
- package/es/ActionIconGroup/ActionIconGroup.mjs +100 -0
- package/es/ActionIconGroup/ActionIconGroup.mjs.map +1 -0
- package/es/ActionIconGroup/index.d.mts +4 -0
- package/es/ActionIconGroup/index.mjs +3 -0
- package/es/ActionIconGroup/style.mjs +21 -0
- package/es/ActionIconGroup/style.mjs.map +1 -0
- package/es/ActionIconGroup/type.d.mts +27 -0
- package/es/Alert/Alert.d.mts +8 -0
- package/es/Alert/Alert.mjs +173 -0
- package/es/Alert/Alert.mjs.map +1 -0
- package/es/Alert/index.d.mts +3 -0
- package/es/Alert/index.mjs +3 -0
- package/es/Alert/style.mjs +102 -0
- package/es/Alert/style.mjs.map +1 -0
- package/es/Alert/type.d.mts +35 -0
- package/es/AutoComplete/Select.d.mts +8 -0
- package/es/AutoComplete/Select.mjs +40 -0
- package/es/AutoComplete/Select.mjs.map +1 -0
- package/es/AutoComplete/index.d.mts +3 -0
- package/es/AutoComplete/index.mjs +3 -0
- package/es/AutoComplete/style.mjs +40 -0
- package/es/AutoComplete/style.mjs.map +1 -0
- package/es/AutoComplete/type.d.mts +9 -0
- package/es/Avatar/Avatar.mjs +110 -0
- package/es/Avatar/Avatar.mjs.map +1 -0
- package/es/Avatar/AvatarGroup/index.d.mts +8 -0
- package/es/Avatar/AvatarGroup/index.mjs +67 -0
- package/es/Avatar/AvatarGroup/index.mjs.map +1 -0
- package/es/Avatar/AvatarGroup/style.mjs +27 -0
- package/es/Avatar/AvatarGroup/style.mjs.map +1 -0
- package/es/Avatar/index.d.mts +13 -0
- package/es/Avatar/index.mjs +11 -0
- package/es/Avatar/index.mjs.map +1 -0
- package/es/Avatar/style.mjs +52 -0
- package/es/Avatar/style.mjs.map +1 -0
- package/es/Avatar/type.d.mts +50 -0
- package/es/Block/Block.d.mts +8 -0
- package/es/Block/Block.mjs +72 -0
- package/es/Block/Block.mjs.map +1 -0
- package/es/Block/index.d.mts +3 -0
- package/es/Block/index.mjs +3 -0
- package/es/Block/style.mjs +26 -0
- package/es/Block/style.mjs.map +1 -0
- package/es/Block/type.d.mts +15 -0
- package/es/Burger/Burger.d.mts +8 -0
- package/es/Burger/Burger.mjs +56 -0
- package/es/Burger/Burger.mjs.map +1 -0
- package/es/Burger/index.d.mts +3 -0
- package/es/Burger/index.mjs +3 -0
- package/es/Burger/style.mjs +123 -0
- package/es/Burger/style.mjs.map +1 -0
- package/es/Burger/type.d.mts +27 -0
- package/es/Button/Button.d.mts +8 -0
- package/es/Button/Button.mjs +59 -0
- package/es/Button/Button.mjs.map +1 -0
- package/es/Button/index.d.mts +3 -0
- package/es/Button/index.mjs +3 -0
- package/es/Button/style.mjs +22 -0
- package/es/Button/style.mjs.map +1 -0
- package/es/Button/type.d.mts +16 -0
- package/es/CodeEditor/CodeEditor.d.mts +8 -0
- package/es/CodeEditor/CodeEditor.mjs +65 -0
- package/es/CodeEditor/CodeEditor.mjs.map +1 -0
- package/es/CodeEditor/index.d.mts +3 -0
- package/es/CodeEditor/index.mjs +3 -0
- package/es/CodeEditor/style.mjs +87 -0
- package/es/CodeEditor/style.mjs.map +1 -0
- package/es/CodeEditor/type.d.mts +27 -0
- package/es/Collapse/Collapse.d.mts +8 -0
- package/es/Collapse/Collapse.mjs +114 -0
- package/es/Collapse/Collapse.mjs.map +1 -0
- package/es/Collapse/index.d.mts +3 -0
- package/es/Collapse/index.mjs +3 -0
- package/es/Collapse/style.mjs +140 -0
- package/es/Collapse/style.mjs.map +1 -0
- package/es/Collapse/type.d.mts +35 -0
- package/es/ColorSwatches/ColorSwatches.d.mts +8 -0
- package/es/ColorSwatches/ColorSwatches.mjs +89 -0
- package/es/ColorSwatches/ColorSwatches.mjs.map +1 -0
- package/es/ColorSwatches/index.d.mts +3 -0
- package/es/ColorSwatches/index.mjs +3 -0
- package/es/ColorSwatches/style.mjs +88 -0
- package/es/ColorSwatches/style.mjs.map +1 -0
- package/es/ColorSwatches/type.d.mts +28 -0
- package/es/ConfigProvider/index.d.mts +25 -0
- package/es/ConfigProvider/index.mjs +36 -0
- package/es/ConfigProvider/index.mjs.map +1 -0
- package/es/CopyButton/CopyButton.d.mts +8 -0
- package/es/CopyButton/CopyButton.mjs +33 -0
- package/es/CopyButton/CopyButton.mjs.map +1 -0
- package/es/CopyButton/index.d.mts +3 -0
- package/es/CopyButton/index.mjs +3 -0
- package/es/CopyButton/type.d.mts +10 -0
- package/es/DatePicker/DatePicker.d.mts +8 -0
- package/es/DatePicker/DatePicker.mjs +40 -0
- package/es/DatePicker/DatePicker.mjs.map +1 -0
- package/es/DatePicker/index.d.mts +3 -0
- package/es/DatePicker/index.mjs +3 -0
- package/es/DatePicker/style.mjs +16 -0
- package/es/DatePicker/style.mjs.map +1 -0
- package/es/DatePicker/type.d.mts +9 -0
- package/es/DownloadButton/DownloadButton.d.mts +8 -0
- package/es/DownloadButton/DownloadButton.mjs +31 -0
- package/es/DownloadButton/DownloadButton.mjs.map +1 -0
- package/es/DownloadButton/index.d.mts +3 -0
- package/es/DownloadButton/index.mjs +3 -0
- package/es/DownloadButton/type.d.mts +12 -0
- package/es/DraggablePanel/DraggablePanel.mjs +312 -0
- package/es/DraggablePanel/DraggablePanel.mjs.map +1 -0
- package/es/DraggablePanel/components/DraggablePanelBody.d.mts +9 -0
- package/es/DraggablePanel/components/DraggablePanelBody.mjs +22 -0
- package/es/DraggablePanel/components/DraggablePanelBody.mjs.map +1 -0
- package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +9 -0
- package/es/DraggablePanel/components/DraggablePanelContainer.mjs +21 -0
- package/es/DraggablePanel/components/DraggablePanelContainer.mjs.map +1 -0
- package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +9 -0
- package/es/DraggablePanel/components/DraggablePanelFooter.mjs +26 -0
- package/es/DraggablePanel/components/DraggablePanelFooter.mjs.map +1 -0
- package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +15 -0
- package/es/DraggablePanel/components/DraggablePanelHeader.mjs +50 -0
- package/es/DraggablePanel/components/DraggablePanelHeader.mjs.map +1 -0
- package/es/DraggablePanel/components/style.mjs +36 -0
- package/es/DraggablePanel/components/style.mjs.map +1 -0
- package/es/DraggablePanel/index.d.mts +19 -0
- package/es/DraggablePanel/index.mjs +19 -0
- package/es/DraggablePanel/index.mjs.map +1 -0
- package/es/DraggablePanel/style.mjs +252 -0
- package/es/DraggablePanel/style.mjs.map +1 -0
- package/es/DraggablePanel/type.d.mts +48 -0
- package/es/DraggablePanel/utils.mjs +13 -0
- package/es/DraggablePanel/utils.mjs.map +1 -0
- package/es/DraggableSideNav/DraggableSideNav.d.mts +8 -0
- package/es/DraggableSideNav/DraggableSideNav.mjs +436 -0
- package/es/DraggableSideNav/DraggableSideNav.mjs.map +1 -0
- package/es/DraggableSideNav/index.d.mts +3 -0
- package/es/DraggableSideNav/index.mjs +3 -0
- package/es/DraggableSideNav/style.mjs +254 -0
- package/es/DraggableSideNav/style.mjs.map +1 -0
- package/es/DraggableSideNav/type.d.mts +124 -0
- package/es/Drawer/Drawer.d.mts +8 -0
- package/es/Drawer/Drawer.mjs +146 -0
- package/es/Drawer/Drawer.mjs.map +1 -0
- package/es/Drawer/index.d.mts +3 -0
- package/es/Drawer/index.mjs +3 -0
- package/es/Drawer/type.d.mts +31 -0
- package/es/Dropdown/Dropdown.d.mts +8 -0
- package/es/Dropdown/Dropdown.mjs +33 -0
- package/es/Dropdown/Dropdown.mjs.map +1 -0
- package/es/Dropdown/index.d.mts +4 -0
- package/es/Dropdown/index.mjs +3 -0
- package/es/Dropdown/type.d.mts +14 -0
- package/es/EditableText/ControlInput.d.mts +21 -0
- package/es/EditableText/ControlInput.mjs +85 -0
- package/es/EditableText/ControlInput.mjs.map +1 -0
- package/es/EditableText/EditableText.d.mts +8 -0
- package/es/EditableText/EditableText.mjs +82 -0
- package/es/EditableText/EditableText.mjs.map +1 -0
- package/es/EditableText/index.d.mts +3 -0
- package/es/EditableText/index.mjs +3 -0
- package/es/EditableText/type.d.mts +25 -0
- package/es/EmojiPicker/AvatarUploader.mjs +121 -0
- package/es/EmojiPicker/AvatarUploader.mjs.map +1 -0
- package/es/EmojiPicker/EmojiPicker.d.mts +8 -0
- package/es/EmojiPicker/EmojiPicker.mjs +162 -0
- package/es/EmojiPicker/EmojiPicker.mjs.map +1 -0
- package/es/EmojiPicker/index.d.mts +3 -0
- package/es/EmojiPicker/index.mjs +3 -0
- package/es/EmojiPicker/style.mjs +47 -0
- package/es/EmojiPicker/style.mjs.map +1 -0
- package/es/EmojiPicker/type.d.mts +63 -0
- package/es/Empty/Empty.d.mts +8 -0
- package/es/Empty/Empty.mjs +79 -0
- package/es/Empty/Empty.mjs.map +1 -0
- package/es/Empty/index.d.mts +3 -0
- package/es/Empty/index.mjs +3 -0
- package/es/Empty/type.d.mts +29 -0
- package/es/FileTypeIcon/FileTypeIcon.d.mts +8 -0
- package/es/FileTypeIcon/FileTypeIcon.mjs +67 -0
- package/es/FileTypeIcon/FileTypeIcon.mjs.map +1 -0
- package/es/FileTypeIcon/components/FileIcon.mjs +47 -0
- package/es/FileTypeIcon/components/FileIcon.mjs.map +1 -0
- package/es/FileTypeIcon/components/FolderIcon.mjs +35 -0
- package/es/FileTypeIcon/components/FolderIcon.mjs.map +1 -0
- package/es/FileTypeIcon/index.d.mts +3 -0
- package/es/FileTypeIcon/index.mjs +3 -0
- package/es/FileTypeIcon/style.mjs +23 -0
- package/es/FileTypeIcon/style.mjs.map +1 -0
- package/es/FileTypeIcon/type.d.mts +17 -0
- package/es/Flex/Center.d.mts +8 -0
- package/es/Flex/Center.mjs +16 -0
- package/es/Flex/Center.mjs.map +1 -0
- package/es/Flex/FlexBasic.d.mts +8 -0
- package/es/Flex/FlexBasic.mjs +48 -0
- package/es/Flex/FlexBasic.mjs.map +1 -0
- package/es/Flex/Flexbox.d.mts +1 -0
- package/es/Flex/index.d.mts +5 -0
- package/es/Flex/index.mjs +4 -0
- package/es/Flex/type.d.mts +108 -0
- package/es/Flex/utils.mjs +25 -0
- package/es/Flex/utils.mjs.map +1 -0
- package/es/FluentEmoji/FluentEmoji.d.mts +8 -0
- package/es/FluentEmoji/FluentEmoji.mjs +53 -0
- package/es/FluentEmoji/FluentEmoji.mjs.map +1 -0
- package/es/FluentEmoji/index.d.mts +3 -0
- package/es/FluentEmoji/index.mjs +3 -0
- package/es/FluentEmoji/style.mjs +14 -0
- package/es/FluentEmoji/style.mjs.map +1 -0
- package/es/FluentEmoji/type.d.mts +15 -0
- package/es/FluentEmoji/utils.d.mts +5 -0
- package/es/FluentEmoji/utils.mjs +46 -0
- package/es/FluentEmoji/utils.mjs.map +1 -0
- package/es/FontLoader/index.d.mts +10 -0
- package/es/FontLoader/index.mjs +33 -0
- package/es/FontLoader/index.mjs.map +1 -0
- package/es/Footer/Footer.d.mts +8 -0
- package/es/Footer/Footer.mjs +33 -0
- package/es/Footer/Footer.mjs.map +1 -0
- package/es/Footer/index.d.mts +3 -0
- package/es/Footer/index.mjs +3 -0
- package/es/Footer/style.mjs +178 -0
- package/es/Footer/style.mjs.map +1 -0
- package/es/Footer/type.d.mts +15 -0
- package/es/Form/Form.mjs +115 -0
- package/es/Form/Form.mjs.map +1 -0
- package/es/Form/components/FormDivider.mjs +30 -0
- package/es/Form/components/FormDivider.mjs.map +1 -0
- package/es/Form/components/FormFlatGroup.mjs +33 -0
- package/es/Form/components/FormFlatGroup.mjs.map +1 -0
- package/es/Form/components/FormGroup.d.mts +8 -0
- package/es/Form/components/FormGroup.mjs +71 -0
- package/es/Form/components/FormGroup.mjs.map +1 -0
- package/es/Form/components/FormItem.d.mts +8 -0
- package/es/Form/components/FormItem.mjs +58 -0
- package/es/Form/components/FormItem.mjs.map +1 -0
- package/es/Form/components/FormProvider.mjs +20 -0
- package/es/Form/components/FormProvider.mjs.map +1 -0
- package/es/Form/components/FormSubmitFooter.d.mts +8 -0
- package/es/Form/components/FormSubmitFooter.mjs +125 -0
- package/es/Form/components/FormSubmitFooter.mjs.map +1 -0
- package/es/Form/components/FormTitle.d.mts +8 -0
- package/es/Form/components/FormTitle.mjs +44 -0
- package/es/Form/components/FormTitle.mjs.map +1 -0
- package/es/Form/components/merge.mjs +23 -0
- package/es/Form/components/merge.mjs.map +1 -0
- package/es/Form/index.d.mts +22 -0
- package/es/Form/index.mjs +22 -0
- package/es/Form/index.mjs.map +1 -0
- package/es/Form/style.mjs +217 -0
- package/es/Form/style.mjs.map +1 -0
- package/es/Form/type.d.mts +119 -0
- package/es/FormModal/FormModal.d.mts +8 -0
- package/es/FormModal/FormModal.mjs +93 -0
- package/es/FormModal/FormModal.mjs.map +1 -0
- package/es/FormModal/index.d.mts +3 -0
- package/es/FormModal/index.mjs +3 -0
- package/es/FormModal/style.mjs +46 -0
- package/es/FormModal/style.mjs.map +1 -0
- package/es/FormModal/type.d.mts +27 -0
- package/es/Grid/Grid.d.mts +8 -0
- package/es/Grid/Grid.mjs +27 -0
- package/es/Grid/Grid.mjs.map +1 -0
- package/es/Grid/index.d.mts +3 -0
- package/es/Grid/index.mjs +3 -0
- package/es/Grid/style.mjs +24 -0
- package/es/Grid/style.mjs.map +1 -0
- package/es/Grid/type.d.mts +14 -0
- package/es/GroupAvatar/GroupAvatar.d.mts +8 -0
- package/es/GroupAvatar/GroupAvatar.mjs +76 -0
- package/es/GroupAvatar/GroupAvatar.mjs.map +1 -0
- package/es/GroupAvatar/index.d.mts +3 -0
- package/es/GroupAvatar/index.mjs +3 -0
- package/es/GroupAvatar/style.mjs +37 -0
- package/es/GroupAvatar/style.mjs.map +1 -0
- package/es/GroupAvatar/type.d.mts +18 -0
- package/es/GuideCard/GuideCard.d.mts +8 -0
- package/es/GuideCard/GuideCard.mjs +82 -0
- package/es/GuideCard/GuideCard.mjs.map +1 -0
- package/es/GuideCard/index.d.mts +2 -0
- package/es/GuideCard/style.mjs +42 -0
- package/es/GuideCard/style.mjs.map +1 -0
- package/es/GuideCard/type.d.mts +38 -0
- package/es/Header/Header.d.mts +8 -0
- package/es/Header/Header.mjs +90 -0
- package/es/Header/Header.mjs.map +1 -0
- package/es/Header/index.d.mts +3 -0
- package/es/Header/index.mjs +3 -0
- package/es/Header/style.mjs +48 -0
- package/es/Header/style.mjs.map +1 -0
- package/es/Header/type.d.mts +20 -0
- package/es/Highlighter/FullFeatured.mjs +178 -0
- package/es/Highlighter/FullFeatured.mjs.map +1 -0
- package/es/Highlighter/Highlighter.d.mts +8 -0
- package/es/Highlighter/Highlighter.mjs +174 -0
- package/es/Highlighter/Highlighter.mjs.map +1 -0
- package/es/Highlighter/LangSelect.mjs +71 -0
- package/es/Highlighter/LangSelect.mjs.map +1 -0
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs +32 -0
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs.map +1 -0
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs +103 -0
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs.map +1 -0
- package/es/Highlighter/SyntaxHighlighter/index.d.mts +8 -0
- package/es/Highlighter/SyntaxHighlighter/index.mjs +72 -0
- package/es/Highlighter/SyntaxHighlighter/index.mjs.map +1 -0
- package/es/Highlighter/SyntaxHighlighter/style.mjs +117 -0
- package/es/Highlighter/SyntaxHighlighter/style.mjs.map +1 -0
- package/es/Highlighter/const.d.mts +9 -0
- package/es/Highlighter/const.mjs +31 -0
- package/es/Highlighter/const.mjs.map +1 -0
- package/es/Highlighter/index.d.mts +5 -0
- package/es/Highlighter/index.mjs +5 -0
- package/es/Highlighter/style.mjs +131 -0
- package/es/Highlighter/style.mjs.map +1 -0
- package/es/Highlighter/type.d.mts +61 -0
- package/es/Hotkey/Hotkey.d.mts +8 -0
- package/es/Hotkey/Hotkey.mjs +154 -0
- package/es/Hotkey/Hotkey.mjs.map +1 -0
- package/es/Hotkey/const.d.mts +39 -0
- package/es/Hotkey/const.mjs +40 -0
- package/es/Hotkey/const.mjs.map +1 -0
- package/es/Hotkey/index.d.mts +5 -0
- package/es/Hotkey/index.mjs +5 -0
- package/es/Hotkey/style.mjs +39 -0
- package/es/Hotkey/style.mjs.map +1 -0
- package/es/Hotkey/type.d.mts +21 -0
- package/es/Hotkey/utils.d.mts +6 -0
- package/es/Hotkey/utils.mjs +31 -0
- package/es/Hotkey/utils.mjs.map +1 -0
- package/es/HotkeyInput/HotkeyInput.d.mts +8 -0
- package/es/HotkeyInput/HotkeyInput.mjs +219 -0
- package/es/HotkeyInput/HotkeyInput.mjs.map +1 -0
- package/es/HotkeyInput/index.d.mts +3 -0
- package/es/HotkeyInput/index.mjs +3 -0
- package/es/HotkeyInput/style.mjs +54 -0
- package/es/HotkeyInput/style.mjs.map +1 -0
- package/es/HotkeyInput/type.d.mts +31 -0
- package/es/Icon/Icon.d.mts +8 -0
- package/es/Icon/Icon.mjs +47 -0
- package/es/Icon/Icon.mjs.map +1 -0
- package/es/Icon/components/IconProvider.d.mts +15 -0
- package/es/Icon/components/IconProvider.mjs +20 -0
- package/es/Icon/components/IconProvider.mjs.map +1 -0
- package/es/Icon/components/utils.mjs +39 -0
- package/es/Icon/components/utils.mjs.map +1 -0
- package/es/Icon/index.d.mts +4 -0
- package/es/Icon/index.mjs +4 -0
- package/es/Icon/style.mjs +19 -0
- package/es/Icon/style.mjs.map +1 -0
- package/es/Icon/type.d.mts +20 -0
- package/es/Image/Image.mjs +72 -0
- package/es/Image/Image.mjs.map +1 -0
- package/es/Image/PreviewGroup.d.mts +8 -0
- package/es/Image/PreviewGroup.mjs +24 -0
- package/es/Image/PreviewGroup.mjs.map +1 -0
- package/es/Image/components/Preview.mjs +26 -0
- package/es/Image/components/Preview.mjs.map +1 -0
- package/es/Image/components/Toolbar.mjs +51 -0
- package/es/Image/components/Toolbar.mjs.map +1 -0
- package/es/Image/components/usePreview.mjs +60 -0
- package/es/Image/components/usePreview.mjs.map +1 -0
- package/es/Image/components/usePreviewGroup.mjs +59 -0
- package/es/Image/components/usePreviewGroup.mjs.map +1 -0
- package/es/Image/index.d.mts +13 -0
- package/es/Image/index.mjs +11 -0
- package/es/Image/index.mjs.map +1 -0
- package/es/Image/style.mjs +83 -0
- package/es/Image/style.mjs.map +1 -0
- package/es/Image/type.d.mts +44 -0
- package/es/ImageSelect/ImageSelect.d.mts +8 -0
- package/es/ImageSelect/ImageSelect.mjs +60 -0
- package/es/ImageSelect/ImageSelect.mjs.map +1 -0
- package/es/ImageSelect/index.d.mts +2 -0
- package/es/ImageSelect/styles.mjs +28 -0
- package/es/ImageSelect/styles.mjs.map +1 -0
- package/es/ImageSelect/type.d.mts +36 -0
- package/es/Img/index.mjs +22 -0
- package/es/Img/index.mjs.map +1 -0
- package/es/Input/Input.d.mts +8 -0
- package/es/Input/Input.mjs +41 -0
- package/es/Input/Input.mjs.map +1 -0
- package/es/Input/InputNumber.d.mts +8 -0
- package/es/Input/InputNumber.mjs +41 -0
- package/es/Input/InputNumber.mjs.map +1 -0
- package/es/Input/InputOPT.d.mts +8 -0
- package/es/Input/InputOPT.mjs +42 -0
- package/es/Input/InputOPT.mjs.map +1 -0
- package/es/Input/InputPassword.d.mts +8 -0
- package/es/Input/InputPassword.mjs +42 -0
- package/es/Input/InputPassword.mjs.map +1 -0
- package/es/Input/TextArea.d.mts +8 -0
- package/es/Input/TextArea.mjs +46 -0
- package/es/Input/TextArea.mjs.map +1 -0
- package/es/Input/index.d.mts +6 -0
- package/es/Input/style.mjs +64 -0
- package/es/Input/style.mjs.map +1 -0
- package/es/Input/type.d.mts +32 -0
- package/es/Layout/Layout.mjs +60 -0
- package/es/Layout/Layout.mjs.map +1 -0
- package/es/Layout/components/LayoutFooter.d.mts +9 -0
- package/es/Layout/components/LayoutFooter.mjs +21 -0
- package/es/Layout/components/LayoutFooter.mjs.map +1 -0
- package/es/Layout/components/LayoutHeader.d.mts +8 -0
- package/es/Layout/components/LayoutHeader.mjs +25 -0
- package/es/Layout/components/LayoutHeader.mjs.map +1 -0
- package/es/Layout/components/LayoutMain.d.mts +9 -0
- package/es/Layout/components/LayoutMain.mjs +21 -0
- package/es/Layout/components/LayoutMain.mjs.map +1 -0
- package/es/Layout/components/LayoutSidebar.d.mts +8 -0
- package/es/Layout/components/LayoutSidebar.mjs +25 -0
- package/es/Layout/components/LayoutSidebar.mjs.map +1 -0
- package/es/Layout/components/LayoutSidebarInner.d.mts +8 -0
- package/es/Layout/components/LayoutSidebarInner.mjs +21 -0
- package/es/Layout/components/LayoutSidebarInner.mjs.map +1 -0
- package/es/Layout/components/LayoutToc.d.mts +8 -0
- package/es/Layout/components/LayoutToc.mjs +25 -0
- package/es/Layout/components/LayoutToc.mjs.map +1 -0
- package/es/Layout/index.d.mts +23 -0
- package/es/Layout/index.mjs +21 -0
- package/es/Layout/index.mjs.map +1 -0
- package/es/Layout/style.mjs +47 -0
- package/es/Layout/style.mjs.map +1 -0
- package/es/Layout/type.d.mts +33 -0
- package/es/List/List.mjs +46 -0
- package/es/List/List.mjs.map +1 -0
- package/es/List/ListItem/index.d.mts +8 -0
- package/es/List/ListItem/index.mjs +109 -0
- package/es/List/ListItem/index.mjs.map +1 -0
- package/es/List/ListItem/style.mjs +65 -0
- package/es/List/ListItem/style.mjs.map +1 -0
- package/es/List/ListItem/time.mjs +12 -0
- package/es/List/ListItem/time.mjs.map +1 -0
- package/es/List/index.d.mts +13 -0
- package/es/List/index.mjs +11 -0
- package/es/List/index.mjs.map +1 -0
- package/es/List/type.d.mts +56 -0
- package/es/Markdown/Markdown.d.mts +8 -0
- package/es/Markdown/Markdown.mjs +95 -0
- package/es/Markdown/Markdown.mjs.map +1 -0
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.mjs +29 -0
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.mjs.map +1 -0
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs +48 -0
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs.map +1 -0
- package/es/Markdown/SyntaxMarkdown/style.mjs +25 -0
- package/es/Markdown/SyntaxMarkdown/style.mjs.map +1 -0
- package/es/Markdown/Typography.d.mts +8 -0
- package/es/Markdown/Typography.mjs +30 -0
- package/es/Markdown/Typography.mjs.map +1 -0
- package/es/Markdown/components/CodeBlock.mjs +48 -0
- package/es/Markdown/components/CodeBlock.mjs.map +1 -0
- package/es/Markdown/components/Footnotes.mjs +94 -0
- package/es/Markdown/components/Footnotes.mjs.map +1 -0
- package/es/Markdown/components/MarkdownProvider.mjs +20 -0
- package/es/Markdown/components/MarkdownProvider.mjs.map +1 -0
- package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs +76 -0
- package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs.map +1 -0
- package/es/Markdown/components/SearchResultCards/index.d.mts +20 -0
- package/es/Markdown/components/SearchResultCards/index.mjs +33 -0
- package/es/Markdown/components/SearchResultCards/index.mjs.map +1 -0
- package/es/Markdown/components/SearchResultCards/style.mjs +25 -0
- package/es/Markdown/components/SearchResultCards/style.mjs.map +1 -0
- package/es/Markdown/components/useDelayedAnimated.mjs +20 -0
- package/es/Markdown/components/useDelayedAnimated.mjs.map +1 -0
- package/es/Markdown/index.d.mts +4 -0
- package/es/Markdown/index.mjs +4 -0
- package/es/Markdown/markdown.style.mjs +399 -0
- package/es/Markdown/markdown.style.mjs.map +1 -0
- package/es/Markdown/plugins/rehypeCustomFootnotes.d.mts +5 -0
- package/es/Markdown/plugins/rehypeCustomFootnotes.mjs +26 -0
- package/es/Markdown/plugins/rehypeCustomFootnotes.mjs.map +1 -0
- package/es/Markdown/plugins/rehypeKatexDir.d.mts +7 -0
- package/es/Markdown/plugins/rehypeKatexDir.mjs +12 -0
- package/es/Markdown/plugins/rehypeKatexDir.mjs.map +1 -0
- package/es/Markdown/plugins/rehypeStreamAnimated.d.mts +7 -0
- package/es/Markdown/plugins/rehypeStreamAnimated.mjs +39 -0
- package/es/Markdown/plugins/rehypeStreamAnimated.mjs.map +1 -0
- package/es/Markdown/plugins/remarkBr.d.mts +10 -0
- package/es/Markdown/plugins/remarkBr.mjs +51 -0
- package/es/Markdown/plugins/remarkBr.mjs.map +1 -0
- package/es/Markdown/plugins/remarkColor.d.mts +20 -0
- package/es/Markdown/plugins/remarkColor.mjs +128 -0
- package/es/Markdown/plugins/remarkColor.mjs.map +1 -0
- package/es/Markdown/plugins/remarkCustomFootnotes.d.mts +6 -0
- package/es/Markdown/plugins/remarkCustomFootnotes.mjs +26 -0
- package/es/Markdown/plugins/remarkCustomFootnotes.mjs.map +1 -0
- package/es/Markdown/plugins/remarkGfmPlus.d.mts +8 -0
- package/es/Markdown/plugins/remarkGfmPlus.mjs +107 -0
- package/es/Markdown/plugins/remarkGfmPlus.mjs.map +1 -0
- package/es/Markdown/plugins/remarkVideo.d.mts +20 -0
- package/es/Markdown/plugins/remarkVideo.mjs +114 -0
- package/es/Markdown/plugins/remarkVideo.mjs.map +1 -0
- package/es/Markdown/style.mjs +199 -0
- package/es/Markdown/style.mjs.map +1 -0
- package/es/Markdown/type.d.mts +67 -0
- package/es/MaskShadow/MaskShadow.d.mts +8 -0
- package/es/MaskShadow/MaskShadow.mjs +31 -0
- package/es/MaskShadow/MaskShadow.mjs.map +1 -0
- package/es/MaskShadow/index.d.mts +3 -0
- package/es/MaskShadow/index.mjs +3 -0
- package/es/MaskShadow/style.mjs +35 -0
- package/es/MaskShadow/style.mjs.map +1 -0
- package/es/MaskShadow/type.d.mts +12 -0
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.mts +8 -0
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.mjs +80 -0
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.mjs.map +1 -0
- package/es/MaterialFileTypeIcon/icon-map.d.mts +4920 -0
- package/es/MaterialFileTypeIcon/icon-map.mjs +4918 -0
- package/es/MaterialFileTypeIcon/icon-map.mjs.map +1 -0
- package/es/MaterialFileTypeIcon/index.d.mts +3 -0
- package/es/MaterialFileTypeIcon/index.mjs +3 -0
- package/es/MaterialFileTypeIcon/type.d.mts +18 -0
- package/es/MaterialFileTypeIcon/utils.mjs +41 -0
- package/es/MaterialFileTypeIcon/utils.mjs.map +1 -0
- package/es/Menu/Menu.d.mts +8 -0
- package/es/Menu/Menu.mjs +76 -0
- package/es/Menu/Menu.mjs.map +1 -0
- package/es/Menu/index.d.mts +4 -0
- package/es/Menu/index.mjs +4 -0
- package/es/Menu/style.mjs +45 -0
- package/es/Menu/style.mjs.map +1 -0
- package/es/Menu/type.d.mts +39 -0
- package/es/Menu/utils.d.mts +8 -0
- package/es/Menu/utils.mjs +32 -0
- package/es/Menu/utils.mjs.map +1 -0
- package/es/Mermaid/FullFeatured.mjs +151 -0
- package/es/Mermaid/FullFeatured.mjs.map +1 -0
- package/es/Mermaid/Mermaid.d.mts +8 -0
- package/es/Mermaid/Mermaid.mjs +146 -0
- package/es/Mermaid/Mermaid.mjs.map +1 -0
- package/es/Mermaid/SyntaxMermaid/index.d.mts +8 -0
- package/es/Mermaid/SyntaxMermaid/index.mjs +73 -0
- package/es/Mermaid/SyntaxMermaid/index.mjs.map +1 -0
- package/es/Mermaid/const.d.mts +10 -0
- package/es/Mermaid/const.mjs +36 -0
- package/es/Mermaid/const.mjs.map +1 -0
- package/es/Mermaid/index.d.mts +5 -0
- package/es/Mermaid/index.mjs +5 -0
- package/es/Mermaid/type.d.mts +53 -0
- package/es/Modal/Modal.d.mts +8 -0
- package/es/Modal/Modal.mjs +118 -0
- package/es/Modal/Modal.mjs.map +1 -0
- package/es/Modal/index.d.mts +3 -0
- package/es/Modal/index.mjs +3 -0
- package/es/Modal/style.mjs +58 -0
- package/es/Modal/style.mjs.map +1 -0
- package/es/Modal/type.d.mts +14 -0
- package/es/ScrollShadow/ScrollShadow.d.mts +8 -0
- package/es/ScrollShadow/ScrollShadow.mjs +104 -0
- package/es/ScrollShadow/ScrollShadow.mjs.map +1 -0
- package/es/ScrollShadow/index.d.mts +3 -0
- package/es/ScrollShadow/index.mjs +3 -0
- package/es/ScrollShadow/style.mjs +64 -0
- package/es/ScrollShadow/style.mjs.map +1 -0
- package/es/ScrollShadow/type.d.mts +23 -0
- package/es/ScrollShadow/useScrollOverflow.mjs +56 -0
- package/es/ScrollShadow/useScrollOverflow.mjs.map +1 -0
- package/es/SearchBar/SearchBar.d.mts +8 -0
- package/es/SearchBar/SearchBar.mjs +85 -0
- package/es/SearchBar/SearchBar.mjs.map +1 -0
- package/es/SearchBar/index.d.mts +3 -0
- package/es/SearchBar/index.mjs +3 -0
- package/es/SearchBar/style.mjs +28 -0
- package/es/SearchBar/style.mjs.map +1 -0
- package/es/SearchBar/type.d.mts +26 -0
- package/es/Segmented/Segmented.d.mts +8 -0
- package/es/Segmented/Segmented.mjs +52 -0
- package/es/Segmented/Segmented.mjs.map +1 -0
- package/es/Segmented/index.d.mts +3 -0
- package/es/Segmented/index.mjs +3 -0
- package/es/Segmented/style.mjs +23 -0
- package/es/Segmented/style.mjs.map +1 -0
- package/es/Segmented/type.d.mts +17 -0
- package/es/Select/Select.d.mts +8 -0
- package/es/Select/Select.mjs +52 -0
- package/es/Select/Select.mjs.map +1 -0
- package/es/Select/index.d.mts +3 -0
- package/es/Select/index.mjs +3 -0
- package/es/Select/style.mjs +48 -0
- package/es/Select/style.mjs.map +1 -0
- package/es/Select/type.d.mts +15 -0
- package/es/SideNav/SideNav.d.mts +8 -0
- package/es/SideNav/SideNav.mjs +40 -0
- package/es/SideNav/SideNav.mjs.map +1 -0
- package/es/SideNav/index.d.mts +3 -0
- package/es/SideNav/index.mjs +3 -0
- package/es/SideNav/style.mjs +17 -0
- package/es/SideNav/style.mjs.map +1 -0
- package/es/SideNav/type.d.mts +13 -0
- package/es/Skeleton/Skeleton.mjs +72 -0
- package/es/Skeleton/Skeleton.mjs.map +1 -0
- package/es/Skeleton/SkeletonAvatar.d.mts +8 -0
- package/es/Skeleton/SkeletonAvatar.mjs +32 -0
- package/es/Skeleton/SkeletonAvatar.mjs.map +1 -0
- package/es/Skeleton/SkeletonBlock.d.mts +8 -0
- package/es/Skeleton/SkeletonBlock.mjs +23 -0
- package/es/Skeleton/SkeletonBlock.mjs.map +1 -0
- package/es/Skeleton/SkeletonButton.d.mts +8 -0
- package/es/Skeleton/SkeletonButton.mjs +40 -0
- package/es/Skeleton/SkeletonButton.mjs.map +1 -0
- package/es/Skeleton/SkeletonParagraph.d.mts +8 -0
- package/es/Skeleton/SkeletonParagraph.mjs +44 -0
- package/es/Skeleton/SkeletonParagraph.mjs.map +1 -0
- package/es/Skeleton/SkeletonTags.d.mts +8 -0
- package/es/Skeleton/SkeletonTags.mjs +58 -0
- package/es/Skeleton/SkeletonTags.mjs.map +1 -0
- package/es/Skeleton/SkeletonTitle.d.mts +8 -0
- package/es/Skeleton/SkeletonTitle.mjs +31 -0
- package/es/Skeleton/SkeletonTitle.mjs.map +1 -0
- package/es/Skeleton/index.d.mts +23 -0
- package/es/Skeleton/index.mjs +21 -0
- package/es/Skeleton/index.mjs.map +1 -0
- package/es/Skeleton/style.mjs +49 -0
- package/es/Skeleton/style.mjs.map +1 -0
- package/es/Skeleton/type.d.mts +60 -0
- package/es/SliderWithInput/SliderWithInput.d.mts +8 -0
- package/es/SliderWithInput/SliderWithInput.mjs +67 -0
- package/es/SliderWithInput/SliderWithInput.mjs.map +1 -0
- package/es/SliderWithInput/index.d.mts +3 -0
- package/es/SliderWithInput/index.mjs +3 -0
- package/es/SliderWithInput/type.d.mts +27 -0
- package/es/Snippet/Snippet.d.mts +8 -0
- package/es/Snippet/Snippet.mjs +63 -0
- package/es/Snippet/Snippet.mjs.map +1 -0
- package/es/Snippet/index.d.mts +3 -0
- package/es/Snippet/index.mjs +3 -0
- package/es/Snippet/style.mjs +39 -0
- package/es/Snippet/style.mjs.map +1 -0
- package/es/Snippet/type.d.mts +18 -0
- package/es/SortableList/SortableList.d.mts +15 -0
- package/es/SortableList/SortableList.mjs +55 -0
- package/es/SortableList/SortableList.mjs.map +1 -0
- package/es/SortableList/components/DragHandle.d.mts +9 -0
- package/es/SortableList/components/DragHandle.mjs +35 -0
- package/es/SortableList/components/DragHandle.mjs.map +1 -0
- package/es/SortableList/components/SortableItem.d.mts +15 -0
- package/es/SortableList/components/SortableItem.mjs +71 -0
- package/es/SortableList/components/SortableItem.mjs.map +1 -0
- package/es/SortableList/components/SortableOverlay.mjs +20 -0
- package/es/SortableList/components/SortableOverlay.mjs.map +1 -0
- package/es/SortableList/index.d.mts +3 -0
- package/es/SortableList/index.mjs +3 -0
- package/es/SortableList/style.mjs +28 -0
- package/es/SortableList/style.mjs.map +1 -0
- package/es/SortableList/type.d.mts +18 -0
- package/es/Tabs/Tabs.d.mts +8 -0
- package/es/Tabs/Tabs.mjs +62 -0
- package/es/Tabs/Tabs.mjs.map +1 -0
- package/es/Tabs/index.d.mts +3 -0
- package/es/Tabs/index.mjs +3 -0
- package/es/Tabs/style.mjs +148 -0
- package/es/Tabs/style.mjs.map +1 -0
- package/es/Tabs/type.d.mts +10 -0
- package/es/Tag/Tag.d.mts +8 -0
- package/es/Tag/Tag.mjs +89 -0
- package/es/Tag/Tag.mjs.map +1 -0
- package/es/Tag/index.d.mts +2 -0
- package/es/Tag/styles.mjs +48 -0
- package/es/Tag/styles.mjs.map +1 -0
- package/es/Tag/type.d.mts +13 -0
- package/es/Tag/utils.mjs +37 -0
- package/es/Tag/utils.mjs.map +1 -0
- package/es/Text/Text.d.mts +8 -0
- package/es/Text/Text.mjs +94 -0
- package/es/Text/Text.mjs.map +1 -0
- package/es/Text/index.d.mts +3 -0
- package/es/Text/index.mjs +3 -0
- package/es/Text/styles.mjs +89 -0
- package/es/Text/styles.mjs.map +1 -0
- package/es/Text/type.d.mts +29 -0
- package/es/ThemeProvider/ConfigProvider.mjs +42 -0
- package/es/ThemeProvider/ConfigProvider.mjs.map +1 -0
- package/es/ThemeProvider/GlobalStyle/antdOverride.mjs +94 -0
- package/es/ThemeProvider/GlobalStyle/antdOverride.mjs.map +1 -0
- package/es/ThemeProvider/GlobalStyle/global.mjs +107 -0
- package/es/ThemeProvider/GlobalStyle/global.mjs.map +1 -0
- package/es/ThemeProvider/GlobalStyle/index.mjs +13 -0
- package/es/ThemeProvider/GlobalStyle/index.mjs.map +1 -0
- package/es/ThemeProvider/Meta.d.mts +8 -0
- package/es/ThemeProvider/Meta.mjs +89 -0
- package/es/ThemeProvider/Meta.mjs.map +1 -0
- package/es/ThemeProvider/ThemeProvider.d.mts +8 -0
- package/es/ThemeProvider/ThemeProvider.mjs +77 -0
- package/es/ThemeProvider/ThemeProvider.mjs.map +1 -0
- package/es/ThemeProvider/index.d.mts +4 -0
- package/es/ThemeProvider/index.mjs +4 -0
- package/es/ThemeProvider/type.d.mts +31 -0
- package/es/ThemeSwitch/ThemeSwitch.d.mts +8 -0
- package/es/ThemeSwitch/ThemeSwitch.mjs +75 -0
- package/es/ThemeSwitch/ThemeSwitch.mjs.map +1 -0
- package/es/ThemeSwitch/index.d.mts +3 -0
- package/es/ThemeSwitch/index.mjs +3 -0
- package/es/ThemeSwitch/type.d.mts +21 -0
- package/es/Toc/Toc.d.mts +8 -0
- package/es/Toc/Toc.mjs +36 -0
- package/es/Toc/Toc.mjs.map +1 -0
- package/es/Toc/TocMobile.mjs +66 -0
- package/es/Toc/TocMobile.mjs.map +1 -0
- package/es/Toc/index.d.mts +3 -0
- package/es/Toc/index.mjs +3 -0
- package/es/Toc/style.mjs +72 -0
- package/es/Toc/style.mjs.map +1 -0
- package/es/Toc/type.d.mts +22 -0
- package/es/Toc/utils.mjs +15 -0
- package/es/Toc/utils.mjs.map +1 -0
- package/es/Tooltip/Tooltip.d.mts +8 -0
- package/es/Tooltip/Tooltip.mjs +250 -0
- package/es/Tooltip/Tooltip.mjs.map +1 -0
- package/es/Tooltip/TooltipFloating.mjs +96 -0
- package/es/Tooltip/TooltipFloating.mjs.map +1 -0
- package/es/Tooltip/TooltipGroup.d.mts +11 -0
- package/es/Tooltip/TooltipGroup.mjs +174 -0
- package/es/Tooltip/TooltipGroup.mjs.map +1 -0
- package/es/Tooltip/TooltipPortal.mjs +37 -0
- package/es/Tooltip/TooltipPortal.mjs.map +1 -0
- package/es/Tooltip/antdPlacementToFloating.mjs +27 -0
- package/es/Tooltip/antdPlacementToFloating.mjs.map +1 -0
- package/es/Tooltip/groupContext.d.mts +8 -0
- package/es/Tooltip/groupContext.mjs +9 -0
- package/es/Tooltip/groupContext.mjs.map +1 -0
- package/es/Tooltip/index.d.mts +3 -0
- package/es/Tooltip/style.mjs +39 -0
- package/es/Tooltip/style.mjs.map +1 -0
- package/es/Tooltip/type.d.mts +104 -0
- package/es/Video/index.d.mts +45 -0
- package/es/Video/index.mjs +107 -0
- package/es/Video/index.mjs.map +1 -0
- package/es/Video/style.mjs +60 -0
- package/es/Video/style.mjs.map +1 -0
- package/es/awesome/AuroraBackground/AuroraBackground.d.mts +8 -0
- package/es/awesome/AuroraBackground/AuroraBackground.mjs +35 -0
- package/es/awesome/AuroraBackground/AuroraBackground.mjs.map +1 -0
- package/es/awesome/AuroraBackground/index.d.mts +2 -0
- package/es/awesome/AuroraBackground/style.mjs +104 -0
- package/es/awesome/AuroraBackground/style.mjs.map +1 -0
- package/es/awesome/AuroraBackground/type.d.mts +19 -0
- package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +9 -0
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs +30 -0
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs.map +1 -0
- package/es/awesome/BottomGradientButton/index.d.mts +2 -0
- package/es/awesome/BottomGradientButton/style.mjs +36 -0
- package/es/awesome/BottomGradientButton/style.mjs.map +1 -0
- package/es/awesome/BottomGradientButton/type.d.mts +8 -0
- package/es/awesome/Features/FeatureItem.mjs +86 -0
- package/es/awesome/Features/FeatureItem.mjs.map +1 -0
- package/es/awesome/Features/Features.d.mts +8 -0
- package/es/awesome/Features/Features.mjs +31 -0
- package/es/awesome/Features/Features.mjs.map +1 -0
- package/es/awesome/Features/index.d.mts +2 -0
- package/es/awesome/Features/style.mjs +108 -0
- package/es/awesome/Features/style.mjs.map +1 -0
- package/es/awesome/Features/type.d.mts +32 -0
- package/es/awesome/Giscus/Giscus.d.mts +8 -0
- package/es/awesome/Giscus/Giscus.mjs +32 -0
- package/es/awesome/Giscus/Giscus.mjs.map +1 -0
- package/es/awesome/Giscus/index.d.mts +2 -0
- package/es/awesome/Giscus/style.mjs +145 -0
- package/es/awesome/Giscus/style.mjs.map +1 -0
- package/es/awesome/Giscus/type.d.mts +11 -0
- package/es/awesome/GradientButton/GradientButton.d.mts +8 -0
- package/es/awesome/GradientButton/GradientButton.mjs +25 -0
- package/es/awesome/GradientButton/GradientButton.mjs.map +1 -0
- package/es/awesome/GradientButton/index.d.mts +2 -0
- package/es/awesome/GradientButton/style.mjs +84 -0
- package/es/awesome/GradientButton/style.mjs.map +1 -0
- package/es/awesome/GradientButton/type.d.mts +10 -0
- package/es/awesome/GridBackground/GridBackground.d.mts +8 -0
- package/es/awesome/GridBackground/GridBackground.mjs +96 -0
- package/es/awesome/GridBackground/GridBackground.mjs.map +1 -0
- package/es/awesome/GridBackground/GridShowcase.d.mts +8 -0
- package/es/awesome/GridBackground/GridShowcase.mjs +53 -0
- package/es/awesome/GridBackground/GridShowcase.mjs.map +1 -0
- package/es/awesome/GridBackground/components/Grid.mjs +68 -0
- package/es/awesome/GridBackground/components/Grid.mjs.map +1 -0
- package/es/awesome/GridBackground/index.d.mts +3 -0
- package/es/awesome/GridBackground/style.mjs +84 -0
- package/es/awesome/GridBackground/style.mjs.map +1 -0
- package/es/awesome/GridBackground/type.d.mts +24 -0
- package/es/awesome/Hero/Hero.d.mts +8 -0
- package/es/awesome/Hero/Hero.mjs +82 -0
- package/es/awesome/Hero/Hero.mjs.map +1 -0
- package/es/awesome/Hero/index.d.mts +2 -0
- package/es/awesome/Hero/style.mjs +71 -0
- package/es/awesome/Hero/style.mjs.map +1 -0
- package/es/awesome/Hero/type.d.mts +19 -0
- package/es/awesome/Spline/ParentSize.mjs +73 -0
- package/es/awesome/Spline/ParentSize.mjs.map +1 -0
- package/es/awesome/Spline/Spine.d.mts +3 -0
- package/es/awesome/Spline/Spine.mjs +86 -0
- package/es/awesome/Spline/Spine.mjs.map +1 -0
- package/es/awesome/Spline/index.d.mts +2 -0
- package/es/awesome/Spline/type.d.mts +22 -0
- package/es/awesome/Spotlight/Spotlight.d.mts +8 -0
- package/es/awesome/Spotlight/Spotlight.mjs +27 -0
- package/es/awesome/Spotlight/Spotlight.mjs.map +1 -0
- package/es/awesome/Spotlight/index.d.mts +2 -0
- package/es/awesome/Spotlight/style.mjs +28 -0
- package/es/awesome/Spotlight/style.mjs.map +1 -0
- package/es/awesome/Spotlight/type.d.mts +9 -0
- package/es/awesome/Spotlight/useMouseOffset.mjs +39 -0
- package/es/awesome/Spotlight/useMouseOffset.mjs.map +1 -0
- package/es/awesome/SpotlightCard/SpotlightCard.d.mts +8 -0
- package/es/awesome/SpotlightCard/SpotlightCard.mjs +54 -0
- package/es/awesome/SpotlightCard/SpotlightCard.mjs.map +1 -0
- package/es/awesome/SpotlightCard/SpotlightCardItem.mjs +32 -0
- package/es/awesome/SpotlightCard/SpotlightCardItem.mjs.map +1 -0
- package/es/awesome/SpotlightCard/index.d.mts +2 -0
- package/es/awesome/SpotlightCard/style.mjs +88 -0
- package/es/awesome/SpotlightCard/style.mjs.map +1 -0
- package/es/awesome/SpotlightCard/type.d.mts +17 -0
- package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +8 -0
- package/es/awesome/TypewriterEffect/TypewriterEffect.mjs +178 -0
- package/es/awesome/TypewriterEffect/TypewriterEffect.mjs.map +1 -0
- package/es/awesome/TypewriterEffect/index.d.mts +2 -0
- package/es/awesome/TypewriterEffect/style.mjs +79 -0
- package/es/awesome/TypewriterEffect/style.mjs.map +1 -0
- package/es/awesome/TypewriterEffect/type.d.mts +131 -0
- package/es/awesome/index.d.mts +32 -0
- package/es/awesome/index.mjs +13 -0
- package/es/brand/BrandLoading/index.d.mts +14 -0
- package/es/brand/BrandLoading/index.mjs +17 -0
- package/es/brand/BrandLoading/index.mjs.map +1 -0
- package/es/brand/BrandLoading/style-CB0aumHV.css +35 -0
- package/es/brand/BrandLoading/style-CB0aumHV.css.map +1 -0
- package/es/brand/BrandLoading/style.mjs +1 -0
- package/es/brand/LobeChat/index.d.mts +14 -0
- package/es/brand/LobeChat/index.mjs +93 -0
- package/es/brand/LobeChat/index.mjs.map +1 -0
- package/es/brand/LobeChatText/index.d.mts +10 -0
- package/es/brand/LobeChatText/index.mjs +28 -0
- package/es/brand/LobeChatText/index.mjs.map +1 -0
- package/es/brand/LobeHub/index.d.mts +14 -0
- package/es/brand/LobeHub/index.mjs +92 -0
- package/es/brand/LobeHub/index.mjs.map +1 -0
- package/es/brand/LobeHub/style.mjs +18 -0
- package/es/brand/LobeHub/style.mjs.map +1 -0
- package/es/brand/LobeHubText/index.d.mts +10 -0
- package/es/brand/LobeHubText/index.mjs +23 -0
- package/es/brand/LobeHubText/index.mjs.map +1 -0
- package/es/brand/Logo3d/index.d.mts +12 -0
- package/es/brand/Logo3d/index.mjs +24 -0
- package/es/brand/Logo3d/index.mjs.map +1 -0
- package/es/brand/LogoFlat/index.d.mts +10 -0
- package/es/brand/LogoFlat/index.mjs +82 -0
- package/es/brand/LogoFlat/index.mjs.map +1 -0
- package/es/brand/LogoMono/index.d.mts +10 -0
- package/es/brand/LogoMono/index.mjs +85 -0
- package/es/brand/LogoMono/index.mjs.map +1 -0
- package/es/brand/LogoThree/Loading.mjs +24 -0
- package/es/brand/LogoThree/Loading.mjs.map +1 -0
- package/es/brand/LogoThree/LogoSpline.d.mts +16 -0
- package/es/brand/LogoThree/LogoSpline.mjs +35 -0
- package/es/brand/LogoThree/LogoSpline.mjs.map +1 -0
- package/es/brand/LogoThree/index.d.mts +15 -0
- package/es/brand/LogoThree/index.mjs +57 -0
- package/es/brand/LogoThree/index.mjs.map +1 -0
- package/es/brand/components/Divider.mjs +25 -0
- package/es/brand/components/Divider.mjs.map +1 -0
- package/es/brand/index.d.mts +11 -0
- package/es/brand/index.mjs +12 -0
- package/es/chat/BackBottom/BackBottom.d.mts +8 -0
- package/es/chat/BackBottom/BackBottom.mjs +52 -0
- package/es/chat/BackBottom/BackBottom.mjs.map +1 -0
- package/es/chat/BackBottom/index.d.mts +2 -0
- package/es/chat/BackBottom/style.mjs +24 -0
- package/es/chat/BackBottom/style.mjs.map +1 -0
- package/es/chat/BackBottom/type.d.mts +16 -0
- package/es/chat/ChatHeader/ChatHeader.mjs +61 -0
- package/es/chat/ChatHeader/ChatHeader.mjs.map +1 -0
- package/es/chat/ChatHeader/ChatHeaderTitle.d.mts +8 -0
- package/es/chat/ChatHeader/ChatHeaderTitle.mjs +48 -0
- package/es/chat/ChatHeader/ChatHeaderTitle.mjs.map +1 -0
- package/es/chat/ChatHeader/index.d.mts +13 -0
- package/es/chat/ChatHeader/index.mjs +11 -0
- package/es/chat/ChatHeader/index.mjs.map +1 -0
- package/es/chat/ChatHeader/style.mjs +84 -0
- package/es/chat/ChatHeader/style.mjs.map +1 -0
- package/es/chat/ChatHeader/type.d.mts +34 -0
- package/es/chat/ChatInputArea/ChatInputArea.mjs +56 -0
- package/es/chat/ChatInputArea/ChatInputArea.mjs.map +1 -0
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.mts +8 -0
- package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs +44 -0
- package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs.map +1 -0
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +8 -0
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs +46 -0
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs.map +1 -0
- package/es/chat/ChatInputArea/components/ChatSendButton.d.mts +8 -0
- package/es/chat/ChatInputArea/components/ChatSendButton.mjs +68 -0
- package/es/chat/ChatInputArea/components/ChatSendButton.mjs.map +1 -0
- package/es/chat/ChatInputArea/index.d.mts +17 -0
- package/es/chat/ChatInputArea/index.mjs +15 -0
- package/es/chat/ChatInputArea/index.mjs.map +1 -0
- package/es/chat/ChatInputArea/style.mjs +43 -0
- package/es/chat/ChatInputArea/style.mjs.map +1 -0
- package/es/chat/ChatInputArea/type.d.mts +58 -0
- package/es/chat/ChatItem/ChatItem.d.mts +8 -0
- package/es/chat/ChatItem/ChatItem.mjs +130 -0
- package/es/chat/ChatItem/ChatItem.mjs.map +1 -0
- package/es/chat/ChatItem/components/Actions.mjs +24 -0
- package/es/chat/ChatItem/components/Actions.mjs.map +1 -0
- package/es/chat/ChatItem/components/Avatar.mjs +39 -0
- package/es/chat/ChatItem/components/Avatar.mjs.map +1 -0
- package/es/chat/ChatItem/components/BorderSpacing.mjs +15 -0
- package/es/chat/ChatItem/components/BorderSpacing.mjs.map +1 -0
- package/es/chat/ChatItem/components/ErrorContent.mjs +24 -0
- package/es/chat/ChatItem/components/ErrorContent.mjs.map +1 -0
- package/es/chat/ChatItem/components/Loading.mjs +29 -0
- package/es/chat/ChatItem/components/Loading.mjs.map +1 -0
- package/es/chat/ChatItem/components/MessageContent.mjs +44 -0
- package/es/chat/ChatItem/components/MessageContent.mjs.map +1 -0
- package/es/chat/ChatItem/components/Title.mjs +29 -0
- package/es/chat/ChatItem/components/Title.mjs.map +1 -0
- package/es/chat/ChatItem/index.d.mts +2 -0
- package/es/chat/ChatItem/style.mjs +159 -0
- package/es/chat/ChatItem/style.mjs.map +1 -0
- package/es/chat/ChatItem/type.d.mts +100 -0
- package/es/chat/ChatList/ChatList.d.mts +8 -0
- package/es/chat/ChatList/ChatList.mjs +46 -0
- package/es/chat/ChatList/ChatList.mjs.map +1 -0
- package/es/chat/ChatList/components/ChatActionsBar.d.mts +8 -0
- package/es/chat/ChatList/components/ChatActionsBar.mjs +25 -0
- package/es/chat/ChatList/components/ChatActionsBar.mjs.map +1 -0
- package/es/chat/ChatList/components/ChatListItem.mjs +120 -0
- package/es/chat/ChatList/components/ChatListItem.mjs.map +1 -0
- package/es/chat/ChatList/components/HistoryDivider.mjs +22 -0
- package/es/chat/ChatList/components/HistoryDivider.mjs.map +1 -0
- package/es/chat/ChatList/components/useChatListActionsBar.mjs +35 -0
- package/es/chat/ChatList/components/useChatListActionsBar.mjs.map +1 -0
- package/es/chat/ChatList/index.d.mts +3 -0
- package/es/chat/ChatList/style.mjs +12 -0
- package/es/chat/ChatList/style.mjs.map +1 -0
- package/es/chat/ChatList/type.d.mts +103 -0
- package/es/chat/EditableMessage/EditableMessage.d.mts +8 -0
- package/es/chat/EditableMessage/EditableMessage.mjs +80 -0
- package/es/chat/EditableMessage/EditableMessage.mjs.map +1 -0
- package/es/chat/EditableMessage/index.d.mts +2 -0
- package/es/chat/EditableMessage/type.d.mts +45 -0
- package/es/chat/EditableMessageList/EditableMessageList.d.mts +8 -0
- package/es/chat/EditableMessageList/EditableMessageList.mjs +101 -0
- package/es/chat/EditableMessageList/EditableMessageList.mjs.map +1 -0
- package/es/chat/EditableMessageList/index.d.mts +2 -0
- package/es/chat/EditableMessageList/messageReducer.mjs +44 -0
- package/es/chat/EditableMessageList/messageReducer.mjs.map +1 -0
- package/es/chat/EditableMessageList/type.d.mts +12 -0
- package/es/chat/LoadingDots/LoadingDots.d.mts +8 -0
- package/es/chat/LoadingDots/LoadingDots.mjs +89 -0
- package/es/chat/LoadingDots/LoadingDots.mjs.map +1 -0
- package/es/chat/LoadingDots/index.d.mts +2 -0
- package/es/chat/LoadingDots/style.mjs +157 -0
- package/es/chat/LoadingDots/style.mjs.map +1 -0
- package/es/chat/LoadingDots/type.d.mts +26 -0
- package/es/chat/MessageInput/MessageInput.d.mts +8 -0
- package/es/chat/MessageInput/MessageInput.mjs +94 -0
- package/es/chat/MessageInput/MessageInput.mjs.map +1 -0
- package/es/chat/MessageInput/index.d.mts +2 -0
- package/es/chat/MessageInput/style.mjs +16 -0
- package/es/chat/MessageInput/style.mjs.map +1 -0
- package/es/chat/MessageInput/type.d.mts +33 -0
- package/es/chat/MessageModal/MessageModal.d.mts +8 -0
- package/es/chat/MessageModal/MessageModal.mjs +92 -0
- package/es/chat/MessageModal/MessageModal.mjs.map +1 -0
- package/es/chat/MessageModal/index.d.mts +2 -0
- package/es/chat/MessageModal/type.d.mts +30 -0
- package/es/chat/TokenTag/TokenTag.d.mts +8 -0
- package/es/chat/TokenTag/TokenTag.mjs +63 -0
- package/es/chat/TokenTag/TokenTag.mjs.map +1 -0
- package/es/chat/TokenTag/index.d.mts +2 -0
- package/es/chat/TokenTag/style.mjs +34 -0
- package/es/chat/TokenTag/style.mjs.map +1 -0
- package/es/chat/TokenTag/type.d.mts +21 -0
- package/es/chat/index.d.mts +42 -0
- package/es/chat/index.mjs +20 -0
- package/es/chat/types/chatMessage.d.mts +49 -0
- package/es/chat/types/error.d.mts +24 -0
- package/es/chat/types/error.mjs +20 -0
- package/es/chat/types/error.mjs.map +1 -0
- package/es/chat/types/index.d.mts +4 -0
- package/es/chat/types/llm.d.mts +51 -0
- package/es/chat/types/llm.mjs +21 -0
- package/es/chat/types/llm.mjs.map +1 -0
- package/es/chat/types/meta.d.mts +31 -0
- package/es/color/ColorScales/ScaleRow.mjs +64 -0
- package/es/color/ColorScales/ScaleRow.mjs.map +1 -0
- package/es/color/ColorScales/index.d.mts +22 -0
- package/es/color/ColorScales/index.mjs +81 -0
- package/es/color/ColorScales/index.mjs.map +1 -0
- package/es/color/ColorScales/style.mjs +45 -0
- package/es/color/ColorScales/style.mjs.map +1 -0
- package/es/color/colors/blue.d.mts +7 -0
- package/es/color/colors/blue.mjs +68 -0
- package/es/color/colors/blue.mjs.map +1 -0
- package/es/color/colors/cyan.d.mts +7 -0
- package/es/color/colors/cyan.mjs +68 -0
- package/es/color/colors/cyan.mjs.map +1 -0
- package/es/color/colors/geekblue.d.mts +7 -0
- package/es/color/colors/geekblue.mjs +68 -0
- package/es/color/colors/geekblue.mjs.map +1 -0
- package/es/color/colors/gold.d.mts +7 -0
- package/es/color/colors/gold.mjs +68 -0
- package/es/color/colors/gold.mjs.map +1 -0
- package/es/color/colors/gray.d.mts +7 -0
- package/es/color/colors/gray.mjs +68 -0
- package/es/color/colors/gray.mjs.map +1 -0
- package/es/color/colors/green.d.mts +7 -0
- package/es/color/colors/green.mjs +68 -0
- package/es/color/colors/green.mjs.map +1 -0
- package/es/color/colors/index.d.mts +37 -0
- package/es/color/colors/index.mjs +36 -0
- package/es/color/colors/index.mjs.map +1 -0
- package/es/color/colors/lime.d.mts +7 -0
- package/es/color/colors/lime.mjs +68 -0
- package/es/color/colors/lime.mjs.map +1 -0
- package/es/color/colors/magenta.d.mts +7 -0
- package/es/color/colors/magenta.mjs +68 -0
- package/es/color/colors/magenta.mjs.map +1 -0
- package/es/color/colors/orange.d.mts +7 -0
- package/es/color/colors/orange.mjs +68 -0
- package/es/color/colors/orange.mjs.map +1 -0
- package/es/color/colors/primary.d.mts +7 -0
- package/es/color/colors/primary.mjs +68 -0
- package/es/color/colors/primary.mjs.map +1 -0
- package/es/color/colors/purple.d.mts +7 -0
- package/es/color/colors/purple.mjs +68 -0
- package/es/color/colors/purple.mjs.map +1 -0
- package/es/color/colors/red.d.mts +7 -0
- package/es/color/colors/red.mjs +68 -0
- package/es/color/colors/red.mjs.map +1 -0
- package/es/color/colors/volcano.d.mts +7 -0
- package/es/color/colors/volcano.mjs +68 -0
- package/es/color/colors/volcano.mjs.map +1 -0
- package/es/color/colors/yellow.d.mts +7 -0
- package/es/color/colors/yellow.mjs +68 -0
- package/es/color/colors/yellow.mjs.map +1 -0
- package/es/color/index.d.mts +24 -0
- package/es/color/index.mjs +24 -0
- package/es/color/neutrals/index.d.mts +19 -0
- package/es/color/neutrals/index.mjs +18 -0
- package/es/color/neutrals/index.mjs.map +1 -0
- package/es/color/neutrals/mauve.d.mts +7 -0
- package/es/color/neutrals/mauve.mjs +68 -0
- package/es/color/neutrals/mauve.mjs.map +1 -0
- package/es/color/neutrals/olive.d.mts +7 -0
- package/es/color/neutrals/olive.mjs +68 -0
- package/es/color/neutrals/olive.mjs.map +1 -0
- package/es/color/neutrals/sage.d.mts +7 -0
- package/es/color/neutrals/sage.mjs +68 -0
- package/es/color/neutrals/sage.mjs.map +1 -0
- package/es/color/neutrals/sand.d.mts +7 -0
- package/es/color/neutrals/sand.mjs +68 -0
- package/es/color/neutrals/sand.mjs.map +1 -0
- package/es/color/neutrals/slate.d.mts +7 -0
- package/es/color/neutrals/slate.mjs +68 -0
- package/es/color/neutrals/slate.mjs.map +1 -0
- package/es/color/types.d.mts +11 -0
- package/es/hooks/useCopied.mjs +26 -0
- package/es/hooks/useCopied.mjs.map +1 -0
- package/es/hooks/useHighlight.mjs +275 -0
- package/es/hooks/useHighlight.mjs.map +1 -0
- package/es/hooks/useMarkdown/latex.mjs +295 -0
- package/es/hooks/useMarkdown/latex.mjs.map +1 -0
- package/es/hooks/useMarkdown/useMarkdownComponents.mjs +105 -0
- package/es/hooks/useMarkdown/useMarkdownComponents.mjs.map +1 -0
- package/es/hooks/useMarkdown/useMarkdownContent.mjs +49 -0
- package/es/hooks/useMarkdown/useMarkdownContent.mjs.map +1 -0
- package/es/hooks/useMarkdown/useMarkdownRehypePlugins.mjs +42 -0
- package/es/hooks/useMarkdown/useMarkdownRehypePlugins.mjs.map +1 -0
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.mjs +46 -0
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.mjs.map +1 -0
- package/es/hooks/useMarkdown/utils.d.mts +18 -0
- package/es/hooks/useMarkdown/utils.mjs +83 -0
- package/es/hooks/useMarkdown/utils.mjs.map +1 -0
- package/es/hooks/useMermaid.mjs +87 -0
- package/es/hooks/useMermaid.mjs.map +1 -0
- package/es/icons/Auth0/components/Avatar.d.mts +9 -0
- package/es/icons/Auth0/components/Avatar.mjs +22 -0
- package/es/icons/Auth0/components/Avatar.mjs.map +1 -0
- package/es/icons/Auth0/components/Mono.d.mts +7 -0
- package/es/icons/Auth0/components/Mono.mjs +29 -0
- package/es/icons/Auth0/components/Mono.mjs.map +1 -0
- package/es/icons/Auth0/index.d.mts +13 -0
- package/es/icons/Auth0/index.mjs +16 -0
- package/es/icons/Auth0/index.mjs.map +1 -0
- package/es/icons/Auth0/style.mjs +7 -0
- package/es/icons/Auth0/style.mjs.map +1 -0
- package/es/icons/Authelia/components/Avatar.d.mts +9 -0
- package/es/icons/Authelia/components/Avatar.mjs +22 -0
- package/es/icons/Authelia/components/Avatar.mjs.map +1 -0
- package/es/icons/Authelia/components/Color.d.mts +7 -0
- package/es/icons/Authelia/components/Color.mjs +113 -0
- package/es/icons/Authelia/components/Color.mjs.map +1 -0
- package/es/icons/Authelia/components/Mono.d.mts +7 -0
- package/es/icons/Authelia/components/Mono.mjs +36 -0
- package/es/icons/Authelia/components/Mono.mjs.map +1 -0
- package/es/icons/Authelia/index.d.mts +15 -0
- package/es/icons/Authelia/index.mjs +18 -0
- package/es/icons/Authelia/index.mjs.map +1 -0
- package/es/icons/Authelia/style.mjs +7 -0
- package/es/icons/Authelia/style.mjs.map +1 -0
- package/es/icons/Authentik/components/Avatar.d.mts +9 -0
- package/es/icons/Authentik/components/Avatar.mjs +22 -0
- package/es/icons/Authentik/components/Avatar.mjs.map +1 -0
- package/es/icons/Authentik/components/Color.d.mts +7 -0
- package/es/icons/Authentik/components/Color.mjs +32 -0
- package/es/icons/Authentik/components/Color.mjs.map +1 -0
- package/es/icons/Authentik/components/Mono.d.mts +7 -0
- package/es/icons/Authentik/components/Mono.mjs +32 -0
- package/es/icons/Authentik/components/Mono.mjs.map +1 -0
- package/es/icons/Authentik/index.d.mts +15 -0
- package/es/icons/Authentik/index.mjs +18 -0
- package/es/icons/Authentik/index.mjs.map +1 -0
- package/es/icons/Authentik/style.mjs +7 -0
- package/es/icons/Authentik/style.mjs.map +1 -0
- package/es/icons/Casdoor/components/Avatar.d.mts +9 -0
- package/es/icons/Casdoor/components/Avatar.mjs +22 -0
- package/es/icons/Casdoor/components/Avatar.mjs.map +1 -0
- package/es/icons/Casdoor/components/Color.d.mts +7 -0
- package/es/icons/Casdoor/components/Color.mjs +81 -0
- package/es/icons/Casdoor/components/Color.mjs.map +1 -0
- package/es/icons/Casdoor/components/Mono.d.mts +7 -0
- package/es/icons/Casdoor/components/Mono.mjs +34 -0
- package/es/icons/Casdoor/components/Mono.mjs.map +1 -0
- package/es/icons/Casdoor/index.d.mts +15 -0
- package/es/icons/Casdoor/index.mjs +18 -0
- package/es/icons/Casdoor/index.mjs.map +1 -0
- package/es/icons/Casdoor/style.mjs +7 -0
- package/es/icons/Casdoor/style.mjs.map +1 -0
- package/es/icons/Clerk/components/Avatar.d.mts +9 -0
- package/es/icons/Clerk/components/Avatar.mjs +22 -0
- package/es/icons/Clerk/components/Avatar.mjs.map +1 -0
- package/es/icons/Clerk/components/Color.d.mts +7 -0
- package/es/icons/Clerk/components/Color.mjs +38 -0
- package/es/icons/Clerk/components/Color.mjs.map +1 -0
- package/es/icons/Clerk/components/Mono.d.mts +7 -0
- package/es/icons/Clerk/components/Mono.mjs +36 -0
- package/es/icons/Clerk/components/Mono.mjs.map +1 -0
- package/es/icons/Clerk/index.d.mts +15 -0
- package/es/icons/Clerk/index.mjs +18 -0
- package/es/icons/Clerk/index.mjs.map +1 -0
- package/es/icons/Clerk/style.mjs +7 -0
- package/es/icons/Clerk/style.mjs.map +1 -0
- package/es/icons/Logto/components/Avatar.d.mts +9 -0
- package/es/icons/Logto/components/Avatar.mjs +22 -0
- package/es/icons/Logto/components/Avatar.mjs.map +1 -0
- package/es/icons/Logto/components/Color.d.mts +7 -0
- package/es/icons/Logto/components/Color.mjs +49 -0
- package/es/icons/Logto/components/Color.mjs.map +1 -0
- package/es/icons/Logto/components/Mono.d.mts +7 -0
- package/es/icons/Logto/components/Mono.mjs +32 -0
- package/es/icons/Logto/components/Mono.mjs.map +1 -0
- package/es/icons/Logto/index.d.mts +15 -0
- package/es/icons/Logto/index.mjs +18 -0
- package/es/icons/Logto/index.mjs.map +1 -0
- package/es/icons/Logto/style.mjs +7 -0
- package/es/icons/Logto/style.mjs.map +1 -0
- package/es/icons/MicrosoftEntra/components/Avatar.d.mts +9 -0
- package/es/icons/MicrosoftEntra/components/Avatar.mjs +21 -0
- package/es/icons/MicrosoftEntra/components/Avatar.mjs.map +1 -0
- package/es/icons/MicrosoftEntra/components/Color.d.mts +7 -0
- package/es/icons/MicrosoftEntra/components/Color.mjs +53 -0
- package/es/icons/MicrosoftEntra/components/Color.mjs.map +1 -0
- package/es/icons/MicrosoftEntra/components/Mono.d.mts +7 -0
- package/es/icons/MicrosoftEntra/components/Mono.mjs +36 -0
- package/es/icons/MicrosoftEntra/components/Mono.mjs.map +1 -0
- package/es/icons/MicrosoftEntra/index.d.mts +15 -0
- package/es/icons/MicrosoftEntra/index.mjs +18 -0
- package/es/icons/MicrosoftEntra/index.mjs.map +1 -0
- package/es/icons/MicrosoftEntra/style.mjs +7 -0
- package/es/icons/MicrosoftEntra/style.mjs.map +1 -0
- package/es/icons/NextAuth/components/Avatar.d.mts +9 -0
- package/es/icons/NextAuth/components/Avatar.mjs +22 -0
- package/es/icons/NextAuth/components/Avatar.mjs.map +1 -0
- package/es/icons/NextAuth/components/Color.d.mts +7 -0
- package/es/icons/NextAuth/components/Color.mjs +100 -0
- package/es/icons/NextAuth/components/Color.mjs.map +1 -0
- package/es/icons/NextAuth/components/Mono.d.mts +7 -0
- package/es/icons/NextAuth/components/Mono.mjs +32 -0
- package/es/icons/NextAuth/components/Mono.mjs.map +1 -0
- package/es/icons/NextAuth/index.d.mts +15 -0
- package/es/icons/NextAuth/index.mjs +18 -0
- package/es/icons/NextAuth/index.mjs.map +1 -0
- package/es/icons/NextAuth/style.mjs +7 -0
- package/es/icons/NextAuth/style.mjs.map +1 -0
- package/es/icons/Zitadel/components/Avatar.d.mts +9 -0
- package/es/icons/Zitadel/components/Avatar.mjs +22 -0
- package/es/icons/Zitadel/components/Avatar.mjs.map +1 -0
- package/es/icons/Zitadel/components/Color.d.mts +7 -0
- package/es/icons/Zitadel/components/Color.mjs +169 -0
- package/es/icons/Zitadel/components/Color.mjs.map +1 -0
- package/es/icons/Zitadel/components/Mono.d.mts +7 -0
- package/es/icons/Zitadel/components/Mono.mjs +72 -0
- package/es/icons/Zitadel/components/Mono.mjs.map +1 -0
- package/es/icons/Zitadel/index.d.mts +15 -0
- package/es/icons/Zitadel/index.mjs +18 -0
- package/es/icons/Zitadel/index.mjs.map +1 -0
- package/es/icons/Zitadel/style.mjs +7 -0
- package/es/icons/Zitadel/style.mjs.map +1 -0
- package/es/icons/index.d.mts +27 -0
- package/es/icons/index.mjs +27 -0
- package/es/icons/lucideExtra/BotPromptIcon.d.mts +8 -0
- package/es/icons/lucideExtra/BotPromptIcon.mjs +13 -0
- package/es/icons/lucideExtra/BotPromptIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/CreateBotIcon.d.mts +8 -0
- package/es/icons/lucideExtra/CreateBotIcon.mjs +13 -0
- package/es/icons/lucideExtra/CreateBotIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/DiscordIcon.d.mts +8 -0
- package/es/icons/lucideExtra/DiscordIcon.mjs +16 -0
- package/es/icons/lucideExtra/DiscordIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/GlobeOffIcon.d.mts +8 -0
- package/es/icons/lucideExtra/GlobeOffIcon.mjs +16 -0
- package/es/icons/lucideExtra/GlobeOffIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/GroupBotIcon.d.mts +8 -0
- package/es/icons/lucideExtra/GroupBotIcon.mjs +23 -0
- package/es/icons/lucideExtra/GroupBotIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +8 -0
- package/es/icons/lucideExtra/GroupBotSquareIcon.mjs +16 -0
- package/es/icons/lucideExtra/GroupBotSquareIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/LeftClickIcon.d.mts +8 -0
- package/es/icons/lucideExtra/LeftClickIcon.mjs +16 -0
- package/es/icons/lucideExtra/LeftClickIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +8 -0
- package/es/icons/lucideExtra/LeftDoubleClickIcon.mjs +13 -0
- package/es/icons/lucideExtra/LeftDoubleClickIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/McpIcon.d.mts +8 -0
- package/es/icons/lucideExtra/McpIcon.mjs +16 -0
- package/es/icons/lucideExtra/McpIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/ProviderIcon.d.mts +8 -0
- package/es/icons/lucideExtra/ProviderIcon.mjs +27 -0
- package/es/icons/lucideExtra/ProviderIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/RightClickIcon.d.mts +8 -0
- package/es/icons/lucideExtra/RightClickIcon.mjs +16 -0
- package/es/icons/lucideExtra/RightClickIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +8 -0
- package/es/icons/lucideExtra/RightDoubleClickIcon.mjs +16 -0
- package/es/icons/lucideExtra/RightDoubleClickIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +8 -0
- package/es/icons/lucideExtra/ShapesUploadIcon.mjs +13 -0
- package/es/icons/lucideExtra/ShapesUploadIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +8 -0
- package/es/icons/lucideExtra/TreeDownRightIcon.mjs +13 -0
- package/es/icons/lucideExtra/TreeDownRightIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +8 -0
- package/es/icons/lucideExtra/TreeUpDownRightIcon.mjs +13 -0
- package/es/icons/lucideExtra/TreeUpDownRightIcon.mjs.map +1 -0
- package/es/icons/lucideExtra/index.d.mts +15 -0
- package/es/index.d.mts +246 -0
- package/es/index.mjs +124 -0
- package/es/mdx/Callout/index.d.mts +12 -0
- package/es/mdx/Callout/index.mjs +67 -0
- package/es/mdx/Callout/index.mjs.map +1 -0
- package/es/mdx/Callout/style.mjs +39 -0
- package/es/mdx/Callout/style.mjs.map +1 -0
- package/es/mdx/Cards/Card.d.mts +23 -0
- package/es/mdx/Cards/Card.mjs +119 -0
- package/es/mdx/Cards/Card.mjs.map +1 -0
- package/es/mdx/Cards/index.d.mts +10 -0
- package/es/mdx/Cards/index.mjs +23 -0
- package/es/mdx/Cards/index.mjs.map +1 -0
- package/es/mdx/Cards/style.mjs +16 -0
- package/es/mdx/Cards/style.mjs.map +1 -0
- package/es/mdx/FileTree/File.d.mts +15 -0
- package/es/mdx/FileTree/File.mjs +23 -0
- package/es/mdx/FileTree/File.mjs.map +1 -0
- package/es/mdx/FileTree/Folder.d.mts +16 -0
- package/es/mdx/FileTree/Folder.mjs +48 -0
- package/es/mdx/FileTree/Folder.mjs.map +1 -0
- package/es/mdx/FileTree/index.d.mts +9 -0
- package/es/mdx/FileTree/index.mjs +20 -0
- package/es/mdx/FileTree/index.mjs.map +1 -0
- package/es/mdx/FileTree/style.mjs +19 -0
- package/es/mdx/FileTree/style.mjs.map +1 -0
- package/es/mdx/Mdx/index.d.mts +24 -0
- package/es/mdx/Mdx/index.mjs +108 -0
- package/es/mdx/Mdx/index.mjs.map +1 -0
- package/es/mdx/Steps/index.d.mts +8 -0
- package/es/mdx/Steps/index.mjs +20 -0
- package/es/mdx/Steps/index.mjs.map +1 -0
- package/es/mdx/Steps/style.mjs +64 -0
- package/es/mdx/Steps/style.mjs.map +1 -0
- package/es/mdx/Tabs/Tab.d.mts +9 -0
- package/es/mdx/Tabs/Tab.mjs +29 -0
- package/es/mdx/Tabs/Tab.mjs.map +1 -0
- package/es/mdx/Tabs/index.d.mts +17 -0
- package/es/mdx/Tabs/index.mjs +38 -0
- package/es/mdx/Tabs/index.mjs.map +1 -0
- package/es/mdx/Tabs/style.mjs +26 -0
- package/es/mdx/Tabs/style.mjs.map +1 -0
- package/es/mdx/index.d.mts +17 -0
- package/es/mdx/index.mjs +18 -0
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs +93 -0
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs.map +1 -0
- package/es/mdx/mdxComponents/Citation/index.mjs +68 -0
- package/es/mdx/mdxComponents/Citation/index.mjs.map +1 -0
- package/es/mdx/mdxComponents/CodeBlock.d.mts +15 -0
- package/es/mdx/mdxComponents/CodeBlock.mjs +47 -0
- package/es/mdx/mdxComponents/CodeBlock.mjs.map +1 -0
- package/es/mdx/mdxComponents/Image.d.mts +10 -0
- package/es/mdx/mdxComponents/Image.mjs +24 -0
- package/es/mdx/mdxComponents/Image.mjs.map +1 -0
- package/es/mdx/mdxComponents/Link.d.mts +17 -0
- package/es/mdx/mdxComponents/Link.mjs +39 -0
- package/es/mdx/mdxComponents/Link.mjs.map +1 -0
- package/es/mdx/mdxComponents/Pre.d.mts +14 -0
- package/es/mdx/mdxComponents/Pre.mjs +62 -0
- package/es/mdx/mdxComponents/Pre.mjs.map +1 -0
- package/es/mdx/mdxComponents/Section.mjs +25 -0
- package/es/mdx/mdxComponents/Section.mjs.map +1 -0
- package/es/mdx/mdxComponents/Video.d.mts +9 -0
- package/es/mdx/mdxComponents/Video.mjs +23 -0
- package/es/mdx/mdxComponents/Video.mjs.map +1 -0
- package/es/mdx/mdxComponents/index.d.mts +7 -0
- package/es/mdx/mdxComponents/index.mjs +29 -0
- package/es/mdx/mdxComponents/index.mjs.map +1 -0
- package/es/mobile/ChatHeader/ChatHeader.mjs +67 -0
- package/es/mobile/ChatHeader/ChatHeader.mjs.map +1 -0
- package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +8 -0
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs +59 -0
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs.map +1 -0
- package/es/mobile/ChatHeader/index.d.mts +13 -0
- package/es/mobile/ChatHeader/index.mjs +11 -0
- package/es/mobile/ChatHeader/index.mjs.map +1 -0
- package/es/mobile/ChatHeader/style.mjs +74 -0
- package/es/mobile/ChatHeader/style.mjs.map +1 -0
- package/es/mobile/ChatHeader/type.d.mts +37 -0
- package/es/mobile/ChatInputArea/ChatInputArea.mjs +114 -0
- package/es/mobile/ChatInputArea/ChatInputArea.mjs.map +1 -0
- package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +8 -0
- package/es/mobile/ChatInputArea/components/ChatSendButton.mjs +28 -0
- package/es/mobile/ChatInputArea/components/ChatSendButton.mjs.map +1 -0
- package/es/mobile/ChatInputArea/index.d.mts +13 -0
- package/es/mobile/ChatInputArea/index.mjs +11 -0
- package/es/mobile/ChatInputArea/index.mjs.map +1 -0
- package/es/mobile/ChatInputArea/style.mjs +34 -0
- package/es/mobile/ChatInputArea/style.mjs.map +1 -0
- package/es/mobile/ChatInputArea/type.d.mts +26 -0
- package/es/mobile/SafeArea/SafeArea.d.mts +8 -0
- package/es/mobile/SafeArea/SafeArea.mjs +19 -0
- package/es/mobile/SafeArea/SafeArea.mjs.map +1 -0
- package/es/mobile/SafeArea/index.d.mts +2 -0
- package/es/mobile/SafeArea/style.mjs +22 -0
- package/es/mobile/SafeArea/style.mjs.map +1 -0
- package/es/mobile/SafeArea/type.d.mts +9 -0
- package/es/mobile/TabBar/TabBar.d.mts +8 -0
- package/es/mobile/TabBar/TabBar.mjs +58 -0
- package/es/mobile/TabBar/TabBar.mjs.map +1 -0
- package/es/mobile/TabBar/index.d.mts +2 -0
- package/es/mobile/TabBar/style.mjs +53 -0
- package/es/mobile/TabBar/style.mjs.map +1 -0
- package/es/mobile/TabBar/type.d.mts +22 -0
- package/es/mobile/index.d.mts +13 -0
- package/es/mobile/index.mjs +8 -0
- package/es/motion/LazyMotion.d.mts +20 -0
- package/es/motion/LazyMotion.mjs +20 -0
- package/es/motion/LazyMotion.mjs.map +1 -0
- package/es/motion/index.d.mts +4 -0
- package/es/motion/index.mjs +5 -0
- package/es/motion/loadFeatures.d.mts +14 -0
- package/es/motion/loadFeatures.mjs +6 -0
- package/es/motion/loadFeatures.mjs.map +1 -0
- package/es/node_modules/unist-util-is/lib/index.mjs +112 -0
- package/es/node_modules/unist-util-is/lib/index.mjs.map +1 -0
- package/es/node_modules/unist-util-visit/lib/index.mjs +291 -0
- package/es/node_modules/unist-util-visit/lib/index.mjs.map +1 -0
- package/es/node_modules/unist-util-visit/node_modules/unist-util-visit-parents/lib/color.node.mjs +12 -0
- package/es/node_modules/unist-util-visit/node_modules/unist-util-visit-parents/lib/color.node.mjs.map +1 -0
- package/es/node_modules/unist-util-visit/node_modules/unist-util-visit-parents/lib/index.mjs +339 -0
- package/es/node_modules/unist-util-visit/node_modules/unist-util-visit-parents/lib/index.mjs.map +1 -0
- package/es/storybook/StoryBook/index.d.mts +16 -0
- package/es/storybook/StoryBook/index.mjs +48 -0
- package/es/storybook/StoryBook/index.mjs.map +1 -0
- package/es/storybook/StoryBook/style.mjs +70 -0
- package/es/storybook/StoryBook/style.mjs.map +1 -0
- package/es/storybook/index.d.mts +2 -0
- package/es/storybook/index.mjs +3 -0
- package/es/styles/customTheme.d.mts +32 -0
- package/es/styles/customTheme.mjs +69 -0
- package/es/styles/customTheme.mjs.map +1 -0
- package/es/styles/index.d.mts +5 -0
- package/es/styles/index.mjs +6 -0
- package/es/styles/theme/algorithms/darkAlgorithm.mjs +33 -0
- package/es/styles/theme/algorithms/darkAlgorithm.mjs.map +1 -0
- package/es/styles/theme/algorithms/lightAlgorithm.mjs +33 -0
- package/es/styles/theme/algorithms/lightAlgorithm.mjs.map +1 -0
- package/es/styles/theme/antdTheme.mjs +48 -0
- package/es/styles/theme/antdTheme.mjs.map +1 -0
- package/es/styles/theme/customStylish.d.mts +8 -0
- package/es/styles/theme/customStylish.mjs +156 -0
- package/es/styles/theme/customStylish.mjs.map +1 -0
- package/es/styles/theme/customToken.d.mts +8 -0
- package/es/styles/theme/customToken.mjs +63 -0
- package/es/styles/theme/customToken.mjs.map +1 -0
- package/es/styles/theme/generateColorPalette.d.mts +23 -0
- package/es/styles/theme/generateColorPalette.mjs +46 -0
- package/es/styles/theme/generateColorPalette.mjs.map +1 -0
- package/es/styles/theme/token/base.mjs +26 -0
- package/es/styles/theme/token/base.mjs.map +1 -0
- package/es/styles/theme/token/dark.mjs +58 -0
- package/es/styles/theme/token/dark.mjs.map +1 -0
- package/es/styles/theme/token/light.mjs +58 -0
- package/es/styles/theme/token/light.mjs.map +1 -0
- package/es/types/citation.d.mts +10 -0
- package/es/types/customStylish.d.mts +24 -0
- package/es/types/customToken.d.mts +20 -0
- package/es/types/index.d.mts +16 -0
- package/es/types/index.mjs +1 -0
- package/es/utils/composeEventHandlers.mjs +28 -0
- package/es/utils/composeEventHandlers.mjs.map +1 -0
- package/es/utils/copyToClipboard.d.mts +5 -0
- package/es/utils/copyToClipboard.mjs +18 -0
- package/es/utils/copyToClipboard.mjs.map +1 -0
- package/es/utils/downloadBlob.mjs +21 -0
- package/es/utils/downloadBlob.mjs.map +1 -0
- package/es/utils/formatTime.mjs +14 -0
- package/es/utils/formatTime.mjs.map +1 -0
- package/es/utils/genCdnUrl.d.mts +18 -0
- package/es/utils/genCdnUrl.mjs +15 -0
- package/es/utils/genCdnUrl.mjs.map +1 -0
- package/es/utils/safeParseJSON.mjs +15 -0
- package/es/utils/safeParseJSON.mjs.map +1 -0
- package/es/utils/smoothCorners.d.mts +18 -0
- package/es/utils/smoothCorners.mjs +78 -0
- package/es/utils/smoothCorners.mjs.map +1 -0
- package/package.json +29 -1
- package/es/A/index.d.ts +0 -6
- package/es/A/index.js +0 -26
- package/es/Accordion/Accordion.d.ts +0 -4
- package/es/Accordion/Accordion.js +0 -132
- package/es/Accordion/AccordionItem.d.ts +0 -4
- package/es/Accordion/AccordionItem.js +0 -268
- package/es/Accordion/ArrowIcon.d.ts +0 -3
- package/es/Accordion/ArrowIcon.js +0 -36
- package/es/Accordion/context.d.ts +0 -16
- package/es/Accordion/context.js +0 -9
- package/es/Accordion/index.d.ts +0 -3
- package/es/Accordion/index.js +0 -3
- package/es/Accordion/style.d.ts +0 -12
- package/es/Accordion/style.js +0 -19
- package/es/Accordion/type.d.ts +0 -132
- package/es/Accordion/type.js +0 -1
- package/es/ActionIcon/ActionIcon.d.ts +0 -4
- package/es/ActionIcon/ActionIcon.js +0 -161
- package/es/ActionIcon/components/utils.d.ts +0 -5
- package/es/ActionIcon/components/utils.js +0 -47
- package/es/ActionIcon/index.d.ts +0 -2
- package/es/ActionIcon/index.js +0 -1
- package/es/ActionIcon/style.d.ts +0 -14
- package/es/ActionIcon/style.js +0 -23
- package/es/ActionIcon/type.d.ts +0 -25
- package/es/ActionIcon/type.js +0 -1
- package/es/ActionIconGroup/ActionIconGroup.d.ts +0 -4
- package/es/ActionIconGroup/ActionIconGroup.js +0 -137
- package/es/ActionIconGroup/index.d.ts +0 -2
- package/es/ActionIconGroup/index.js +0 -1
- package/es/ActionIconGroup/style.d.ts +0 -9
- package/es/ActionIconGroup/style.js +0 -17
- package/es/ActionIconGroup/type.d.ts +0 -19
- package/es/ActionIconGroup/type.js +0 -1
- package/es/Alert/Alert.d.ts +0 -4
- package/es/Alert/Alert.js +0 -223
- package/es/Alert/index.d.ts +0 -2
- package/es/Alert/index.js +0 -1
- package/es/Alert/style.d.ts +0 -18
- package/es/Alert/style.js +0 -29
- package/es/Alert/type.d.ts +0 -29
- package/es/Alert/type.js +0 -1
- package/es/AutoComplete/Select.d.ts +0 -4
- package/es/AutoComplete/Select.js +0 -56
- package/es/AutoComplete/index.d.ts +0 -2
- package/es/AutoComplete/index.js +0 -1
- package/es/AutoComplete/style.d.ts +0 -7
- package/es/AutoComplete/style.js +0 -15
- package/es/AutoComplete/type.d.ts +0 -4
- package/es/AutoComplete/type.js +0 -1
- package/es/Avatar/Avatar.d.ts +0 -4
- package/es/Avatar/Avatar.js +0 -135
- package/es/Avatar/AvatarGroup/index.d.ts +0 -4
- package/es/Avatar/AvatarGroup/index.js +0 -95
- package/es/Avatar/AvatarGroup/style.d.ts +0 -4
- package/es/Avatar/AvatarGroup/style.js +0 -12
- package/es/Avatar/index.d.ts +0 -11
- package/es/Avatar/index.js +0 -6
- package/es/Avatar/style.d.ts +0 -8
- package/es/Avatar/style.js +0 -17
- package/es/Avatar/type.d.ts +0 -43
- package/es/Avatar/type.js +0 -1
- package/es/Block/Block.d.ts +0 -4
- package/es/Block/Block.js +0 -87
- package/es/Block/index.d.ts +0 -2
- package/es/Block/index.js +0 -1
- package/es/Block/style.d.ts +0 -12
- package/es/Block/style.js +0 -20
- package/es/Block/type.d.ts +0 -9
- package/es/Block/type.js +0 -1
- package/es/Burger/Burger.d.ts +0 -4
- package/es/Burger/Burger.js +0 -83
- package/es/Burger/index.d.ts +0 -2
- package/es/Burger/index.js +0 -1
- package/es/Burger/style.d.ts +0 -10
- package/es/Burger/style.js +0 -19
- package/es/Burger/type.d.ts +0 -21
- package/es/Burger/type.js +0 -1
- package/es/Button/Button.d.ts +0 -4
- package/es/Button/Button.js +0 -89
- package/es/Button/index.d.ts +0 -2
- package/es/Button/index.js +0 -1
- package/es/Button/style.d.ts +0 -5
- package/es/Button/style.js +0 -14
- package/es/Button/type.d.ts +0 -10
- package/es/Button/type.js +0 -1
- package/es/CodeEditor/CodeEditor.d.ts +0 -4
- package/es/CodeEditor/CodeEditor.js +0 -114
- package/es/CodeEditor/index.d.ts +0 -2
- package/es/CodeEditor/index.js +0 -1
- package/es/CodeEditor/style.d.ts +0 -8
- package/es/CodeEditor/style.js +0 -17
- package/es/CodeEditor/type.d.ts +0 -21
- package/es/CodeEditor/type.js +0 -1
- package/es/Collapse/Collapse.d.ts +0 -4
- package/es/Collapse/Collapse.js +0 -151
- package/es/Collapse/index.d.ts +0 -2
- package/es/Collapse/index.js +0 -2
- package/es/Collapse/style.d.ts +0 -14
- package/es/Collapse/style.js +0 -26
- package/es/Collapse/type.d.ts +0 -29
- package/es/Collapse/type.js +0 -1
- package/es/ColorSwatches/ColorSwatches.d.ts +0 -4
- package/es/ColorSwatches/ColorSwatches.js +0 -129
- package/es/ColorSwatches/index.d.ts +0 -2
- package/es/ColorSwatches/index.js +0 -2
- package/es/ColorSwatches/style.d.ts +0 -7
- package/es/ColorSwatches/style.js +0 -15
- package/es/ColorSwatches/type.d.ts +0 -23
- package/es/ColorSwatches/type.js +0 -1
- package/es/ConfigProvider/index.d.ts +0 -17
- package/es/ConfigProvider/index.js +0 -45
- package/es/CopyButton/CopyButton.d.ts +0 -4
- package/es/CopyButton/CopyButton.js +0 -66
- package/es/CopyButton/index.d.ts +0 -2
- package/es/CopyButton/index.js +0 -2
- package/es/CopyButton/type.d.ts +0 -4
- package/es/CopyButton/type.js +0 -1
- package/es/DatePicker/DatePicker.d.ts +0 -4
- package/es/DatePicker/DatePicker.js +0 -56
- package/es/DatePicker/index.d.ts +0 -2
- package/es/DatePicker/index.js +0 -1
- package/es/DatePicker/style.d.ts +0 -7
- package/es/DatePicker/style.js +0 -14
- package/es/DatePicker/type.d.ts +0 -4
- package/es/DatePicker/type.js +0 -1
- package/es/DownloadButton/DownloadButton.d.ts +0 -4
- package/es/DownloadButton/DownloadButton.js +0 -68
- package/es/DownloadButton/index.d.ts +0 -2
- package/es/DownloadButton/index.js +0 -2
- package/es/DownloadButton/type.d.ts +0 -6
- package/es/DownloadButton/type.js +0 -1
- package/es/DraggablePanel/DraggablePanel.d.ts +0 -4
- package/es/DraggablePanel/DraggablePanel.js +0 -431
- package/es/DraggablePanel/components/DraggablePanelBody.d.ts +0 -5
- package/es/DraggablePanel/components/DraggablePanelBody.js +0 -28
- package/es/DraggablePanel/components/DraggablePanelContainer.d.ts +0 -5
- package/es/DraggablePanel/components/DraggablePanelContainer.js +0 -27
- package/es/DraggablePanel/components/DraggablePanelFooter.d.ts +0 -5
- package/es/DraggablePanel/components/DraggablePanelFooter.js +0 -32
- package/es/DraggablePanel/components/DraggablePanelHeader.d.ts +0 -11
- package/es/DraggablePanel/components/DraggablePanelHeader.js +0 -72
- package/es/DraggablePanel/components/style.d.ts +0 -7
- package/es/DraggablePanel/components/style.js +0 -14
- package/es/DraggablePanel/index.d.ts +0 -20
- package/es/DraggablePanel/index.js +0 -17
- package/es/DraggablePanel/style.d.ts +0 -31
- package/es/DraggablePanel/style.js +0 -75
- package/es/DraggablePanel/type.d.ts +0 -44
- package/es/DraggablePanel/type.js +0 -1
- package/es/DraggablePanel/utils.d.ts +0 -2
- package/es/DraggablePanel/utils.js +0 -20
- package/es/DraggableSideNav/DraggableSideNav.d.ts +0 -4
- package/es/DraggableSideNav/DraggableSideNav.js +0 -560
- package/es/DraggableSideNav/index.d.ts +0 -2
- package/es/DraggableSideNav/index.js +0 -1
- package/es/DraggableSideNav/style.d.ts +0 -19
- package/es/DraggableSideNav/style.js +0 -33
- package/es/DraggableSideNav/type.d.ts +0 -119
- package/es/DraggableSideNav/type.js +0 -1
- package/es/Drawer/Drawer.d.ts +0 -4
- package/es/Drawer/Drawer.js +0 -178
- package/es/Drawer/index.d.ts +0 -2
- package/es/Drawer/index.js +0 -1
- package/es/Drawer/type.d.ts +0 -25
- package/es/Drawer/type.js +0 -1
- package/es/Dropdown/Dropdown.d.ts +0 -4
- package/es/Dropdown/Dropdown.js +0 -44
- package/es/Dropdown/index.d.ts +0 -2
- package/es/Dropdown/index.js +0 -1
- package/es/Dropdown/type.d.ts +0 -8
- package/es/Dropdown/type.js +0 -1
- package/es/EditableText/ControlInput.d.ts +0 -16
- package/es/EditableText/ControlInput.js +0 -109
- package/es/EditableText/EditableText.d.ts +0 -4
- package/es/EditableText/EditableText.js +0 -126
- package/es/EditableText/index.d.ts +0 -2
- package/es/EditableText/index.js +0 -1
- package/es/EditableText/type.d.ts +0 -19
- package/es/EditableText/type.js +0 -1
- package/es/EmojiPicker/AvatarUploader.d.ts +0 -4
- package/es/EmojiPicker/AvatarUploader.js +0 -152
- package/es/EmojiPicker/EmojiPicker.d.ts +0 -4
- package/es/EmojiPicker/EmojiPicker.js +0 -231
- package/es/EmojiPicker/index.d.ts +0 -2
- package/es/EmojiPicker/index.js +0 -1
- package/es/EmojiPicker/style.d.ts +0 -6
- package/es/EmojiPicker/style.js +0 -15
- package/es/EmojiPicker/type.d.ts +0 -60
- package/es/EmojiPicker/type.js +0 -1
- package/es/Empty/Empty.d.ts +0 -4
- package/es/Empty/Empty.js +0 -96
- package/es/Empty/index.d.ts +0 -2
- package/es/Empty/index.js +0 -1
- package/es/Empty/type.d.ts +0 -20
- package/es/Empty/type.js +0 -1
- package/es/FileTypeIcon/FileTypeIcon.d.ts +0 -4
- package/es/FileTypeIcon/FileTypeIcon.js +0 -84
- package/es/FileTypeIcon/components/FileIcon.d.ts +0 -12
- package/es/FileTypeIcon/components/FileIcon.js +0 -58
- package/es/FileTypeIcon/components/FolderIcon.d.ts +0 -12
- package/es/FileTypeIcon/components/FolderIcon.js +0 -51
- package/es/FileTypeIcon/index.d.ts +0 -2
- package/es/FileTypeIcon/index.js +0 -1
- package/es/FileTypeIcon/style.d.ts +0 -5
- package/es/FileTypeIcon/style.js +0 -11
- package/es/FileTypeIcon/type.d.ts +0 -13
- package/es/FileTypeIcon/type.js +0 -1
- package/es/Flex/Center.d.ts +0 -4
- package/es/Flex/Center.js +0 -23
- package/es/Flex/FlexBasic.d.ts +0 -4
- package/es/Flex/FlexBasic.js +0 -78
- package/es/Flex/Flexbox.d.ts +0 -2
- package/es/Flex/Flexbox.js +0 -2
- package/es/Flex/index.d.ts +0 -4
- package/es/Flex/index.js +0 -3
- package/es/Flex/type.d.ts +0 -105
- package/es/Flex/type.js +0 -1
- package/es/Flex/utils.d.ts +0 -7
- package/es/Flex/utils.js +0 -39
- package/es/FluentEmoji/FluentEmoji.d.ts +0 -4
- package/es/FluentEmoji/FluentEmoji.js +0 -78
- package/es/FluentEmoji/index.d.ts +0 -2
- package/es/FluentEmoji/index.js +0 -1
- package/es/FluentEmoji/style.d.ts +0 -3
- package/es/FluentEmoji/style.js +0 -9
- package/es/FluentEmoji/type.d.ts +0 -10
- package/es/FluentEmoji/type.js +0 -1
- package/es/FluentEmoji/utils.d.ts +0 -9
- package/es/FluentEmoji/utils.js +0 -77
- package/es/FontLoader/index.d.ts +0 -6
- package/es/FontLoader/index.js +0 -36
- package/es/Footer/Footer.d.ts +0 -4
- package/es/Footer/Footer.js +0 -46
- package/es/Footer/index.d.ts +0 -2
- package/es/Footer/index.js +0 -1
- package/es/Footer/style.d.ts +0 -7
- package/es/Footer/style.js +0 -15
- package/es/Footer/type.d.ts +0 -9
- package/es/Footer/type.js +0 -1
- package/es/Form/Form.d.ts +0 -4
- package/es/Form/Form.js +0 -184
- package/es/Form/components/FormDivider.d.ts +0 -4
- package/es/Form/components/FormDivider.js +0 -40
- package/es/Form/components/FormFlatGroup.d.ts +0 -4
- package/es/Form/components/FormFlatGroup.js +0 -54
- package/es/Form/components/FormFooter.d.ts +0 -4
- package/es/Form/components/FormFooter.js +0 -33
- package/es/Form/components/FormGroup.d.ts +0 -4
- package/es/Form/components/FormGroup.js +0 -108
- package/es/Form/components/FormItem.d.ts +0 -4
- package/es/Form/components/FormItem.js +0 -86
- package/es/Form/components/FormProvider.d.ts +0 -14
- package/es/Form/components/FormProvider.js +0 -16
- package/es/Form/components/FormSubmitFooter.d.ts +0 -4
- package/es/Form/components/FormSubmitFooter.js +0 -164
- package/es/Form/components/FormTitle.d.ts +0 -4
- package/es/Form/components/FormTitle.js +0 -57
- package/es/Form/components/merge.d.ts +0 -19
- package/es/Form/components/merge.js +0 -112
- package/es/Form/index.d.ts +0 -23
- package/es/Form/index.js +0 -20
- package/es/Form/style.d.ts +0 -38
- package/es/Form/style.js +0 -77
- package/es/Form/type.d.ts +0 -110
- package/es/Form/type.js +0 -1
- package/es/FormModal/FormModal.d.ts +0 -4
- package/es/FormModal/FormModal.js +0 -145
- package/es/FormModal/index.d.ts +0 -2
- package/es/FormModal/index.js +0 -1
- package/es/FormModal/style.d.ts +0 -4
- package/es/FormModal/style.js +0 -14
- package/es/FormModal/type.d.ts +0 -20
- package/es/FormModal/type.js +0 -1
- package/es/Grid/Grid.d.ts +0 -4
- package/es/Grid/Grid.js +0 -42
- package/es/Grid/index.d.ts +0 -2
- package/es/Grid/index.js +0 -1
- package/es/Grid/style.d.ts +0 -5
- package/es/Grid/style.js +0 -11
- package/es/Grid/type.d.ts +0 -8
- package/es/Grid/type.js +0 -1
- package/es/GroupAvatar/GroupAvatar.d.ts +0 -4
- package/es/GroupAvatar/GroupAvatar.js +0 -102
- package/es/GroupAvatar/index.d.ts +0 -2
- package/es/GroupAvatar/index.js +0 -1
- package/es/GroupAvatar/style.d.ts +0 -9
- package/es/GroupAvatar/style.js +0 -20
- package/es/GroupAvatar/type.d.ts +0 -14
- package/es/GroupAvatar/type.js +0 -1
- package/es/GuideCard/GuideCard.d.ts +0 -4
- package/es/GuideCard/GuideCard.js +0 -116
- package/es/GuideCard/index.d.ts +0 -2
- package/es/GuideCard/index.js +0 -1
- package/es/GuideCard/style.d.ts +0 -12
- package/es/GuideCard/style.js +0 -22
- package/es/GuideCard/type.d.ts +0 -31
- package/es/GuideCard/type.js +0 -1
- package/es/Header/Header.d.ts +0 -4
- package/es/Header/Header.js +0 -102
- package/es/Header/index.d.ts +0 -2
- package/es/Header/index.js +0 -1
- package/es/Header/style.d.ts +0 -5
- package/es/Header/style.js +0 -14
- package/es/Header/type.d.ts +0 -14
- package/es/Header/type.js +0 -1
- package/es/Highlighter/FullFeatured.d.ts +0 -10
- package/es/Highlighter/FullFeatured.js +0 -246
- package/es/Highlighter/Highlighter.d.ts +0 -4
- package/es/Highlighter/Highlighter.js +0 -196
- package/es/Highlighter/LangSelect.d.ts +0 -4
- package/es/Highlighter/LangSelect.js +0 -89
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.d.ts +0 -17
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.js +0 -43
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.d.ts +0 -13
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.js +0 -150
- package/es/Highlighter/SyntaxHighlighter/index.d.ts +0 -4
- package/es/Highlighter/SyntaxHighlighter/index.js +0 -85
- package/es/Highlighter/SyntaxHighlighter/style.d.ts +0 -8
- package/es/Highlighter/SyntaxHighlighter/style.js +0 -17
- package/es/Highlighter/const.d.ts +0 -10
- package/es/Highlighter/const.js +0 -52
- package/es/Highlighter/index.d.ts +0 -4
- package/es/Highlighter/index.js +0 -3
- package/es/Highlighter/style.d.ts +0 -18
- package/es/Highlighter/style.js +0 -32
- package/es/Highlighter/type.d.ts +0 -54
- package/es/Highlighter/type.js +0 -1
- package/es/Hotkey/Hotkey.d.ts +0 -4
- package/es/Hotkey/Hotkey.js +0 -194
- package/es/Hotkey/const.d.ts +0 -35
- package/es/Hotkey/const.js +0 -49
- package/es/Hotkey/index.d.ts +0 -4
- package/es/Hotkey/index.js +0 -3
- package/es/Hotkey/style.d.ts +0 -7
- package/es/Hotkey/style.js +0 -18
- package/es/Hotkey/type.d.ts +0 -15
- package/es/Hotkey/type.js +0 -1
- package/es/Hotkey/utils.d.ts +0 -5
- package/es/Hotkey/utils.js +0 -43
- package/es/HotkeyInput/HotkeyInput.d.ts +0 -4
- package/es/HotkeyInput/HotkeyInput.js +0 -321
- package/es/HotkeyInput/index.d.ts +0 -2
- package/es/HotkeyInput/index.js +0 -2
- package/es/HotkeyInput/style.d.ts +0 -13
- package/es/HotkeyInput/style.js +0 -21
- package/es/HotkeyInput/type.d.ts +0 -26
- package/es/HotkeyInput/type.js +0 -1
- package/es/Icon/Icon.d.ts +0 -4
- package/es/Icon/Icon.js +0 -86
- package/es/Icon/components/IconProvider.d.ts +0 -9
- package/es/Icon/components/IconProvider.js +0 -17
- package/es/Icon/components/utils.d.ts +0 -8
- package/es/Icon/components/utils.js +0 -45
- package/es/Icon/index.d.ts +0 -3
- package/es/Icon/index.js +0 -2
- package/es/Icon/style.d.ts +0 -3
- package/es/Icon/style.js +0 -10
- package/es/Icon/type.d.ts +0 -15
- package/es/Icon/type.js +0 -1
- package/es/Image/Image.d.ts +0 -4
- package/es/Image/Image.js +0 -116
- package/es/Image/PreviewGroup.d.ts +0 -4
- package/es/Image/PreviewGroup.js +0 -23
- package/es/Image/components/Preview.d.ts +0 -6
- package/es/Image/components/Preview.js +0 -27
- package/es/Image/components/Toolbar.d.ts +0 -10
- package/es/Image/components/Toolbar.js +0 -50
- package/es/Image/components/usePreview.d.ts +0 -4
- package/es/Image/components/usePreview.js +0 -88
- package/es/Image/components/usePreviewGroup.d.ts +0 -4
- package/es/Image/components/usePreviewGroup.js +0 -83
- package/es/Image/index.d.ts +0 -11
- package/es/Image/index.js +0 -6
- package/es/Image/style.d.ts +0 -16
- package/es/Image/style.js +0 -28
- package/es/Image/type.d.ts +0 -39
- package/es/Image/type.js +0 -1
- package/es/ImageSelect/ImageSelect.d.ts +0 -4
- package/es/ImageSelect/ImageSelect.js +0 -93
- package/es/ImageSelect/index.d.ts +0 -2
- package/es/ImageSelect/index.js +0 -2
- package/es/ImageSelect/styles.d.ts +0 -6
- package/es/ImageSelect/styles.js +0 -15
- package/es/ImageSelect/type.d.ts +0 -29
- package/es/ImageSelect/type.js +0 -1
- package/es/Img/index.d.ts +0 -9
- package/es/Img/index.js +0 -33
- package/es/Input/Input.d.ts +0 -4
- package/es/Input/Input.js +0 -58
- package/es/Input/InputNumber.d.ts +0 -4
- package/es/Input/InputNumber.js +0 -58
- package/es/Input/InputOPT.d.ts +0 -4
- package/es/Input/InputOPT.js +0 -58
- package/es/Input/InputPassword.d.ts +0 -4
- package/es/Input/InputPassword.js +0 -58
- package/es/Input/TextArea.d.ts +0 -4
- package/es/Input/TextArea.js +0 -64
- package/es/Input/index.d.ts +0 -6
- package/es/Input/index.js +0 -5
- package/es/Input/style.d.ts +0 -12
- package/es/Input/style.js +0 -22
- package/es/Input/type.d.ts +0 -27
- package/es/Input/type.js +0 -1
- package/es/Layout/Layout.d.ts +0 -4
- package/es/Layout/Layout.js +0 -80
- package/es/Layout/components/LayoutFooter.d.ts +0 -3
- package/es/Layout/components/LayoutFooter.js +0 -29
- package/es/Layout/components/LayoutHeader.d.ts +0 -4
- package/es/Layout/components/LayoutHeader.js +0 -34
- package/es/Layout/components/LayoutMain.d.ts +0 -3
- package/es/Layout/components/LayoutMain.js +0 -29
- package/es/Layout/components/LayoutSidebar.d.ts +0 -4
- package/es/Layout/components/LayoutSidebar.js +0 -34
- package/es/Layout/components/LayoutSidebarInner.d.ts +0 -4
- package/es/Layout/components/LayoutSidebarInner.js +0 -30
- package/es/Layout/components/LayoutToc.d.ts +0 -4
- package/es/Layout/components/LayoutToc.js +0 -34
- package/es/Layout/index.d.ts +0 -26
- package/es/Layout/index.js +0 -21
- package/es/Layout/style.d.ts +0 -10
- package/es/Layout/style.js +0 -18
- package/es/Layout/type.d.ts +0 -28
- package/es/Layout/type.js +0 -1
- package/es/List/List.d.ts +0 -4
- package/es/List/List.js +0 -63
- package/es/List/ListItem/index.d.ts +0 -4
- package/es/List/ListItem/index.js +0 -128
- package/es/List/ListItem/style.d.ts +0 -11
- package/es/List/ListItem/style.js +0 -20
- package/es/List/ListItem/time.d.ts +0 -1
- package/es/List/ListItem/time.js +0 -6
- package/es/List/index.d.ts +0 -11
- package/es/List/index.js +0 -6
- package/es/List/type.d.ts +0 -50
- package/es/List/type.js +0 -1
- package/es/Markdown/Markdown.d.ts +0 -4
- package/es/Markdown/Markdown.js +0 -151
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.d.ts +0 -3
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.js +0 -32
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.d.ts +0 -3
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.js +0 -64
- package/es/Markdown/SyntaxMarkdown/index.d.ts +0 -2
- package/es/Markdown/SyntaxMarkdown/index.js +0 -2
- package/es/Markdown/SyntaxMarkdown/style.d.ts +0 -3
- package/es/Markdown/SyntaxMarkdown/style.js +0 -10
- package/es/Markdown/Typography.d.ts +0 -4
- package/es/Markdown/Typography.js +0 -50
- package/es/Markdown/components/CodeBlock.d.ts +0 -18
- package/es/Markdown/components/CodeBlock.js +0 -62
- package/es/Markdown/components/Footnotes.d.ts +0 -8
- package/es/Markdown/components/Footnotes.js +0 -124
- package/es/Markdown/components/MarkdownProvider.d.ts +0 -6
- package/es/Markdown/components/MarkdownProvider.js +0 -19
- package/es/Markdown/components/SearchResultCards/SearchResultCard.d.ts +0 -10
- package/es/Markdown/components/SearchResultCards/SearchResultCard.js +0 -92
- package/es/Markdown/components/SearchResultCards/index.d.ts +0 -14
- package/es/Markdown/components/SearchResultCards/index.js +0 -43
- package/es/Markdown/components/SearchResultCards/style.d.ts +0 -4
- package/es/Markdown/components/SearchResultCards/style.js +0 -10
- package/es/Markdown/components/useDelayedAnimated.d.ts +0 -1
- package/es/Markdown/components/useDelayedAnimated.js +0 -31
- package/es/Markdown/index.d.ts +0 -3
- package/es/Markdown/index.js +0 -2
- package/es/Markdown/markdown.style.d.ts +0 -3
- package/es/Markdown/markdown.style.js +0 -30
- package/es/Markdown/plugins/rehypeCustomFootnotes.d.ts +0 -1
- package/es/Markdown/plugins/rehypeCustomFootnotes.js +0 -57
- package/es/Markdown/plugins/rehypeKatexDir.d.ts +0 -2
- package/es/Markdown/plugins/rehypeKatexDir.js +0 -15
- package/es/Markdown/plugins/rehypeStreamAnimated.d.ts +0 -2
- package/es/Markdown/plugins/rehypeStreamAnimated.js +0 -56
- package/es/Markdown/plugins/remarkBr.d.ts +0 -6
- package/es/Markdown/plugins/remarkBr.js +0 -104
- package/es/Markdown/plugins/remarkColor.d.ts +0 -17
- package/es/Markdown/plugins/remarkColor.js +0 -188
- package/es/Markdown/plugins/remarkCustomFootnotes.d.ts +0 -6
- package/es/Markdown/plugins/remarkCustomFootnotes.js +0 -32
- package/es/Markdown/plugins/remarkGfmPlus.d.ts +0 -5
- package/es/Markdown/plugins/remarkGfmPlus.js +0 -141
- package/es/Markdown/plugins/remarkVideo.d.ts +0 -17
- package/es/Markdown/plugins/remarkVideo.js +0 -186
- package/es/Markdown/style.d.ts +0 -6
- package/es/Markdown/style.js +0 -15
- package/es/Markdown/type.d.ts +0 -57
- package/es/Markdown/type.js +0 -1
- package/es/MaskShadow/MaskShadow.d.ts +0 -4
- package/es/MaskShadow/MaskShadow.js +0 -54
- package/es/MaskShadow/index.d.ts +0 -2
- package/es/MaskShadow/index.js +0 -1
- package/es/MaskShadow/style.d.ts +0 -7
- package/es/MaskShadow/style.js +0 -14
- package/es/MaskShadow/type.d.ts +0 -6
- package/es/MaskShadow/type.js +0 -1
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.ts +0 -4
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +0 -88
- package/es/MaterialFileTypeIcon/icon-map.json +0 -4915
- package/es/MaterialFileTypeIcon/index.d.ts +0 -2
- package/es/MaterialFileTypeIcon/index.js +0 -1
- package/es/MaterialFileTypeIcon/type.d.ts +0 -13
- package/es/MaterialFileTypeIcon/type.js +0 -1
- package/es/MaterialFileTypeIcon/utils.d.ts +0 -17
- package/es/MaterialFileTypeIcon/utils.js +0 -48
- package/es/Menu/Menu.d.ts +0 -4
- package/es/Menu/Menu.js +0 -102
- package/es/Menu/index.d.ts +0 -3
- package/es/Menu/index.js +0 -2
- package/es/Menu/style.d.ts +0 -8
- package/es/Menu/style.js +0 -18
- package/es/Menu/type.d.ts +0 -33
- package/es/Menu/type.js +0 -1
- package/es/Menu/utils.d.ts +0 -3
- package/es/Menu/utils.js +0 -47
- package/es/Mermaid/FullFeatured.d.ts +0 -8
- package/es/Mermaid/FullFeatured.js +0 -211
- package/es/Mermaid/Mermaid.d.ts +0 -5
- package/es/Mermaid/Mermaid.js +0 -160
- package/es/Mermaid/SyntaxMermaid/index.d.ts +0 -4
- package/es/Mermaid/SyntaxMermaid/index.js +0 -108
- package/es/Mermaid/const.d.ts +0 -7
- package/es/Mermaid/const.js +0 -24
- package/es/Mermaid/index.d.ts +0 -4
- package/es/Mermaid/index.js +0 -3
- package/es/Mermaid/type.d.ts +0 -47
- package/es/Mermaid/type.js +0 -1
- package/es/Modal/Modal.d.ts +0 -4
- package/es/Modal/Modal.js +0 -169
- package/es/Modal/index.d.ts +0 -2
- package/es/Modal/index.js +0 -1
- package/es/Modal/style.d.ts +0 -7
- package/es/Modal/style.js +0 -15
- package/es/Modal/type.d.ts +0 -9
- package/es/Modal/type.js +0 -1
- package/es/ScrollShadow/ScrollShadow.d.ts +0 -4
- package/es/ScrollShadow/ScrollShadow.js +0 -155
- package/es/ScrollShadow/index.d.ts +0 -2
- package/es/ScrollShadow/index.js +0 -1
- package/es/ScrollShadow/style.d.ts +0 -12
- package/es/ScrollShadow/style.js +0 -21
- package/es/ScrollShadow/type.d.ts +0 -17
- package/es/ScrollShadow/type.js +0 -1
- package/es/ScrollShadow/useScrollOverflow.d.ts +0 -21
- package/es/ScrollShadow/useScrollOverflow.js +0 -83
- package/es/SearchBar/SearchBar.d.ts +0 -4
- package/es/SearchBar/SearchBar.js +0 -129
- package/es/SearchBar/index.d.ts +0 -2
- package/es/SearchBar/index.js +0 -1
- package/es/SearchBar/style.d.ts +0 -5
- package/es/SearchBar/style.js +0 -14
- package/es/SearchBar/type.d.ts +0 -20
- package/es/SearchBar/type.js +0 -1
- package/es/Segmented/Segmented.d.ts +0 -4
- package/es/Segmented/Segmented.js +0 -69
- package/es/Segmented/index.d.ts +0 -2
- package/es/Segmented/index.js +0 -1
- package/es/Segmented/style.d.ts +0 -8
- package/es/Segmented/style.js +0 -16
- package/es/Segmented/type.d.ts +0 -11
- package/es/Segmented/type.js +0 -1
- package/es/Select/Select.d.ts +0 -4
- package/es/Select/Select.js +0 -70
- package/es/Select/index.d.ts +0 -2
- package/es/Select/index.js +0 -1
- package/es/Select/style.d.ts +0 -7
- package/es/Select/style.js +0 -16
- package/es/Select/type.d.ts +0 -9
- package/es/Select/type.js +0 -1
- package/es/SideNav/SideNav.d.ts +0 -4
- package/es/SideNav/SideNav.js +0 -51
- package/es/SideNav/index.d.ts +0 -2
- package/es/SideNav/index.js +0 -1
- package/es/SideNav/style.d.ts +0 -1
- package/es/SideNav/style.js +0 -8
- package/es/SideNav/type.d.ts +0 -7
- package/es/SideNav/type.js +0 -1
- package/es/Skeleton/Skeleton.d.ts +0 -4
- package/es/Skeleton/Skeleton.js +0 -82
- package/es/Skeleton/SkeletonAvatar.d.ts +0 -4
- package/es/Skeleton/SkeletonAvatar.js +0 -45
- package/es/Skeleton/SkeletonBlock.d.ts +0 -4
- package/es/Skeleton/SkeletonBlock.js +0 -26
- package/es/Skeleton/SkeletonButton.d.ts +0 -4
- package/es/Skeleton/SkeletonButton.js +0 -56
- package/es/Skeleton/SkeletonParagraph.d.ts +0 -4
- package/es/Skeleton/SkeletonParagraph.js +0 -63
- package/es/Skeleton/SkeletonTags.d.ts +0 -4
- package/es/Skeleton/SkeletonTags.js +0 -80
- package/es/Skeleton/SkeletonTitle.d.ts +0 -4
- package/es/Skeleton/SkeletonTitle.js +0 -44
- package/es/Skeleton/index.d.ts +0 -26
- package/es/Skeleton/index.js +0 -21
- package/es/Skeleton/style.d.ts +0 -6
- package/es/Skeleton/style.js +0 -16
- package/es/Skeleton/type.d.ts +0 -55
- package/es/Skeleton/type.js +0 -1
- package/es/SliderWithInput/SliderWithInput.d.ts +0 -4
- package/es/SliderWithInput/SliderWithInput.js +0 -99
- package/es/SliderWithInput/index.d.ts +0 -2
- package/es/SliderWithInput/index.js +0 -1
- package/es/SliderWithInput/type.d.ts +0 -20
- package/es/SliderWithInput/type.js +0 -1
- package/es/Snippet/Snippet.d.ts +0 -4
- package/es/Snippet/Snippet.js +0 -82
- package/es/Snippet/index.d.ts +0 -2
- package/es/Snippet/index.js +0 -1
- package/es/Snippet/style.d.ts +0 -8
- package/es/Snippet/style.js +0 -16
- package/es/Snippet/type.d.ts +0 -12
- package/es/Snippet/type.js +0 -1
- package/es/SortableList/SortableList.d.ts +0 -11
- package/es/SortableList/SortableList.js +0 -101
- package/es/SortableList/components/DragHandle.d.ts +0 -4
- package/es/SortableList/components/DragHandle.js +0 -53
- package/es/SortableList/components/SortableItem.d.ts +0 -15
- package/es/SortableList/components/SortableItem.js +0 -98
- package/es/SortableList/components/SortableOverlay.d.ts +0 -5
- package/es/SortableList/components/SortableOverlay.js +0 -23
- package/es/SortableList/index.d.ts +0 -2
- package/es/SortableList/index.js +0 -1
- package/es/SortableList/style.d.ts +0 -8
- package/es/SortableList/style.js +0 -16
- package/es/SortableList/type.d.ts +0 -12
- package/es/SortableList/type.js +0 -1
- package/es/Tabs/Tabs.d.ts +0 -4
- package/es/Tabs/Tabs.js +0 -80
- package/es/Tabs/index.d.ts +0 -2
- package/es/Tabs/index.js +0 -1
- package/es/Tabs/style.d.ts +0 -9
- package/es/Tabs/style.js +0 -17
- package/es/Tabs/type.d.ts +0 -5
- package/es/Tabs/type.js +0 -1
- package/es/Tag/Tag.d.ts +0 -4
- package/es/Tag/Tag.js +0 -105
- package/es/Tag/index.d.ts +0 -2
- package/es/Tag/index.js +0 -1
- package/es/Tag/styles.d.ts +0 -8
- package/es/Tag/styles.js +0 -17
- package/es/Tag/type.d.ts +0 -8
- package/es/Tag/type.js +0 -1
- package/es/Tag/utils.d.ts +0 -4
- package/es/Tag/utils.js +0 -16
- package/es/Text/Text.d.ts +0 -4
- package/es/Text/Text.js +0 -132
- package/es/Text/index.d.ts +0 -2
- package/es/Text/index.js +0 -1
- package/es/Text/styles.d.ts +0 -23
- package/es/Text/styles.js +0 -31
- package/es/Text/type.d.ts +0 -23
- package/es/Text/type.js +0 -1
- package/es/ThemeProvider/ConfigProvider.d.ts +0 -5
- package/es/ThemeProvider/ConfigProvider.js +0 -41
- package/es/ThemeProvider/GlobalStyle/antdOverride.d.ts +0 -3
- package/es/ThemeProvider/GlobalStyle/antdOverride.js +0 -8
- package/es/ThemeProvider/GlobalStyle/global.d.ts +0 -3
- package/es/ThemeProvider/GlobalStyle/global.js +0 -6
- package/es/ThemeProvider/GlobalStyle/index.d.ts +0 -3
- package/es/ThemeProvider/GlobalStyle/index.js +0 -10
- package/es/ThemeProvider/Meta.d.ts +0 -4
- package/es/ThemeProvider/Meta.js +0 -78
- package/es/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/es/ThemeProvider/ThemeProvider.js +0 -94
- package/es/ThemeProvider/index.d.ts +0 -3
- package/es/ThemeProvider/index.js +0 -2
- package/es/ThemeProvider/type.d.ts +0 -25
- package/es/ThemeProvider/type.js +0 -1
- package/es/ThemeSwitch/ThemeSwitch.d.ts +0 -4
- package/es/ThemeSwitch/ThemeSwitch.js +0 -85
- package/es/ThemeSwitch/index.d.ts +0 -2
- package/es/ThemeSwitch/index.js +0 -1
- package/es/ThemeSwitch/type.d.ts +0 -15
- package/es/ThemeSwitch/type.js +0 -1
- package/es/Toc/Toc.d.ts +0 -4
- package/es/Toc/Toc.js +0 -43
- package/es/Toc/TocMobile.d.ts +0 -4
- package/es/Toc/TocMobile.js +0 -89
- package/es/Toc/index.d.ts +0 -2
- package/es/Toc/index.js +0 -1
- package/es/Toc/style.d.ts +0 -9
- package/es/Toc/style.js +0 -21
- package/es/Toc/type.d.ts +0 -17
- package/es/Toc/type.js +0 -1
- package/es/Toc/utils.d.ts +0 -11
- package/es/Toc/utils.js +0 -17
- package/es/Tooltip/Tooltip.d.ts +0 -4
- package/es/Tooltip/Tooltip.js +0 -278
- package/es/Tooltip/TooltipFloating.d.ts +0 -22
- package/es/Tooltip/TooltipFloating.js +0 -126
- package/es/Tooltip/TooltipGroup.d.ts +0 -7
- package/es/Tooltip/TooltipGroup.js +0 -160
- package/es/Tooltip/TooltipPortal.d.ts +0 -7
- package/es/Tooltip/TooltipPortal.js +0 -46
- package/es/Tooltip/antdPlacementToFloating.d.ts +0 -9
- package/es/Tooltip/antdPlacementToFloating.js +0 -51
- package/es/Tooltip/groupContext.d.ts +0 -12
- package/es/Tooltip/groupContext.js +0 -3
- package/es/Tooltip/index.d.ts +0 -3
- package/es/Tooltip/index.js +0 -2
- package/es/Tooltip/style.d.ts +0 -6
- package/es/Tooltip/style.js +0 -13
- package/es/Tooltip/type.d.ts +0 -98
- package/es/Tooltip/type.js +0 -1
- package/es/Video/index.d.ts +0 -39
- package/es/Video/index.js +0 -163
- package/es/Video/style.d.ts +0 -13
- package/es/Video/style.js +0 -27
- package/es/awesome/AuroraBackground/AuroraBackground.d.ts +0 -4
- package/es/awesome/AuroraBackground/AuroraBackground.js +0 -47
- package/es/awesome/AuroraBackground/index.d.ts +0 -2
- package/es/awesome/AuroraBackground/index.js +0 -1
- package/es/awesome/AuroraBackground/style.d.ts +0 -4
- package/es/awesome/AuroraBackground/style.js +0 -17
- package/es/awesome/AuroraBackground/type.d.ts +0 -13
- package/es/awesome/AuroraBackground/type.js +0 -1
- package/es/awesome/BottomGradientButton/BottomGradientButton.d.ts +0 -3
- package/es/awesome/BottomGradientButton/BottomGradientButton.js +0 -39
- package/es/awesome/BottomGradientButton/index.d.ts +0 -2
- package/es/awesome/BottomGradientButton/index.js +0 -1
- package/es/awesome/BottomGradientButton/style.d.ts +0 -1
- package/es/awesome/BottomGradientButton/style.js +0 -10
- package/es/awesome/BottomGradientButton/type.d.ts +0 -2
- package/es/awesome/BottomGradientButton/type.js +0 -1
- package/es/awesome/Features/FeatureItem.d.ts +0 -4
- package/es/awesome/Features/FeatureItem.js +0 -103
- package/es/awesome/Features/Features.d.ts +0 -4
- package/es/awesome/Features/Features.js +0 -41
- package/es/awesome/Features/index.d.ts +0 -2
- package/es/awesome/Features/index.js +0 -1
- package/es/awesome/Features/style.d.ts +0 -12
- package/es/awesome/Features/style.js +0 -30
- package/es/awesome/Features/type.d.ts +0 -27
- package/es/awesome/Features/type.js +0 -1
- package/es/awesome/Giscus/Giscus.d.ts +0 -4
- package/es/awesome/Giscus/Giscus.js +0 -51
- package/es/awesome/Giscus/index.d.ts +0 -2
- package/es/awesome/Giscus/index.js +0 -1
- package/es/awesome/Giscus/style.d.ts +0 -2
- package/es/awesome/Giscus/style.js +0 -31
- package/es/awesome/Giscus/type.d.ts +0 -6
- package/es/awesome/Giscus/type.js +0 -1
- package/es/awesome/GradientButton/GradientButton.d.ts +0 -4
- package/es/awesome/GradientButton/GradientButton.js +0 -40
- package/es/awesome/GradientButton/index.d.ts +0 -2
- package/es/awesome/GradientButton/index.js +0 -1
- package/es/awesome/GradientButton/style.d.ts +0 -4
- package/es/awesome/GradientButton/style.js +0 -38
- package/es/awesome/GradientButton/type.d.ts +0 -4
- package/es/awesome/GradientButton/type.js +0 -1
- package/es/awesome/GridBackground/GridBackground.d.ts +0 -4
- package/es/awesome/GridBackground/GridBackground.js +0 -108
- package/es/awesome/GridBackground/GridShowcase.d.ts +0 -4
- package/es/awesome/GridBackground/GridShowcase.js +0 -59
- package/es/awesome/GridBackground/components/Grid.d.ts +0 -26
- package/es/awesome/GridBackground/components/Grid.js +0 -103
- package/es/awesome/GridBackground/index.d.ts +0 -3
- package/es/awesome/GridBackground/index.js +0 -2
- package/es/awesome/GridBackground/style.d.ts +0 -9
- package/es/awesome/GridBackground/style.js +0 -22
- package/es/awesome/GridBackground/type.d.ts +0 -18
- package/es/awesome/GridBackground/type.js +0 -1
- package/es/awesome/Hero/Hero.d.ts +0 -4
- package/es/awesome/Hero/Hero.js +0 -100
- package/es/awesome/Hero/index.d.ts +0 -2
- package/es/awesome/Hero/index.js +0 -1
- package/es/awesome/Hero/style.d.ts +0 -6
- package/es/awesome/Hero/style.js +0 -15
- package/es/awesome/Hero/type.d.ts +0 -14
- package/es/awesome/Hero/type.js +0 -1
- package/es/awesome/Spline/ParentSize.d.ts +0 -36
- package/es/awesome/Spline/ParentSize.js +0 -119
- package/es/awesome/Spline/Spine.d.ts +0 -6
- package/es/awesome/Spline/Spine.js +0 -148
- package/es/awesome/Spline/index.d.ts +0 -2
- package/es/awesome/Spline/index.js +0 -1
- package/es/awesome/Spline/type.d.ts +0 -17
- package/es/awesome/Spline/type.js +0 -1
- package/es/awesome/Spotlight/Spotlight.d.ts +0 -4
- package/es/awesome/Spotlight/Spotlight.js +0 -45
- package/es/awesome/Spotlight/index.d.ts +0 -2
- package/es/awesome/Spotlight/index.js +0 -1
- package/es/awesome/Spotlight/style.d.ts +0 -8
- package/es/awesome/Spotlight/style.js +0 -17
- package/es/awesome/Spotlight/type.d.ts +0 -4
- package/es/awesome/Spotlight/type.js +0 -1
- package/es/awesome/Spotlight/useMouseOffset.d.ts +0 -1
- package/es/awesome/Spotlight/useMouseOffset.js +0 -43
- package/es/awesome/SpotlightCard/SpotlightCard.d.ts +0 -4
- package/es/awesome/SpotlightCard/SpotlightCard.js +0 -90
- package/es/awesome/SpotlightCard/SpotlightCardItem.d.ts +0 -4
- package/es/awesome/SpotlightCard/SpotlightCardItem.js +0 -42
- package/es/awesome/SpotlightCard/index.d.ts +0 -2
- package/es/awesome/SpotlightCard/index.js +0 -1
- package/es/awesome/SpotlightCard/style.d.ts +0 -10
- package/es/awesome/SpotlightCard/style.js +0 -19
- package/es/awesome/SpotlightCard/type.d.ts +0 -16
- package/es/awesome/SpotlightCard/type.js +0 -1
- package/es/awesome/TypewriterEffect/TypewriterEffect.d.ts +0 -4
- package/es/awesome/TypewriterEffect/TypewriterEffect.js +0 -314
- package/es/awesome/TypewriterEffect/index.d.ts +0 -2
- package/es/awesome/TypewriterEffect/index.js +0 -1
- package/es/awesome/TypewriterEffect/style.d.ts +0 -10
- package/es/awesome/TypewriterEffect/style.js +0 -18
- package/es/awesome/TypewriterEffect/type.d.ts +0 -126
- package/es/awesome/TypewriterEffect/type.js +0 -1
- package/es/awesome/index.d.ts +0 -10
- package/es/awesome/index.js +0 -10
- package/es/brand/BrandLoading/index.d.ts +0 -11
- package/es/brand/BrandLoading/index.js +0 -23
- package/es/brand/BrandLoading/style.css +0 -32
- package/es/brand/LobeChat/index.d.ts +0 -9
- package/es/brand/LobeChat/index.js +0 -119
- package/es/brand/LobeChatText/index.d.ts +0 -6
- package/es/brand/LobeChatText/index.js +0 -40
- package/es/brand/LobeHub/index.d.ts +0 -9
- package/es/brand/LobeHub/index.js +0 -118
- package/es/brand/LobeHub/style.d.ts +0 -8
- package/es/brand/LobeHub/style.js +0 -14
- package/es/brand/LobeHubText/index.d.ts +0 -6
- package/es/brand/LobeHubText/index.js +0 -36
- package/es/brand/Logo3d/index.d.ts +0 -8
- package/es/brand/Logo3d/index.js +0 -33
- package/es/brand/LogoFlat/index.d.ts +0 -6
- package/es/brand/LogoFlat/index.js +0 -75
- package/es/brand/LogoMono/index.d.ts +0 -6
- package/es/brand/LogoMono/index.js +0 -79
- package/es/brand/LogoThree/Loading.d.ts +0 -5
- package/es/brand/LogoThree/Loading.js +0 -22
- package/es/brand/LogoThree/LogoSpline.d.ts +0 -10
- package/es/brand/LogoThree/LogoSpline.js +0 -53
- package/es/brand/LogoThree/index.d.ts +0 -9
- package/es/brand/LogoThree/index.js +0 -76
- package/es/brand/components/Divider.d.ts +0 -6
- package/es/brand/components/Divider.js +0 -35
- package/es/brand/index.d.ts +0 -10
- package/es/brand/index.js +0 -10
- package/es/chat/BackBottom/BackBottom.d.ts +0 -4
- package/es/chat/BackBottom/BackBottom.js +0 -63
- package/es/chat/BackBottom/index.d.ts +0 -2
- package/es/chat/BackBottom/index.js +0 -1
- package/es/chat/BackBottom/style.d.ts +0 -1
- package/es/chat/BackBottom/style.js +0 -8
- package/es/chat/BackBottom/type.d.ts +0 -11
- package/es/chat/BackBottom/type.js +0 -1
- package/es/chat/Bubble/Bubble.d.ts +0 -4
- package/es/chat/Bubble/Bubble.js +0 -60
- package/es/chat/Bubble/index.d.ts +0 -2
- package/es/chat/Bubble/index.js +0 -1
- package/es/chat/Bubble/style.d.ts +0 -7
- package/es/chat/Bubble/style.js +0 -16
- package/es/chat/Bubble/type.d.ts +0 -7
- package/es/chat/Bubble/type.js +0 -1
- package/es/chat/ChatHeader/ChatHeader.d.ts +0 -4
- package/es/chat/ChatHeader/ChatHeader.js +0 -79
- package/es/chat/ChatHeader/ChatHeaderTitle.d.ts +0 -4
- package/es/chat/ChatHeader/ChatHeaderTitle.js +0 -47
- package/es/chat/ChatHeader/index.d.ts +0 -11
- package/es/chat/ChatHeader/index.js +0 -6
- package/es/chat/ChatHeader/style.d.ts +0 -14
- package/es/chat/ChatHeader/style.js +0 -25
- package/es/chat/ChatHeader/type.d.ts +0 -28
- package/es/chat/ChatHeader/type.js +0 -1
- package/es/chat/ChatInputArea/ChatInputArea.d.ts +0 -4
- package/es/chat/ChatInputArea/ChatInputArea.js +0 -72
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.ts +0 -4
- package/es/chat/ChatInputArea/components/ChatInputActionBar.js +0 -56
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.ts +0 -4
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.js +0 -61
- package/es/chat/ChatInputArea/components/ChatSendButton.d.ts +0 -4
- package/es/chat/ChatInputArea/components/ChatSendButton.js +0 -82
- package/es/chat/ChatInputArea/index.d.ts +0 -17
- package/es/chat/ChatInputArea/index.js +0 -12
- package/es/chat/ChatInputArea/style.d.ts +0 -10
- package/es/chat/ChatInputArea/style.js +0 -21
- package/es/chat/ChatInputArea/type.d.ts +0 -50
- package/es/chat/ChatInputArea/type.js +0 -1
- package/es/chat/ChatItem/ChatItem.d.ts +0 -5
- package/es/chat/ChatItem/ChatItem.js +0 -187
- package/es/chat/ChatItem/components/Actions.d.ts +0 -11
- package/es/chat/ChatItem/components/Actions.js +0 -24
- package/es/chat/ChatItem/components/Avatar.d.ts +0 -15
- package/es/chat/ChatItem/components/Avatar.js +0 -47
- package/es/chat/ChatItem/components/BorderSpacing.d.ts +0 -6
- package/es/chat/ChatItem/components/BorderSpacing.js +0 -12
- package/es/chat/ChatItem/components/ErrorContent.d.ts +0 -9
- package/es/chat/ChatItem/components/ErrorContent.js +0 -29
- package/es/chat/ChatItem/components/Loading.d.ts +0 -8
- package/es/chat/ChatItem/components/Loading.js +0 -28
- package/es/chat/ChatItem/components/MessageContent.d.ts +0 -20
- package/es/chat/ChatItem/components/MessageContent.js +0 -57
- package/es/chat/ChatItem/components/Title.d.ts +0 -11
- package/es/chat/ChatItem/components/Title.js +0 -28
- package/es/chat/ChatItem/index.d.ts +0 -2
- package/es/chat/ChatItem/index.js +0 -1
- package/es/chat/ChatItem/style.d.ts +0 -24
- package/es/chat/ChatItem/style.js +0 -36
- package/es/chat/ChatItem/type.d.ts +0 -89
- package/es/chat/ChatItem/type.js +0 -1
- package/es/chat/ChatList/ChatList.d.ts +0 -4
- package/es/chat/ChatList/ChatList.js +0 -72
- package/es/chat/ChatList/components/ChatActionsBar.d.ts +0 -4
- package/es/chat/ChatList/components/ChatActionsBar.js +0 -31
- package/es/chat/ChatList/components/ChatListItem.d.ts +0 -4
- package/es/chat/ChatList/components/ChatListItem.js +0 -185
- package/es/chat/ChatList/components/HistoryDivider.d.ts +0 -7
- package/es/chat/ChatList/components/HistoryDivider.js +0 -24
- package/es/chat/ChatList/components/useChatListActionsBar.d.ts +0 -17
- package/es/chat/ChatList/components/useChatListActionsBar.js +0 -33
- package/es/chat/ChatList/index.d.ts +0 -3
- package/es/chat/ChatList/index.js +0 -2
- package/es/chat/ChatList/style.d.ts +0 -3
- package/es/chat/ChatList/style.js +0 -9
- package/es/chat/ChatList/type.d.ts +0 -94
- package/es/chat/ChatList/type.js +0 -1
- package/es/chat/EditableMessage/EditableMessage.d.ts +0 -4
- package/es/chat/EditableMessage/EditableMessage.js +0 -117
- package/es/chat/EditableMessage/index.d.ts +0 -2
- package/es/chat/EditableMessage/index.js +0 -1
- package/es/chat/EditableMessage/type.d.ts +0 -37
- package/es/chat/EditableMessage/type.js +0 -1
- package/es/chat/EditableMessageList/EditableMessageList.d.ts +0 -4
- package/es/chat/EditableMessageList/EditableMessageList.js +0 -113
- package/es/chat/EditableMessageList/index.d.ts +0 -2
- package/es/chat/EditableMessageList/index.js +0 -1
- package/es/chat/EditableMessageList/messageReducer.d.ts +0 -37
- package/es/chat/EditableMessageList/messageReducer.js +0 -81
- package/es/chat/EditableMessageList/type.d.ts +0 -6
- package/es/chat/EditableMessageList/type.js +0 -1
- package/es/chat/LoadingDots/LoadingDots.d.ts +0 -4
- package/es/chat/LoadingDots/LoadingDots.js +0 -124
- package/es/chat/LoadingDots/index.d.ts +0 -2
- package/es/chat/LoadingDots/index.js +0 -1
- package/es/chat/LoadingDots/style.d.ts +0 -13
- package/es/chat/LoadingDots/style.js +0 -25
- package/es/chat/LoadingDots/type.d.ts +0 -22
- package/es/chat/LoadingDots/type.js +0 -1
- package/es/chat/MessageInput/MessageInput.d.ts +0 -4
- package/es/chat/MessageInput/MessageInput.js +0 -142
- package/es/chat/MessageInput/index.d.ts +0 -2
- package/es/chat/MessageInput/index.js +0 -1
- package/es/chat/MessageInput/style.d.ts +0 -1
- package/es/chat/MessageInput/style.js +0 -8
- package/es/chat/MessageInput/type.d.ts +0 -25
- package/es/chat/MessageInput/type.js +0 -1
- package/es/chat/MessageModal/MessageModal.d.ts +0 -4
- package/es/chat/MessageModal/MessageModal.js +0 -132
- package/es/chat/MessageModal/TextArea.d.ts +0 -8
- package/es/chat/MessageModal/TextArea.js +0 -41
- package/es/chat/MessageModal/index.d.ts +0 -2
- package/es/chat/MessageModal/index.js +0 -1
- package/es/chat/MessageModal/type.d.ts +0 -23
- package/es/chat/MessageModal/type.js +0 -1
- package/es/chat/TokenTag/TokenTag.d.ts +0 -4
- package/es/chat/TokenTag/TokenTag.js +0 -95
- package/es/chat/TokenTag/index.d.ts +0 -2
- package/es/chat/TokenTag/index.js +0 -1
- package/es/chat/TokenTag/style.d.ts +0 -6
- package/es/chat/TokenTag/style.js +0 -14
- package/es/chat/TokenTag/type.d.ts +0 -15
- package/es/chat/TokenTag/type.js +0 -1
- package/es/chat/index.d.ts +0 -12
- package/es/chat/index.js +0 -12
- package/es/chat/types/chatMessage.d.ts +0 -43
- package/es/chat/types/chatMessage.js +0 -1
- package/es/chat/types/error.d.ts +0 -20
- package/es/chat/types/error.js +0 -25
- package/es/chat/types/index.d.ts +0 -4
- package/es/chat/types/index.js +0 -4
- package/es/chat/types/llm.d.ts +0 -47
- package/es/chat/types/llm.js +0 -12
- package/es/chat/types/meta.d.ts +0 -26
- package/es/chat/types/meta.js +0 -1
- package/es/color/ColorScales/ScaleRow.d.ts +0 -8
- package/es/color/ColorScales/ScaleRow.js +0 -87
- package/es/color/ColorScales/index.d.ts +0 -18
- package/es/color/ColorScales/index.js +0 -78
- package/es/color/ColorScales/style.d.ts +0 -10
- package/es/color/ColorScales/style.js +0 -17
- package/es/color/colors/blue.d.ts +0 -3
- package/es/color/colors/blue.js +0 -7
- package/es/color/colors/cyan.d.ts +0 -3
- package/es/color/colors/cyan.js +0 -7
- package/es/color/colors/geekblue.d.ts +0 -3
- package/es/color/colors/geekblue.js +0 -7
- package/es/color/colors/gold.d.ts +0 -3
- package/es/color/colors/gold.js +0 -7
- package/es/color/colors/gray.d.ts +0 -3
- package/es/color/colors/gray.js +0 -7
- package/es/color/colors/green.d.ts +0 -3
- package/es/color/colors/green.js +0 -7
- package/es/color/colors/index.d.ts +0 -33
- package/es/color/colors/index.js +0 -45
- package/es/color/colors/lime.d.ts +0 -3
- package/es/color/colors/lime.js +0 -7
- package/es/color/colors/magenta.d.ts +0 -3
- package/es/color/colors/magenta.js +0 -7
- package/es/color/colors/orange.d.ts +0 -3
- package/es/color/colors/orange.js +0 -7
- package/es/color/colors/primary.d.ts +0 -3
- package/es/color/colors/primary.js +0 -7
- package/es/color/colors/purple.d.ts +0 -3
- package/es/color/colors/purple.js +0 -7
- package/es/color/colors/red.d.ts +0 -3
- package/es/color/colors/red.js +0 -7
- package/es/color/colors/volcano.d.ts +0 -3
- package/es/color/colors/volcano.js +0 -7
- package/es/color/colors/yellow.d.ts +0 -3
- package/es/color/colors/yellow.js +0 -7
- package/es/color/index.d.ts +0 -4
- package/es/color/index.js +0 -3
- package/es/color/neutrals/index.d.ts +0 -15
- package/es/color/neutrals/index.js +0 -18
- package/es/color/neutrals/mauve.d.ts +0 -3
- package/es/color/neutrals/mauve.js +0 -7
- package/es/color/neutrals/olive.d.ts +0 -3
- package/es/color/neutrals/olive.js +0 -7
- package/es/color/neutrals/sage.d.ts +0 -3
- package/es/color/neutrals/sage.js +0 -7
- package/es/color/neutrals/sand.d.ts +0 -3
- package/es/color/neutrals/sand.js +0 -7
- package/es/color/neutrals/slate.d.ts +0 -3
- package/es/color/neutrals/slate.js +0 -7
- package/es/color/types.d.ts +0 -22
- package/es/color/types.js +0 -1
- package/es/hooks/useCopied.d.ts +0 -4
- package/es/hooks/useCopied.js +0 -33
- package/es/hooks/useHighlight.d.ts +0 -29
- package/es/hooks/useHighlight.js +0 -432
- package/es/hooks/useMarkdown/index.d.ts +0 -4
- package/es/hooks/useMarkdown/index.js +0 -4
- package/es/hooks/useMarkdown/latex.d.ts +0 -179
- package/es/hooks/useMarkdown/latex.js +0 -529
- package/es/hooks/useMarkdown/useMarkdownComponents.d.ts +0 -2
- package/es/hooks/useMarkdown/useMarkdownComponents.js +0 -152
- package/es/hooks/useMarkdown/useMarkdownContent.d.ts +0 -1
- package/es/hooks/useMarkdown/useMarkdownContent.js +0 -64
- package/es/hooks/useMarkdown/useMarkdownRehypePlugins.d.ts +0 -2
- package/es/hooks/useMarkdown/useMarkdownRehypePlugins.js +0 -34
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.d.ts +0 -2
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.js +0 -40
- package/es/hooks/useMarkdown/utils.d.ts +0 -30
- package/es/hooks/useMarkdown/utils.js +0 -137
- package/es/hooks/useMermaid.d.ts +0 -9
- package/es/hooks/useMermaid.js +0 -140
- package/es/icons/Auth0/components/Avatar.d.ts +0 -5
- package/es/icons/Auth0/components/Avatar.js +0 -26
- package/es/icons/Auth0/components/Mono.d.ts +0 -3
- package/es/icons/Auth0/components/Mono.js +0 -40
- package/es/icons/Auth0/index.d.ts +0 -9
- package/es/icons/Auth0/index.js +0 -10
- package/es/icons/Auth0/style.d.ts +0 -2
- package/es/icons/Auth0/style.js +0 -2
- package/es/icons/Authelia/components/Avatar.d.ts +0 -5
- package/es/icons/Authelia/components/Avatar.js +0 -26
- package/es/icons/Authelia/components/Color.d.ts +0 -3
- package/es/icons/Authelia/components/Color.js +0 -132
- package/es/icons/Authelia/components/Mono.d.ts +0 -3
- package/es/icons/Authelia/components/Mono.js +0 -48
- package/es/icons/Authelia/index.d.ts +0 -11
- package/es/icons/Authelia/index.js +0 -12
- package/es/icons/Authelia/style.d.ts +0 -2
- package/es/icons/Authelia/style.js +0 -2
- package/es/icons/Authentik/components/Avatar.d.ts +0 -5
- package/es/icons/Authentik/components/Avatar.js +0 -26
- package/es/icons/Authentik/components/Color.d.ts +0 -3
- package/es/icons/Authentik/components/Color.js +0 -41
- package/es/icons/Authentik/components/Mono.d.ts +0 -3
- package/es/icons/Authentik/components/Mono.js +0 -41
- package/es/icons/Authentik/index.d.ts +0 -11
- package/es/icons/Authentik/index.js +0 -12
- package/es/icons/Authentik/style.d.ts +0 -2
- package/es/icons/Authentik/style.js +0 -2
- package/es/icons/Casdoor/components/Avatar.d.ts +0 -5
- package/es/icons/Casdoor/components/Avatar.js +0 -26
- package/es/icons/Casdoor/components/Color.d.ts +0 -3
- package/es/icons/Casdoor/components/Color.js +0 -98
- package/es/icons/Casdoor/components/Mono.d.ts +0 -3
- package/es/icons/Casdoor/components/Mono.js +0 -44
- package/es/icons/Casdoor/index.d.ts +0 -11
- package/es/icons/Casdoor/index.js +0 -12
- package/es/icons/Casdoor/style.d.ts +0 -2
- package/es/icons/Casdoor/style.js +0 -2
- package/es/icons/Clerk/components/Avatar.d.ts +0 -5
- package/es/icons/Clerk/components/Avatar.js +0 -26
- package/es/icons/Clerk/components/Color.d.ts +0 -3
- package/es/icons/Clerk/components/Color.js +0 -43
- package/es/icons/Clerk/components/Mono.d.ts +0 -3
- package/es/icons/Clerk/components/Mono.js +0 -43
- package/es/icons/Clerk/index.d.ts +0 -11
- package/es/icons/Clerk/index.js +0 -12
- package/es/icons/Clerk/style.d.ts +0 -2
- package/es/icons/Clerk/style.js +0 -2
- package/es/icons/Logto/components/Avatar.d.ts +0 -5
- package/es/icons/Logto/components/Avatar.js +0 -26
- package/es/icons/Logto/components/Color.d.ts +0 -3
- package/es/icons/Logto/components/Color.js +0 -60
- package/es/icons/Logto/components/Mono.d.ts +0 -3
- package/es/icons/Logto/components/Mono.js +0 -41
- package/es/icons/Logto/index.d.ts +0 -11
- package/es/icons/Logto/index.js +0 -12
- package/es/icons/Logto/style.d.ts +0 -2
- package/es/icons/Logto/style.js +0 -2
- package/es/icons/MicrosoftEntra/components/Avatar.d.ts +0 -5
- package/es/icons/MicrosoftEntra/components/Avatar.js +0 -25
- package/es/icons/MicrosoftEntra/components/Color.d.ts +0 -3
- package/es/icons/MicrosoftEntra/components/Color.js +0 -54
- package/es/icons/MicrosoftEntra/components/Mono.d.ts +0 -3
- package/es/icons/MicrosoftEntra/components/Mono.js +0 -43
- package/es/icons/MicrosoftEntra/index.d.ts +0 -11
- package/es/icons/MicrosoftEntra/index.js +0 -12
- package/es/icons/MicrosoftEntra/style.d.ts +0 -2
- package/es/icons/MicrosoftEntra/style.js +0 -2
- package/es/icons/NextAuth/components/Avatar.d.ts +0 -5
- package/es/icons/NextAuth/components/Avatar.js +0 -26
- package/es/icons/NextAuth/components/Color.d.ts +0 -3
- package/es/icons/NextAuth/components/Color.js +0 -109
- package/es/icons/NextAuth/components/Mono.d.ts +0 -3
- package/es/icons/NextAuth/components/Mono.js +0 -41
- package/es/icons/NextAuth/index.d.ts +0 -11
- package/es/icons/NextAuth/index.js +0 -12
- package/es/icons/NextAuth/style.d.ts +0 -2
- package/es/icons/NextAuth/style.js +0 -2
- package/es/icons/Zitadel/components/Avatar.d.ts +0 -5
- package/es/icons/Zitadel/components/Avatar.js +0 -26
- package/es/icons/Zitadel/components/Color.d.ts +0 -3
- package/es/icons/Zitadel/components/Color.js +0 -184
- package/es/icons/Zitadel/components/Mono.d.ts +0 -3
- package/es/icons/Zitadel/components/Mono.js +0 -70
- package/es/icons/Zitadel/index.d.ts +0 -11
- package/es/icons/Zitadel/index.js +0 -12
- package/es/icons/Zitadel/style.d.ts +0 -2
- package/es/icons/Zitadel/style.js +0 -2
- package/es/icons/index.d.ts +0 -11
- package/es/icons/index.js +0 -11
- package/es/icons/lucideExtra/BotPromptIcon.d.ts +0 -3
- package/es/icons/lucideExtra/BotPromptIcon.js +0 -7
- package/es/icons/lucideExtra/CreateBotIcon.d.ts +0 -3
- package/es/icons/lucideExtra/CreateBotIcon.js +0 -7
- package/es/icons/lucideExtra/DiscordIcon.d.ts +0 -3
- package/es/icons/lucideExtra/DiscordIcon.js +0 -10
- package/es/icons/lucideExtra/GlobeOffIcon.d.ts +0 -3
- package/es/icons/lucideExtra/GlobeOffIcon.js +0 -10
- package/es/icons/lucideExtra/GroupBotIcon.d.ts +0 -3
- package/es/icons/lucideExtra/GroupBotIcon.js +0 -13
- package/es/icons/lucideExtra/GroupBotSquareIcon.d.ts +0 -3
- package/es/icons/lucideExtra/GroupBotSquareIcon.js +0 -10
- package/es/icons/lucideExtra/LeftClickIcon.d.ts +0 -3
- package/es/icons/lucideExtra/LeftClickIcon.js +0 -10
- package/es/icons/lucideExtra/LeftDoubleClickIcon.d.ts +0 -3
- package/es/icons/lucideExtra/LeftDoubleClickIcon.js +0 -7
- package/es/icons/lucideExtra/McpIcon.d.ts +0 -3
- package/es/icons/lucideExtra/McpIcon.js +0 -10
- package/es/icons/lucideExtra/ProviderIcon.d.ts +0 -3
- package/es/icons/lucideExtra/ProviderIcon.js +0 -16
- package/es/icons/lucideExtra/RightClickIcon.d.ts +0 -3
- package/es/icons/lucideExtra/RightClickIcon.js +0 -10
- package/es/icons/lucideExtra/RightDoubleClickIcon.d.ts +0 -3
- package/es/icons/lucideExtra/RightDoubleClickIcon.js +0 -10
- package/es/icons/lucideExtra/ShapesUploadIcon.d.ts +0 -3
- package/es/icons/lucideExtra/ShapesUploadIcon.js +0 -7
- package/es/icons/lucideExtra/TreeDownRightIcon.d.ts +0 -3
- package/es/icons/lucideExtra/TreeDownRightIcon.js +0 -7
- package/es/icons/lucideExtra/TreeUpDownRightIcon.d.ts +0 -3
- package/es/icons/lucideExtra/TreeUpDownRightIcon.js +0 -7
- package/es/icons/lucideExtra/index.d.ts +0 -15
- package/es/icons/lucideExtra/index.js +0 -15
- package/es/index.d.ts +0 -81
- package/es/index.js +0 -80
- package/es/mdx/Callout/index.d.ts +0 -7
- package/es/mdx/Callout/index.js +0 -90
- package/es/mdx/Callout/style.d.ts +0 -5
- package/es/mdx/Callout/style.js +0 -11
- package/es/mdx/Cards/Card.d.ts +0 -16
- package/es/mdx/Cards/Card.js +0 -110
- package/es/mdx/Cards/index.d.ts +0 -5
- package/es/mdx/Cards/index.js +0 -35
- package/es/mdx/Cards/style.d.ts +0 -3
- package/es/mdx/Cards/style.js +0 -9
- package/es/mdx/FileTree/File.d.ts +0 -9
- package/es/mdx/FileTree/File.js +0 -35
- package/es/mdx/FileTree/Folder.d.ts +0 -10
- package/es/mdx/FileTree/Folder.js +0 -69
- package/es/mdx/FileTree/index.d.ts +0 -5
- package/es/mdx/FileTree/index.js +0 -28
- package/es/mdx/FileTree/style.d.ts +0 -3
- package/es/mdx/FileTree/style.js +0 -10
- package/es/mdx/Mdx/index.d.ts +0 -18
- package/es/mdx/Mdx/index.js +0 -174
- package/es/mdx/Steps/index.d.ts +0 -4
- package/es/mdx/Steps/index.js +0 -28
- package/es/mdx/Steps/style.d.ts +0 -3
- package/es/mdx/Steps/style.js +0 -10
- package/es/mdx/Tabs/Tab.d.ts +0 -5
- package/es/mdx/Tabs/Tab.js +0 -38
- package/es/mdx/Tabs/index.d.ts +0 -11
- package/es/mdx/Tabs/index.js +0 -65
- package/es/mdx/Tabs/style.d.ts +0 -4
- package/es/mdx/Tabs/style.js +0 -12
- package/es/mdx/index.d.ts +0 -16
- package/es/mdx/index.js +0 -16
- package/es/mdx/mdxComponents/Citation/PopoverPanel.d.ts +0 -10
- package/es/mdx/mdxComponents/Citation/PopoverPanel.js +0 -92
- package/es/mdx/mdxComponents/Citation/index.d.ts +0 -12
- package/es/mdx/mdxComponents/Citation/index.js +0 -72
- package/es/mdx/mdxComponents/CodeBlock.d.ts +0 -10
- package/es/mdx/mdxComponents/CodeBlock.js +0 -55
- package/es/mdx/mdxComponents/Image.d.ts +0 -5
- package/es/mdx/mdxComponents/Image.js +0 -31
- package/es/mdx/mdxComponents/Link.d.ts +0 -13
- package/es/mdx/mdxComponents/Link.js +0 -50
- package/es/mdx/mdxComponents/Pre.d.ts +0 -9
- package/es/mdx/mdxComponents/Pre.js +0 -104
- package/es/mdx/mdxComponents/Section.d.ts +0 -8
- package/es/mdx/mdxComponents/Section.js +0 -30
- package/es/mdx/mdxComponents/Video.d.ts +0 -5
- package/es/mdx/mdxComponents/Video.js +0 -26
- package/es/mdx/mdxComponents/index.d.ts +0 -3
- package/es/mdx/mdxComponents/index.js +0 -23
- package/es/mobile/ChatHeader/ChatHeader.d.ts +0 -4
- package/es/mobile/ChatHeader/ChatHeader.js +0 -88
- package/es/mobile/ChatHeader/ChatHeaderTitle.d.ts +0 -4
- package/es/mobile/ChatHeader/ChatHeaderTitle.js +0 -58
- package/es/mobile/ChatHeader/index.d.ts +0 -11
- package/es/mobile/ChatHeader/index.js +0 -6
- package/es/mobile/ChatHeader/style.d.ts +0 -14
- package/es/mobile/ChatHeader/style.js +0 -25
- package/es/mobile/ChatHeader/type.d.ts +0 -31
- package/es/mobile/ChatHeader/type.js +0 -1
- package/es/mobile/ChatInputArea/ChatInputArea.d.ts +0 -4
- package/es/mobile/ChatInputArea/ChatInputArea.js +0 -147
- package/es/mobile/ChatInputArea/components/ChatSendButton.d.ts +0 -4
- package/es/mobile/ChatInputArea/components/ChatSendButton.js +0 -38
- package/es/mobile/ChatInputArea/index.d.ts +0 -11
- package/es/mobile/ChatInputArea/index.js +0 -6
- package/es/mobile/ChatInputArea/style.d.ts +0 -7
- package/es/mobile/ChatInputArea/style.js +0 -14
- package/es/mobile/ChatInputArea/type.d.ts +0 -19
- package/es/mobile/ChatInputArea/type.js +0 -1
- package/es/mobile/SafeArea/SafeArea.d.ts +0 -4
- package/es/mobile/SafeArea/SafeArea.js +0 -26
- package/es/mobile/SafeArea/index.d.ts +0 -2
- package/es/mobile/SafeArea/index.js +0 -1
- package/es/mobile/SafeArea/style.d.ts +0 -5
- package/es/mobile/SafeArea/style.js +0 -11
- package/es/mobile/SafeArea/type.d.ts +0 -4
- package/es/mobile/SafeArea/type.js +0 -1
- package/es/mobile/TabBar/TabBar.d.ts +0 -4
- package/es/mobile/TabBar/TabBar.js +0 -84
- package/es/mobile/TabBar/index.d.ts +0 -2
- package/es/mobile/TabBar/index.js +0 -1
- package/es/mobile/TabBar/style.d.ts +0 -8
- package/es/mobile/TabBar/style.js +0 -15
- package/es/mobile/TabBar/type.d.ts +0 -16
- package/es/mobile/TabBar/type.js +0 -1
- package/es/mobile/index.d.ts +0 -4
- package/es/mobile/index.js +0 -4
- package/es/motion/LazyMotion.d.ts +0 -15
- package/es/motion/LazyMotion.js +0 -26
- package/es/motion/index.d.ts +0 -3
- package/es/motion/index.js +0 -3
- package/es/motion/loadFeatures.d.ts +0 -9
- package/es/motion/loadFeatures.js +0 -10
- package/es/storybook/StoryBook/index.d.ts +0 -10
- package/es/storybook/StoryBook/index.js +0 -61
- package/es/storybook/StoryBook/style.d.ts +0 -6
- package/es/storybook/StoryBook/style.js +0 -15
- package/es/storybook/index.d.ts +0 -1
- package/es/storybook/index.js +0 -1
- package/es/styles/customTheme.d.ts +0 -28
- package/es/styles/customTheme.js +0 -32
- package/es/styles/index.d.ts +0 -4
- package/es/styles/index.js +0 -4
- package/es/styles/theme/algorithms/darkAlgorithm.d.ts +0 -2
- package/es/styles/theme/algorithms/darkAlgorithm.js +0 -36
- package/es/styles/theme/algorithms/lightAlgorithm.d.ts +0 -2
- package/es/styles/theme/algorithms/lightAlgorithm.js +0 -32
- package/es/styles/theme/antdTheme.d.ts +0 -15
- package/es/styles/theme/antdTheme.js +0 -54
- package/es/styles/theme/customStylish.d.ts +0 -3
- package/es/styles/theme/customStylish.js +0 -29
- package/es/styles/theme/customToken.d.ts +0 -3
- package/es/styles/theme/customToken.js +0 -83
- package/es/styles/theme/generateColorPalette.d.ts +0 -11
- package/es/styles/theme/generateColorPalette.js +0 -35
- package/es/styles/theme/token/base.d.ts +0 -2
- package/es/styles/theme/token/base.js +0 -13
- package/es/styles/theme/token/dark.d.ts +0 -3
- package/es/styles/theme/token/dark.js +0 -47
- package/es/styles/theme/token/light.d.ts +0 -3
- package/es/styles/theme/token/light.js +0 -47
- package/es/types/citation.d.ts +0 -6
- package/es/types/citation.js +0 -1
- package/es/types/customStylish.d.ts +0 -20
- package/es/types/customStylish.js +0 -1
- package/es/types/customToken.d.ts +0 -25
- package/es/types/customToken.js +0 -3
- package/es/types/global.d.ts +0 -11
- package/es/types/index.d.ts +0 -11
- package/es/types/index.js +0 -3
- package/es/utils/composeEventHandlers.d.ts +0 -19
- package/es/utils/composeEventHandlers.js +0 -26
- package/es/utils/copyToClipboard.d.ts +0 -1
- package/es/utils/copyToClipboard.js +0 -36
- package/es/utils/downloadBlob.d.ts +0 -1
- package/es/utils/downloadBlob.js +0 -33
- package/es/utils/formatTime.d.ts +0 -1
- package/es/utils/formatTime.js +0 -12
- package/es/utils/genCdnUrl.d.ts +0 -11
- package/es/utils/genCdnUrl.js +0 -21
- package/es/utils/platform.d.ts +0 -1
- package/es/utils/platform.js +0 -1
- package/es/utils/safeParseJSON.d.ts +0 -1
- package/es/utils/safeParseJSON.js +0 -10
- package/es/utils/smoothCorners.d.ts +0 -39
- package/es/utils/smoothCorners.js +0 -112
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { getCodeLanguageByInput } from "../Highlighter/const.mjs";
|
|
4
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { useTheme, useThemeMode } from "antd-style";
|
|
6
|
+
import { transformerNotationDiff, transformerNotationErrorLevel, transformerNotationFocus, transformerNotationHighlight, transformerNotationWordHighlight } from "@shikijs/transformers";
|
|
7
|
+
import { ShikiStreamTokenizer } from "shiki-stream";
|
|
8
|
+
import useSWR from "swr";
|
|
9
|
+
import { Md5 } from "ts-md5";
|
|
10
|
+
|
|
11
|
+
//#region src/hooks/useHighlight.ts
|
|
12
|
+
const MD5_LENGTH_THRESHOLD = 1e4;
|
|
13
|
+
const loadShikiModule = () => {
|
|
14
|
+
if (typeof window === "undefined") return Promise.resolve(null);
|
|
15
|
+
return import("shiki");
|
|
16
|
+
};
|
|
17
|
+
const shikiModulePromise = loadShikiModule();
|
|
18
|
+
const loadShiki = () => {
|
|
19
|
+
return shikiModulePromise.then((mod) => mod?.codeToHtml ?? null);
|
|
20
|
+
};
|
|
21
|
+
const shikiPromise = loadShiki();
|
|
22
|
+
const escapeHtml = (str) => {
|
|
23
|
+
return str.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
24
|
+
};
|
|
25
|
+
const tokensToLineTokens = (tokens) => {
|
|
26
|
+
if (!tokens.length) return [[]];
|
|
27
|
+
const lines = [[]];
|
|
28
|
+
let currentLine = lines[0];
|
|
29
|
+
const startNewLine = () => {
|
|
30
|
+
currentLine = [];
|
|
31
|
+
lines.push(currentLine);
|
|
32
|
+
};
|
|
33
|
+
tokens.forEach((token) => {
|
|
34
|
+
const content = token.content ?? "";
|
|
35
|
+
if (content === "\n") {
|
|
36
|
+
startNewLine();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (!content.includes("\n")) {
|
|
40
|
+
currentLine.push(token);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const segments = content.split("\n");
|
|
44
|
+
segments.forEach((segment, index) => {
|
|
45
|
+
if (segment) currentLine.push({
|
|
46
|
+
...token,
|
|
47
|
+
content: segment
|
|
48
|
+
});
|
|
49
|
+
if (index < segments.length - 1) startNewLine();
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
if (lines.length === 0) return [[]];
|
|
53
|
+
return lines;
|
|
54
|
+
};
|
|
55
|
+
const createPreStyle = (bg, fg) => {
|
|
56
|
+
if (!bg && !fg) return void 0;
|
|
57
|
+
return {
|
|
58
|
+
backgroundColor: bg,
|
|
59
|
+
color: fg
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
const useStreamingHighlighter = (text, options) => {
|
|
63
|
+
const { colorReplacements, enabled, language, theme } = options;
|
|
64
|
+
const [result, setResult] = useState();
|
|
65
|
+
const tokenizerRef = useRef(null);
|
|
66
|
+
const previousTextRef = useRef("");
|
|
67
|
+
const safeText = text ?? "";
|
|
68
|
+
const latestTextRef = useRef(safeText);
|
|
69
|
+
const preStyleRef = useRef(void 0);
|
|
70
|
+
const colorReplacementsRef = useRef(colorReplacements);
|
|
71
|
+
const linesRef = useRef([[]]);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
latestTextRef.current = safeText;
|
|
74
|
+
}, [safeText]);
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
colorReplacementsRef.current = colorReplacements;
|
|
77
|
+
}, [colorReplacements]);
|
|
78
|
+
const setStreamingResult = useCallback((rawLines) => {
|
|
79
|
+
const previousLines = linesRef.current;
|
|
80
|
+
const mergedLines = rawLines.map((line, index) => {
|
|
81
|
+
const previousLine = previousLines[index];
|
|
82
|
+
if (previousLine && previousLine.length === line.length && previousLine.every((token, tokenIndex) => token === line[tokenIndex])) return previousLine;
|
|
83
|
+
return line;
|
|
84
|
+
});
|
|
85
|
+
linesRef.current = mergedLines;
|
|
86
|
+
setResult({
|
|
87
|
+
colorReplacements: colorReplacementsRef.current,
|
|
88
|
+
lines: mergedLines,
|
|
89
|
+
preStyle: preStyleRef.current
|
|
90
|
+
});
|
|
91
|
+
}, []);
|
|
92
|
+
const updateTokens = useCallback(async (nextText, forceReset = false) => {
|
|
93
|
+
const tokenizer = tokenizerRef.current;
|
|
94
|
+
if (!tokenizer) return;
|
|
95
|
+
if (forceReset) {
|
|
96
|
+
tokenizer.clear();
|
|
97
|
+
previousTextRef.current = "";
|
|
98
|
+
}
|
|
99
|
+
const previousText = previousTextRef.current;
|
|
100
|
+
let chunk = nextText;
|
|
101
|
+
if (!forceReset && nextText.startsWith(previousText)) chunk = nextText.slice(previousText.length);
|
|
102
|
+
else if (!forceReset) tokenizer.clear();
|
|
103
|
+
previousTextRef.current = nextText;
|
|
104
|
+
if (!chunk) {
|
|
105
|
+
const mergedTokens = [...tokenizer.tokensStable, ...tokenizer.tokensUnstable];
|
|
106
|
+
setStreamingResult(mergedTokens.length ? tokensToLineTokens(mergedTokens) : [[]]);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
try {
|
|
110
|
+
await tokenizer.enqueue(chunk);
|
|
111
|
+
setStreamingResult(tokensToLineTokens([...tokenizer.tokensStable, ...tokenizer.tokensUnstable]));
|
|
112
|
+
} catch (error) {
|
|
113
|
+
console.error("Streaming highlighting failed:", error);
|
|
114
|
+
}
|
|
115
|
+
}, [setStreamingResult]);
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (!enabled) {
|
|
118
|
+
tokenizerRef.current?.clear();
|
|
119
|
+
tokenizerRef.current = null;
|
|
120
|
+
previousTextRef.current = "";
|
|
121
|
+
preStyleRef.current = void 0;
|
|
122
|
+
linesRef.current = [[]];
|
|
123
|
+
setResult(void 0);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
let cancelled = false;
|
|
127
|
+
(async () => {
|
|
128
|
+
const mod = await shikiModulePromise;
|
|
129
|
+
if (!mod || cancelled) return;
|
|
130
|
+
try {
|
|
131
|
+
const highlighter = await mod.getSingletonHighlighter({
|
|
132
|
+
langs: language ? [language] : [],
|
|
133
|
+
themes: [theme]
|
|
134
|
+
});
|
|
135
|
+
if (!highlighter || cancelled) return;
|
|
136
|
+
tokenizerRef.current = new ShikiStreamTokenizer({
|
|
137
|
+
highlighter,
|
|
138
|
+
lang: language,
|
|
139
|
+
theme
|
|
140
|
+
});
|
|
141
|
+
previousTextRef.current = "";
|
|
142
|
+
linesRef.current = [[]];
|
|
143
|
+
const themeInfo = highlighter.getTheme(theme);
|
|
144
|
+
preStyleRef.current = createPreStyle(themeInfo?.bg, themeInfo?.fg);
|
|
145
|
+
const currentText = latestTextRef.current;
|
|
146
|
+
if (currentText) await updateTokens(currentText, true);
|
|
147
|
+
else setStreamingResult([[]]);
|
|
148
|
+
} catch (error) {
|
|
149
|
+
console.error("Streaming highlighter initialization failed:", error);
|
|
150
|
+
}
|
|
151
|
+
})();
|
|
152
|
+
return () => {
|
|
153
|
+
cancelled = true;
|
|
154
|
+
tokenizerRef.current?.clear();
|
|
155
|
+
tokenizerRef.current = null;
|
|
156
|
+
previousTextRef.current = "";
|
|
157
|
+
};
|
|
158
|
+
}, [
|
|
159
|
+
enabled,
|
|
160
|
+
language,
|
|
161
|
+
setStreamingResult,
|
|
162
|
+
theme,
|
|
163
|
+
updateTokens
|
|
164
|
+
]);
|
|
165
|
+
useEffect(() => {
|
|
166
|
+
if (!enabled) return;
|
|
167
|
+
if (!tokenizerRef.current) return;
|
|
168
|
+
updateTokens(safeText);
|
|
169
|
+
}, [
|
|
170
|
+
enabled,
|
|
171
|
+
safeText,
|
|
172
|
+
updateTokens
|
|
173
|
+
]);
|
|
174
|
+
return result;
|
|
175
|
+
};
|
|
176
|
+
const useHighlight = (text, { language, enableTransformer, theme: builtinTheme, streaming }) => {
|
|
177
|
+
const { isDarkMode } = useThemeMode();
|
|
178
|
+
const theme = useTheme();
|
|
179
|
+
const safeText = text ?? "";
|
|
180
|
+
const lang = (language ?? "plaintext").toLowerCase();
|
|
181
|
+
const matchedLanguage = useMemo(() => getCodeLanguageByInput(lang), [lang]);
|
|
182
|
+
const transformers = useMemo(() => {
|
|
183
|
+
if (!enableTransformer) return;
|
|
184
|
+
return [
|
|
185
|
+
transformerNotationDiff(),
|
|
186
|
+
transformerNotationHighlight(),
|
|
187
|
+
transformerNotationWordHighlight(),
|
|
188
|
+
transformerNotationFocus(),
|
|
189
|
+
transformerNotationErrorLevel()
|
|
190
|
+
];
|
|
191
|
+
}, [enableTransformer]);
|
|
192
|
+
const colorReplacements = useMemo(() => ({
|
|
193
|
+
"slack-dark": {
|
|
194
|
+
"#4ec9b0": theme.yellow,
|
|
195
|
+
"#569cd6": theme.colorError,
|
|
196
|
+
"#6a9955": theme.gray,
|
|
197
|
+
"#9cdcfe": theme.colorText,
|
|
198
|
+
"#b5cea8": theme.purple10,
|
|
199
|
+
"#c586c0": theme.colorInfo,
|
|
200
|
+
"#ce9178": theme.colorSuccess,
|
|
201
|
+
"#dcdcaa": theme.colorWarning,
|
|
202
|
+
"#e6e6e6": theme.colorText
|
|
203
|
+
},
|
|
204
|
+
"slack-ochin": {
|
|
205
|
+
"#002339": theme.colorText,
|
|
206
|
+
"#0444ac": theme.geekblue,
|
|
207
|
+
"#0991b6": theme.colorError,
|
|
208
|
+
"#174781": theme.purple10,
|
|
209
|
+
"#2f86d2": theme.colorText,
|
|
210
|
+
"#357b42": theme.gray,
|
|
211
|
+
"#7b30d0": theme.colorInfo,
|
|
212
|
+
"#7eb233": theme.colorWarningTextActive,
|
|
213
|
+
"#a44185": theme.colorSuccess,
|
|
214
|
+
"#dc3eb7": theme.yellow11
|
|
215
|
+
}
|
|
216
|
+
}), [theme]);
|
|
217
|
+
const cacheKey = useMemo(() => {
|
|
218
|
+
const hash = safeText.length < MD5_LENGTH_THRESHOLD ? safeText : Md5.hashStr(safeText);
|
|
219
|
+
return [
|
|
220
|
+
matchedLanguage,
|
|
221
|
+
builtinTheme || (isDarkMode ? "d" : "l"),
|
|
222
|
+
hash
|
|
223
|
+
].filter(Boolean).join("-");
|
|
224
|
+
}, [
|
|
225
|
+
safeText,
|
|
226
|
+
matchedLanguage,
|
|
227
|
+
isDarkMode,
|
|
228
|
+
builtinTheme
|
|
229
|
+
]);
|
|
230
|
+
const response = useSWR(streaming ? null : cacheKey, async () => {
|
|
231
|
+
try {
|
|
232
|
+
const codeToHtml = await shikiPromise;
|
|
233
|
+
if (!codeToHtml) return safeText;
|
|
234
|
+
return await codeToHtml(safeText, {
|
|
235
|
+
colorReplacements: builtinTheme ? void 0 : colorReplacements,
|
|
236
|
+
lang: matchedLanguage,
|
|
237
|
+
theme: builtinTheme || (isDarkMode ? "slack-dark" : "slack-ochin"),
|
|
238
|
+
transformers
|
|
239
|
+
});
|
|
240
|
+
} catch (error) {
|
|
241
|
+
console.error("Advanced rendering failed:", error);
|
|
242
|
+
try {
|
|
243
|
+
const codeToHtml = await shikiPromise;
|
|
244
|
+
if (!codeToHtml) return safeText;
|
|
245
|
+
return await codeToHtml(safeText, {
|
|
246
|
+
lang: matchedLanguage,
|
|
247
|
+
theme: isDarkMode ? "dark-plus" : "light-plus"
|
|
248
|
+
});
|
|
249
|
+
} catch {
|
|
250
|
+
return `<pre class="fallback"><code>${escapeHtml(safeText)}</code></pre>`;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}, {
|
|
254
|
+
dedupingInterval: 3e3,
|
|
255
|
+
errorRetryCount: 2,
|
|
256
|
+
revalidateOnFocus: false,
|
|
257
|
+
revalidateOnReconnect: false
|
|
258
|
+
});
|
|
259
|
+
const effectiveTheme = builtinTheme || (isDarkMode ? "slack-dark" : "slack-ochin");
|
|
260
|
+
const streamingResult = useStreamingHighlighter(safeText, {
|
|
261
|
+
colorReplacements: builtinTheme ? void 0 : colorReplacements[effectiveTheme],
|
|
262
|
+
enabled: streaming,
|
|
263
|
+
language: matchedLanguage,
|
|
264
|
+
theme: effectiveTheme
|
|
265
|
+
});
|
|
266
|
+
return {
|
|
267
|
+
...response,
|
|
268
|
+
colorReplacements,
|
|
269
|
+
streaming: streamingResult
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
//#endregion
|
|
274
|
+
export { useHighlight };
|
|
275
|
+
//# sourceMappingURL=useHighlight.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHighlight.mjs","names":["lines: ThemedToken[][]"],"sources":["../../src/hooks/useHighlight.ts"],"sourcesContent":["'use client';\n\nimport {\n transformerNotationDiff,\n transformerNotationErrorLevel,\n transformerNotationFocus,\n transformerNotationHighlight,\n transformerNotationWordHighlight,\n} from '@shikijs/transformers';\nimport { useTheme, useThemeMode } from 'antd-style';\nimport { CSSProperties, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport type { BuiltinTheme, CodeToHastOptions, ThemedToken } from 'shiki';\nimport { ShikiStreamTokenizer } from 'shiki-stream';\nimport useSWR, { SWRResponse } from 'swr';\nimport { Md5 } from 'ts-md5';\n\nimport { getCodeLanguageByInput } from '@/Highlighter/const';\n\n// Application-level cache to avoid repeated calculations\nconst MD5_LENGTH_THRESHOLD = 10_000; // Use async MD5 for text exceeding this length\n\n// Color replacement mapping type\ntype ColorReplacements = {\n [themeName: string]: {\n [color: string]: string;\n };\n};\n\ntype StreamingHighlightResult = {\n colorReplacements?: Record<string, string>;\n lines: ThemedToken[][];\n preStyle?: CSSProperties;\n};\n\ntype StreamingOptions = {\n colorReplacements?: Record<string, string>;\n enabled?: boolean;\n language: string;\n theme: string;\n};\n\ntype UseHighlightResponse = SWRResponse<string, Error> & {\n colorReplacements?: ColorReplacements;\n streaming?: StreamingHighlightResult;\n};\n\ntype ICodeToHtml = (code: string, options: CodeToHastOptions) => Promise<string>;\ntype ShikiModule = typeof import('shiki');\n\n// Lazy load shiki\nconst loadShikiModule = (): Promise<ShikiModule | null> => {\n if (typeof window === 'undefined') return Promise.resolve(null);\n return import('shiki');\n};\nconst shikiModulePromise = loadShikiModule();\n\nconst loadShiki = (): Promise<ICodeToHtml | null> => {\n return shikiModulePromise.then((mod) => mod?.codeToHtml ?? null);\n};\nconst shikiPromise = loadShiki();\n\n// Helper function: Safe HTML escaping\nconst escapeHtml = (str: string): string => {\n return str\n .replaceAll('&', '&')\n .replaceAll('<', '<')\n .replaceAll('>', '>')\n .replaceAll('\"', '"')\n .replaceAll(\"'\", ''');\n};\n\nconst tokensToLineTokens = (tokens: ThemedToken[]): ThemedToken[][] => {\n if (!tokens.length) return [[]];\n\n const lines: ThemedToken[][] = [[]];\n let currentLine = lines[0];\n\n const startNewLine = () => {\n currentLine = [];\n lines.push(currentLine);\n };\n\n tokens.forEach((token) => {\n const content = token.content ?? '';\n\n if (content === '\\n') {\n startNewLine();\n return;\n }\n\n if (!content.includes('\\n')) {\n currentLine.push(token);\n return;\n }\n\n const segments = content.split('\\n');\n segments.forEach((segment, index) => {\n if (segment) {\n currentLine.push({\n ...token,\n content: segment,\n });\n }\n\n if (index < segments.length - 1) {\n startNewLine();\n }\n });\n });\n\n if (lines.length === 0) return [[]];\n\n return lines;\n};\n\nconst createPreStyle = (bg?: string, fg?: string): CSSProperties | undefined => {\n if (!bg && !fg) return undefined;\n return {\n backgroundColor: bg,\n color: fg,\n };\n};\n\nconst useStreamingHighlighter = (\n text: string,\n options: StreamingOptions,\n): StreamingHighlightResult | undefined => {\n const { colorReplacements, enabled, language, theme } = options;\n const [result, setResult] = useState<StreamingHighlightResult>();\n const tokenizerRef = useRef<ShikiStreamTokenizer | null>(null);\n const previousTextRef = useRef('');\n const safeText = text ?? '';\n const latestTextRef = useRef(safeText);\n const preStyleRef = useRef<CSSProperties | undefined>(undefined);\n const colorReplacementsRef = useRef(colorReplacements);\n const linesRef = useRef<ThemedToken[][]>([[]]);\n\n useEffect(() => {\n latestTextRef.current = safeText;\n }, [safeText]);\n\n useEffect(() => {\n colorReplacementsRef.current = colorReplacements;\n }, [colorReplacements]);\n\n const setStreamingResult = useCallback((rawLines: ThemedToken[][]) => {\n const previousLines = linesRef.current;\n\n const mergedLines = rawLines.map((line, index) => {\n const previousLine = previousLines[index];\n if (\n previousLine &&\n previousLine.length === line.length &&\n previousLine.every((token, tokenIndex) => token === line[tokenIndex])\n ) {\n return previousLine;\n }\n return line;\n });\n\n linesRef.current = mergedLines;\n\n setResult({\n colorReplacements: colorReplacementsRef.current,\n lines: mergedLines,\n preStyle: preStyleRef.current,\n });\n }, []);\n\n const updateTokens = useCallback(\n async (nextText: string, forceReset = false) => {\n const tokenizer = tokenizerRef.current;\n if (!tokenizer) return;\n\n if (forceReset) {\n tokenizer.clear();\n previousTextRef.current = '';\n }\n\n const previousText = previousTextRef.current;\n let chunk = nextText;\n const canAppend = !forceReset && nextText.startsWith(previousText);\n\n if (canAppend) {\n chunk = nextText.slice(previousText.length);\n } else if (!forceReset) {\n tokenizer.clear();\n }\n\n previousTextRef.current = nextText;\n\n if (!chunk) {\n const mergedTokens = [...tokenizer.tokensStable, ...tokenizer.tokensUnstable];\n setStreamingResult(mergedTokens.length ? tokensToLineTokens(mergedTokens) : [[]]);\n return;\n }\n\n try {\n await tokenizer.enqueue(chunk);\n const mergedTokens = [...tokenizer.tokensStable, ...tokenizer.tokensUnstable];\n setStreamingResult(tokensToLineTokens(mergedTokens));\n } catch (error) {\n console.error('Streaming highlighting failed:', error);\n }\n },\n [setStreamingResult],\n );\n\n useEffect(() => {\n if (!enabled) {\n tokenizerRef.current?.clear();\n tokenizerRef.current = null;\n previousTextRef.current = '';\n preStyleRef.current = undefined;\n linesRef.current = [[]];\n setResult(undefined);\n return;\n }\n\n let cancelled = false;\n\n (async () => {\n const mod = await shikiModulePromise;\n if (!mod || cancelled) return;\n\n try {\n const highlighter = await mod.getSingletonHighlighter({\n langs: language ? [language] : [],\n themes: [theme],\n });\n\n if (!highlighter || cancelled) return;\n\n const tokenizer = new ShikiStreamTokenizer({\n highlighter,\n lang: language,\n theme,\n });\n\n tokenizerRef.current = tokenizer;\n previousTextRef.current = '';\n linesRef.current = [[]];\n\n const themeInfo = highlighter.getTheme(theme);\n preStyleRef.current = createPreStyle(themeInfo?.bg, themeInfo?.fg);\n\n const currentText = latestTextRef.current;\n if (currentText) {\n await updateTokens(currentText, true);\n } else {\n setStreamingResult([[]]);\n }\n } catch (error) {\n console.error('Streaming highlighter initialization failed:', error);\n }\n })();\n\n return () => {\n cancelled = true;\n tokenizerRef.current?.clear();\n tokenizerRef.current = null;\n previousTextRef.current = '';\n };\n }, [enabled, language, setStreamingResult, theme, updateTokens]);\n\n useEffect(() => {\n if (!enabled) return;\n if (!tokenizerRef.current) return;\n updateTokens(safeText);\n }, [enabled, safeText, updateTokens]);\n\n return result;\n};\n\n// Main highlight component\nexport const useHighlight = (\n text: string,\n {\n language,\n enableTransformer,\n theme: builtinTheme,\n streaming,\n }: { enableTransformer?: boolean; language: string; streaming?: boolean; theme?: BuiltinTheme },\n): UseHighlightResponse => {\n const { isDarkMode } = useThemeMode();\n const theme = useTheme();\n\n // Safely handle language and text with boundary checks\n const safeText = text ?? '';\n const lang = (language ?? 'plaintext').toLowerCase();\n\n // Match supported languages\n const matchedLanguage = useMemo(() => getCodeLanguageByInput(lang), [lang]);\n\n // Optimize transformer creation\n const transformers = useMemo(() => {\n if (!enableTransformer) return;\n return [\n transformerNotationDiff(),\n transformerNotationHighlight(),\n transformerNotationWordHighlight(),\n transformerNotationFocus(),\n transformerNotationErrorLevel(),\n ];\n }, [enableTransformer]);\n\n // Optimize color replacement configuration\n const colorReplacements = useMemo(\n (): ColorReplacements => ({\n 'slack-dark': {\n '#4ec9b0': theme.yellow,\n '#569cd6': theme.colorError,\n '#6a9955': theme.gray,\n '#9cdcfe': theme.colorText,\n '#b5cea8': theme.purple10,\n '#c586c0': theme.colorInfo,\n '#ce9178': theme.colorSuccess,\n '#dcdcaa': theme.colorWarning,\n '#e6e6e6': theme.colorText,\n },\n 'slack-ochin': {\n '#002339': theme.colorText,\n '#0444ac': theme.geekblue,\n '#0991b6': theme.colorError,\n '#174781': theme.purple10,\n '#2f86d2': theme.colorText,\n '#357b42': theme.gray,\n '#7b30d0': theme.colorInfo,\n '#7eb233': theme.colorWarningTextActive,\n '#a44185': theme.colorSuccess,\n '#dc3eb7': theme.yellow11,\n },\n }),\n [theme],\n );\n\n // Build cache key\n const cacheKey = useMemo((): string | null => {\n // Use hash for long text\n const hash = safeText.length < MD5_LENGTH_THRESHOLD ? safeText : Md5.hashStr(safeText);\n return [matchedLanguage, builtinTheme || (isDarkMode ? 'd' : 'l'), hash]\n .filter(Boolean)\n .join('-');\n }, [safeText, matchedLanguage, isDarkMode, builtinTheme]);\n\n // Use SWR to get highlighted HTML\n const response = useSWR(\n streaming ? null : cacheKey,\n async (): Promise<string> => {\n try {\n // Try full rendering\n const codeToHtml = await shikiPromise;\n if (!codeToHtml) return safeText;\n const html = await codeToHtml(safeText, {\n colorReplacements: builtinTheme ? undefined : colorReplacements,\n lang: matchedLanguage,\n theme: builtinTheme || (isDarkMode ? 'slack-dark' : 'slack-ochin'),\n transformers,\n });\n\n return html;\n } catch (error) {\n console.error('Advanced rendering failed:', error);\n\n try {\n // Try simple rendering (without transformers)\n const codeToHtml = await shikiPromise;\n if (!codeToHtml) return safeText;\n const html = await codeToHtml(safeText, {\n lang: matchedLanguage,\n theme: isDarkMode ? 'dark-plus' : 'light-plus',\n });\n return html;\n } catch {\n // Fallback to plain text\n const fallbackHtml = `<pre class=\"fallback\"><code>${escapeHtml(safeText)}</code></pre>`;\n return fallbackHtml;\n }\n }\n },\n {\n dedupingInterval: 3000, // Only execute once for the same request within 3 seconds\n errorRetryCount: 2, // Retry at most 2 times\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n },\n );\n\n const effectiveTheme = builtinTheme || (isDarkMode ? 'slack-dark' : 'slack-ochin');\n const streamingResult = useStreamingHighlighter(safeText, {\n colorReplacements: builtinTheme ? undefined : colorReplacements[effectiveTheme],\n enabled: streaming,\n language: matchedLanguage,\n theme: effectiveTheme,\n });\n\n return {\n ...response,\n colorReplacements,\n streaming: streamingResult,\n };\n};\n\nexport { escapeHtml, loadShiki, MD5_LENGTH_THRESHOLD, shikiPromise };\n"],"mappings":"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"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { renderToString } from "katex";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useMarkdown/latex.ts
|
|
4
|
+
/**
|
|
5
|
+
* PlaceholderManager - Manages temporary replacement and restoration of protected content
|
|
6
|
+
* Used to protect code blocks and LaTeX expressions during preprocessing
|
|
7
|
+
*/
|
|
8
|
+
var PlaceholderManager = class {
|
|
9
|
+
constructor(prefix = "PROTECTED") {
|
|
10
|
+
this.placeholders = [];
|
|
11
|
+
this.prefix = prefix;
|
|
12
|
+
}
|
|
13
|
+
add(content) {
|
|
14
|
+
const index = this.placeholders.length;
|
|
15
|
+
this.placeholders.push(content);
|
|
16
|
+
return `<<${this.prefix}_${index}>>`;
|
|
17
|
+
}
|
|
18
|
+
restore(text) {
|
|
19
|
+
return text.replaceAll(new RegExp(`<<${this.prefix}_(\\d+)>>`, "g"), (_, index) => {
|
|
20
|
+
return this.placeholders[Number.parseInt(index)] || "";
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
clear() {
|
|
24
|
+
this.placeholders = [];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const replaceUnescapedPipes = (formula) => formula.replaceAll(/(?<!\\)\|/g, "\\vert{}");
|
|
28
|
+
/**
|
|
29
|
+
* Converts LaTeX bracket delimiters to dollar sign delimiters.
|
|
30
|
+
* Converts \[...\] to $$...$$ and \(...\) to $...$
|
|
31
|
+
* Preserves code blocks during the conversion.
|
|
32
|
+
*
|
|
33
|
+
* @param text The input string containing LaTeX expressions
|
|
34
|
+
* @returns The string with LaTeX bracket delimiters converted to dollar sign delimiters
|
|
35
|
+
*/
|
|
36
|
+
function convertLatexDelimiters(text) {
|
|
37
|
+
return text.replaceAll(/(```[\S\s]*?```|`.*?`)|\\\[([\S\s]*?[^\\])\\]|\\\((.*?)\\\)/g, (match, codeBlock, squareBracket, roundBracket) => {
|
|
38
|
+
if (codeBlock !== void 0) return codeBlock;
|
|
39
|
+
else if (squareBracket !== void 0) return `$$${squareBracket}$$`;
|
|
40
|
+
else if (roundBracket !== void 0) return `$${roundBracket}$`;
|
|
41
|
+
return match;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Escapes mhchem commands in LaTeX expressions to ensure proper rendering.
|
|
46
|
+
*
|
|
47
|
+
* @param text The input string containing LaTeX expressions with mhchem commands
|
|
48
|
+
* @returns The string with escaped mhchem commands
|
|
49
|
+
*/
|
|
50
|
+
function escapeMhchemCommands(text) {
|
|
51
|
+
return text.replaceAll("$\\ce{", "$\\\\ce{").replaceAll("$\\pu{", "$\\\\pu{");
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Escapes pipe characters within LaTeX expressions to prevent them from being interpreted
|
|
55
|
+
* as table column separators in markdown tables.
|
|
56
|
+
*
|
|
57
|
+
* @param text The input string containing LaTeX expressions
|
|
58
|
+
* @returns The string with pipe characters escaped in LaTeX expressions
|
|
59
|
+
*/
|
|
60
|
+
function escapeLatexPipes(text) {
|
|
61
|
+
const codeBlocks = [];
|
|
62
|
+
let content = text.replaceAll(/(```[\S\s]*?```|`[^\n`]*`)/g, (match) => {
|
|
63
|
+
codeBlocks.push(match);
|
|
64
|
+
return `<<CODE_${codeBlocks.length - 1}>>`;
|
|
65
|
+
});
|
|
66
|
+
content = content.replaceAll(/\$\$([\S\s]*?)\$\$/g, (match, display) => {
|
|
67
|
+
return `$$${replaceUnescapedPipes(display)}$$`;
|
|
68
|
+
});
|
|
69
|
+
content = content.replaceAll(/(?<!\\)\$(?!\$)([^\n$]*?)(?<!\\)\$(?!\$)/g, (match, inline) => {
|
|
70
|
+
return `$${replaceUnescapedPipes(inline)}$`;
|
|
71
|
+
});
|
|
72
|
+
content = content.replaceAll(/<<CODE_(\d+)>>/g, (_, index) => {
|
|
73
|
+
return codeBlocks[Number.parseInt(index)];
|
|
74
|
+
});
|
|
75
|
+
return content;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Escapes underscores within \text{...} commands in LaTeX expressions
|
|
79
|
+
* that are not already escaped.
|
|
80
|
+
* For example, \text{node_domain} becomes \text{node\_domain},
|
|
81
|
+
* but \text{node\_domain} remains \text{node\_domain}.
|
|
82
|
+
*
|
|
83
|
+
* @param text The input string potentially containing LaTeX expressions
|
|
84
|
+
* @returns The string with unescaped underscores escaped within \text{...} commands
|
|
85
|
+
*/
|
|
86
|
+
function escapeTextUnderscores(text) {
|
|
87
|
+
return text.replaceAll(/\\text{([^}]*)}/g, (match, textContent) => {
|
|
88
|
+
return `\\text{${textContent.replaceAll(/(?<!\\)_/g, "\\_")}}`;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Escapes dollar signs that appear to be currency symbols to prevent them from being
|
|
93
|
+
* interpreted as LaTeX math delimiters.
|
|
94
|
+
*
|
|
95
|
+
* This function identifies currency patterns such as:
|
|
96
|
+
* - $20, $100, $1,000
|
|
97
|
+
* - $20-50, $100+
|
|
98
|
+
* - Patterns within markdown tables
|
|
99
|
+
*
|
|
100
|
+
* @param text The input string containing potential currency symbols
|
|
101
|
+
* @returns The string with currency dollar signs escaped
|
|
102
|
+
*/
|
|
103
|
+
function escapeCurrencyDollars(text) {
|
|
104
|
+
const manager = new PlaceholderManager("PROTECTED");
|
|
105
|
+
let content = text.replaceAll(/(```[\S\s]*?```|`[^\n`]*`|\$\$[\S\s]*?\$\$|(?<!\\)\$(?!\$)(?=[\S\s]*?\\)[\S\s]*?(?<!\\)\$(?!\$)|\$\d+\$|\$-?\d+(?:,-?\d+)+\$|\\\[[\S\s]*?\\]|\\\(.*?\\\))/g, (match) => manager.add(match));
|
|
106
|
+
content = content.replaceAll(/(?<!\$)\$(\d{1,3}(?:,\d{3})*(?:\.\d+)?(?:-\d{1,3}(?:,\d{3})*(?:\.\d+)?)?\+?)(?!\$)/g, "\\$$$1");
|
|
107
|
+
content = manager.restore(content);
|
|
108
|
+
return content;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Extracts the LaTeX formula after the last $$ delimiter if there's an odd number of $$ delimiters.
|
|
112
|
+
*
|
|
113
|
+
* @param text The input string containing LaTeX formulas
|
|
114
|
+
* @returns The content after the last $$ if there's an odd number of $$, otherwise an empty string
|
|
115
|
+
*/
|
|
116
|
+
const extractIncompleteFormula = (text) => {
|
|
117
|
+
if ((text.match(/\$\$/g) || []).length % 2 === 1) {
|
|
118
|
+
const match = text.match(/\$\$([^]*)$/);
|
|
119
|
+
return match ? match[1] : "";
|
|
120
|
+
}
|
|
121
|
+
return "";
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Checks if the last LaTeX formula in the text is renderable.
|
|
125
|
+
* Only validates the formula after the last $$ if there's an odd number of $$.
|
|
126
|
+
*
|
|
127
|
+
* @param text The input string containing LaTeX formulas
|
|
128
|
+
* @returns True if the last formula is renderable or if there's no incomplete formula
|
|
129
|
+
*/
|
|
130
|
+
const isLastFormulaRenderable = (text) => {
|
|
131
|
+
const formula = extractIncompleteFormula(text);
|
|
132
|
+
if (!formula) return true;
|
|
133
|
+
try {
|
|
134
|
+
renderToString(formula, {
|
|
135
|
+
displayMode: true,
|
|
136
|
+
throwOnError: true
|
|
137
|
+
});
|
|
138
|
+
return true;
|
|
139
|
+
} catch (error) {
|
|
140
|
+
console.log(`LaTeX formula rendering error: ${error}`);
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Fixes common LaTeX syntax errors automatically
|
|
146
|
+
* - Balances unmatched braces
|
|
147
|
+
* - Balances \left and \right delimiters
|
|
148
|
+
*
|
|
149
|
+
* @param text The input string containing LaTeX expressions
|
|
150
|
+
* @returns The string with fixed LaTeX expressions
|
|
151
|
+
*/
|
|
152
|
+
function fixCommonLaTeXErrors(text) {
|
|
153
|
+
return text.replaceAll(/(\$\$[\S\s]*?\$\$|\$[\S\s]*?\$)/g, (match) => {
|
|
154
|
+
let fixed = match;
|
|
155
|
+
const openBraces = (fixed.match(/(?<!\\){/g) || []).length;
|
|
156
|
+
const closeBraces = (fixed.match(/(?<!\\)}/g) || []).length;
|
|
157
|
+
if (openBraces > closeBraces) {
|
|
158
|
+
const diff = openBraces - closeBraces;
|
|
159
|
+
const closingBraces = "}".repeat(diff);
|
|
160
|
+
fixed = fixed.replace(/(\$\$?)$/, closingBraces + "$1");
|
|
161
|
+
}
|
|
162
|
+
const leftDelims = (fixed.match(/\\left[(.<[{|]/g) || []).length;
|
|
163
|
+
const rightDelims = (fixed.match(/\\right[).>\]|}]/g) || []).length;
|
|
164
|
+
if (leftDelims > rightDelims) {
|
|
165
|
+
const diff = leftDelims - rightDelims;
|
|
166
|
+
const rightDots = "\\right.".repeat(diff);
|
|
167
|
+
fixed = fixed.replace(/(\$\$?)$/, rightDots + "$1");
|
|
168
|
+
}
|
|
169
|
+
return fixed;
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Normalizes whitespace in LaTeX expressions
|
|
174
|
+
* - Removes extra spaces around $ delimiters
|
|
175
|
+
* - Normalizes multiple spaces to single space inside formulas
|
|
176
|
+
*
|
|
177
|
+
* @param text The input string containing LaTeX expressions
|
|
178
|
+
* @returns The string with normalized whitespace
|
|
179
|
+
*/
|
|
180
|
+
function normalizeLatexSpacing(text) {
|
|
181
|
+
let result = text;
|
|
182
|
+
result = result.replaceAll(/\$\s+/g, "$");
|
|
183
|
+
result = result.replaceAll(/\s+\$/g, "$");
|
|
184
|
+
result = result.replaceAll(/\$\$\s+/g, "$$");
|
|
185
|
+
result = result.replaceAll(/\s+\$\$/g, "$$");
|
|
186
|
+
result = result.replaceAll(/(\$\$[\S\s]*?\$\$|\$[\S\s]*?\$)/g, (match) => {
|
|
187
|
+
return match.replaceAll(/\s{2,}/g, " ");
|
|
188
|
+
});
|
|
189
|
+
return result;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Validates all LaTeX expressions in the text
|
|
193
|
+
* Returns detailed information about validation results
|
|
194
|
+
*
|
|
195
|
+
* @param text The input string containing LaTeX expressions
|
|
196
|
+
* @returns Validation results with errors if any
|
|
197
|
+
*/
|
|
198
|
+
function validateLatexExpressions(text) {
|
|
199
|
+
const errors = [];
|
|
200
|
+
let totalExpressions = 0;
|
|
201
|
+
const pattern = /\$\$([\S\s]*?)\$\$|(?<!\\)\$(?!\$)([\S\s]*?)(?<!\\)\$(?!\$)/g;
|
|
202
|
+
let match;
|
|
203
|
+
while ((match = pattern.exec(text)) !== null) {
|
|
204
|
+
totalExpressions++;
|
|
205
|
+
const formula = match[1] || match[2];
|
|
206
|
+
const isDisplay = match[0].startsWith("$$");
|
|
207
|
+
try {
|
|
208
|
+
renderToString(formula, {
|
|
209
|
+
displayMode: isDisplay,
|
|
210
|
+
strict: "warn",
|
|
211
|
+
throwOnError: true,
|
|
212
|
+
trust: false
|
|
213
|
+
});
|
|
214
|
+
} catch (error) {
|
|
215
|
+
errors.push({
|
|
216
|
+
formula: formula.slice(0, 50) + (formula.length > 50 ? "..." : ""),
|
|
217
|
+
message: error instanceof Error ? error.message : String(error),
|
|
218
|
+
position: match.index,
|
|
219
|
+
type: isDisplay ? "display" : "inline"
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return {
|
|
224
|
+
errors,
|
|
225
|
+
totalExpressions,
|
|
226
|
+
valid: errors.length === 0
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Handles CJK (Chinese, Japanese, Korean) characters mixed with LaTeX
|
|
231
|
+
* Optionally adds spaces between CJK characters and LaTeX expressions for better rendering
|
|
232
|
+
*
|
|
233
|
+
* @param text The input string
|
|
234
|
+
* @param addSpaces Whether to add spaces between CJK and LaTeX (default: false)
|
|
235
|
+
* @returns The processed string
|
|
236
|
+
*/
|
|
237
|
+
function handleCJKWithLatex(text, addSpaces = false) {
|
|
238
|
+
if (!addSpaces) return text;
|
|
239
|
+
let result = text;
|
|
240
|
+
result = result.replaceAll(/([\u3040-\u30FF\u4E00-\u9FA5])(\$)/g, "$1 $2");
|
|
241
|
+
result = result.replaceAll(/(\$)([\u3040-\u30FF\u4E00-\u9FA5])/g, "$1 $2");
|
|
242
|
+
return result;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Comprehensive LaTeX preprocessing with configurable options
|
|
246
|
+
*
|
|
247
|
+
* This is the main preprocessing function that handles:
|
|
248
|
+
* - Currency symbol escaping (e.g., $20 → \$20)
|
|
249
|
+
* - LaTeX delimiter conversion (\[...\] → $$...$$)
|
|
250
|
+
* - Special character escaping (pipes, underscores, mhchem)
|
|
251
|
+
* - Optional error fixing and validation
|
|
252
|
+
* - Optional CJK character handling
|
|
253
|
+
*
|
|
254
|
+
* @param text The input string containing LaTeX and Markdown
|
|
255
|
+
* @param options Configuration options for fine-grained control
|
|
256
|
+
* @returns The preprocessed string
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* ```ts
|
|
260
|
+
* // Default behavior (same as old preprocessLaTeX)
|
|
261
|
+
* preprocessLaTeX('向量$90^\\circ$,非 $0^\\circ$ 和 $180^\\circ$')
|
|
262
|
+
*
|
|
263
|
+
* // With custom options
|
|
264
|
+
* preprocessLaTeX(text, {
|
|
265
|
+
* fixErrors: true,
|
|
266
|
+
* validate: true,
|
|
267
|
+
* handleCJK: true
|
|
268
|
+
* })
|
|
269
|
+
* ```
|
|
270
|
+
*/
|
|
271
|
+
function preprocessLaTeX(text, options = {}) {
|
|
272
|
+
const { addCJKSpaces = false, convertBrackets = true, escapeCurrency = true, escapeMhchem = true, escapePipes = true, escapeUnderscores = true, fixErrors = false, handleCJK = false, normalizeSpacing = false, throwOnValidationError = false, validate = false } = options;
|
|
273
|
+
let content = text;
|
|
274
|
+
if (escapeCurrency) content = escapeCurrencyDollars(content);
|
|
275
|
+
if (convertBrackets) content = convertLatexDelimiters(content);
|
|
276
|
+
if (escapeMhchem) content = escapeMhchemCommands(content);
|
|
277
|
+
if (escapePipes) content = escapeLatexPipes(content);
|
|
278
|
+
if (escapeUnderscores) content = escapeTextUnderscores(content);
|
|
279
|
+
if (fixErrors) content = fixCommonLaTeXErrors(content);
|
|
280
|
+
if (normalizeSpacing) content = normalizeLatexSpacing(content);
|
|
281
|
+
if (handleCJK) content = handleCJKWithLatex(content, addCJKSpaces);
|
|
282
|
+
if (validate) {
|
|
283
|
+
const validation = validateLatexExpressions(content);
|
|
284
|
+
if (!validation.valid) {
|
|
285
|
+
const errorMessage = `LaTeX validation failed (${validation.errors.length}/${validation.totalExpressions} expressions have errors):\n${validation.errors.map((e) => ` - [${e.type}] at position ${e.position}: ${e.message}\n Formula: ${e.formula}`).join("\n")}`;
|
|
286
|
+
if (throwOnValidationError) throw new Error(errorMessage);
|
|
287
|
+
else console.warn(errorMessage);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return content;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
//#endregion
|
|
294
|
+
export { isLastFormulaRenderable, preprocessLaTeX };
|
|
295
|
+
//# sourceMappingURL=latex.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latex.mjs","names":["codeBlocks: string[]","errors: Array<{\n formula: string;\n message: string;\n position: number;\n type: 'display' | 'inline';\n }>"],"sources":["../../../src/hooks/useMarkdown/latex.ts"],"sourcesContent":["import { renderToString } from 'katex';\n\n// ============================================================================\n// Utility Classes\n// ============================================================================\n\n/**\n * PlaceholderManager - Manages temporary replacement and restoration of protected content\n * Used to protect code blocks and LaTeX expressions during preprocessing\n */\nclass PlaceholderManager {\n private placeholders: string[] = [];\n private prefix: string;\n\n constructor(prefix = 'PROTECTED') {\n this.prefix = prefix;\n }\n\n add(content: string): string {\n const index = this.placeholders.length;\n this.placeholders.push(content);\n return `<<${this.prefix}_${index}>>`;\n }\n\n restore(text: string): string {\n return text.replaceAll(new RegExp(`<<${this.prefix}_(\\\\d+)>>`, 'g'), (_, index) => {\n return this.placeholders[Number.parseInt(index)] || '';\n });\n }\n\n clear(): void {\n this.placeholders = [];\n }\n}\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\n// Helper: replace unescaped pipes with \\vert within a LaTeX math fragment\nconst replaceUnescapedPipes = (formula: string): string =>\n // Use \\vert{} so the control sequence terminates before the next token\n formula.replaceAll(/(?<!\\\\)\\|/g, '\\\\vert{}');\n\n/**\n * Converts LaTeX bracket delimiters to dollar sign delimiters.\n * Converts \\[...\\] to $$...$$ and \\(...\\) to $...$\n * Preserves code blocks during the conversion.\n *\n * @param text The input string containing LaTeX expressions\n * @returns The string with LaTeX bracket delimiters converted to dollar sign delimiters\n */\nexport function convertLatexDelimiters(text: string): string {\n const pattern = /(```[\\S\\s]*?```|`.*?`)|\\\\\\[([\\S\\s]*?[^\\\\])\\\\]|\\\\\\((.*?)\\\\\\)/g;\n return text.replaceAll(\n pattern,\n (\n match: string,\n codeBlock: string | undefined,\n squareBracket: string | undefined,\n roundBracket: string | undefined,\n ): string => {\n if (codeBlock !== undefined) {\n return codeBlock;\n } else if (squareBracket !== undefined) {\n return `$$${squareBracket}$$`;\n } else if (roundBracket !== undefined) {\n return `$${roundBracket}$`;\n }\n return match;\n },\n );\n}\n\n/**\n * Escapes mhchem commands in LaTeX expressions to ensure proper rendering.\n *\n * @param text The input string containing LaTeX expressions with mhchem commands\n * @returns The string with escaped mhchem commands\n */\nexport function escapeMhchemCommands(text: string) {\n return text.replaceAll('$\\\\ce{', '$\\\\\\\\ce{').replaceAll('$\\\\pu{', '$\\\\\\\\pu{');\n}\n\n/**\n * Escapes pipe characters within LaTeX expressions to prevent them from being interpreted\n * as table column separators in markdown tables.\n *\n * @param text The input string containing LaTeX expressions\n * @returns The string with pipe characters escaped in LaTeX expressions\n */\nexport function escapeLatexPipes(text: string): string {\n // Replace unescaped '|' inside LaTeX math spans with '\\vert' so that\n // remark-gfm table parsing won't treat them as column separators.\n // Leave code blocks/inline code untouched.\n // Also ignore escaped dollars (\\$) which are currency symbols\n\n // Process code blocks first to protect them\n const codeBlocks: string[] = [];\n let content = text.replaceAll(/(```[\\S\\s]*?```|`[^\\n`]*`)/g, (match) => {\n codeBlocks.push(match);\n return `<<CODE_${codeBlocks.length - 1}>>`;\n });\n\n // For display math, allow multiline\n content = content.replaceAll(/\\$\\$([\\S\\s]*?)\\$\\$/g, (match, display) => {\n return `$$${replaceUnescapedPipes(display)}$$`;\n });\n\n // For inline math, use non-greedy match that DOES NOT cross newlines\n // This prevents issues in tables where $ might appear in different cells\n content = content.replaceAll(/(?<!\\\\)\\$(?!\\$)([^\\n$]*?)(?<!\\\\)\\$(?!\\$)/g, (match, inline) => {\n return `$${replaceUnescapedPipes(inline)}$`;\n });\n\n // Restore code blocks\n content = content.replaceAll(/<<CODE_(\\d+)>>/g, (_, index) => {\n return codeBlocks[Number.parseInt(index)];\n });\n\n return content;\n}\n\n/**\n * Escapes underscores within \\text{...} commands in LaTeX expressions\n * that are not already escaped.\n * For example, \\text{node_domain} becomes \\text{node\\_domain},\n * but \\text{node\\_domain} remains \\text{node\\_domain}.\n *\n * @param text The input string potentially containing LaTeX expressions\n * @returns The string with unescaped underscores escaped within \\text{...} commands\n */\nexport function escapeTextUnderscores(text: string): string {\n return text.replaceAll(/\\\\text{([^}]*)}/g, (match, textContent: string) => {\n // textContent is the content within the braces, e.g., \"node_domain\" or \"already\\_escaped\"\n // Replace underscores '_' with '\\_' only if they are NOT preceded by a backslash '\\'.\n // The (?<!\\\\) is a negative lookbehind assertion that ensures the character before '_' is not a '\\'.\n const escapedTextContent = textContent.replaceAll(/(?<!\\\\)_/g, '\\\\_');\n return `\\\\text{${escapedTextContent}}`;\n });\n}\n\n/**\n * Escapes dollar signs that appear to be currency symbols to prevent them from being\n * interpreted as LaTeX math delimiters.\n *\n * This function identifies currency patterns such as:\n * - $20, $100, $1,000\n * - $20-50, $100+\n * - Patterns within markdown tables\n *\n * @param text The input string containing potential currency symbols\n * @returns The string with currency dollar signs escaped\n */\nexport function escapeCurrencyDollars(text: string): string {\n // Protect code blocks and existing LaTeX expressions from processing\n const manager = new PlaceholderManager('PROTECTED');\n\n let content = text.replaceAll(\n // Match patterns to protect (in order):\n // 1. Code blocks: ```...```\n // 2. Inline code: `...`\n // 3. Display math: $$...$$\n // 4. Inline math with LaTeX commands: $...\\...$ (must contain backslash to distinguish from currency)\n // 5. Simple number formulas: $1$, $10$, $100$ (pure digits in math mode)\n // 6. Number lists in math mode: $1,-1,0$ or $1,2,3$ (comma-separated numbers, possibly negative)\n // 7. LaTeX bracket notation: \\[...\\]\n // 8. LaTeX parenthesis notation: \\(...\\)\n /(```[\\S\\s]*?```|`[^\\n`]*`|\\$\\$[\\S\\s]*?\\$\\$|(?<!\\\\)\\$(?!\\$)(?=[\\S\\s]*?\\\\)[\\S\\s]*?(?<!\\\\)\\$(?!\\$)|\\$\\d+\\$|\\$-?\\d+(?:,-?\\d+)+\\$|\\\\\\[[\\S\\s]*?\\\\]|\\\\\\(.*?\\\\\\))/g,\n (match) => manager.add(match),\n );\n\n // Escape dollar signs that are clearly currency:\n // - $ followed by a digit\n // - Not preceded by another $ (to avoid breaking $$)\n // - Not followed immediately by another $ (to avoid breaking $1$ LaTeX)\n // - Followed by number patterns with optional commas, decimals, ranges, or plus signs\n // Match patterns like: $20, $1,000, $19.99, $20-50, $300+, $1,000-2,000+\n // But NOT: $1$, $2$ (these are LaTeX formulas)\n // In the replacement: \\\\ = backslash, $$ = literal $, $1 = capture group 1\n content = content.replaceAll(\n /(?<!\\$)\\$(\\d{1,3}(?:,\\d{3})*(?:\\.\\d+)?(?:-\\d{1,3}(?:,\\d{3})*(?:\\.\\d+)?)?\\+?)(?!\\$)/g,\n '\\\\$$$1',\n );\n\n // Restore protected content\n content = manager.restore(content);\n\n return content;\n}\n\n// Old simple preprocessLaTeX has been replaced by the comprehensive version below\n// The new preprocessLaTeX provides the same default behavior with optional advanced featuresgit\n\n/**\n * Extracts the LaTeX formula after the last $$ delimiter if there's an odd number of $$ delimiters.\n *\n * @param text The input string containing LaTeX formulas\n * @returns The content after the last $$ if there's an odd number of $$, otherwise an empty string\n */\nconst extractIncompleteFormula = (text: string) => {\n // Count the number of $$ delimiters\n const dollarsCount = (text.match(/\\$\\$/g) || []).length;\n\n // If odd number of $$ delimiters, extract content after the last $$\n if (dollarsCount % 2 === 1) {\n const match = text.match(/\\$\\$([^]*)$/);\n return match ? match[1] : '';\n }\n\n // If even number of $$ delimiters, return empty string\n return '';\n};\n\n/**\n * Checks if the last LaTeX formula in the text is renderable.\n * Only validates the formula after the last $$ if there's an odd number of $$.\n *\n * @param text The input string containing LaTeX formulas\n * @returns True if the last formula is renderable or if there's no incomplete formula\n */\nexport const isLastFormulaRenderable = (text: string) => {\n const formula = extractIncompleteFormula(text);\n\n // If no incomplete formula, return true\n if (!formula) return true;\n\n // Try to render the last formula\n try {\n renderToString(formula, {\n displayMode: true,\n throwOnError: true,\n });\n return true;\n } catch (error) {\n console.log(`LaTeX formula rendering error: ${error}`);\n return false;\n }\n};\n\n// ============================================================================\n// Advanced Preprocessing Functions\n// ============================================================================\n\n/**\n * Fixes common LaTeX syntax errors automatically\n * - Balances unmatched braces\n * - Balances \\left and \\right delimiters\n *\n * @param text The input string containing LaTeX expressions\n * @returns The string with fixed LaTeX expressions\n */\nexport function fixCommonLaTeXErrors(text: string): string {\n return text.replaceAll(/(\\$\\$[\\S\\s]*?\\$\\$|\\$[\\S\\s]*?\\$)/g, (match) => {\n let fixed = match;\n\n // Fix unbalanced braces\n const openBraces = (fixed.match(/(?<!\\\\){/g) || []).length;\n const closeBraces = (fixed.match(/(?<!\\\\)}/g) || []).length;\n if (openBraces > closeBraces) {\n const diff = openBraces - closeBraces;\n const closingBraces = '}'.repeat(diff);\n // Insert before the closing delimiter\n fixed = fixed.replace(/(\\$\\$?)$/, closingBraces + '$1');\n }\n\n // Fix unbalanced \\left and \\right\n const leftDelims = (fixed.match(/\\\\left[(.<[{|]/g) || []).length;\n const rightDelims = (fixed.match(/\\\\right[).>\\]|}]/g) || []).length;\n if (leftDelims > rightDelims) {\n const diff = leftDelims - rightDelims;\n const rightDots = '\\\\right.'.repeat(diff);\n fixed = fixed.replace(/(\\$\\$?)$/, rightDots + '$1');\n }\n\n return fixed;\n });\n}\n\n/**\n * Normalizes whitespace in LaTeX expressions\n * - Removes extra spaces around $ delimiters\n * - Normalizes multiple spaces to single space inside formulas\n *\n * @param text The input string containing LaTeX expressions\n * @returns The string with normalized whitespace\n */\nexport function normalizeLatexSpacing(text: string): string {\n let result = text;\n\n // Remove spaces inside $ delimiters (at the edges)\n result = result.replaceAll(/\\$\\s+/g, '$');\n result = result.replaceAll(/\\s+\\$/g, '$');\n result = result.replaceAll(/\\$\\$\\s+/g, '$$');\n result = result.replaceAll(/\\s+\\$\\$/g, '$$');\n\n // Normalize multiple spaces inside formulas to single space\n result = result.replaceAll(/(\\$\\$[\\S\\s]*?\\$\\$|\\$[\\S\\s]*?\\$)/g, (match) => {\n return match.replaceAll(/\\s{2,}/g, ' ');\n });\n\n return result;\n}\n\n/**\n * Validates all LaTeX expressions in the text\n * Returns detailed information about validation results\n *\n * @param text The input string containing LaTeX expressions\n * @returns Validation results with errors if any\n */\nexport function validateLatexExpressions(text: string): {\n errors: Array<{\n formula: string;\n message: string;\n position: number;\n type: 'display' | 'inline';\n }>;\n totalExpressions: number;\n valid: boolean;\n} {\n const errors: Array<{\n formula: string;\n message: string;\n position: number;\n type: 'display' | 'inline';\n }> = [];\n\n let totalExpressions = 0;\n const pattern = /\\$\\$([\\S\\s]*?)\\$\\$|(?<!\\\\)\\$(?!\\$)([\\S\\s]*?)(?<!\\\\)\\$(?!\\$)/g;\n let match;\n\n while ((match = pattern.exec(text)) !== null) {\n totalExpressions++;\n const formula = match[1] || match[2];\n const isDisplay = match[0].startsWith('$$');\n\n try {\n renderToString(formula, {\n displayMode: isDisplay,\n strict: 'warn',\n throwOnError: true,\n trust: false,\n });\n } catch (error) {\n errors.push({\n formula: formula.slice(0, 50) + (formula.length > 50 ? '...' : ''),\n message: error instanceof Error ? error.message : String(error),\n position: match.index,\n type: isDisplay ? 'display' : 'inline',\n });\n }\n }\n\n return {\n errors,\n totalExpressions,\n valid: errors.length === 0,\n };\n}\n\n/**\n * Handles CJK (Chinese, Japanese, Korean) characters mixed with LaTeX\n * Optionally adds spaces between CJK characters and LaTeX expressions for better rendering\n *\n * @param text The input string\n * @param addSpaces Whether to add spaces between CJK and LaTeX (default: false)\n * @returns The processed string\n */\nexport function handleCJKWithLatex(text: string, addSpaces = false): string {\n if (!addSpaces) return text;\n\n let result = text;\n\n // Add space between CJK character and opening $\n result = result.replaceAll(/([\\u3040-\\u30FF\\u4E00-\\u9FA5])(\\$)/g, '$1 $2');\n\n // Add space between closing $ and CJK character\n result = result.replaceAll(/(\\$)([\\u3040-\\u30FF\\u4E00-\\u9FA5])/g, '$1 $2');\n\n return result;\n}\n\n// ============================================================================\n// Advanced Preprocessing Options\n// ============================================================================\n\nexport interface AdvancedPreprocessOptions {\n /** Add spaces between CJK and LaTeX (default: false, requires handleCJK: true) */\n addCJKSpaces?: boolean;\n /** Convert bracket notation \\[...\\] to $$...$$ (default: true) */\n convertBrackets?: boolean;\n /** Enable currency escaping (default: true) */\n escapeCurrency?: boolean;\n /** Escape mhchem commands (default: true) */\n escapeMhchem?: boolean;\n /** Escape pipe symbols in LaTeX (default: true) */\n escapePipes?: boolean;\n /** Escape underscores in \\text{} (default: true) */\n escapeUnderscores?: boolean;\n /** Automatically fix common LaTeX errors (default: false) */\n fixErrors?: boolean;\n /** Handle CJK characters (default: false) */\n handleCJK?: boolean;\n /** Normalize whitespace (default: false) */\n normalizeSpacing?: boolean;\n /** Throw error on validation failure (default: false, requires validate: true) */\n throwOnValidationError?: boolean;\n /** Validate LaTeX syntax (default: false) */\n validate?: boolean;\n}\n\n/**\n * Comprehensive LaTeX preprocessing with configurable options\n *\n * This is the main preprocessing function that handles:\n * - Currency symbol escaping (e.g., $20 → \\$20)\n * - LaTeX delimiter conversion (\\[...\\] → $$...$$)\n * - Special character escaping (pipes, underscores, mhchem)\n * - Optional error fixing and validation\n * - Optional CJK character handling\n *\n * @param text The input string containing LaTeX and Markdown\n * @param options Configuration options for fine-grained control\n * @returns The preprocessed string\n *\n * @example\n * ```ts\n * // Default behavior (same as old preprocessLaTeX)\n * preprocessLaTeX('向量$90^\\\\circ$,非 $0^\\\\circ$ 和 $180^\\\\circ$')\n *\n * // With custom options\n * preprocessLaTeX(text, {\n * fixErrors: true,\n * validate: true,\n * handleCJK: true\n * })\n * ```\n */\nexport function preprocessLaTeX(text: string, options: AdvancedPreprocessOptions = {}): string {\n const {\n addCJKSpaces = false,\n convertBrackets = true,\n escapeCurrency = true,\n escapeMhchem = true,\n escapePipes = true,\n escapeUnderscores = true,\n fixErrors = false,\n handleCJK = false,\n normalizeSpacing = false,\n throwOnValidationError = false,\n validate = false,\n } = options;\n\n let content = text;\n\n // Phase 1: Currency escaping (if enabled)\n if (escapeCurrency) {\n content = escapeCurrencyDollars(content);\n }\n\n // Phase 2: Bracket conversion (if enabled)\n if (convertBrackets) {\n content = convertLatexDelimiters(content);\n }\n\n // Phase 3: LaTeX-specific escaping\n if (escapeMhchem) {\n content = escapeMhchemCommands(content);\n }\n\n if (escapePipes) {\n content = escapeLatexPipes(content);\n }\n\n if (escapeUnderscores) {\n content = escapeTextUnderscores(content);\n }\n\n // Phase 4: Error fixing (if enabled)\n if (fixErrors) {\n content = fixCommonLaTeXErrors(content);\n }\n\n // Phase 5: Whitespace normalization (if enabled)\n if (normalizeSpacing) {\n content = normalizeLatexSpacing(content);\n }\n\n // Phase 6: CJK handling (if enabled)\n if (handleCJK) {\n content = handleCJKWithLatex(content, addCJKSpaces);\n }\n\n // Phase 7: Validation (if enabled)\n if (validate) {\n const validation = validateLatexExpressions(content);\n if (!validation.valid) {\n const errorMessage = `LaTeX validation failed (${validation.errors.length}/${validation.totalExpressions} expressions have errors):\\n${validation.errors.map((e) => ` - [${e.type}] at position ${e.position}: ${e.message}\\n Formula: ${e.formula}`).join('\\n')}`;\n\n if (throwOnValidationError) {\n throw new Error(errorMessage);\n } else {\n console.warn(errorMessage);\n }\n }\n }\n\n return content;\n}\n\n/**\n * Strict preprocessing mode - enables all safety features and validations\n * Use this when you want maximum correctness and are willing to accept the performance cost\n *\n * @param text The input string\n * @returns The preprocessed string with all features enabled\n *\n * @example\n * ```ts\n * const processed = preprocessLaTeXStrict(userInput)\n * // Enables: error fixing, validation, CJK handling, space normalization\n * ```\n */\nexport function preprocessLaTeXStrict(text: string): string {\n return preprocessLaTeX(text, {\n addCJKSpaces: false, // Usually don't want extra spaces\n convertBrackets: true,\n escapeCurrency: true,\n escapeMhchem: true,\n escapePipes: true,\n escapeUnderscores: true,\n fixErrors: true,\n handleCJK: true,\n normalizeSpacing: true,\n throwOnValidationError: false, // Warn but don't throw\n validate: true,\n });\n}\n\n/**\n * Minimal preprocessing mode - only essential operations\n * Use this for better performance when you control the input\n *\n * @param text The input string\n * @returns The preprocessed string with minimal processing\n *\n * @example\n * ```ts\n * const processed = preprocessLaTeXMinimal(trustedInput)\n * // Only escapes currency and converts brackets\n * ```\n */\nexport function preprocessLaTeXMinimal(text: string): string {\n return preprocessLaTeX(text, {\n convertBrackets: true,\n escapeCurrency: true,\n escapeMhchem: false,\n escapePipes: false,\n escapeUnderscores: false,\n fixErrors: false,\n handleCJK: false,\n normalizeSpacing: false,\n validate: false,\n });\n}\n"],"mappings":"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"}
|