@lobehub/ui 5.49.1 → 5.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Empty/Empty.d.mts +1 -2
- package/es/Empty/Empty.mjs +107 -53
- package/es/Empty/Empty.mjs.map +1 -1
- package/es/Empty/style.mjs +48 -0
- package/es/Empty/style.mjs.map +1 -0
- package/es/Empty/type.d.mts +7 -8
- package/es/HtmlPreview/HtmlPreview.mjs +5 -2
- package/es/HtmlPreview/HtmlPreview.mjs.map +1 -1
- package/es/base-ui/Badge/Badge.d.mts +6 -0
- package/es/base-ui/Badge/Badge.mjs +73 -0
- package/es/base-ui/Badge/Badge.mjs.map +1 -0
- package/es/base-ui/Badge/index.d.mts +3 -0
- package/es/base-ui/Badge/style.mjs +112 -0
- package/es/base-ui/Badge/style.mjs.map +1 -0
- package/es/base-ui/Badge/type.d.mts +19 -0
- package/es/base-ui/Input/style.d.mts +2 -2
- package/es/base-ui/Pagination/Pagination.d.mts +6 -0
- package/es/base-ui/Pagination/Pagination.mjs +123 -0
- package/es/base-ui/Pagination/Pagination.mjs.map +1 -0
- package/es/base-ui/Pagination/helpers.mjs +18 -0
- package/es/base-ui/Pagination/helpers.mjs.map +1 -0
- package/es/base-ui/Pagination/index.d.mts +3 -0
- package/es/base-ui/Pagination/style.mjs +92 -0
- package/es/base-ui/Pagination/style.mjs.map +1 -0
- package/es/base-ui/Pagination/type.d.mts +22 -0
- package/es/base-ui/Progress/Progress.d.mts +6 -0
- package/es/base-ui/Progress/Progress.mjs +179 -0
- package/es/base-ui/Progress/Progress.mjs.map +1 -0
- package/es/base-ui/Progress/index.d.mts +3 -0
- package/es/base-ui/Progress/style.mjs +203 -0
- package/es/base-ui/Progress/style.mjs.map +1 -0
- package/es/base-ui/Progress/type.d.mts +24 -0
- package/es/base-ui/Result/Result.d.mts +6 -0
- package/es/base-ui/Result/Result.mjs +69 -0
- package/es/base-ui/Result/Result.mjs.map +1 -0
- package/es/base-ui/Result/index.d.mts +3 -0
- package/es/base-ui/Result/style.mjs +55 -0
- package/es/base-ui/Result/style.mjs.map +1 -0
- package/es/base-ui/Result/type.d.mts +14 -0
- package/es/base-ui/Spin/NetworkGlyph.mjs +70 -0
- package/es/base-ui/Spin/NetworkGlyph.mjs.map +1 -0
- package/es/base-ui/Spin/Spin.d.mts +6 -0
- package/es/base-ui/Spin/Spin.mjs +100 -0
- package/es/base-ui/Spin/Spin.mjs.map +1 -0
- package/es/base-ui/Spin/index.d.mts +3 -0
- package/es/base-ui/Spin/style.mjs +166 -0
- package/es/base-ui/Spin/style.mjs.map +1 -0
- package/es/base-ui/Spin/type.d.mts +18 -0
- package/es/base-ui/Upload/Upload.d.mts +6 -0
- package/es/base-ui/Upload/Upload.mjs +148 -0
- package/es/base-ui/Upload/Upload.mjs.map +1 -0
- package/es/base-ui/Upload/UploadDragger.d.mts +6 -0
- package/es/base-ui/Upload/UploadDragger.mjs +14 -0
- package/es/base-ui/Upload/UploadDragger.mjs.map +1 -0
- package/es/base-ui/Upload/helpers.mjs +17 -0
- package/es/base-ui/Upload/helpers.mjs.map +1 -0
- package/es/base-ui/Upload/index.d.mts +4 -0
- package/es/base-ui/Upload/style.mjs +74 -0
- package/es/base-ui/Upload/style.mjs.map +1 -0
- package/es/base-ui/Upload/type.d.mts +24 -0
- package/es/base-ui/index.d.mts +20 -1
- package/es/base-ui/index.mjs +10 -3
- package/es/index.d.mts +20 -4
- package/es/index.mjs +8 -2
- package/es/static-css/baseline.mjs +0 -1
- package/es/static-css/baseline.mjs.map +1 -1
- package/package.json +1 -1
- package/es/NeuralNetworkLoading/NeuralNetworkLoading.d.mts +0 -6
- package/es/NeuralNetworkLoading/NeuralNetworkLoading.mjs +0 -142
- package/es/NeuralNetworkLoading/NeuralNetworkLoading.mjs.map +0 -1
- package/es/NeuralNetworkLoading/index.d.mts +0 -3
- package/es/NeuralNetworkLoading/index.d.ts +0 -1
- package/es/NeuralNetworkLoading/index.js +0 -1
- package/es/NeuralNetworkLoading/index.mjs +0 -2
- package/es/NeuralNetworkLoading/type.d.mts +0 -11
package/es/base-ui/index.mjs
CHANGED
|
@@ -15,6 +15,15 @@ import DropdownMenu from "./DropdownMenu/DropdownMenu.mjs";
|
|
|
15
15
|
import SplitButton from "./Button/SplitButton.mjs";
|
|
16
16
|
import { styles as styles$1 } from "./ActionIcon/style.mjs";
|
|
17
17
|
import ActionIcon from "./ActionIcon/ActionIcon.mjs";
|
|
18
|
+
import Badge from "./Badge/Badge.mjs";
|
|
19
|
+
import { SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue } from "./Select/atoms.mjs";
|
|
20
|
+
import Select from "./Select/Select.mjs";
|
|
21
|
+
import Pagination from "./Pagination/Pagination.mjs";
|
|
22
|
+
import Progress from "./Progress/Progress.mjs";
|
|
23
|
+
import Result from "./Result/Result.mjs";
|
|
24
|
+
import Spin from "./Spin/Spin.mjs";
|
|
25
|
+
import Upload from "./Upload/Upload.mjs";
|
|
26
|
+
import UploadDragger from "./Upload/UploadDragger.mjs";
|
|
18
27
|
import { closeContextMenu, setContextMenuInterceptor, showContextMenu, updateContextMenuItems } from "./ContextMenu/store.mjs";
|
|
19
28
|
import { ContextMenuHost } from "./ContextMenu/ContextMenuHost.mjs";
|
|
20
29
|
import { ContextMenuTrigger } from "./ContextMenu/ContextMenuTrigger.mjs";
|
|
@@ -83,8 +92,6 @@ import { Form } from "./Form/index.mjs";
|
|
|
83
92
|
import { styles as styles$8 } from "./Radio/style.mjs";
|
|
84
93
|
import Radio from "./Radio/Radio.mjs";
|
|
85
94
|
import RadioGroup from "./Radio/RadioGroup.mjs";
|
|
86
|
-
import { SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue } from "./Select/atoms.mjs";
|
|
87
|
-
import Select from "./Select/Select.mjs";
|
|
88
95
|
import { styles as styles$9 } from "./Slider/style.mjs";
|
|
89
96
|
import Slider from "./Slider/Slider.mjs";
|
|
90
97
|
import SliderWithInput from "./Slider/SliderWithInput.mjs";
|
|
@@ -99,4 +106,4 @@ import ToggleGroup from "./ToggleGroup/ToggleGroup.mjs";
|
|
|
99
106
|
import { styles as styles$14 } from "./Tree/style.mjs";
|
|
100
107
|
import { conductCheck, flattenVisible, getAllKeys } from "./Tree/utils.mjs";
|
|
101
108
|
import Tree from "./Tree/Tree.mjs";
|
|
102
|
-
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, AutoComplete, Avatar, AvatarGroup, Button, Checkbox, CheckboxGroup, Collapsible, ContextMenuHost, ContextMenuTrigger, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, FocusScope, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Radio, RadioGroup, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, Tree, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
|
|
109
|
+
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, AutoComplete, Avatar, AvatarGroup, Badge, Button, Checkbox, CheckboxGroup, Collapsible, ContextMenuHost, ContextMenuTrigger, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, FocusScope, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Pagination, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Progress, Radio, RadioGroup, Result, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, Spin, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, Tree, Upload, UploadDragger, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
|
package/es/index.d.mts
CHANGED
|
@@ -193,7 +193,26 @@ import { ImagePreviewOptions, ImageProps, PreviewGroupProps } from "./Image/type
|
|
|
193
193
|
import PreviewGroup from "./Image/PreviewGroup.mjs";
|
|
194
194
|
import Image from "./Image/index.mjs";
|
|
195
195
|
import A from "./A/index.mjs";
|
|
196
|
+
import { BadgeProps, BadgeSize, BadgeStatus } from "./base-ui/Badge/type.mjs";
|
|
197
|
+
import Badge from "./base-ui/Badge/Badge.mjs";
|
|
198
|
+
import "./base-ui/Badge/index.mjs";
|
|
196
199
|
import { styles } from "./base-ui/DropdownMenu/sharedStyle.mjs";
|
|
200
|
+
import { PaginationProps, PaginationSize } from "./base-ui/Pagination/type.mjs";
|
|
201
|
+
import Pagination from "./base-ui/Pagination/Pagination.mjs";
|
|
202
|
+
import "./base-ui/Pagination/index.mjs";
|
|
203
|
+
import { ProgressProps, ProgressSize, ProgressStatus, ProgressType, ProgressVariant } from "./base-ui/Progress/type.mjs";
|
|
204
|
+
import Progress from "./base-ui/Progress/Progress.mjs";
|
|
205
|
+
import "./base-ui/Progress/index.mjs";
|
|
206
|
+
import { ResultProps, ResultStatus } from "./base-ui/Result/type.mjs";
|
|
207
|
+
import Result from "./base-ui/Result/Result.mjs";
|
|
208
|
+
import "./base-ui/Result/index.mjs";
|
|
209
|
+
import { SpinProps, SpinSize, SpinVariant } from "./base-ui/Spin/type.mjs";
|
|
210
|
+
import Spin from "./base-ui/Spin/Spin.mjs";
|
|
211
|
+
import "./base-ui/Spin/index.mjs";
|
|
212
|
+
import { UploadChangeInfo, UploadProps } from "./base-ui/Upload/type.mjs";
|
|
213
|
+
import Upload from "./base-ui/Upload/Upload.mjs";
|
|
214
|
+
import UploadDragger from "./base-ui/Upload/UploadDragger.mjs";
|
|
215
|
+
import "./base-ui/Upload/index.mjs";
|
|
197
216
|
import { MotionComponent, MotionComponentType, MotionProvider, useMotionComponent } from "./MotionProvider/index.mjs";
|
|
198
217
|
import { CDN, genCdnUrl } from "./utils/genCdnUrl.mjs";
|
|
199
218
|
import ConfigProvider, { Config, useCdnFn } from "./ConfigProvider/index.mjs";
|
|
@@ -238,9 +257,6 @@ import "./MaskShadow/index.mjs";
|
|
|
238
257
|
import { MaterialFileTypeIconProps } from "./MaterialFileTypeIcon/type.mjs";
|
|
239
258
|
import MaterialFileTypeIcon from "./MaterialFileTypeIcon/MaterialFileTypeIcon.mjs";
|
|
240
259
|
import "./MaterialFileTypeIcon/index.mjs";
|
|
241
|
-
import { NeuralNetworkLoadingProps } from "./NeuralNetworkLoading/type.mjs";
|
|
242
|
-
import NeuralNetworkLoading from "./NeuralNetworkLoading/NeuralNetworkLoading.mjs";
|
|
243
|
-
import "./NeuralNetworkLoading/index.mjs";
|
|
244
260
|
import { I18nProvider, I18nProviderProps } from "./i18n/context.mjs";
|
|
245
261
|
import { useTranslation } from "./i18n/useTranslation.mjs";
|
|
246
262
|
import "./Provider.mjs";
|
|
@@ -311,4 +327,4 @@ import { LayoutToc } from "./Layout/components/LayoutToc.mjs";
|
|
|
311
327
|
import Layout from "./Layout/index.mjs";
|
|
312
328
|
import { rehypeStreamAnimated } from "@lobehub/streamdown";
|
|
313
329
|
import { ErrorBoundary, ErrorBoundaryProps } from "react-error-boundary";
|
|
314
|
-
export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, type EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, FileTypeIcon, type FileTypeIconProps, _default as FlexBasic, type FlexBasicProps, _default as Flexbox, type FlexboxProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, Form, FormGroup, type FormGroupItemType, type FormGroupProps, type FormInstance, FormItem, type FormItemProps, FormModal, type FormModalProps, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, Freeze, type FreezeProps, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, HtmlPreview, HtmlPreviewIframe, type HtmlPreviewIframeProps, type HtmlPreviewMode, type HtmlPreviewProps, type HtmlPreviewStreamingMode, I18nProvider, type I18nProviderProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImagePreviewOptions, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider,
|
|
330
|
+
export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSize, type BadgeStatus, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, type EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, FileTypeIcon, type FileTypeIconProps, _default as FlexBasic, type FlexBasicProps, _default as Flexbox, type FlexboxProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, Form, FormGroup, type FormGroupItemType, type FormGroupProps, type FormInstance, FormItem, type FormItemProps, FormModal, type FormModalProps, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, Freeze, type FreezeProps, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, HtmlPreview, HtmlPreviewIframe, type HtmlPreviewIframeProps, type HtmlPreviewMode, type HtmlPreviewProps, type HtmlPreviewStreamingMode, I18nProvider, type I18nProviderProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImagePreviewOptions, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider, NeutralColors, NeutralColorsObj, Pagination, type PaginationProps, type PaginationSize, PatchDiff, type PatchDiffProps, type Placement, type PlacementConfig, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, PopoverPortal, type PopoverPortalAtomProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetColorKey, type PresetColorType, type PresetSystemColorKey, type PresetSystemColorType, PreviewGroup, type PreviewGroupProps, PrimaryColors, PrimaryColorsObj, Progress, type ProgressProps, type ProgressSize, type ProgressStatus, type ProgressType, type ProgressVariant, type RawModalComponent, type RawModalComponentProps, type RawModalInstance, type RawModalKeyOptions, type RawModalOptions, Result, type ResultProps, type ResultStatus, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Select, type SelectProps, _default$1 as ShikiLobeTheme, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, type SpanProps, Spin, type SpinProps, type SpinSize, type SpinVariant, type SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, type SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, type Trigger, Typography, type TypographyProps, Upload, type UploadChangeInfo, UploadDragger, type UploadProps, Video, type VideoProps, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, containsScript as htmlPreviewContainsScript, installGlobalFocusRing, isFullHtmlDocument, isHtmlContentClosed, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useAppElement, useCdnFn, useModalContext, useMotionComponent, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useToast, useTranslation };
|
package/es/index.mjs
CHANGED
|
@@ -42,6 +42,13 @@ import AutoComplete from "./AutoComplete/Select.mjs";
|
|
|
42
42
|
import FluentEmoji from "./FluentEmoji/FluentEmoji.mjs";
|
|
43
43
|
import AvatarGroup from "./Avatar/AvatarGroup/index.mjs";
|
|
44
44
|
import Avatar from "./Avatar/index.mjs";
|
|
45
|
+
import Badge from "./base-ui/Badge/Badge.mjs";
|
|
46
|
+
import Pagination from "./base-ui/Pagination/Pagination.mjs";
|
|
47
|
+
import Progress from "./base-ui/Progress/Progress.mjs";
|
|
48
|
+
import Result from "./base-ui/Result/Result.mjs";
|
|
49
|
+
import Spin from "./base-ui/Spin/Spin.mjs";
|
|
50
|
+
import Upload from "./base-ui/Upload/Upload.mjs";
|
|
51
|
+
import UploadDragger from "./base-ui/Upload/UploadDragger.mjs";
|
|
45
52
|
import Burger from "./Burger/Burger.mjs";
|
|
46
53
|
import Button from "./Button/Button.mjs";
|
|
47
54
|
import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
|
|
@@ -110,7 +117,6 @@ import { Highlighter } from "./Highlighter/Highlighter.mjs";
|
|
|
110
117
|
import { preprocessMarkdownContent } from "./hooks/useMarkdown/utils.mjs";
|
|
111
118
|
import HotkeyInput from "./HotkeyInput/HotkeyInput.mjs";
|
|
112
119
|
import { DEFAULT_HEIGHT, DEFAULT_SANDBOX, containsScript, isFullHtmlDocument, isHtmlContentClosed } from "./HtmlPreview/const.mjs";
|
|
113
|
-
import NeuralNetworkLoading from "./NeuralNetworkLoading/NeuralNetworkLoading.mjs";
|
|
114
120
|
import Segmented from "./Segmented/Segmented.mjs";
|
|
115
121
|
import { AUTO_HEIGHT_MESSAGE_TYPE } from "./HtmlPreview/injectAutoHeightScript.mjs";
|
|
116
122
|
import { HtmlPreviewIframe } from "./HtmlPreview/Iframe.mjs";
|
|
@@ -162,4 +168,4 @@ import ThemeSwitch from "./ThemeSwitch/ThemeSwitch.mjs";
|
|
|
162
168
|
import Toc from "./Toc/Toc.mjs";
|
|
163
169
|
import { rehypeStreamAnimated } from "@lobehub/streamdown";
|
|
164
170
|
import { ErrorBoundary } from "react-error-boundary";
|
|
165
|
-
export { A, Accordion, AccordionItem, ActionIcon, ActionIconGroup, Alert, AutoComplete, Avatar, AvatarGroup, Block, Burger, Button, CLASSNAMES, Center, Checkbox, CheckboxGroup, CodeDiff, CodeEditor, Collapse, ColorSwatches, ConfigProvider, ContextMenuHost, ContextMenuTrigger, CopyButton, DatePicker, DownloadButton, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelFooter, DraggablePanelHeader, DraggableSideNav, Drawer, Dropdown, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuTrigger, EditableText, EditorSlashMenu, EmojiPicker, Empty, ErrorBoundary, FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji, FontLoader, Footer, Form, FormGroup, FormItem, FormModal, FormSubmitFooter, FormTitle, Freeze, Grid, GroupAvatar, GuideCard, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, Highlighter, Hotkey, HotkeyInput, HtmlPreview, HtmlPreviewIframe, I18nProvider, Icon, IconProvider, Image, ImageSelect, Input, InputNumber, InputOPT, InputPassword, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, LayoutHeader, LayoutMain, LayoutSidebar, LayoutSidebarInner, LayoutToc, List, ListItem, I18nProvider as LobeUIProvider, Markdown, MaskShadow, MaterialFileTypeIcon, Menu, Mermaid, Meta, Modal, ModalHost, ModalProvider, MotionComponent, MotionProvider,
|
|
171
|
+
export { A, Accordion, AccordionItem, ActionIcon, ActionIconGroup, Alert, AutoComplete, Avatar, AvatarGroup, Badge, Block, Burger, Button, CLASSNAMES, Center, Checkbox, CheckboxGroup, CodeDiff, CodeEditor, Collapse, ColorSwatches, ConfigProvider, ContextMenuHost, ContextMenuTrigger, CopyButton, DatePicker, DownloadButton, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelFooter, DraggablePanelHeader, DraggableSideNav, Drawer, Dropdown, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuTrigger, EditableText, EditorSlashMenu, EmojiPicker, Empty, ErrorBoundary, FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji, FontLoader, Footer, Form, FormGroup, FormItem, FormModal, FormSubmitFooter, FormTitle, Freeze, Grid, GroupAvatar, GuideCard, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, Highlighter, Hotkey, HotkeyInput, HtmlPreview, HtmlPreviewIframe, I18nProvider, Icon, IconProvider, Image, ImageSelect, Input, InputNumber, InputOPT, InputPassword, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, LayoutHeader, LayoutMain, LayoutSidebar, LayoutSidebarInner, LayoutToc, List, ListItem, I18nProvider as LobeUIProvider, Markdown, MaskShadow, MaterialFileTypeIcon, Menu, Mermaid, Meta, Modal, ModalHost, ModalProvider, MotionComponent, MotionProvider, Pagination, PatchDiff, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, PreviewGroup, Progress, Result, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, ScrollShadow, SearchBar, SearchResultCards, Segmented, Select, lobe_theme_default as ShikiLobeTheme, SideNav, Skeleton, SkeletonAvatar, SkeletonBlock, SkeletonButton, SkeletonParagraph, SkeletonTags, SkeletonTitle, SliderWithInput, Snippet, SortableList, Spin, SyntaxHighlighter, SyntaxMermaid, Tabs, Tag, Text, TextArea, ThemeProvider, ThemeSwitch, ToastHost, Toc, Tooltip, TooltipGroup, Typography, Upload, UploadDragger, Video, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, containsScript as htmlPreviewContainsScript, installGlobalFocusRing, isFullHtmlDocument, isHtmlContentClosed, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useAppElement, useCdnFn, useModalContext, useMotionComponent, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useToast, useTranslation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseline.mjs","names":[],"sources":["../../src/static-css/baseline.ts"],"sourcesContent":["import type { AntdProbeName } from './registry';\n\n// The antd components @lobehub/ui internals can render. Kept in sync with the\n// source tree by baseline.test.ts — a failure there means this list must change.\nexport const lobeUiAntdBaseline: AntdProbeName[] = [\n 'alert',\n 'anchor',\n 'app',\n 'auto-complete',\n 'avatar',\n 'button',\n 'collapse',\n 'color-picker',\n 'date-picker',\n 'divider',\n 'drawer',\n 'dropdown',\n '
|
|
1
|
+
{"version":3,"file":"baseline.mjs","names":[],"sources":["../../src/static-css/baseline.ts"],"sourcesContent":["import type { AntdProbeName } from './registry';\n\n// The antd components @lobehub/ui internals can render. Kept in sync with the\n// source tree by baseline.test.ts — a failure there means this list must change.\nexport const lobeUiAntdBaseline: AntdProbeName[] = [\n 'alert',\n 'anchor',\n 'app',\n 'auto-complete',\n 'avatar',\n 'button',\n 'collapse',\n 'color-picker',\n 'date-picker',\n 'divider',\n 'drawer',\n 'dropdown',\n 'form',\n 'input',\n 'input-number',\n 'input-textarea',\n 'menu',\n 'modal',\n 'popover',\n 'progress',\n 'segmented',\n 'select',\n 'slider',\n 'space',\n 'tabs',\n 'tag',\n 'tag-preset',\n 'tag-status',\n 'upload',\n];\n"],"mappings":";AAIA,MAAa,qBAAsC;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { NeuralNetworkLoadingProps } from "./type.mjs";
|
|
2
|
-
//#region src/NeuralNetworkLoading/NeuralNetworkLoading.d.ts
|
|
3
|
-
declare const NeuralNetworkLoading: import("react").NamedExoticComponent<NeuralNetworkLoadingProps>;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { NeuralNetworkLoading as default };
|
|
6
|
-
//# sourceMappingURL=NeuralNetworkLoading.d.mts.map
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { memo } from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { createStaticStyles, keyframes } from "antd-style";
|
|
5
|
-
//#region src/NeuralNetworkLoading/NeuralNetworkLoading.tsx
|
|
6
|
-
const pulseAnim = keyframes`
|
|
7
|
-
0%, 100% { opacity: 0.3; }
|
|
8
|
-
50% { opacity: 1; }
|
|
9
|
-
`;
|
|
10
|
-
const flowAnim = keyframes`
|
|
11
|
-
0% { transform: translateX(0); opacity: 0.5; }
|
|
12
|
-
50% { opacity: 1; }
|
|
13
|
-
100% { transform: translateX(var(--flow-distance)); opacity: 0.5; }
|
|
14
|
-
`;
|
|
15
|
-
const rotateAnim = keyframes`
|
|
16
|
-
100% { transform: rotate(360deg); }
|
|
17
|
-
`;
|
|
18
|
-
const scaleAnim = keyframes`
|
|
19
|
-
0%, 100% { transform: scale(0.8); opacity: 0.5; }
|
|
20
|
-
50% { transform: scale(1); opacity: 1; }
|
|
21
|
-
`;
|
|
22
|
-
const styles = createStaticStyles(({ css, cssVar }) => ({
|
|
23
|
-
center: css`
|
|
24
|
-
fill: ${cssVar.colorTextSecondary};
|
|
25
|
-
animation: ${scaleAnim} 2s infinite;
|
|
26
|
-
`,
|
|
27
|
-
connection: css`
|
|
28
|
-
opacity: 0.3;
|
|
29
|
-
stroke: ${cssVar.colorTextSecondary};
|
|
30
|
-
stroke-width: 0.5;
|
|
31
|
-
`,
|
|
32
|
-
container: css`
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
`,
|
|
37
|
-
node: css`
|
|
38
|
-
fill: ${cssVar.colorTextSecondary};
|
|
39
|
-
animation: ${pulseAnim} 2s infinite;
|
|
40
|
-
`,
|
|
41
|
-
particle: css`
|
|
42
|
-
fill: ${cssVar.colorTextSecondary};
|
|
43
|
-
animation: ${flowAnim} 2s infinite;
|
|
44
|
-
`,
|
|
45
|
-
ring: css`
|
|
46
|
-
transform-origin: center;
|
|
47
|
-
|
|
48
|
-
fill: none;
|
|
49
|
-
stroke: ${cssVar.colorFill};
|
|
50
|
-
stroke-dasharray: 0 8;
|
|
51
|
-
stroke-width: 1;
|
|
52
|
-
|
|
53
|
-
animation: ${rotateAnim} 20s infinite linear;
|
|
54
|
-
`,
|
|
55
|
-
svg: css`
|
|
56
|
-
width: 100%;
|
|
57
|
-
height: 100%;
|
|
58
|
-
`
|
|
59
|
-
}));
|
|
60
|
-
const LAYER_COUNT = 3;
|
|
61
|
-
const NODE_COUNT = 3;
|
|
62
|
-
const NeuralNetworkLoading = memo(({ size = 16, className, style }) => {
|
|
63
|
-
const nodes = [];
|
|
64
|
-
for (let layerIndex = 0; layerIndex < LAYER_COUNT; layerIndex++) for (let nodeIndex = 0; nodeIndex < NODE_COUNT; nodeIndex++) {
|
|
65
|
-
const x = 25 + layerIndex * 25;
|
|
66
|
-
const y = 25 + nodeIndex * 25;
|
|
67
|
-
const delay = (layerIndex * NODE_COUNT + nodeIndex) * .2;
|
|
68
|
-
nodes.push(/* @__PURE__ */ jsx("circle", {
|
|
69
|
-
className: styles.node,
|
|
70
|
-
cx: x,
|
|
71
|
-
cy: y,
|
|
72
|
-
r: "3",
|
|
73
|
-
style: { animationDelay: `${delay}s` }
|
|
74
|
-
}, `node-${layerIndex}-${nodeIndex}`));
|
|
75
|
-
}
|
|
76
|
-
const connections = [];
|
|
77
|
-
for (let layerIndex = 0; layerIndex < 2; layerIndex++) for (let nodeIndex = 0; nodeIndex < NODE_COUNT; nodeIndex++) {
|
|
78
|
-
const x1 = 25 + layerIndex * 25;
|
|
79
|
-
const y1 = 25 + nodeIndex * 25;
|
|
80
|
-
for (let targetIndex = 0; targetIndex < NODE_COUNT; targetIndex++) {
|
|
81
|
-
const x2 = 25 + (layerIndex + 1) * 25;
|
|
82
|
-
const y2 = 25 + targetIndex * 25;
|
|
83
|
-
connections.push(/* @__PURE__ */ jsx("line", {
|
|
84
|
-
className: styles.connection,
|
|
85
|
-
x1,
|
|
86
|
-
x2,
|
|
87
|
-
y1,
|
|
88
|
-
y2
|
|
89
|
-
}, `connection-${layerIndex}-${nodeIndex}-${targetIndex}`));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const particles = [
|
|
93
|
-
0,
|
|
94
|
-
1,
|
|
95
|
-
2
|
|
96
|
-
].map((index) => /* @__PURE__ */ jsx("circle", {
|
|
97
|
-
className: styles.particle,
|
|
98
|
-
cx: 25,
|
|
99
|
-
cy: 50,
|
|
100
|
-
r: "1.5",
|
|
101
|
-
style: {
|
|
102
|
-
"--flow-distance": "50px",
|
|
103
|
-
"animationDelay": `${index * .6}s`
|
|
104
|
-
}
|
|
105
|
-
}, `particle-${index}`));
|
|
106
|
-
return /* @__PURE__ */ jsx("div", {
|
|
107
|
-
className: [styles.container, className].filter(Boolean).join(" "),
|
|
108
|
-
style: {
|
|
109
|
-
height: size,
|
|
110
|
-
width: size,
|
|
111
|
-
...style
|
|
112
|
-
},
|
|
113
|
-
children: /* @__PURE__ */ jsxs("svg", {
|
|
114
|
-
className: styles.svg,
|
|
115
|
-
viewBox: "0 0 100 100",
|
|
116
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
117
|
-
children: [
|
|
118
|
-
connections,
|
|
119
|
-
nodes,
|
|
120
|
-
particles,
|
|
121
|
-
/* @__PURE__ */ jsx("rect", {
|
|
122
|
-
className: styles.center,
|
|
123
|
-
height: "6",
|
|
124
|
-
width: "6",
|
|
125
|
-
x: "47",
|
|
126
|
-
y: "47"
|
|
127
|
-
}),
|
|
128
|
-
/* @__PURE__ */ jsx("circle", {
|
|
129
|
-
className: styles.ring,
|
|
130
|
-
cx: "50",
|
|
131
|
-
cy: "50",
|
|
132
|
-
r: "40"
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
})
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
NeuralNetworkLoading.displayName = "NeuralNetworkLoading";
|
|
139
|
-
//#endregion
|
|
140
|
-
export { NeuralNetworkLoading as default };
|
|
141
|
-
|
|
142
|
-
//# sourceMappingURL=NeuralNetworkLoading.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeuralNetworkLoading.mjs","names":[],"sources":["../../src/NeuralNetworkLoading/NeuralNetworkLoading.tsx"],"sourcesContent":["'use client';\n\nimport { createStaticStyles, keyframes } from 'antd-style';\nimport { type CSSProperties, memo } from 'react';\n\nimport type { NeuralNetworkLoadingProps } from './type';\n\nconst pulseAnim = keyframes`\n 0%, 100% { opacity: 0.3; }\n 50% { opacity: 1; }\n`;\n\nconst flowAnim = keyframes`\n 0% { transform: translateX(0); opacity: 0.5; }\n 50% { opacity: 1; }\n 100% { transform: translateX(var(--flow-distance)); opacity: 0.5; }\n`;\n\nconst rotateAnim = keyframes`\n 100% { transform: rotate(360deg); }\n`;\n\nconst scaleAnim = keyframes`\n 0%, 100% { transform: scale(0.8); opacity: 0.5; }\n 50% { transform: scale(1); opacity: 1; }\n`;\n\nconst styles = createStaticStyles(({ css, cssVar }) => ({\n center: css`\n fill: ${cssVar.colorTextSecondary};\n animation: ${scaleAnim} 2s infinite;\n `,\n connection: css`\n opacity: 0.3;\n stroke: ${cssVar.colorTextSecondary};\n stroke-width: 0.5;\n `,\n container: css`\n display: flex;\n align-items: center;\n justify-content: center;\n `,\n node: css`\n fill: ${cssVar.colorTextSecondary};\n animation: ${pulseAnim} 2s infinite;\n `,\n particle: css`\n fill: ${cssVar.colorTextSecondary};\n animation: ${flowAnim} 2s infinite;\n `,\n ring: css`\n transform-origin: center;\n\n fill: none;\n stroke: ${cssVar.colorFill};\n stroke-dasharray: 0 8;\n stroke-width: 1;\n\n animation: ${rotateAnim} 20s infinite linear;\n `,\n svg: css`\n width: 100%;\n height: 100%;\n `,\n}));\n\nconst LAYER_COUNT = 3;\nconst NODE_COUNT = 3;\n\nconst NeuralNetworkLoading = memo<NeuralNetworkLoadingProps>(({ size = 16, className, style }) => {\n const nodes = [];\n for (let layerIndex = 0; layerIndex < LAYER_COUNT; layerIndex++) {\n for (let nodeIndex = 0; nodeIndex < NODE_COUNT; nodeIndex++) {\n const x = 25 + layerIndex * 25;\n const y = 25 + nodeIndex * 25;\n const delay = (layerIndex * NODE_COUNT + nodeIndex) * 0.2;\n nodes.push(\n <circle\n className={styles.node}\n cx={x}\n cy={y}\n key={`node-${layerIndex}-${nodeIndex}`}\n r=\"3\"\n style={{ animationDelay: `${delay}s` }}\n />,\n );\n }\n }\n\n const connections = [];\n for (let layerIndex = 0; layerIndex < LAYER_COUNT - 1; layerIndex++) {\n for (let nodeIndex = 0; nodeIndex < NODE_COUNT; nodeIndex++) {\n const x1 = 25 + layerIndex * 25;\n const y1 = 25 + nodeIndex * 25;\n for (let targetIndex = 0; targetIndex < NODE_COUNT; targetIndex++) {\n const x2 = 25 + (layerIndex + 1) * 25;\n const y2 = 25 + targetIndex * 25;\n connections.push(\n <line\n className={styles.connection}\n key={`connection-${layerIndex}-${nodeIndex}-${targetIndex}`}\n x1={x1}\n x2={x2}\n y1={y1}\n y2={y2}\n />,\n );\n }\n }\n }\n\n const particles = [0, 1, 2].map((index) => (\n <circle\n className={styles.particle}\n cx={25}\n cy={50}\n key={`particle-${index}`}\n r=\"1.5\"\n style={\n {\n '--flow-distance': '50px',\n 'animationDelay': `${index * 0.6}s`,\n } as CSSProperties\n }\n />\n ));\n\n return (\n <div\n className={[styles.container, className].filter(Boolean).join(' ')}\n style={{ height: size, width: size, ...style }}\n >\n <svg className={styles.svg} viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\">\n {connections}\n {nodes}\n {particles}\n <rect className={styles.center} height=\"6\" width=\"6\" x=\"47\" y=\"47\" />\n <circle className={styles.ring} cx=\"50\" cy=\"50\" r=\"40\" />\n </svg>\n </div>\n );\n});\n\nNeuralNetworkLoading.displayName = 'NeuralNetworkLoading';\n\nexport default NeuralNetworkLoading;\n"],"mappings":";;;;;AAOA,MAAM,YAAY,SAAS;;;;AAK3B,MAAM,WAAW,SAAS;;;;;AAM1B,MAAM,aAAa,SAAS;;;AAI5B,MAAM,YAAY,SAAS;;;;AAK3B,MAAM,SAAS,oBAAoB,EAAE,KAAK,cAAc;CACtD,QAAQ,GAAG;YACD,OAAO,mBAAmB;iBACrB,UAAU;;CAEzB,YAAY,GAAG;;cAEH,OAAO,mBAAmB;;;CAGtC,WAAW,GAAG;;;;;CAKd,MAAM,GAAG;YACC,OAAO,mBAAmB;iBACrB,UAAU;;CAEzB,UAAU,GAAG;YACH,OAAO,mBAAmB;iBACrB,SAAS;;CAExB,MAAM,GAAG;;;;cAIG,OAAO,UAAU;;;;iBAId,WAAW;;CAE1B,KAAK,GAAG;;;;AAIV,EAAE;AAEF,MAAM,cAAc;AACpB,MAAM,aAAa;AAEnB,MAAM,uBAAuB,MAAiC,EAAE,OAAO,IAAI,WAAW,YAAY;CAChG,MAAM,QAAQ,CAAC;CACf,KAAK,IAAI,aAAa,GAAG,aAAa,aAAa,cACjD,KAAK,IAAI,YAAY,GAAG,YAAY,YAAY,aAAa;EAC3D,MAAM,IAAI,KAAK,aAAa;EAC5B,MAAM,IAAI,KAAK,YAAY;EAC3B,MAAM,SAAS,aAAa,aAAa,aAAa;EACtD,MAAM,KACJ,oBAAC,UAAD;GACE,WAAW,OAAO;GAClB,IAAI;GACJ,IAAI;GAEJ,GAAE;GACF,OAAO,EAAE,gBAAgB,GAAG,MAAM,GAAG;EACtC,GAHM,QAAQ,WAAW,GAAG,WAG5B,CACH;CACF;CAGF,MAAM,cAAc,CAAC;CACrB,KAAK,IAAI,aAAa,GAAG,aAAa,GAAiB,cACrD,KAAK,IAAI,YAAY,GAAG,YAAY,YAAY,aAAa;EAC3D,MAAM,KAAK,KAAK,aAAa;EAC7B,MAAM,KAAK,KAAK,YAAY;EAC5B,KAAK,IAAI,cAAc,GAAG,cAAc,YAAY,eAAe;GACjE,MAAM,KAAK,MAAM,aAAa,KAAK;GACnC,MAAM,KAAK,KAAK,cAAc;GAC9B,YAAY,KACV,oBAAC,QAAD;IACE,WAAW,OAAO;IAEd;IACA;IACA;IACA;GACL,GALM,cAAc,WAAW,GAAG,UAAU,GAAG,aAK/C,CACH;EACF;CACF;CAGF,MAAM,YAAY;EAAC;EAAG;EAAG;CAAC,CAAC,CAAC,KAAK,UAC/B,oBAAC,UAAD;EACE,WAAW,OAAO;EAClB,IAAI;EACJ,IAAI;EAEJ,GAAE;EACF,OACE;GACE,mBAAmB;GACnB,kBAAkB,GAAG,QAAQ,GAAI;EACnC;CAEH,GARM,YAAY,OAQlB,CACF;CAED,OACE,oBAAC,OAAD;EACE,WAAW,CAAC,OAAO,WAAW,SAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EACjE,OAAO;GAAE,QAAQ;GAAM,OAAO;GAAM,GAAG;EAAM;EAE7C,UAAA,qBAAC,OAAD;GAAK,WAAW,OAAO;GAAK,SAAQ;GAAc,OAAM;GAAxD,UAAA;IACG;IACA;IACA;IACD,oBAAC,QAAD;KAAM,WAAW,OAAO;KAAQ,QAAO;KAAI,OAAM;KAAI,GAAE;KAAK,GAAE;IAAM,CAAA;IACpE,oBAAC,UAAD;KAAQ,WAAW,OAAO;KAAM,IAAG;KAAK,IAAG;KAAK,GAAE;IAAM,CAAA;GACrD;;CACF,CAAA;AAET,CAAC;AAED,qBAAqB,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index.d.mts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index.mjs';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
2
|
-
//#region src/NeuralNetworkLoading/type.d.ts
|
|
3
|
-
interface NeuralNetworkLoadingProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Size in pixels (width and height). */
|
|
6
|
-
size?: number;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { NeuralNetworkLoadingProps };
|
|
11
|
-
//# sourceMappingURL=type.d.mts.map
|