@lobehub/ui 4.1.9 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/es/Accordion/Accordion.d.mts +2 -2
  2. package/es/Accordion/Accordion.mjs +2 -2
  3. package/es/Accordion/Accordion.mjs.map +1 -1
  4. package/es/Accordion/AccordionItem.d.mts +2 -2
  5. package/es/Accordion/AccordionItem.mjs +161 -93
  6. package/es/Accordion/AccordionItem.mjs.map +1 -1
  7. package/es/Accordion/context.mjs +1 -3
  8. package/es/Accordion/context.mjs.map +1 -1
  9. package/es/Accordion/type.d.mts +17 -0
  10. package/es/ActionIcon/ActionIcon.d.mts +2 -2
  11. package/es/Alert/Alert.d.mts +2 -2
  12. package/es/AutoComplete/Select.d.mts +2 -2
  13. package/es/Avatar/AvatarGroup/index.d.mts +2 -2
  14. package/es/Burger/Burger.d.mts +2 -2
  15. package/es/Checkbox/Checkbox.d.mts +8 -0
  16. package/es/Checkbox/Checkbox.mjs +63 -0
  17. package/es/Checkbox/Checkbox.mjs.map +1 -0
  18. package/es/Checkbox/index.d.mts +3 -0
  19. package/es/Checkbox/index.d.ts +1 -0
  20. package/es/Checkbox/index.js +1 -0
  21. package/es/Checkbox/index.mjs +3 -0
  22. package/es/Checkbox/style.mjs +21 -0
  23. package/es/Checkbox/style.mjs.map +1 -0
  24. package/es/Checkbox/type.d.mts +31 -0
  25. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  26. package/es/CodeEditor/CodeEditor.mjs +2 -2
  27. package/es/CodeEditor/CodeEditor.mjs.map +1 -1
  28. package/es/Collapse/Collapse.d.mts +2 -2
  29. package/es/ColorSwatches/ColorSwatches.mjs +2 -2
  30. package/es/ColorSwatches/ColorSwatches.mjs.map +1 -1
  31. package/es/ConfigProvider/index.d.mts +2 -2
  32. package/es/CopyButton/CopyButton.d.mts +2 -2
  33. package/es/DatePicker/DatePicker.d.mts +2 -2
  34. package/es/DraggablePanel/DraggablePanel.mjs +2 -2
  35. package/es/DraggablePanel/DraggablePanel.mjs.map +1 -1
  36. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  37. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  38. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  39. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  40. package/es/DraggablePanel/components/DraggablePanelHeader.mjs +2 -2
  41. package/es/DraggablePanel/components/DraggablePanelHeader.mjs.map +1 -1
  42. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  43. package/es/DraggableSideNav/DraggableSideNav.mjs +2 -2
  44. package/es/DraggableSideNav/DraggableSideNav.mjs.map +1 -1
  45. package/es/Drawer/Drawer.d.mts +2 -2
  46. package/es/Dropdown/Dropdown.d.mts +2 -2
  47. package/es/EditableText/EditableText.d.mts +2 -2
  48. package/es/EditableText/EditableText.mjs +2 -2
  49. package/es/EditableText/EditableText.mjs.map +1 -1
  50. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  51. package/es/EmojiPicker/EmojiPicker.mjs +3 -3
  52. package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
  53. package/es/Flex/FlexBasic.d.mts +2 -2
  54. package/es/FontLoader/index.d.mts +2 -2
  55. package/es/Footer/Footer.d.mts +2 -2
  56. package/es/Form/components/FormGroup.d.mts +2 -2
  57. package/es/Form/components/FormItem.d.mts +2 -2
  58. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  59. package/es/FormModal/FormModal.d.mts +2 -2
  60. package/es/Header/Header.d.mts +2 -2
  61. package/es/Highlighter/Highlighter.d.mts +2 -2
  62. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  63. package/es/Highlighter/SyntaxHighlighter/index.mjs +7 -0
  64. package/es/Highlighter/SyntaxHighlighter/index.mjs.map +1 -1
  65. package/es/Highlighter/SyntaxHighlighter/style.mjs +17 -1
  66. package/es/Highlighter/SyntaxHighlighter/style.mjs.map +1 -1
  67. package/es/Hotkey/Hotkey.d.mts +2 -2
  68. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  69. package/es/HotkeyInput/HotkeyInput.mjs +2 -2
  70. package/es/HotkeyInput/HotkeyInput.mjs.map +1 -1
  71. package/es/Icon/Icon.d.mts +2 -2
  72. package/es/Icon/components/IconProvider.d.mts +3 -3
  73. package/es/Image/PreviewGroup.d.mts +2 -2
  74. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  75. package/es/ImageSelect/ImageSelect.mjs +2 -2
  76. package/es/ImageSelect/ImageSelect.mjs.map +1 -1
  77. package/es/Input/Input.d.mts +2 -2
  78. package/es/Input/InputNumber.d.mts +2 -2
  79. package/es/Input/InputOPT.d.mts +2 -2
  80. package/es/Input/InputPassword.d.mts +2 -2
  81. package/es/Input/TextArea.d.mts +2 -2
  82. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  83. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  84. package/es/Layout/components/LayoutMain.d.mts +2 -2
  85. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  86. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  87. package/es/Layout/components/LayoutToc.d.mts +2 -2
  88. package/es/List/ListItem/index.d.mts +2 -2
  89. package/es/Markdown/Markdown.d.mts +2 -2
  90. package/es/Markdown/SyntaxMarkdown/style.mjs +9 -8
  91. package/es/Markdown/SyntaxMarkdown/style.mjs.map +1 -1
  92. package/es/Markdown/Typography.d.mts +2 -2
  93. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  94. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  95. package/es/Menu/Menu.d.mts +2 -2
  96. package/es/Mermaid/Mermaid.d.mts +2 -2
  97. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  98. package/es/Modal/Modal.d.mts +2 -2
  99. package/es/MotionProvider/index.d.mts +2 -2
  100. package/es/SearchBar/SearchBar.d.mts +2 -2
  101. package/es/SearchBar/SearchBar.mjs +2 -2
  102. package/es/SearchBar/SearchBar.mjs.map +1 -1
  103. package/es/Segmented/Segmented.d.mts +2 -2
  104. package/es/Select/Select.d.mts +2 -2
  105. package/es/SideNav/SideNav.d.mts +2 -2
  106. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  107. package/es/SortableList/components/DragHandle.d.mts +2 -2
  108. package/es/SortableList/components/SortableItem.d.mts +2 -2
  109. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  110. package/es/Toc/Toc.d.mts +2 -2
  111. package/es/Toc/TocMobile.mjs +2 -2
  112. package/es/Toc/TocMobile.mjs.map +1 -1
  113. package/es/Video/index.d.mts +2 -2
  114. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  115. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  116. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  117. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  118. package/es/awesome/Hero/Hero.d.mts +2 -2
  119. package/es/awesome/Spline/Spine.d.mts +2 -2
  120. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  121. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  122. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  123. package/es/brand/BrandLoading/{style-Cof4dJBw.css → style-Ci5ZSi4a.css} +1 -1
  124. package/es/brand/BrandLoading/{style-Cof4dJBw.css.map → style-Ci5ZSi4a.css.map} +1 -1
  125. package/es/brand/LobeChat/index.d.mts +2 -2
  126. package/es/brand/LobeHub/index.d.mts +2 -2
  127. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  128. package/es/brand/LogoThree/index.d.mts +2 -2
  129. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  130. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  131. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  132. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  133. package/es/chat/EditableMessage/EditableMessage.mjs +3 -3
  134. package/es/chat/EditableMessage/EditableMessage.mjs.map +1 -1
  135. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  136. package/es/chat/MessageModal/MessageModal.mjs +3 -3
  137. package/es/chat/MessageModal/MessageModal.mjs.map +1 -1
  138. package/es/color/ColorScales/index.d.mts +2 -2
  139. package/es/i18n/context.d.mts +2 -2
  140. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  141. package/es/icons/lucideExtra/CreateBotIcon.d.mts +2 -2
  142. package/es/icons/lucideExtra/DiscordIcon.d.mts +3 -3
  143. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +3 -3
  144. package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
  145. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  146. package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
  147. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  148. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  149. package/es/icons/lucideExtra/ProviderIcon.d.mts +2 -2
  150. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  151. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +2 -2
  152. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +2 -2
  153. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +2 -2
  154. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  155. package/es/index.d.mts +7 -4
  156. package/es/index.mjs +2 -1
  157. package/es/mdx/Mdx/index.d.mts +2 -2
  158. package/es/mobile/TabBar/TabBar.mjs +2 -2
  159. package/es/mobile/TabBar/TabBar.mjs.map +1 -1
  160. package/es/storybook/StoryBook/index.d.mts +2 -2
  161. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import * as react97 from "react";
1
+ import * as react101 from "react";
2
2
  import * as lucide_react12 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/TreeDownRightIcon.d.ts
5
- declare const TreeDownRightIcon: react97.ForwardRefExoticComponent<Omit<lucide_react12.LucideProps, "ref"> & react97.RefAttributes<SVGSVGElement>>;
5
+ declare const TreeDownRightIcon: react101.ForwardRefExoticComponent<Omit<lucide_react12.LucideProps, "ref"> & react101.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { TreeDownRightIcon };
8
8
  //# sourceMappingURL=TreeDownRightIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react91 from "react";
2
- import * as lucide_react9 from "lucide-react";
1
+ import * as react83 from "react";
2
+ import * as lucide_react3 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/TreeUpDownRightIcon.d.ts
5
- declare const TreeUpDownRightIcon: react91.ForwardRefExoticComponent<Omit<lucide_react9.LucideProps, "ref"> & react91.RefAttributes<SVGSVGElement>>;
5
+ declare const TreeUpDownRightIcon: react83.ForwardRefExoticComponent<Omit<lucide_react3.LucideProps, "ref"> & react83.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { TreeUpDownRightIcon };
8
8
  //# sourceMappingURL=TreeUpDownRightIcon.d.mts.map
package/es/index.d.mts CHANGED
@@ -52,6 +52,12 @@ import "./Burger/index.mjs";
52
52
  import { ButtonProps } from "./Button/type.mjs";
53
53
  import { Button } from "./Button/Button.mjs";
54
54
  import "./Button/index.mjs";
55
+ import { TextProps } from "./Text/type.mjs";
56
+ import { Text } from "./Text/Text.mjs";
57
+ import "./Text/index.mjs";
58
+ import { CheckboxProps } from "./Checkbox/type.mjs";
59
+ import { Checkbox } from "./Checkbox/Checkbox.mjs";
60
+ import "./Checkbox/index.mjs";
55
61
  import { CodeEditorProps } from "./CodeEditor/type.mjs";
56
62
  import { CodeEditor } from "./CodeEditor/CodeEditor.mjs";
57
63
  import "./CodeEditor/index.mjs";
@@ -95,9 +101,6 @@ import "./EditableText/index.mjs";
95
101
  import { EmojiPickerProps } from "./EmojiPicker/type.mjs";
96
102
  import { EmojiPicker } from "./EmojiPicker/EmojiPicker.mjs";
97
103
  import "./EmojiPicker/index.mjs";
98
- import { TextProps } from "./Text/type.mjs";
99
- import { Text } from "./Text/Text.mjs";
100
- import "./Text/index.mjs";
101
104
  import { EmptyProps } from "./Empty/type.mjs";
102
105
  import { Empty } from "./Empty/Empty.mjs";
103
106
  import "./Empty/index.mjs";
@@ -248,4 +251,4 @@ import { LayoutSidebarInner } from "./Layout/components/LayoutSidebarInner.mjs";
248
251
  import { LayoutToc } from "./Layout/components/LayoutToc.mjs";
249
252
  import Layout from "./Layout/index.mjs";
250
253
  import { ErrorBoundary, ErrorBoundaryProps } from "react-error-boundary";
251
- export { A, 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, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, Center, type CenterProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, ColorPalettes, ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, ColorToken, type Config, ConfigProvider, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, 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 MenuItemType as DropdownMenuItemType, type DropdownProps, EditableText, type EditableTextProps, 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, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, I18nProvider, type I18nProviderProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, ImgProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, 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, LobeCustomStylish, LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, type ModalProps, MotionComponent, type MotionComponentType, MotionProvider, NeutralColors, NeutralColorsObj, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, PreviewGroup, type PreviewGroupProps, PrimaryColors, PrimaryColorsObj, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Input$1 as Select, type SelectProps, 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, SpanProps, SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, Typography, type TypographyProps, Video, type VideoProps, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn, useMotionComponent, useTranslation };
254
+ export { A, 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, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, Center, type CenterProps, Checkbox, type CheckboxProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, ColorPalettes, ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, ColorToken, type Config, ConfigProvider, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, 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 MenuItemType as DropdownMenuItemType, type DropdownProps, EditableText, type EditableTextProps, 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, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, I18nProvider, type I18nProviderProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, ImgProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, 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, LobeCustomStylish, LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, type ModalProps, MotionComponent, type MotionComponentType, MotionProvider, NeutralColors, NeutralColorsObj, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, PreviewGroup, type PreviewGroupProps, PrimaryColors, PrimaryColorsObj, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Input$1 as Select, type SelectProps, 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, SpanProps, SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, Typography, type TypographyProps, Video, type VideoProps, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn, useMotionComponent, useTranslation };
package/es/index.mjs CHANGED
@@ -26,6 +26,7 @@ import AvatarGroup_default from "./Avatar/AvatarGroup/index.mjs";
26
26
  import Avatar_default from "./Avatar/index.mjs";
27
27
  import Burger_default from "./Burger/Burger.mjs";
28
28
  import Button_default from "./Button/Button.mjs";
29
+ import Checkbox_default from "./Checkbox/Checkbox.mjs";
29
30
  import { highlighterThemes } from "./Highlighter/const.mjs";
30
31
  import SyntaxHighlighter_default from "./Highlighter/SyntaxHighlighter/index.mjs";
31
32
  import CodeEditor_default from "./CodeEditor/CodeEditor.mjs";
@@ -125,4 +126,4 @@ import ThemeSwitch_default from "./ThemeSwitch/ThemeSwitch.mjs";
125
126
  import Toc_default from "./Toc/Toc.mjs";
126
127
  import { ErrorBoundary } from "react-error-boundary";
127
128
 
128
- export { A_default as A, Accordion_default as Accordion, AccordionItem_default as AccordionItem, ActionIcon_default as ActionIcon, ActionIconGroup_default as ActionIconGroup, Alert_default as Alert, Select_default as AutoComplete, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Block_default as Block, Burger_default as Burger, Button_default as Button, Center_default as Center, CodeEditor_default as CodeEditor, Collapse_default as Collapse, ColorSwatches_default as ColorSwatches, ConfigProvider_default as ConfigProvider, CopyButton_default as CopyButton, DatePicker_default as DatePicker, DownloadButton_default as DownloadButton, DraggablePanel_default as DraggablePanel, DraggablePanelBody_default as DraggablePanelBody, DraggablePanelContainer_default as DraggablePanelContainer, DraggablePanelFooter_default as DraggablePanelFooter, DraggablePanelHeader_default as DraggablePanelHeader, DraggableSideNav_default as DraggableSideNav, Drawer_default as Drawer, Dropdown_default as Dropdown, EditableText_default as EditableText, EmojiPicker_default as EmojiPicker, Empty_default as Empty, ErrorBoundary, FileTypeIcon_default as FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji_default as FluentEmoji, FontLoader_default as FontLoader, Footer_default as Footer, Form_default as Form, FormGroup_default as FormGroup, FormItem_default as FormItem, FormModal_default as FormModal, FormSubmitFooter_default as FormSubmitFooter, FormTitle_default as FormTitle, Grid_default as Grid, GroupAvatar_default as GroupAvatar, GuideCard_default as GuideCard, Header_default as Header, Highlighter_default as Highlighter, Hotkey_default as Hotkey, HotkeyInput_default as HotkeyInput, I18nProvider, Icon_default as Icon, IconProvider, Image_default as Image, ImageSelect_default as ImageSelect, Input_default as Input, InputNumber_default as InputNumber, InputOPT_default as InputOPT, InputPassword_default as InputPassword, KeyMapEnum, Layout_default as Layout, LayoutFooter_default as LayoutFooter, LayoutHeader_default as LayoutHeader, LayoutMain_default as LayoutMain, LayoutSidebar_default as LayoutSidebar, LayoutSidebarInner_default as LayoutSidebarInner, LayoutToc_default as LayoutToc, List_default as List, ListItem_default as ListItem, I18nProvider as LobeUIProvider, Markdown_default as Markdown, MaskShadow_default as MaskShadow, MaterialFileTypeIcon_default as MaterialFileTypeIcon, Menu_default as Menu, Mermaid_default as Mermaid, Meta_default as Meta, Modal_default as Modal, MotionComponent, MotionProvider, PreviewGroup_default as PreviewGroup, ScrollShadow_default as ScrollShadow, SearchBar_default as SearchBar, SearchResultCards_default as SearchResultCards, Segmented_default as Segmented, Select_default$1 as Select, SideNav_default as SideNav, Skeleton_default as Skeleton, SkeletonAvatar_default as SkeletonAvatar, SkeletonBlock_default as SkeletonBlock, SkeletonButton_default as SkeletonButton, SkeletonParagraph_default as SkeletonParagraph, SkeletonTags_default as SkeletonTags, SkeletonTitle_default as SkeletonTitle, SliderWithInput_default as SliderWithInput, Snippet_default as Snippet, SortableList_default as SortableList, SyntaxHighlighter_default as SyntaxHighlighter, SyntaxMermaid_default as SyntaxMermaid, Tabs_default as Tabs, Tag_default as Tag, Text_default as Text, TextArea_default as TextArea, ThemeProvider_default as ThemeProvider, ThemeSwitch_default as ThemeSwitch, Toc_default as Toc, Tooltip_default as Tooltip, TooltipGroup_default as TooltipGroup, Typography_default as Typography, Video_default as Video, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn, useMotionComponent, useTranslation };
129
+ export { A_default as A, Accordion_default as Accordion, AccordionItem_default as AccordionItem, ActionIcon_default as ActionIcon, ActionIconGroup_default as ActionIconGroup, Alert_default as Alert, Select_default as AutoComplete, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Block_default as Block, Burger_default as Burger, Button_default as Button, Center_default as Center, Checkbox_default as Checkbox, CodeEditor_default as CodeEditor, Collapse_default as Collapse, ColorSwatches_default as ColorSwatches, ConfigProvider_default as ConfigProvider, CopyButton_default as CopyButton, DatePicker_default as DatePicker, DownloadButton_default as DownloadButton, DraggablePanel_default as DraggablePanel, DraggablePanelBody_default as DraggablePanelBody, DraggablePanelContainer_default as DraggablePanelContainer, DraggablePanelFooter_default as DraggablePanelFooter, DraggablePanelHeader_default as DraggablePanelHeader, DraggableSideNav_default as DraggableSideNav, Drawer_default as Drawer, Dropdown_default as Dropdown, EditableText_default as EditableText, EmojiPicker_default as EmojiPicker, Empty_default as Empty, ErrorBoundary, FileTypeIcon_default as FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji_default as FluentEmoji, FontLoader_default as FontLoader, Footer_default as Footer, Form_default as Form, FormGroup_default as FormGroup, FormItem_default as FormItem, FormModal_default as FormModal, FormSubmitFooter_default as FormSubmitFooter, FormTitle_default as FormTitle, Grid_default as Grid, GroupAvatar_default as GroupAvatar, GuideCard_default as GuideCard, Header_default as Header, Highlighter_default as Highlighter, Hotkey_default as Hotkey, HotkeyInput_default as HotkeyInput, I18nProvider, Icon_default as Icon, IconProvider, Image_default as Image, ImageSelect_default as ImageSelect, Input_default as Input, InputNumber_default as InputNumber, InputOPT_default as InputOPT, InputPassword_default as InputPassword, KeyMapEnum, Layout_default as Layout, LayoutFooter_default as LayoutFooter, LayoutHeader_default as LayoutHeader, LayoutMain_default as LayoutMain, LayoutSidebar_default as LayoutSidebar, LayoutSidebarInner_default as LayoutSidebarInner, LayoutToc_default as LayoutToc, List_default as List, ListItem_default as ListItem, I18nProvider as LobeUIProvider, Markdown_default as Markdown, MaskShadow_default as MaskShadow, MaterialFileTypeIcon_default as MaterialFileTypeIcon, Menu_default as Menu, Mermaid_default as Mermaid, Meta_default as Meta, Modal_default as Modal, MotionComponent, MotionProvider, PreviewGroup_default as PreviewGroup, ScrollShadow_default as ScrollShadow, SearchBar_default as SearchBar, SearchResultCards_default as SearchResultCards, Segmented_default as Segmented, Select_default$1 as Select, SideNav_default as SideNav, Skeleton_default as Skeleton, SkeletonAvatar_default as SkeletonAvatar, SkeletonBlock_default as SkeletonBlock, SkeletonButton_default as SkeletonButton, SkeletonParagraph_default as SkeletonParagraph, SkeletonTags_default as SkeletonTags, SkeletonTitle_default as SkeletonTitle, SliderWithInput_default as SliderWithInput, Snippet_default as Snippet, SortableList_default as SortableList, SyntaxHighlighter_default as SyntaxHighlighter, SyntaxMermaid_default as SyntaxMermaid, Tabs_default as Tabs, Tag_default as Tag, Text_default as Text, TextArea_default as TextArea, ThemeProvider_default as ThemeProvider, ThemeSwitch_default as ThemeSwitch, Toc_default as Toc, Tooltip_default as Tooltip, TooltipGroup_default as TooltipGroup, Typography_default as Typography, Video_default as Video, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn, useMotionComponent, useTranslation };
@@ -1,6 +1,6 @@
1
1
  import { TypographyProps } from "../../Markdown/type.mjs";
2
2
  import "../../Markdown/index.mjs";
3
- import * as react33 from "react";
3
+ import * as react8 from "react";
4
4
  import { ReactNode } from "react";
5
5
  import { Pluggable } from "unified";
6
6
 
@@ -18,7 +18,7 @@ interface MdxProps extends Omit<TypographyProps, 'children'> {
18
18
  remarkPlugins?: Pluggable[];
19
19
  variant?: 'normal' | 'chat';
20
20
  }
21
- declare const Mdx: react33.NamedExoticComponent<MdxProps>;
21
+ declare const Mdx: react8.NamedExoticComponent<MdxProps>;
22
22
  //#endregion
23
23
  export { Mdx, MdxProps };
24
24
  //# sourceMappingURL=index.d.mts.map
@@ -5,11 +5,11 @@ import SafeArea_default from "../SafeArea/SafeArea.mjs";
5
5
  import { useStyles } from "./style.mjs";
6
6
  import { memo } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import useControlledState from "use-merge-value";
8
+ import useMergeState from "use-merge-value";
9
9
 
10
10
  //#region src/mobile/TabBar/TabBar.tsx
11
11
  const TabBar = memo(({ ref, className, safeArea, items, activeKey, defaultActiveKey, onChange, ...rest }) => {
12
- const [currentActive, setCurrentActive] = useControlledState(defaultActiveKey || items[0].key, {
12
+ const [currentActive, setCurrentActive] = useMergeState(defaultActiveKey || items[0].key, {
13
13
  defaultValue: defaultActiveKey,
14
14
  onChange,
15
15
  value: activeKey
@@ -1 +1 @@
1
- {"version":3,"file":"TabBar.mjs","names":["useMergeState","Flexbox","SafeArea"],"sources":["../../../src/mobile/TabBar/TabBar.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\nimport useMergeState from 'use-merge-value';\n\nimport { Flexbox } from '@/Flex';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { useStyles } from './style';\nimport type { TabBarProps } from './type';\n\nconst TabBar = memo<TabBarProps>(\n ({ ref, className, safeArea, items, activeKey, defaultActiveKey, onChange, ...rest }) => {\n const [currentActive, setCurrentActive] = useMergeState<string>(\n defaultActiveKey || items[0].key,\n {\n defaultValue: defaultActiveKey,\n onChange,\n value: activeKey,\n },\n );\n const { styles, cx } = useStyles();\n\n return (\n <Flexbox as={'footer'} className={cx(styles.container, className)} ref={ref} {...rest}>\n <Flexbox\n align={'center'}\n className={cx(styles.inner, className)}\n horizontal\n justify={'space-around'}\n >\n {items.map((item) => {\n const active = item.key === currentActive;\n return (\n <Flexbox\n align={'center'}\n className={cx(styles.tab, active && styles.active)}\n gap={4}\n justify={'center'}\n key={item.key}\n onClick={() => {\n setCurrentActive(item.key);\n item?.onClick?.();\n }}\n >\n <Flexbox align={'center'} className={styles.icon} justify={'center'}>\n {typeof item.icon === 'function' ? item.icon(active) : item.icon}\n </Flexbox>\n <div className={styles.title}>\n {typeof item.title === 'function' ? item.title(active) : item.title}\n </div>\n </Flexbox>\n );\n })}\n </Flexbox>\n {safeArea && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nTabBar.displayName = 'MobileTabBar';\n\nexport default TabBar;\n"],"mappings":";;;;;;;;;;AAWA,MAAM,SAAS,MACZ,EAAE,KAAK,WAAW,UAAU,OAAO,WAAW,kBAAkB,UAAU,GAAG,WAAW;CACvF,MAAM,CAAC,eAAe,oBAAoBA,mBACxC,oBAAoB,MAAM,GAAG,KAC7B;EACE,cAAc;EACd;EACA,OAAO;EACR,CACF;CACD,MAAM,EAAE,QAAQ,OAAO,WAAW;AAElC,QACE,qBAACC;EAAQ,IAAI;EAAU,WAAW,GAAG,OAAO,WAAW,UAAU;EAAO;EAAK,GAAI;aAC/E,oBAACA;GACC,OAAO;GACP,WAAW,GAAG,OAAO,OAAO,UAAU;GACtC;GACA,SAAS;aAER,MAAM,KAAK,SAAS;IACnB,MAAM,SAAS,KAAK,QAAQ;AAC5B,WACE,qBAACA;KACC,OAAO;KACP,WAAW,GAAG,OAAO,KAAK,UAAU,OAAO,OAAO;KAClD,KAAK;KACL,SAAS;KAET,eAAe;AACb,uBAAiB,KAAK,IAAI;AAC1B,YAAM,WAAW;;gBAGnB,oBAACA;MAAQ,OAAO;MAAU,WAAW,OAAO;MAAM,SAAS;gBACxD,OAAO,KAAK,SAAS,aAAa,KAAK,KAAK,OAAO,GAAG,KAAK;OACpD,EACV,oBAAC;MAAI,WAAW,OAAO;gBACpB,OAAO,KAAK,UAAU,aAAa,KAAK,MAAM,OAAO,GAAG,KAAK;OAC1D;OAXD,KAAK,IAYF;KAEZ;IACM,EACT,YAAY,oBAACC,oBAAS,UAAU,WAAY;GACrC;EAGf;AAED,OAAO,cAAc;AAErB,qBAAe"}
1
+ {"version":3,"file":"TabBar.mjs","names":["Flexbox","SafeArea"],"sources":["../../../src/mobile/TabBar/TabBar.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\nimport useMergeState from 'use-merge-value';\n\nimport { Flexbox } from '@/Flex';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { useStyles } from './style';\nimport type { TabBarProps } from './type';\n\nconst TabBar = memo<TabBarProps>(\n ({ ref, className, safeArea, items, activeKey, defaultActiveKey, onChange, ...rest }) => {\n const [currentActive, setCurrentActive] = useMergeState<string>(\n defaultActiveKey || items[0].key,\n {\n defaultValue: defaultActiveKey,\n onChange,\n value: activeKey,\n },\n );\n const { styles, cx } = useStyles();\n\n return (\n <Flexbox as={'footer'} className={cx(styles.container, className)} ref={ref} {...rest}>\n <Flexbox\n align={'center'}\n className={cx(styles.inner, className)}\n horizontal\n justify={'space-around'}\n >\n {items.map((item) => {\n const active = item.key === currentActive;\n return (\n <Flexbox\n align={'center'}\n className={cx(styles.tab, active && styles.active)}\n gap={4}\n justify={'center'}\n key={item.key}\n onClick={() => {\n setCurrentActive(item.key);\n item?.onClick?.();\n }}\n >\n <Flexbox align={'center'} className={styles.icon} justify={'center'}>\n {typeof item.icon === 'function' ? item.icon(active) : item.icon}\n </Flexbox>\n <div className={styles.title}>\n {typeof item.title === 'function' ? item.title(active) : item.title}\n </div>\n </Flexbox>\n );\n })}\n </Flexbox>\n {safeArea && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nTabBar.displayName = 'MobileTabBar';\n\nexport default TabBar;\n"],"mappings":";;;;;;;;;;AAWA,MAAM,SAAS,MACZ,EAAE,KAAK,WAAW,UAAU,OAAO,WAAW,kBAAkB,UAAU,GAAG,WAAW;CACvF,MAAM,CAAC,eAAe,oBAAoB,cACxC,oBAAoB,MAAM,GAAG,KAC7B;EACE,cAAc;EACd;EACA,OAAO;EACR,CACF;CACD,MAAM,EAAE,QAAQ,OAAO,WAAW;AAElC,QACE,qBAACA;EAAQ,IAAI;EAAU,WAAW,GAAG,OAAO,WAAW,UAAU;EAAO;EAAK,GAAI;aAC/E,oBAACA;GACC,OAAO;GACP,WAAW,GAAG,OAAO,OAAO,UAAU;GACtC;GACA,SAAS;aAER,MAAM,KAAK,SAAS;IACnB,MAAM,SAAS,KAAK,QAAQ;AAC5B,WACE,qBAACA;KACC,OAAO;KACP,WAAW,GAAG,OAAO,KAAK,UAAU,OAAO,OAAO;KAClD,KAAK;KACL,SAAS;KAET,eAAe;AACb,uBAAiB,KAAK,IAAI;AAC1B,YAAM,WAAW;;gBAGnB,oBAACA;MAAQ,OAAO;MAAU,WAAW,OAAO;MAAM,SAAS;gBACxD,OAAO,KAAK,SAAS,aAAa,KAAK,KAAK,OAAO,GAAG,KAAK;OACpD,EACV,oBAAC;MAAI,WAAW,OAAO;gBACpB,OAAO,KAAK,UAAU,aAAa,KAAK,MAAM,OAAO,GAAG,KAAK;OAC1D;OAXD,KAAK,IAYF;KAEZ;IACM,EACT,YAAY,oBAACC,oBAAS,UAAU,WAAY;GACrC;EAGf;AAED,OAAO,cAAc;AAErB,qBAAe"}
@@ -1,6 +1,6 @@
1
1
  import { FlexboxProps } from "../../Flex/type.mjs";
2
2
  import "../../Flex/index.mjs";
3
- import * as react27 from "react";
3
+ import * as react7 from "react";
4
4
  import { Ref } from "react";
5
5
  import { useControls, useCreateStore } from "leva";
6
6
 
@@ -10,7 +10,7 @@ interface StoryBookProps extends FlexboxProps {
10
10
  noPadding?: boolean;
11
11
  ref?: Ref<HTMLDivElement>;
12
12
  }
13
- declare const StoryBook: react27.NamedExoticComponent<StoryBookProps>;
13
+ declare const StoryBook: react7.NamedExoticComponent<StoryBookProps>;
14
14
  //#endregion
15
15
  export { StoryBook, StoryBookProps, useControls, useCreateStore };
16
16
  //# sourceMappingURL=index.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "4.1.9",
3
+ "version": "4.2.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",