@lobehub/ui 4.9.2 → 4.9.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.
Files changed (127) hide show
  1. package/es/Accordion/Accordion.d.mts +2 -2
  2. package/es/Accordion/AccordionItem.d.mts +2 -2
  3. package/es/ActionIcon/ActionIcon.d.mts +2 -2
  4. package/es/Alert/Alert.d.mts +2 -2
  5. package/es/AutoComplete/Select.d.mts +2 -2
  6. package/es/Avatar/Avatar.mjs +41 -31
  7. package/es/Avatar/Avatar.mjs.map +1 -1
  8. package/es/Avatar/AvatarGroup/index.d.mts +2 -2
  9. package/es/Avatar/utils.mjs +50 -0
  10. package/es/Avatar/utils.mjs.map +1 -0
  11. package/es/Burger/Burger.d.mts +2 -2
  12. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  13. package/es/Collapse/Collapse.d.mts +2 -2
  14. package/es/ColorSwatches/ColorSwatches.mjs +3 -2
  15. package/es/ColorSwatches/ColorSwatches.mjs.map +1 -1
  16. package/es/ConfigProvider/index.d.mts +2 -2
  17. package/es/ContextMenu/ContextMenuHost.d.mts +2 -2
  18. package/es/CopyButton/CopyButton.d.mts +2 -2
  19. package/es/DatePicker/DatePicker.d.mts +2 -2
  20. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  21. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  22. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  23. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  24. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  25. package/es/Drawer/Drawer.d.mts +2 -2
  26. package/es/Dropdown/Dropdown.d.mts +2 -2
  27. package/es/DropdownMenu/DropdownMenu.d.mts +2 -2
  28. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  29. package/es/Flex/FlexBasic.d.mts +2 -2
  30. package/es/FontLoader/index.d.mts +2 -2
  31. package/es/Footer/Footer.d.mts +2 -2
  32. package/es/Form/components/FormGroup.d.mts +2 -2
  33. package/es/Form/components/FormItem.d.mts +2 -2
  34. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  35. package/es/FormModal/FormModal.d.mts +2 -2
  36. package/es/GuideCard/GuideCard.d.mts +2 -2
  37. package/es/Header/Header.d.mts +2 -2
  38. package/es/Hotkey/Hotkey.d.mts +2 -2
  39. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  40. package/es/Icon/Icon.d.mts +2 -2
  41. package/es/Icon/components/IconProvider.d.mts +3 -3
  42. package/es/Image/PreviewGroup.d.mts +2 -2
  43. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  44. package/es/Input/Input.d.mts +2 -2
  45. package/es/Input/InputNumber.d.mts +2 -2
  46. package/es/Input/InputOPT.d.mts +2 -2
  47. package/es/Input/InputPassword.d.mts +2 -2
  48. package/es/Input/TextArea.d.mts +2 -2
  49. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  50. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  51. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  52. package/es/Layout/components/LayoutToc.d.mts +2 -2
  53. package/es/List/ListItem/index.d.mts +2 -2
  54. package/es/Markdown/Markdown.d.mts +2 -2
  55. package/es/Markdown/Typography.d.mts +2 -2
  56. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  57. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  58. package/es/Menu/Menu.d.mts +2 -2
  59. package/es/Mermaid/Mermaid.d.mts +2 -2
  60. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  61. package/es/Modal/Modal.d.mts +2 -2
  62. package/es/Modal/ModalProvider.d.mts +2 -2
  63. package/es/MotionProvider/index.d.mts +2 -2
  64. package/es/SearchBar/SearchBar.d.mts +2 -2
  65. package/es/Segmented/Segmented.d.mts +2 -2
  66. package/es/Select/Select.d.mts +2 -2
  67. package/es/SideNav/SideNav.d.mts +2 -2
  68. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  69. package/es/SortableList/components/DragHandle.d.mts +2 -2
  70. package/es/SortableList/components/SortableItem.d.mts +2 -2
  71. package/es/ThemeProvider/GlobalStyle/antdOverride.mjs +4 -3
  72. package/es/ThemeProvider/GlobalStyle/antdOverride.mjs.map +1 -1
  73. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  74. package/es/Toc/Toc.d.mts +2 -2
  75. package/es/Video/index.d.mts +2 -2
  76. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  77. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  78. package/es/awesome/Features/Features.d.mts +2 -2
  79. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  80. package/es/awesome/Giscus/style.mjs +4 -3
  81. package/es/awesome/Giscus/style.mjs.map +1 -1
  82. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  83. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  84. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  85. package/es/awesome/Hero/Hero.d.mts +2 -2
  86. package/es/awesome/Spline/Spine.d.mts +2 -2
  87. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  88. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  89. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  90. package/es/brand/LobeChat/index.d.mts +2 -2
  91. package/es/brand/LobeHub/index.d.mts +2 -2
  92. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  93. package/es/brand/LogoThree/index.d.mts +2 -2
  94. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  95. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  96. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  97. package/es/chat/ChatList/ChatList.d.mts +2 -2
  98. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  99. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  100. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  101. package/es/chat/MessageModal/MessageModal.d.mts +2 -2
  102. package/es/color/ColorScales/index.d.mts +2 -2
  103. package/es/color/CssVar/index.d.mts +2 -2
  104. package/es/i18n/context.d.mts +2 -2
  105. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  106. package/es/icons/lucideExtra/CreateBotIcon.d.mts +3 -3
  107. package/es/icons/lucideExtra/DiscordIcon.d.mts +3 -3
  108. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +2 -2
  109. package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
  110. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  111. package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
  112. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  113. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  114. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  115. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  116. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +2 -2
  117. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  118. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +3 -3
  119. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  120. package/es/mdx/Mdx/index.d.mts +2 -2
  121. package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
  122. package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
  123. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  124. package/es/storybook/StoryBook/index.d.mts +2 -2
  125. package/es/utils/safeReadableColor.mjs +15 -0
  126. package/es/utils/safeReadableColor.mjs.map +1 -0
  127. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { FormSubmitFooterProps } from "../type.mjs";
2
- import * as react20 from "react";
2
+ import * as react50 from "react";
3
3
 
4
4
  //#region src/Form/components/FormSubmitFooter.d.ts
5
- declare const FormSubmitFooter: react20.NamedExoticComponent<FormSubmitFooterProps>;
5
+ declare const FormSubmitFooter: react50.NamedExoticComponent<FormSubmitFooterProps>;
6
6
  //#endregion
7
7
  export { FormSubmitFooter };
8
8
  //# sourceMappingURL=FormSubmitFooter.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { FormModalProps } from "./type.mjs";
2
- import * as react57 from "react";
2
+ import * as react51 from "react";
3
3
 
4
4
  //#region src/FormModal/FormModal.d.ts
5
- declare const FormModal: react57.NamedExoticComponent<FormModalProps>;
5
+ declare const FormModal: react51.NamedExoticComponent<FormModalProps>;
6
6
  //#endregion
7
7
  export { FormModal };
8
8
  //# sourceMappingURL=FormModal.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { GuideCardProps } from "./type.mjs";
2
- import * as react130 from "react";
2
+ import * as react110 from "react";
3
3
 
4
4
  //#region src/GuideCard/GuideCard.d.ts
5
- declare const GuideCard: react130.NamedExoticComponent<GuideCardProps>;
5
+ declare const GuideCard: react110.NamedExoticComponent<GuideCardProps>;
6
6
  //#endregion
7
7
  export { GuideCard };
8
8
  //# sourceMappingURL=GuideCard.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HeaderProps } from "./type.mjs";
2
- import * as react51 from "react";
2
+ import * as react53 from "react";
3
3
 
4
4
  //#region src/Header/Header.d.ts
5
- declare const Header: react51.NamedExoticComponent<HeaderProps>;
5
+ declare const Header: react53.NamedExoticComponent<HeaderProps>;
6
6
  //#endregion
7
7
  export { Header };
8
8
  //# sourceMappingURL=Header.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HotkeyProps } from "./type.mjs";
2
- import * as react45 from "react";
2
+ import * as react44 from "react";
3
3
 
4
4
  //#region src/Hotkey/Hotkey.d.ts
5
- declare const Hotkey: react45.NamedExoticComponent<HotkeyProps>;
5
+ declare const Hotkey: react44.NamedExoticComponent<HotkeyProps>;
6
6
  //#endregion
7
7
  export { Hotkey };
8
8
  //# sourceMappingURL=Hotkey.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HotkeyInputProps } from "./type.mjs";
2
- import * as react38 from "react";
2
+ import * as react37 from "react";
3
3
 
4
4
  //#region src/HotkeyInput/HotkeyInput.d.ts
5
- declare const HotkeyInput: react38.NamedExoticComponent<HotkeyInputProps>;
5
+ declare const HotkeyInput: react37.NamedExoticComponent<HotkeyInputProps>;
6
6
  //#endregion
7
7
  export { HotkeyInput };
8
8
  //# sourceMappingURL=HotkeyInput.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { IconProps } from "./type.mjs";
2
- import * as react50 from "react";
2
+ import * as react33 from "react";
3
3
 
4
4
  //#region src/Icon/Icon.d.ts
5
- declare const Icon: react50.NamedExoticComponent<IconProps>;
5
+ declare const Icon: react33.NamedExoticComponent<IconProps>;
6
6
  //#endregion
7
7
  export { Icon };
8
8
  //# sourceMappingURL=Icon.d.mts.map
@@ -1,11 +1,11 @@
1
1
  import { IconProps } from "../type.mjs";
2
- import * as react48 from "react";
2
+ import * as react34 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/Icon/components/IconProvider.d.ts
6
6
  type IconContentConfig = Omit<IconProps, 'icon' | 'ref'>;
7
- declare const IconContext: react48.Context<IconContentConfig>;
8
- declare const IconProvider: react48.NamedExoticComponent<{
7
+ declare const IconContext: react34.Context<IconContentConfig>;
8
+ declare const IconProvider: react34.NamedExoticComponent<{
9
9
  children: ReactNode;
10
10
  config?: IconContentConfig;
11
11
  }>;
@@ -1,8 +1,8 @@
1
1
  import { PreviewGroupProps } from "./type.mjs";
2
- import * as react37 from "react";
2
+ import * as react36 from "react";
3
3
 
4
4
  //#region src/Image/PreviewGroup.d.ts
5
- declare const PreviewGroup: react37.NamedExoticComponent<PreviewGroupProps>;
5
+ declare const PreviewGroup: react36.NamedExoticComponent<PreviewGroupProps>;
6
6
  //#endregion
7
7
  export { PreviewGroup };
8
8
  //# sourceMappingURL=PreviewGroup.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ImageSelectProps } from "./type.mjs";
2
- import * as react109 from "react";
2
+ import * as react74 from "react";
3
3
 
4
4
  //#region src/ImageSelect/ImageSelect.d.ts
5
- declare const ImageSelect: react109.NamedExoticComponent<ImageSelectProps>;
5
+ declare const ImageSelect: react74.NamedExoticComponent<ImageSelectProps>;
6
6
  //#endregion
7
7
  export { ImageSelect };
8
8
  //# sourceMappingURL=ImageSelect.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputProps } from "./type.mjs";
2
- import * as react136 from "react";
2
+ import * as react111 from "react";
3
3
 
4
4
  //#region src/Input/Input.d.ts
5
- declare const Input: react136.NamedExoticComponent<InputProps>;
5
+ declare const Input: react111.NamedExoticComponent<InputProps>;
6
6
  //#endregion
7
7
  export { Input };
8
8
  //# sourceMappingURL=Input.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputNumberProps } from "./type.mjs";
2
- import * as react134 from "react";
2
+ import * as react112 from "react";
3
3
 
4
4
  //#region src/Input/InputNumber.d.ts
5
- declare const InputNumber: react134.NamedExoticComponent<InputNumberProps>;
5
+ declare const InputNumber: react112.NamedExoticComponent<InputNumberProps>;
6
6
  //#endregion
7
7
  export { InputNumber };
8
8
  //# sourceMappingURL=InputNumber.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputOPTProps } from "./type.mjs";
2
- import * as react138 from "react";
2
+ import * as react113 from "react";
3
3
 
4
4
  //#region src/Input/InputOPT.d.ts
5
- declare const InputOPT: react138.NamedExoticComponent<InputOPTProps>;
5
+ declare const InputOPT: react113.NamedExoticComponent<InputOPTProps>;
6
6
  //#endregion
7
7
  export { InputOPT };
8
8
  //# sourceMappingURL=InputOPT.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputPasswordProps } from "./type.mjs";
2
- import * as react137 from "react";
2
+ import * as react114 from "react";
3
3
 
4
4
  //#region src/Input/InputPassword.d.ts
5
- declare const InputPassword: react137.NamedExoticComponent<InputPasswordProps>;
5
+ declare const InputPassword: react114.NamedExoticComponent<InputPasswordProps>;
6
6
  //#endregion
7
7
  export { InputPassword };
8
8
  //# sourceMappingURL=InputPassword.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { TextAreaProps } from "./type.mjs";
2
- import * as react135 from "react";
2
+ import * as react115 from "react";
3
3
 
4
4
  //#region src/Input/TextArea.d.ts
5
- declare const TextArea: react135.NamedExoticComponent<TextAreaProps>;
5
+ declare const TextArea: react115.NamedExoticComponent<TextAreaProps>;
6
6
  //#endregion
7
7
  export { TextArea };
8
8
  //# sourceMappingURL=TextArea.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutHeaderProps } from "../type.mjs";
2
- import * as react40 from "react";
2
+ import * as react38 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutHeader.d.ts
5
- declare const LayoutHeader: react40.NamedExoticComponent<LayoutHeaderProps>;
5
+ declare const LayoutHeader: react38.NamedExoticComponent<LayoutHeaderProps>;
6
6
  //#endregion
7
7
  export { LayoutHeader };
8
8
  //# sourceMappingURL=LayoutHeader.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutSidebarProps } from "../type.mjs";
2
- import * as react42 from "react";
2
+ import * as react40 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutSidebar.d.ts
5
- declare const LayoutSidebar: react42.NamedExoticComponent<LayoutSidebarProps>;
5
+ declare const LayoutSidebar: react40.NamedExoticComponent<LayoutSidebarProps>;
6
6
  //#endregion
7
7
  export { LayoutSidebar };
8
8
  //# sourceMappingURL=LayoutSidebar.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutSidebarInnerProps } from "../type.mjs";
2
- import * as react43 from "react";
2
+ import * as react42 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutSidebarInner.d.ts
5
- declare const LayoutSidebarInner: react43.NamedExoticComponent<LayoutSidebarInnerProps>;
5
+ declare const LayoutSidebarInner: react42.NamedExoticComponent<LayoutSidebarInnerProps>;
6
6
  //#endregion
7
7
  export { LayoutSidebarInner };
8
8
  //# sourceMappingURL=LayoutSidebarInner.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutTocProps } from "../type.mjs";
2
- import * as react44 from "react";
2
+ import * as react43 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutToc.d.ts
5
- declare const LayoutToc: react44.NamedExoticComponent<LayoutTocProps>;
5
+ declare const LayoutToc: react43.NamedExoticComponent<LayoutTocProps>;
6
6
  //#endregion
7
7
  export { LayoutToc };
8
8
  //# sourceMappingURL=LayoutToc.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ListItemProps } from "../type.mjs";
2
- import * as react35 from "react";
2
+ import * as react30 from "react";
3
3
 
4
4
  //#region src/List/ListItem/index.d.ts
5
- declare const ListItem: react35.NamedExoticComponent<ListItemProps>;
5
+ declare const ListItem: react30.NamedExoticComponent<ListItemProps>;
6
6
  //#endregion
7
7
  export { ListItem };
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { MarkdownProps } from "./type.mjs";
2
- import * as react34 from "react";
2
+ import * as react29 from "react";
3
3
 
4
4
  //#region src/Markdown/Markdown.d.ts
5
- declare const Markdown: react34.NamedExoticComponent<MarkdownProps>;
5
+ declare const Markdown: react29.NamedExoticComponent<MarkdownProps>;
6
6
  //#endregion
7
7
  export { Markdown };
8
8
  //# sourceMappingURL=Markdown.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { TypographyProps } from "./type.mjs";
2
- import * as react33 from "react";
2
+ import * as react28 from "react";
3
3
 
4
4
  //#region src/Markdown/Typography.d.ts
5
- declare const Typography: react33.NamedExoticComponent<TypographyProps>;
5
+ declare const Typography: react28.NamedExoticComponent<TypographyProps>;
6
6
  //#endregion
7
7
  export { Typography };
8
8
  //# sourceMappingURL=Typography.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { FlexboxProps } from "../../../Flex/type.mjs";
2
2
  import "../../../Flex/index.mjs";
3
- import * as react70 from "react";
3
+ import * as react4 from "react";
4
4
  import { Ref } from "react";
5
5
 
6
6
  //#region src/Markdown/components/SearchResultCards/index.d.ts
@@ -14,7 +14,7 @@ interface SearchResultCardsProps extends FlexboxProps {
14
14
  dataSource: string[] | SearchResultItem[];
15
15
  ref?: Ref<HTMLDivElement>;
16
16
  }
17
- declare const SearchResultCards: react70.NamedExoticComponent<SearchResultCardsProps>;
17
+ declare const SearchResultCards: react4.NamedExoticComponent<SearchResultCardsProps>;
18
18
  //#endregion
19
19
  export { SearchResultCards, SearchResultCardsProps };
20
20
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { MaskShadowProps } from "./type.mjs";
2
- import * as react36 from "react";
2
+ import * as react26 from "react";
3
3
 
4
4
  //#region src/MaskShadow/MaskShadow.d.ts
5
- declare const MaskShadow: react36.NamedExoticComponent<MaskShadowProps>;
5
+ declare const MaskShadow: react26.NamedExoticComponent<MaskShadowProps>;
6
6
  //#endregion
7
7
  export { MaskShadow };
8
8
  //# sourceMappingURL=MaskShadow.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { MenuProps } from "./type.mjs";
2
- import * as react30 from "react";
2
+ import * as react27 from "react";
3
3
 
4
4
  //#region src/Menu/Menu.d.ts
5
- declare const Menu: react30.NamedExoticComponent<MenuProps<unknown>>;
5
+ declare const Menu: react27.NamedExoticComponent<MenuProps<unknown>>;
6
6
  //#endregion
7
7
  export { Menu };
8
8
  //# sourceMappingURL=Menu.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { MermaidProps } from "./type.mjs";
2
- import * as react31 from "react";
2
+ import * as react32 from "react";
3
3
 
4
4
  //#region src/Mermaid/Mermaid.d.ts
5
- declare const Mermaid: react31.NamedExoticComponent<MermaidProps>;
5
+ declare const Mermaid: react32.NamedExoticComponent<MermaidProps>;
6
6
  //#endregion
7
7
  export { Mermaid };
8
8
  //# sourceMappingURL=Mermaid.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SyntaxMermaidProps } from "../type.mjs";
2
- import * as react32 from "react";
2
+ import * as react31 from "react";
3
3
 
4
4
  //#region src/Mermaid/SyntaxMermaid/index.d.ts
5
- declare const SyntaxMermaid: react32.NamedExoticComponent<SyntaxMermaidProps>;
5
+ declare const SyntaxMermaid: react31.NamedExoticComponent<SyntaxMermaidProps>;
6
6
  //#endregion
7
7
  export { SyntaxMermaid };
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ModalProps } from "./type.mjs";
2
- import * as react26 from "react";
2
+ import * as react18 from "react";
3
3
 
4
4
  //#region src/Modal/Modal.d.ts
5
- declare const Modal: react26.NamedExoticComponent<ModalProps>;
5
+ declare const Modal: react18.NamedExoticComponent<ModalProps>;
6
6
  //#endregion
7
7
  export { Modal };
8
8
  //# sourceMappingURL=Modal.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { ModalContextValue } from "./type.mjs";
2
- import * as react27 from "react";
2
+ import * as react16 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/Modal/ModalProvider.d.ts
6
- declare const ModalProvider: react27.NamedExoticComponent<{
6
+ declare const ModalProvider: react16.NamedExoticComponent<{
7
7
  children: ReactNode;
8
8
  value: ModalContextValue;
9
9
  }>;
@@ -1,4 +1,4 @@
1
- import * as react71 from "react";
1
+ import * as react5 from "react";
2
2
  import { Context, ReactNode } from "react";
3
3
  import * as motion_react0 from "motion/react";
4
4
  import * as m from "motion/react-m";
@@ -6,7 +6,7 @@ import * as m from "motion/react-m";
6
6
  //#region src/MotionProvider/index.d.ts
7
7
  type MotionComponentType = typeof motion_react0.motion | typeof m;
8
8
  declare const MotionComponent: Context<MotionComponentType>;
9
- declare const MotionProvider: react71.NamedExoticComponent<{
9
+ declare const MotionProvider: react5.NamedExoticComponent<{
10
10
  children: ReactNode;
11
11
  motion: MotionComponentType;
12
12
  }>;
@@ -1,8 +1,8 @@
1
1
  import { SearchBarProps } from "./type.mjs";
2
- import * as react29 from "react";
2
+ import * as react23 from "react";
3
3
 
4
4
  //#region src/SearchBar/SearchBar.d.ts
5
- declare const SearchBar: react29.NamedExoticComponent<SearchBarProps>;
5
+ declare const SearchBar: react23.NamedExoticComponent<SearchBarProps>;
6
6
  //#endregion
7
7
  export { SearchBar };
8
8
  //# sourceMappingURL=SearchBar.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SegmentedProps } from "./type.mjs";
2
- import * as react25 from "react";
2
+ import * as react22 from "react";
3
3
 
4
4
  //#region src/Segmented/Segmented.d.ts
5
- declare const Segmented: react25.NamedExoticComponent<SegmentedProps>;
5
+ declare const Segmented: react22.NamedExoticComponent<SegmentedProps>;
6
6
  //#endregion
7
7
  export { Segmented };
8
8
  //# sourceMappingURL=Segmented.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SelectProps } from "./type.mjs";
2
- import * as react73 from "react";
2
+ import * as react21 from "react";
3
3
 
4
4
  //#region src/Select/Select.d.ts
5
- declare const Input: react73.NamedExoticComponent<SelectProps>;
5
+ declare const Input: react21.NamedExoticComponent<SelectProps>;
6
6
  //#endregion
7
7
  export { Input };
8
8
  //# sourceMappingURL=Select.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SideNavProps } from "./type.mjs";
2
- import * as react53 from "react";
2
+ import * as react25 from "react";
3
3
 
4
4
  //#region src/SideNav/SideNav.d.ts
5
- declare const SideNav: react53.NamedExoticComponent<SideNavProps>;
5
+ declare const SideNav: react25.NamedExoticComponent<SideNavProps>;
6
6
  //#endregion
7
7
  export { SideNav };
8
8
  //# sourceMappingURL=SideNav.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SliderWithInputProps } from "./type.mjs";
2
- import * as react4 from "react";
2
+ import * as react20 from "react";
3
3
 
4
4
  //#region src/SliderWithInput/SliderWithInput.d.ts
5
- declare const SliderWithInput: react4.NamedExoticComponent<SliderWithInputProps>;
5
+ declare const SliderWithInput: react20.NamedExoticComponent<SliderWithInputProps>;
6
6
  //#endregion
7
7
  export { SliderWithInput };
8
8
  //# sourceMappingURL=SliderWithInput.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { ActionIconProps } from "../../ActionIcon/type.mjs";
2
2
  import "../../ActionIcon/index.mjs";
3
- import * as react106 from "react";
3
+ import * as react107 from "react";
4
4
 
5
5
  //#region src/SortableList/components/DragHandle.d.ts
6
- declare const DragHandle: react106.NamedExoticComponent<ActionIconProps>;
6
+ declare const DragHandle: react107.NamedExoticComponent<ActionIconProps>;
7
7
  //#endregion
8
8
  export { DragHandle };
9
9
  //# sourceMappingURL=DragHandle.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { FlexboxProps } from "../../Flex/type.mjs";
2
2
  import "../../Flex/index.mjs";
3
- import * as react104 from "react";
3
+ import * as react105 from "react";
4
4
  import "@dnd-kit/core";
5
5
 
6
6
  //#region src/SortableList/components/SortableItem.d.ts
@@ -9,7 +9,7 @@ interface SortableItemProps extends Omit<FlexboxProps, 'id'> {
9
9
  id: string | number;
10
10
  variant?: 'borderless' | 'filled' | 'outlined';
11
11
  }
12
- declare const SortableItem: react104.NamedExoticComponent<SortableItemProps>;
12
+ declare const SortableItem: react105.NamedExoticComponent<SortableItemProps>;
13
13
  //#endregion
14
14
  export { SortableItem };
15
15
  //# sourceMappingURL=SortableItem.d.mts.map
@@ -1,12 +1,13 @@
1
+ import { safeReadableColor } from "../../utils/safeReadableColor.mjs";
1
2
  import { css } from "antd-style";
2
- import { readableColor, rgba } from "polished";
3
+ import { rgba } from "polished";
3
4
 
4
5
  //#region src/ThemeProvider/GlobalStyle/antdOverride.ts
5
6
  var antdOverride_default = (token) => {
6
- const readColor = readableColor(token.colorPrimary);
7
+ const readColor = safeReadableColor(token.colorPrimary);
7
8
  return css`
8
9
  .${token.prefixCls}-checkbox-inner:after {
9
- border-color: ${readableColor(token.colorPrimary)} !important;
10
+ border-color: ${safeReadableColor(token.colorPrimary)} !important;
10
11
  }
11
12
 
12
13
  .${token.prefixCls}-btn {
@@ -1 +1 @@
1
- {"version":3,"file":"antdOverride.mjs","names":[],"sources":["../../../src/ThemeProvider/GlobalStyle/antdOverride.ts"],"sourcesContent":["import { Theme, css } from 'antd-style';\nimport { readableColor, rgba } from 'polished';\n\nexport default (token: Theme) => {\n const readColor = readableColor(token.colorPrimary);\n return css`\n .${token.prefixCls}-checkbox-inner:after {\n border-color: ${readableColor(token.colorPrimary)} !important;\n }\n\n .${token.prefixCls}-btn {\n box-shadow: none;\n }\n\n .${token.prefixCls}-btn-primary:not(:disabled) {\n color: ${readColor} !important;\n\n &:hover {\n color: ${readColor} !important;\n }\n\n &:active {\n color: ${readColor} !important;\n }\n }\n\n .${token.prefixCls}-tooltip-arrow::before,\n .${token.prefixCls}-tooltip-arrow::after,\n .${token.prefixCls}-tooltip-container {\n color: ${token.colorBgLayout} !important;\n background: ${token.colorText} !important;\n }\n\n .${token.prefixCls}-tooltip-container {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n border-radius: ${token.borderRadiusSM}px !important;\n }\n\n .${token.prefixCls}-switch-handle::before {\n background: ${token.colorBgContainer} !important;\n }\n\n .${token.prefixCls}-image-preview-close,\n .${token.prefixCls}-image-preview-switch-right,\n .${token.prefixCls}-image-preview-switch-left {\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 32px;\n height: 32px;\n padding: 0;\n\n background: ${rgba(token.colorBgMask, 0.1)};\n\n border-radius: ${token.borderRadiusLG}px;\n\n ${token.stylish.blur};\n }\n\n .${token.prefixCls}-dropdown-menu, .${token.prefixCls}-select-dropdown {\n border-radius: ${token.borderRadius}px !important;\n box-shadow:\n 0 0 15px 0 #00000008,\n 0 2px 30px 0 #00000014,\n 0 0 0 1px ${token.isDarkMode ? token.colorFillTertiary : token.colorBorder} inset !important;\n }\n\n .${token.prefixCls}-modal-content {\n border: 1px solid ${token.colorBorderSecondary} !important;\n }\n\n .${token.prefixCls}-radio-wrapper\n .${token.prefixCls}-radio-checked\n .${token.prefixCls}-radio-inner:after {\n background: ${readColor};\n }\n `;\n};\n"],"mappings":";;;;AAGA,4BAAgB,UAAiB;CAC/B,MAAM,YAAY,cAAc,MAAM,aAAa;AACnD,QAAO,GAAG;OACL,MAAM,UAAU;sBACD,cAAc,MAAM,aAAa,CAAC;;;OAGjD,MAAM,UAAU;;;;OAIhB,MAAM,UAAU;eACR,UAAU;;;iBAGR,UAAU;;;;iBAIV,UAAU;;;;OAIpB,MAAM,UAAU;SACd,MAAM,UAAU;SAChB,MAAM,UAAU;eACV,MAAM,cAAc;oBACf,MAAM,UAAU;;;OAG7B,MAAM,UAAU;;;;;;;;uBAQA,MAAM,eAAe;;;OAGrC,MAAM,UAAU;oBACH,MAAM,iBAAiB;;;OAGpC,MAAM,UAAU;SACd,MAAM,UAAU;SAChB,MAAM,UAAU;;;;;;;;;oBASL,KAAK,MAAM,aAAa,GAAI,CAAC;;uBAE1B,MAAM,eAAe;;QAEpC,MAAM,QAAQ,KAAK;;;OAGpB,MAAM,UAAU,mBAAmB,MAAM,UAAU;uBACnC,MAAM,aAAa;;;;oBAItB,MAAM,aAAa,MAAM,oBAAoB,MAAM,YAAY;;;OAG5E,MAAM,UAAU;0BACG,MAAM,qBAAqB;;;OAG9C,MAAM,UAAU;SACd,MAAM,UAAU;SAChB,MAAM,UAAU;oBACL,UAAU"}
1
+ {"version":3,"file":"antdOverride.mjs","names":[],"sources":["../../../src/ThemeProvider/GlobalStyle/antdOverride.ts"],"sourcesContent":["import { Theme, css } from 'antd-style';\nimport { rgba } from 'polished';\n\nimport { safeReadableColor } from '@/utils/safeReadableColor';\n\nexport default (token: Theme) => {\n const readColor = safeReadableColor(token.colorPrimary);\n return css`\n .${token.prefixCls}-checkbox-inner:after {\n border-color: ${safeReadableColor(token.colorPrimary)} !important;\n }\n\n .${token.prefixCls}-btn {\n box-shadow: none;\n }\n\n .${token.prefixCls}-btn-primary:not(:disabled) {\n color: ${readColor} !important;\n\n &:hover {\n color: ${readColor} !important;\n }\n\n &:active {\n color: ${readColor} !important;\n }\n }\n\n .${token.prefixCls}-tooltip-arrow::before,\n .${token.prefixCls}-tooltip-arrow::after,\n .${token.prefixCls}-tooltip-container {\n color: ${token.colorBgLayout} !important;\n background: ${token.colorText} !important;\n }\n\n .${token.prefixCls}-tooltip-container {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n border-radius: ${token.borderRadiusSM}px !important;\n }\n\n .${token.prefixCls}-switch-handle::before {\n background: ${token.colorBgContainer} !important;\n }\n\n .${token.prefixCls}-image-preview-close,\n .${token.prefixCls}-image-preview-switch-right,\n .${token.prefixCls}-image-preview-switch-left {\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 32px;\n height: 32px;\n padding: 0;\n\n background: ${rgba(token.colorBgMask, 0.1)};\n\n border-radius: ${token.borderRadiusLG}px;\n\n ${token.stylish.blur};\n }\n\n .${token.prefixCls}-dropdown-menu, .${token.prefixCls}-select-dropdown {\n border-radius: ${token.borderRadius}px !important;\n box-shadow:\n 0 0 15px 0 #00000008,\n 0 2px 30px 0 #00000014,\n 0 0 0 1px ${token.isDarkMode ? token.colorFillTertiary : token.colorBorder} inset !important;\n }\n\n .${token.prefixCls}-modal-content {\n border: 1px solid ${token.colorBorderSecondary} !important;\n }\n\n .${token.prefixCls}-radio-wrapper\n .${token.prefixCls}-radio-checked\n .${token.prefixCls}-radio-inner:after {\n background: ${readColor};\n }\n `;\n};\n"],"mappings":";;;;;AAKA,4BAAgB,UAAiB;CAC/B,MAAM,YAAY,kBAAkB,MAAM,aAAa;AACvD,QAAO,GAAG;OACL,MAAM,UAAU;sBACD,kBAAkB,MAAM,aAAa,CAAC;;;OAGrD,MAAM,UAAU;;;;OAIhB,MAAM,UAAU;eACR,UAAU;;;iBAGR,UAAU;;;;iBAIV,UAAU;;;;OAIpB,MAAM,UAAU;SACd,MAAM,UAAU;SAChB,MAAM,UAAU;eACV,MAAM,cAAc;oBACf,MAAM,UAAU;;;OAG7B,MAAM,UAAU;;;;;;;;uBAQA,MAAM,eAAe;;;OAGrC,MAAM,UAAU;oBACH,MAAM,iBAAiB;;;OAGpC,MAAM,UAAU;SACd,MAAM,UAAU;SAChB,MAAM,UAAU;;;;;;;;;oBASL,KAAK,MAAM,aAAa,GAAI,CAAC;;uBAE1B,MAAM,eAAe;;QAEpC,MAAM,QAAQ,KAAK;;;OAGpB,MAAM,UAAU,mBAAmB,MAAM,UAAU;uBACnC,MAAM,aAAa;;;;oBAItB,MAAM,aAAa,MAAM,oBAAoB,MAAM,YAAY;;;OAG5E,MAAM,UAAU;0BACG,MAAM,qBAAqB;;;OAG9C,MAAM,UAAU;SACd,MAAM,UAAU;SAChB,MAAM,UAAU;oBACL,UAAU"}
@@ -1,8 +1,8 @@
1
1
  import { ThemeProviderProps } from "./type.mjs";
2
- import * as react17 from "react";
2
+ import * as react19 from "react";
3
3
 
4
4
  //#region src/ThemeProvider/ThemeProvider.d.ts
5
- declare const ThemeProvider: react17.NamedExoticComponent<ThemeProviderProps>;
5
+ declare const ThemeProvider: react19.NamedExoticComponent<ThemeProviderProps>;
6
6
  //#endregion
7
7
  export { ThemeProvider };
8
8
  //# sourceMappingURL=ThemeProvider.d.mts.map
package/es/Toc/Toc.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { TocProps } from "./type.mjs";
2
- import * as react16 from "react";
2
+ import * as react24 from "react";
3
3
 
4
4
  //#region src/Toc/Toc.d.ts
5
- declare const Toc: react16.NamedExoticComponent<TocProps>;
5
+ declare const Toc: react24.NamedExoticComponent<TocProps>;
6
6
  //#endregion
7
7
  export { Toc };
8
8
  //# sourceMappingURL=Toc.d.mts.map
@@ -1,7 +1,7 @@
1
1
  import { FlexboxProps } from "../Flex/type.mjs";
2
2
  import "../Flex/index.mjs";
3
3
  import { VideoProps as VideoProps$1 } from "../types/index.mjs";
4
- import * as react72 from "react";
4
+ import * as react6 from "react";
5
5
  import { CSSProperties, Ref } from "react";
6
6
 
7
7
  //#region src/Video/index.d.ts
@@ -39,7 +39,7 @@ interface VideoProps extends VideoProps$1, Pick<FlexboxProps, 'width' | 'height'
39
39
  };
40
40
  variant?: 'borderless' | 'filled' | 'outlined';
41
41
  }
42
- declare const Video: react72.NamedExoticComponent<VideoProps>;
42
+ declare const Video: react6.NamedExoticComponent<VideoProps>;
43
43
  //#endregion
44
44
  export { Video, VideoProps };
45
45
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { AuroraBackgroundProps } from "./type.mjs";
2
- import * as react125 from "react";
2
+ import * as react123 from "react";
3
3
 
4
4
  //#region src/awesome/AuroraBackground/AuroraBackground.d.ts
5
- declare const AuroraBackground: react125.NamedExoticComponent<AuroraBackgroundProps>;
5
+ declare const AuroraBackground: react123.NamedExoticComponent<AuroraBackgroundProps>;
6
6
  //#endregion
7
7
  export { AuroraBackground };
8
8
  //# sourceMappingURL=AuroraBackground.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { ButtonProps } from "../../Button/type.mjs";
2
2
  import "../../Button/index.mjs";
3
- import * as react128 from "react";
3
+ import * as react119 from "react";
4
4
 
5
5
  //#region src/awesome/BottomGradientButton/BottomGradientButton.d.ts
6
- declare const BottomGradientButton: react128.NamedExoticComponent<ButtonProps>;
6
+ declare const BottomGradientButton: react119.NamedExoticComponent<ButtonProps>;
7
7
  //#endregion
8
8
  export { BottomGradientButton };
9
9
  //# sourceMappingURL=BottomGradientButton.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { FeaturesProps } from "./type.mjs";
2
- import * as react131 from "react";
2
+ import * as react120 from "react";
3
3
 
4
4
  //#region src/awesome/Features/Features.d.ts
5
- declare const Features: react131.NamedExoticComponent<FeaturesProps>;
5
+ declare const Features: react120.NamedExoticComponent<FeaturesProps>;
6
6
  //#endregion
7
7
  export { Features };
8
8
  //# sourceMappingURL=Features.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { GiscusProps } from "./type.mjs";
2
- import * as react127 from "react";
2
+ import * as react122 from "react";
3
3
 
4
4
  //#region src/awesome/Giscus/Giscus.d.ts
5
- declare const Giscus: react127.NamedExoticComponent<GiscusProps>;
5
+ declare const Giscus: react122.NamedExoticComponent<GiscusProps>;
6
6
  //#endregion
7
7
  export { Giscus };
8
8
  //# sourceMappingURL=Giscus.d.mts.map
@@ -1,6 +1,7 @@
1
+ import { safeReadableColor } from "../../utils/safeReadableColor.mjs";
1
2
  import { useMemo } from "react";
2
3
  import { css, useTheme } from "antd-style";
3
- import { readableColor, rgba } from "polished";
4
+ import { rgba } from "polished";
4
5
 
5
6
  //#region src/awesome/Giscus/style.ts
6
7
  const useStyles = () => {
@@ -56,7 +57,7 @@ const useStyles = () => {
56
57
  --color-btn-active-bg: ${theme.colorFillSecondary};
57
58
  --color-btn-active-border: ${theme.colorBorder};
58
59
  --color-btn-selected-bg: ${theme.colorFillSecondary};
59
- --color-btn-primary-text: ${readableColor(theme.colorPrimary)};
60
+ --color-btn-primary-text: ${safeReadableColor(theme.colorPrimary)};
60
61
  --color-btn-primary-bg: ${theme.colorPrimary};
61
62
  --color-btn-primary-border: ${theme.colorPrimaryBorder};
62
63
  --color-btn-primary-shadow: 0 0 transparent;
@@ -65,7 +66,7 @@ const useStyles = () => {
65
66
  --color-btn-primary-hover-border: ${theme.colorPrimaryBorderHover};
66
67
  --color-btn-primary-selected-bg: ${theme.colorPrimaryActive};
67
68
  --color-btn-primary-selected-shadow: 0 0 transparent;
68
- --color-btn-primary-disabled-text: ${rgba(readableColor(theme.colorPrimary), .5)};
69
+ --color-btn-primary-disabled-text: ${rgba(safeReadableColor(theme.colorPrimary), .5)};
69
70
  --color-btn-primary-disabled-bg: ${rgba(theme.colorPrimary, .5)};
70
71
  --color-btn-primary-disabled-border: ${rgba(theme.colorPrimaryBorder, .5)};
71
72
  --color-action-list-item-default-hover-bg: ${theme.colorFillQuaternary};