@lobehub/ui 4.22.1 → 4.24.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.
Files changed (186) 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 +2 -2
  6. package/es/Accordion/AccordionItem.mjs.map +1 -1
  7. package/es/Accordion/style.mjs +0 -5
  8. package/es/Accordion/style.mjs.map +1 -1
  9. package/es/ActionIcon/ActionIcon.d.mts +2 -2
  10. package/es/Alert/Alert.d.mts +2 -2
  11. package/es/AutoComplete/Select.d.mts +2 -2
  12. package/es/Avatar/AvatarGroup/index.d.mts +2 -2
  13. package/es/Burger/Burger.d.mts +2 -2
  14. package/es/Checkbox/Checkbox.mjs +2 -2
  15. package/es/Checkbox/Checkbox.mjs.map +1 -1
  16. package/es/Checkbox/CheckboxGroup.mjs +2 -2
  17. package/es/Checkbox/CheckboxGroup.mjs.map +1 -1
  18. package/es/CodeDiff/CodeDiff.d.mts +2 -2
  19. package/es/CodeDiff/PatchDiff.d.mts +2 -2
  20. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  21. package/es/CodeEditor/CodeEditor.mjs +2 -2
  22. package/es/CodeEditor/CodeEditor.mjs.map +1 -1
  23. package/es/Collapse/Collapse.d.mts +2 -2
  24. package/es/ColorSwatches/ColorSwatches.mjs +2 -2
  25. package/es/ColorSwatches/ColorSwatches.mjs.map +1 -1
  26. package/es/ConfigProvider/index.d.mts +2 -2
  27. package/es/ContextMenu/ContextMenuHost.d.mts +3 -3
  28. package/es/CopyButton/CopyButton.d.mts +2 -2
  29. package/es/DatePicker/DatePicker.d.mts +2 -2
  30. package/es/DraggablePanel/DraggablePanel.mjs +2 -2
  31. package/es/DraggablePanel/DraggablePanel.mjs.map +1 -1
  32. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  33. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  34. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  35. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  36. package/es/DraggablePanel/components/DraggablePanelHeader.mjs +2 -2
  37. package/es/DraggablePanel/components/DraggablePanelHeader.mjs.map +1 -1
  38. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  39. package/es/DraggableSideNav/DraggableSideNav.mjs +2 -2
  40. package/es/DraggableSideNav/DraggableSideNav.mjs.map +1 -1
  41. package/es/Drawer/Drawer.d.mts +2 -2
  42. package/es/Dropdown/Dropdown.d.mts +2 -2
  43. package/es/DropdownMenu/DropdownMenu.d.mts +2 -2
  44. package/es/EditableText/EditableText.d.mts +2 -2
  45. package/es/EditableText/EditableText.mjs +2 -2
  46. package/es/EditableText/EditableText.mjs.map +1 -1
  47. package/es/EditorSlashMenu/EditorSlashMenu.d.mts +51 -0
  48. package/es/EditorSlashMenu/EditorSlashMenu.mjs +99 -0
  49. package/es/EditorSlashMenu/EditorSlashMenu.mjs.map +1 -0
  50. package/es/EditorSlashMenu/MenuItemRenderer.mjs +42 -0
  51. package/es/EditorSlashMenu/MenuItemRenderer.mjs.map +1 -0
  52. package/es/EditorSlashMenu/atoms.d.mts +114 -0
  53. package/es/EditorSlashMenu/atoms.mjs +113 -0
  54. package/es/EditorSlashMenu/atoms.mjs.map +1 -0
  55. package/es/EditorSlashMenu/index.d.mts +4 -0
  56. package/es/EditorSlashMenu/index.d.ts +1 -0
  57. package/es/EditorSlashMenu/index.js +1 -0
  58. package/es/EditorSlashMenu/index.mjs +6 -0
  59. package/es/EditorSlashMenu/style.mjs +30 -0
  60. package/es/EditorSlashMenu/style.mjs.map +1 -0
  61. package/es/EditorSlashMenu/type.d.mts +37 -0
  62. package/es/EditorSlashMenu/useKeyboardNavigation.mjs +51 -0
  63. package/es/EditorSlashMenu/useKeyboardNavigation.mjs.map +1 -0
  64. package/es/EditorSlashMenu/useNormalizedItems.mjs +37 -0
  65. package/es/EditorSlashMenu/useNormalizedItems.mjs.map +1 -0
  66. package/es/EditorSlashMenu/utils.mjs +13 -0
  67. package/es/EditorSlashMenu/utils.mjs.map +1 -0
  68. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  69. package/es/EmojiPicker/EmojiPicker.mjs +3 -3
  70. package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
  71. package/es/Flex/FlexBasic.d.mts +2 -2
  72. package/es/FontLoader/index.d.mts +2 -2
  73. package/es/Footer/Footer.d.mts +2 -2
  74. package/es/Form/components/FormGroup.d.mts +2 -2
  75. package/es/Form/components/FormItem.d.mts +2 -2
  76. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  77. package/es/FormModal/FormModal.d.mts +2 -2
  78. package/es/Header/Header.d.mts +2 -2
  79. package/es/Highlighter/Highlighter.d.mts +2 -2
  80. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  81. package/es/Hotkey/Hotkey.d.mts +2 -2
  82. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  83. package/es/HotkeyInput/HotkeyInput.mjs +2 -2
  84. package/es/HotkeyInput/HotkeyInput.mjs.map +1 -1
  85. package/es/Icon/Icon.d.mts +2 -2
  86. package/es/Icon/components/IconProvider.d.mts +3 -3
  87. package/es/Image/PreviewGroup.d.mts +2 -2
  88. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  89. package/es/ImageSelect/ImageSelect.mjs +2 -2
  90. package/es/ImageSelect/ImageSelect.mjs.map +1 -1
  91. package/es/Input/Input.d.mts +2 -2
  92. package/es/Input/InputNumber.d.mts +2 -2
  93. package/es/Input/InputOPT.d.mts +2 -2
  94. package/es/Input/InputPassword.d.mts +2 -2
  95. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  96. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  97. package/es/Layout/components/LayoutMain.d.mts +2 -2
  98. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  99. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  100. package/es/Layout/components/LayoutToc.d.mts +2 -2
  101. package/es/List/ListItem/index.d.mts +2 -2
  102. package/es/LobeSelect/LobeSelect.d.mts +2 -2
  103. package/es/LobeSelect/atoms.d.mts +3 -3
  104. package/es/Markdown/Markdown.d.mts +2 -2
  105. package/es/Markdown/Typography.d.mts +2 -2
  106. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  107. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  108. package/es/Menu/Menu.d.mts +2 -2
  109. package/es/Menu/sharedStyle.d.mts +18 -0
  110. package/es/Modal/Modal.d.mts +2 -2
  111. package/es/Modal/ModalProvider.d.mts +2 -2
  112. package/es/MotionProvider/index.d.mts +2 -2
  113. package/es/Popover/ArrowIcon.d.mts +2 -2
  114. package/es/Popover/atoms.d.mts +9 -9
  115. package/es/Popover/context.d.mts +2 -2
  116. package/es/SearchBar/SearchBar.d.mts +2 -2
  117. package/es/SearchBar/SearchBar.mjs +2 -2
  118. package/es/SearchBar/SearchBar.mjs.map +1 -1
  119. package/es/Segmented/Segmented.d.mts +2 -2
  120. package/es/Select/Select.d.mts +2 -2
  121. package/es/SideNav/SideNav.d.mts +2 -2
  122. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  123. package/es/SortableList/components/DragHandle.d.mts +2 -2
  124. package/es/SortableList/components/SortableItem.d.mts +2 -2
  125. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  126. package/es/Toast/imperative.d.mts +3 -3
  127. package/es/Toc/Toc.d.mts +2 -2
  128. package/es/Toc/TocMobile.mjs +2 -2
  129. package/es/Toc/TocMobile.mjs.map +1 -1
  130. package/es/Video/index.d.mts +2 -2
  131. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  132. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  133. package/es/awesome/Features/Features.d.mts +2 -2
  134. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  135. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  136. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  137. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  138. package/es/awesome/Hero/Hero.d.mts +2 -2
  139. package/es/awesome/Spline/Spine.d.mts +2 -2
  140. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  141. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  142. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  143. package/es/brand/LobeChat/index.d.mts +2 -2
  144. package/es/brand/LobeHub/index.d.mts +2 -2
  145. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  146. package/es/brand/LogoThree/index.d.mts +2 -2
  147. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  148. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  149. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  150. package/es/chat/ChatList/ChatList.d.mts +2 -2
  151. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  152. package/es/chat/EditableMessage/EditableMessage.mjs +3 -3
  153. package/es/chat/EditableMessage/EditableMessage.mjs.map +1 -1
  154. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  155. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  156. package/es/chat/MessageModal/MessageModal.d.mts +2 -2
  157. package/es/chat/MessageModal/MessageModal.mjs +3 -3
  158. package/es/chat/MessageModal/MessageModal.mjs.map +1 -1
  159. package/es/color/ColorScales/index.d.mts +2 -2
  160. package/es/color/CssVar/index.d.mts +2 -2
  161. package/es/i18n/context.d.mts +2 -2
  162. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  163. package/es/icons/lucideExtra/CreateBotIcon.d.mts +3 -3
  164. package/es/icons/lucideExtra/DiscordIcon.d.mts +2 -2
  165. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +2 -2
  166. package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
  167. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  168. package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
  169. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  170. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  171. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  172. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  173. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
  174. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  175. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +3 -3
  176. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  177. package/es/index.d.mts +6 -1
  178. package/es/index.mjs +3 -1
  179. package/es/mdx/Mdx/index.d.mts +2 -2
  180. package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
  181. package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
  182. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  183. package/es/mobile/TabBar/TabBar.mjs +2 -2
  184. package/es/mobile/TabBar/TabBar.mjs.map +1 -1
  185. package/es/storybook/StoryBook/index.d.mts +2 -2
  186. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { PopoverPlacement } from "./type.mjs";
2
- import * as react73 from "react";
2
+ import * as react62 from "react";
3
3
  import { ComponentProps, ComponentPropsWithRef } from "react";
4
- import * as react_jsx_runtime31 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime42 from "react/jsx-runtime";
5
5
  import * as _base_ui_react_popover0 from "@base-ui/react/popover";
6
6
  import { Popover } from "@base-ui/react/popover";
7
7
 
8
8
  //#region src/Popover/atoms.d.ts
9
9
  declare const PopoverRoot: typeof Popover.Root;
10
- declare const PopoverBackdrop: react73.ForwardRefExoticComponent<_base_ui_react_popover0.PopoverBackdropProps & react73.RefAttributes<HTMLDivElement>>;
10
+ declare const PopoverBackdrop: react62.ForwardRefExoticComponent<_base_ui_react_popover0.PopoverBackdropProps & react62.RefAttributes<HTMLDivElement>>;
11
11
  type PopoverTriggerElementProps = Omit<ComponentPropsWithRef<typeof Popover.Trigger>, 'children' | 'render'> & {
12
12
  children: ComponentProps<typeof Popover.Trigger>['children'];
13
13
  };
@@ -18,7 +18,7 @@ declare const PopoverTriggerElement: {
18
18
  nativeButton,
19
19
  ref: refProp,
20
20
  ...rest
21
- }: PopoverTriggerElementProps): react_jsx_runtime31.JSX.Element;
21
+ }: PopoverTriggerElementProps): react_jsx_runtime42.JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
  type PopoverPortalAtomProps = Omit<ComponentProps<typeof Popover.Portal>, 'container'> & {
@@ -37,7 +37,7 @@ declare const PopoverPortal: {
37
37
  root,
38
38
  children,
39
39
  ...rest
40
- }: PopoverPortalAtomProps): react_jsx_runtime31.JSX.Element | null;
40
+ }: PopoverPortalAtomProps): react_jsx_runtime42.JSX.Element | null;
41
41
  displayName: string;
42
42
  };
43
43
  type PopoverPositionerAtomProps = ComponentProps<typeof Popover.Positioner> & {
@@ -54,7 +54,7 @@ declare const PopoverPositioner: {
54
54
  side,
55
55
  sideOffset,
56
56
  ...rest
57
- }: PopoverPositionerAtomProps): react_jsx_runtime31.JSX.Element;
57
+ }: PopoverPositionerAtomProps): react_jsx_runtime42.JSX.Element;
58
58
  displayName: string;
59
59
  };
60
60
  type PopoverPopupAtomProps = ComponentProps<typeof Popover.Popup>;
@@ -62,7 +62,7 @@ declare const PopoverPopup: {
62
62
  ({
63
63
  className,
64
64
  ...rest
65
- }: PopoverPopupAtomProps): react_jsx_runtime31.JSX.Element;
65
+ }: PopoverPopupAtomProps): react_jsx_runtime42.JSX.Element;
66
66
  displayName: string;
67
67
  };
68
68
  type PopoverArrowAtomProps = ComponentProps<typeof Popover.Arrow>;
@@ -71,7 +71,7 @@ declare const PopoverArrow: {
71
71
  className,
72
72
  children,
73
73
  ...rest
74
- }: PopoverArrowAtomProps): react_jsx_runtime31.JSX.Element;
74
+ }: PopoverArrowAtomProps): react_jsx_runtime42.JSX.Element;
75
75
  displayName: string;
76
76
  };
77
77
  type PopoverViewportAtomProps = ComponentProps<typeof Popover.Viewport>;
@@ -79,7 +79,7 @@ declare const PopoverViewport: {
79
79
  ({
80
80
  className,
81
81
  ...rest
82
- }: PopoverViewportAtomProps): react_jsx_runtime31.JSX.Element;
82
+ }: PopoverViewportAtomProps): react_jsx_runtime42.JSX.Element;
83
83
  displayName: string;
84
84
  };
85
85
  //#endregion
@@ -1,11 +1,11 @@
1
- import * as react75 from "react";
1
+ import * as react64 from "react";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/Popover/context.d.ts
5
5
  type PopoverContextValue = {
6
6
  close: () => void;
7
7
  };
8
- declare const PopoverProvider: react75.NamedExoticComponent<{
8
+ declare const PopoverProvider: react64.NamedExoticComponent<{
9
9
  children: ReactNode;
10
10
  value: PopoverContextValue;
11
11
  }>;
@@ -1,8 +1,8 @@
1
1
  import { SearchBarProps } from "./type.mjs";
2
- import * as react72 from "react";
2
+ import * as react56 from "react";
3
3
 
4
4
  //#region src/SearchBar/SearchBar.d.ts
5
- declare const SearchBar: react72.NamedExoticComponent<SearchBarProps>;
5
+ declare const SearchBar: react56.NamedExoticComponent<SearchBarProps>;
6
6
  //#endregion
7
7
  export { SearchBar };
8
8
  //# sourceMappingURL=SearchBar.d.mts.map
@@ -8,13 +8,13 @@ import { styles } from "./style.mjs";
8
8
  import { memo, useMemo, useRef, useState } from "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { cx } from "antd-style";
11
- import useControlledState from "use-merge-value";
11
+ import useMergeState from "use-merge-value";
12
12
  import { LucideLoader2, Search } from "lucide-react";
13
13
  import { useHotkeys } from "react-hotkeys-hook";
14
14
 
15
15
  //#region src/SearchBar/SearchBar.tsx
16
16
  const SearchBar = memo(({ defaultValue = "", spotlight, className, value, onInputChange, placeholder, enableShortKey, shortKey = "mod+k", onSearch, loading, style, onChange, onBlur, onPressEnter, onFocus, styles: { input: inputStyle, shortKey: shortKeyStyle } = {}, classNames: { input: inputClassName, shortKey: shortKeyClassName } = {}, ...rest }) => {
17
- const [inputValue, setInputValue] = useControlledState(defaultValue, {
17
+ const [inputValue, setInputValue] = useMergeState(defaultValue, {
18
18
  defaultValue,
19
19
  onChange: onInputChange,
20
20
  value
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.mjs","names":["inputReference: any","Spotlight","Input","Icon","Hotkey"],"sources":["../../src/SearchBar/SearchBar.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { LucideLoader2, Search } from 'lucide-react';\nimport { memo, useMemo, useRef, useState } from 'react';\nimport { useHotkeys } from 'react-hotkeys-hook';\nimport useControlledState from 'use-merge-value';\n\nimport Hotkey from '@/Hotkey';\nimport Icon from '@/Icon';\nimport Input from '@/Input';\nimport Spotlight from '@/awesome/Spotlight';\n\nimport { styles } from './style';\nimport type { SearchBarProps } from './type';\n\nconst SearchBar = memo<SearchBarProps>(\n ({\n defaultValue = '',\n spotlight,\n className,\n value,\n onInputChange,\n placeholder,\n enableShortKey,\n shortKey = 'mod+k',\n onSearch,\n loading,\n style,\n onChange,\n onBlur,\n onPressEnter,\n onFocus,\n styles: { input: inputStyle, shortKey: shortKeyStyle } = {},\n classNames: { input: inputClassName, shortKey: shortKeyClassName } = {},\n ...rest\n }) => {\n const [inputValue, setInputValue] = useControlledState(defaultValue, {\n defaultValue,\n onChange: onInputChange,\n value,\n });\n\n const [showTag, setShowTag] = useState<boolean>(true);\n const inputReference: any = useRef<HTMLInputElement>(null);\n const hotkey = useMemo(\n () => (shortKey.includes('+') ? shortKey : `mod+${shortKey}`),\n [shortKey],\n );\n\n useHotkeys(\n hotkey,\n () => {\n if (!enableShortKey) return;\n inputReference.current?.focus();\n },\n {\n enableOnFormTags: true,\n enabled: !!enableShortKey && !!shortKey,\n preventDefault: true,\n },\n );\n\n return (\n <div className={cx(styles.search, className)} style={style}>\n {spotlight && <Spotlight />}\n <Input\n allowClear\n className={inputClassName}\n onBlur={(e) => {\n onBlur?.(e);\n setInputValue(e.target.value);\n setShowTag(true);\n }}\n onChange={(e) => {\n setInputValue(e.target.value);\n onChange?.(e);\n }}\n onFocus={(e) => {\n onFocus?.(e);\n setShowTag(false);\n }}\n onPressEnter={(e) => {\n onPressEnter?.(e);\n onSearch?.(inputValue);\n }}\n placeholder={placeholder ?? 'Type keywords...'}\n prefix={\n <Icon\n className={styles.icon}\n icon={loading ? LucideLoader2 : Search}\n size=\"small\"\n spin={loading}\n style={{ marginRight: 4 }}\n />\n }\n ref={inputReference}\n style={inputStyle}\n value={inputValue}\n {...rest}\n />\n {enableShortKey && showTag && !inputValue && (\n <Hotkey\n className={cx(styles.tag, shortKeyClassName)}\n compact\n keys={hotkey}\n style={shortKeyStyle}\n />\n )}\n </div>\n );\n },\n);\n\nSearchBar.displayName = 'SearchBar';\n\nexport default SearchBar;\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAM,YAAY,MACf,EACC,eAAe,IACf,WACA,WACA,OACA,eACA,aACA,gBACA,WAAW,SACX,UACA,SACA,OACA,UACA,QACA,cACA,SACA,QAAQ,EAAE,OAAO,YAAY,UAAU,kBAAkB,EAAE,EAC3D,YAAY,EAAE,OAAO,gBAAgB,UAAU,sBAAsB,EAAE,EACvE,GAAG,WACC;CACJ,MAAM,CAAC,YAAY,iBAAiB,mBAAmB,cAAc;EACnE;EACA,UAAU;EACV;EACD,CAAC;CAEF,MAAM,CAAC,SAAS,cAAc,SAAkB,KAAK;CACrD,MAAMA,iBAAsB,OAAyB,KAAK;CAC1D,MAAM,SAAS,cACN,SAAS,SAAS,IAAI,GAAG,WAAW,OAAO,YAClD,CAAC,SAAS,CACX;AAED,YACE,cACM;AACJ,MAAI,CAAC,eAAgB;AACrB,iBAAe,SAAS,OAAO;IAEjC;EACE,kBAAkB;EAClB,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;EAC/B,gBAAgB;EACjB,CACF;AAED,QACE,qBAAC;EAAI,WAAW,GAAG,OAAO,QAAQ,UAAU;EAAS;;GAClD,aAAa,oBAACC,sBAAY;GAC3B,oBAACC;IACC;IACA,WAAW;IACX,SAAS,MAAM;AACb,cAAS,EAAE;AACX,mBAAc,EAAE,OAAO,MAAM;AAC7B,gBAAW,KAAK;;IAElB,WAAW,MAAM;AACf,mBAAc,EAAE,OAAO,MAAM;AAC7B,gBAAW,EAAE;;IAEf,UAAU,MAAM;AACd,eAAU,EAAE;AACZ,gBAAW,MAAM;;IAEnB,eAAe,MAAM;AACnB,oBAAe,EAAE;AACjB,gBAAW,WAAW;;IAExB,aAAa,eAAe;IAC5B,QACE,oBAACC;KACC,WAAW,OAAO;KAClB,MAAM,UAAU,gBAAgB;KAChC,MAAK;KACL,MAAM;KACN,OAAO,EAAE,aAAa,GAAG;MACzB;IAEJ,KAAK;IACL,OAAO;IACP,OAAO;IACP,GAAI;KACJ;GACD,kBAAkB,WAAW,CAAC,cAC7B,oBAACC;IACC,WAAW,GAAG,OAAO,KAAK,kBAAkB;IAC5C;IACA,MAAM;IACN,OAAO;KACP;;GAEA;EAGX;AAED,UAAU,cAAc;AAExB,wBAAe"}
1
+ {"version":3,"file":"SearchBar.mjs","names":["useControlledState","inputReference: any","Spotlight","Input","Icon","Hotkey"],"sources":["../../src/SearchBar/SearchBar.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { LucideLoader2, Search } from 'lucide-react';\nimport { memo, useMemo, useRef, useState } from 'react';\nimport { useHotkeys } from 'react-hotkeys-hook';\nimport useControlledState from 'use-merge-value';\n\nimport Hotkey from '@/Hotkey';\nimport Icon from '@/Icon';\nimport Input from '@/Input';\nimport Spotlight from '@/awesome/Spotlight';\n\nimport { styles } from './style';\nimport type { SearchBarProps } from './type';\n\nconst SearchBar = memo<SearchBarProps>(\n ({\n defaultValue = '',\n spotlight,\n className,\n value,\n onInputChange,\n placeholder,\n enableShortKey,\n shortKey = 'mod+k',\n onSearch,\n loading,\n style,\n onChange,\n onBlur,\n onPressEnter,\n onFocus,\n styles: { input: inputStyle, shortKey: shortKeyStyle } = {},\n classNames: { input: inputClassName, shortKey: shortKeyClassName } = {},\n ...rest\n }) => {\n const [inputValue, setInputValue] = useControlledState(defaultValue, {\n defaultValue,\n onChange: onInputChange,\n value,\n });\n\n const [showTag, setShowTag] = useState<boolean>(true);\n const inputReference: any = useRef<HTMLInputElement>(null);\n const hotkey = useMemo(\n () => (shortKey.includes('+') ? shortKey : `mod+${shortKey}`),\n [shortKey],\n );\n\n useHotkeys(\n hotkey,\n () => {\n if (!enableShortKey) return;\n inputReference.current?.focus();\n },\n {\n enableOnFormTags: true,\n enabled: !!enableShortKey && !!shortKey,\n preventDefault: true,\n },\n );\n\n return (\n <div className={cx(styles.search, className)} style={style}>\n {spotlight && <Spotlight />}\n <Input\n allowClear\n className={inputClassName}\n onBlur={(e) => {\n onBlur?.(e);\n setInputValue(e.target.value);\n setShowTag(true);\n }}\n onChange={(e) => {\n setInputValue(e.target.value);\n onChange?.(e);\n }}\n onFocus={(e) => {\n onFocus?.(e);\n setShowTag(false);\n }}\n onPressEnter={(e) => {\n onPressEnter?.(e);\n onSearch?.(inputValue);\n }}\n placeholder={placeholder ?? 'Type keywords...'}\n prefix={\n <Icon\n className={styles.icon}\n icon={loading ? LucideLoader2 : Search}\n size=\"small\"\n spin={loading}\n style={{ marginRight: 4 }}\n />\n }\n ref={inputReference}\n style={inputStyle}\n value={inputValue}\n {...rest}\n />\n {enableShortKey && showTag && !inputValue && (\n <Hotkey\n className={cx(styles.tag, shortKeyClassName)}\n compact\n keys={hotkey}\n style={shortKeyStyle}\n />\n )}\n </div>\n );\n },\n);\n\nSearchBar.displayName = 'SearchBar';\n\nexport default SearchBar;\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAM,YAAY,MACf,EACC,eAAe,IACf,WACA,WACA,OACA,eACA,aACA,gBACA,WAAW,SACX,UACA,SACA,OACA,UACA,QACA,cACA,SACA,QAAQ,EAAE,OAAO,YAAY,UAAU,kBAAkB,EAAE,EAC3D,YAAY,EAAE,OAAO,gBAAgB,UAAU,sBAAsB,EAAE,EACvE,GAAG,WACC;CACJ,MAAM,CAAC,YAAY,iBAAiBA,cAAmB,cAAc;EACnE;EACA,UAAU;EACV;EACD,CAAC;CAEF,MAAM,CAAC,SAAS,cAAc,SAAkB,KAAK;CACrD,MAAMC,iBAAsB,OAAyB,KAAK;CAC1D,MAAM,SAAS,cACN,SAAS,SAAS,IAAI,GAAG,WAAW,OAAO,YAClD,CAAC,SAAS,CACX;AAED,YACE,cACM;AACJ,MAAI,CAAC,eAAgB;AACrB,iBAAe,SAAS,OAAO;IAEjC;EACE,kBAAkB;EAClB,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;EAC/B,gBAAgB;EACjB,CACF;AAED,QACE,qBAAC;EAAI,WAAW,GAAG,OAAO,QAAQ,UAAU;EAAS;;GAClD,aAAa,oBAACC,sBAAY;GAC3B,oBAACC;IACC;IACA,WAAW;IACX,SAAS,MAAM;AACb,cAAS,EAAE;AACX,mBAAc,EAAE,OAAO,MAAM;AAC7B,gBAAW,KAAK;;IAElB,WAAW,MAAM;AACf,mBAAc,EAAE,OAAO,MAAM;AAC7B,gBAAW,EAAE;;IAEf,UAAU,MAAM;AACd,eAAU,EAAE;AACZ,gBAAW,MAAM;;IAEnB,eAAe,MAAM;AACnB,oBAAe,EAAE;AACjB,gBAAW,WAAW;;IAExB,aAAa,eAAe;IAC5B,QACE,oBAACC;KACC,WAAW,OAAO;KAClB,MAAM,UAAU,gBAAgB;KAChC,MAAK;KACL,MAAM;KACN,OAAO,EAAE,aAAa,GAAG;MACzB;IAEJ,KAAK;IACL,OAAO;IACP,OAAO;IACP,GAAI;KACJ;GACD,kBAAkB,WAAW,CAAC,cAC7B,oBAACC;IACC,WAAW,GAAG,OAAO,KAAK,kBAAkB;IAC5C;IACA,MAAM;IACN,OAAO;KACP;;GAEA;EAGX;AAED,UAAU,cAAc;AAExB,wBAAe"}
@@ -1,8 +1,8 @@
1
1
  import { SegmentedProps } from "./type.mjs";
2
- import * as react70 from "react";
2
+ import * as react55 from "react";
3
3
 
4
4
  //#region src/Segmented/Segmented.d.ts
5
- declare const Segmented: react70.NamedExoticComponent<SegmentedProps>;
5
+ declare const Segmented: react55.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 react71 from "react";
2
+ import * as react54 from "react";
3
3
 
4
4
  //#region src/Select/Select.d.ts
5
- declare const Input: react71.NamedExoticComponent<SelectProps>;
5
+ declare const Input: react54.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 react86 from "react";
2
+ import * as react52 from "react";
3
3
 
4
4
  //#region src/SideNav/SideNav.d.ts
5
- declare const SideNav: react86.NamedExoticComponent<SideNavProps>;
5
+ declare const SideNav: react52.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 react59 from "react";
2
+ import * as react51 from "react";
3
3
 
4
4
  //#region src/SliderWithInput/SliderWithInput.d.ts
5
- declare const SliderWithInput: react59.NamedExoticComponent<SliderWithInputProps>;
5
+ declare const SliderWithInput: react51.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 react120 from "react";
3
+ import * as react119 from "react";
4
4
 
5
5
  //#region src/SortableList/components/DragHandle.d.ts
6
- declare const DragHandle: react120.NamedExoticComponent<ActionIconProps>;
6
+ declare const DragHandle: react119.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 react118 from "react";
3
+ import * as react117 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: react118.NamedExoticComponent<SortableItemProps>;
12
+ declare const SortableItem: react117.NamedExoticComponent<SortableItemProps>;
13
13
  //#endregion
14
14
  export { SortableItem };
15
15
  //# sourceMappingURL=SortableItem.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ThemeProviderProps } from "./type.mjs";
2
- import * as react58 from "react";
2
+ import * as react50 from "react";
3
3
 
4
4
  //#region src/ThemeProvider/ThemeProvider.d.ts
5
- declare const ThemeProvider: react58.NamedExoticComponent<ThemeProviderProps>;
5
+ declare const ThemeProvider: react50.NamedExoticComponent<ThemeProviderProps>;
6
6
  //#endregion
7
7
  export { ThemeProvider };
8
8
  //# sourceMappingURL=ThemeProvider.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { ToastAPI, ToastPosition } from "./type.mjs";
2
- import * as react66 from "react";
2
+ import * as react57 from "react";
3
3
 
4
4
  //#region src/Toast/imperative.d.ts
5
5
  declare const toast: ToastAPI;
@@ -31,14 +31,14 @@ interface ToastHostProps {
31
31
  */
32
32
  swipeDirection?: ('left' | 'right' | 'up' | 'down') | ('left' | 'right' | 'up' | 'down')[];
33
33
  }
34
- declare const ToastHost: react66.MemoExoticComponent<({
34
+ declare const ToastHost: react57.MemoExoticComponent<({
35
35
  root,
36
36
  className,
37
37
  duration,
38
38
  limit,
39
39
  position,
40
40
  swipeDirection
41
- }: ToastHostProps) => react66.ReactPortal | null>;
41
+ }: ToastHostProps) => react57.ReactPortal | null>;
42
42
  declare const useToast: () => ToastAPI;
43
43
  //#endregion
44
44
  export { TOAST_CONTAINER_ATTR, ToastHost, ToastHostProps, toast, useToast };
package/es/Toc/Toc.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { TocProps } from "./type.mjs";
2
- import * as react68 from "react";
2
+ import * as react37 from "react";
3
3
 
4
4
  //#region src/Toc/Toc.d.ts
5
- declare const Toc: react68.NamedExoticComponent<TocProps>;
5
+ declare const Toc: react37.NamedExoticComponent<TocProps>;
6
6
  //#endregion
7
7
  export { Toc };
8
8
  //# sourceMappingURL=Toc.d.mts.map
@@ -6,12 +6,12 @@ import { mapItems } from "./utils.mjs";
6
6
  import { memo, useMemo } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  import { Anchor, Collapse, ConfigProvider } from "antd";
9
- import useControlledState from "use-merge-value";
9
+ import useMergeState from "use-merge-value";
10
10
  import { PanelTopClose, PanelTopOpen } from "lucide-react";
11
11
 
12
12
  //#region src/Toc/TocMobile.tsx
13
13
  const TocMobile = memo(({ items, activeKey, onChange, getContainer, headerHeight = 64, tocWidth = 176 }) => {
14
- const [activeLink, setActiveLink] = useControlledState("", {
14
+ const [activeLink, setActiveLink] = useMergeState("", {
15
15
  onChange,
16
16
  value: activeKey
17
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TocMobile.mjs","names":["ActionIcon"],"sources":["../../src/Toc/TocMobile.tsx"],"sourcesContent":["'use client';\n\nimport { Anchor, Collapse, ConfigProvider } from 'antd';\nimport { PanelTopClose, PanelTopOpen } from 'lucide-react';\nimport { memo, useMemo } from 'react';\nimport useControlledState from 'use-merge-value';\n\nimport ActionIcon from '@/ActionIcon';\n\nimport { styles } from './style';\nimport type { TocMobileProps } from './type';\nimport { mapItems } from './utils';\n\nconst TocMobile = memo<TocMobileProps>(\n ({ items, activeKey, onChange, getContainer, headerHeight = 64, tocWidth = 176 }) => {\n // tocWidth is part of the interface but not used in this component\n void tocWidth;\n const [activeLink, setActiveLink] = useControlledState<string>('', {\n onChange,\n value: activeKey,\n });\n\n const activeAnchor = items.find((item) => item.id === activeLink);\n\n const tocItems = useMemo(() => mapItems(items), [items]);\n\n return (\n <ConfigProvider theme={{ token: { fontSize: 12, sizeStep: 3 } }}>\n <section className={styles.mobileCtn}>\n <Collapse\n className={styles.expand}\n expandIcon={({ isActive }) => (\n <ActionIcon icon={isActive ? PanelTopClose : PanelTopOpen} size={'small'} />\n )}\n expandIconPlacement={'end'}\n ghost\n >\n <Collapse.Panel\n forceRender\n header={activeAnchor ? activeAnchor.title : 'TOC'}\n key={'toc'}\n >\n <ConfigProvider theme={{ token: { fontSize: 14, sizeStep: 4 } }}>\n <Anchor\n getContainer={getContainer}\n items={tocItems}\n onChange={(currentLink) => {\n setActiveLink(currentLink.replace('#', ''));\n }}\n targetOffset={headerHeight + 48}\n />\n </ConfigProvider>\n </Collapse.Panel>\n </Collapse>\n </section>\n </ConfigProvider>\n );\n },\n);\n\nTocMobile.displayName = 'TocMobile';\n\nexport default TocMobile;\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,YAAY,MACf,EAAE,OAAO,WAAW,UAAU,cAAc,eAAe,IAAI,WAAW,UAAU;CAGnF,MAAM,CAAC,YAAY,iBAAiB,mBAA2B,IAAI;EACjE;EACA,OAAO;EACR,CAAC;CAEF,MAAM,eAAe,MAAM,MAAM,SAAS,KAAK,OAAO,WAAW;CAEjE,MAAM,WAAW,cAAc,SAAS,MAAM,EAAE,CAAC,MAAM,CAAC;AAExD,QACE,oBAAC;EAAe,OAAO,EAAE,OAAO;GAAE,UAAU;GAAI,UAAU;GAAG,EAAE;YAC7D,oBAAC;GAAQ,WAAW,OAAO;aACzB,oBAAC;IACC,WAAW,OAAO;IAClB,aAAa,EAAE,eACb,oBAACA;KAAW,MAAM,WAAW,gBAAgB;KAAc,MAAM;MAAW;IAE9E,qBAAqB;IACrB;cAEA,oBAAC,SAAS;KACR;KACA,QAAQ,eAAe,aAAa,QAAQ;eAG5C,oBAAC;MAAe,OAAO,EAAE,OAAO;OAAE,UAAU;OAAI,UAAU;OAAG,EAAE;gBAC7D,oBAAC;OACe;OACd,OAAO;OACP,WAAW,gBAAgB;AACzB,sBAAc,YAAY,QAAQ,KAAK,GAAG,CAAC;;OAE7C,cAAc,eAAe;QAC7B;OACa;OAXZ,MAYU;KACR;IACH;GACK;EAGtB;AAED,UAAU,cAAc;AAExB,wBAAe"}
1
+ {"version":3,"file":"TocMobile.mjs","names":["useControlledState","ActionIcon"],"sources":["../../src/Toc/TocMobile.tsx"],"sourcesContent":["'use client';\n\nimport { Anchor, Collapse, ConfigProvider } from 'antd';\nimport { PanelTopClose, PanelTopOpen } from 'lucide-react';\nimport { memo, useMemo } from 'react';\nimport useControlledState from 'use-merge-value';\n\nimport ActionIcon from '@/ActionIcon';\n\nimport { styles } from './style';\nimport type { TocMobileProps } from './type';\nimport { mapItems } from './utils';\n\nconst TocMobile = memo<TocMobileProps>(\n ({ items, activeKey, onChange, getContainer, headerHeight = 64, tocWidth = 176 }) => {\n // tocWidth is part of the interface but not used in this component\n void tocWidth;\n const [activeLink, setActiveLink] = useControlledState<string>('', {\n onChange,\n value: activeKey,\n });\n\n const activeAnchor = items.find((item) => item.id === activeLink);\n\n const tocItems = useMemo(() => mapItems(items), [items]);\n\n return (\n <ConfigProvider theme={{ token: { fontSize: 12, sizeStep: 3 } }}>\n <section className={styles.mobileCtn}>\n <Collapse\n className={styles.expand}\n expandIcon={({ isActive }) => (\n <ActionIcon icon={isActive ? PanelTopClose : PanelTopOpen} size={'small'} />\n )}\n expandIconPlacement={'end'}\n ghost\n >\n <Collapse.Panel\n forceRender\n header={activeAnchor ? activeAnchor.title : 'TOC'}\n key={'toc'}\n >\n <ConfigProvider theme={{ token: { fontSize: 14, sizeStep: 4 } }}>\n <Anchor\n getContainer={getContainer}\n items={tocItems}\n onChange={(currentLink) => {\n setActiveLink(currentLink.replace('#', ''));\n }}\n targetOffset={headerHeight + 48}\n />\n </ConfigProvider>\n </Collapse.Panel>\n </Collapse>\n </section>\n </ConfigProvider>\n );\n },\n);\n\nTocMobile.displayName = 'TocMobile';\n\nexport default TocMobile;\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,YAAY,MACf,EAAE,OAAO,WAAW,UAAU,cAAc,eAAe,IAAI,WAAW,UAAU;CAGnF,MAAM,CAAC,YAAY,iBAAiBA,cAA2B,IAAI;EACjE;EACA,OAAO;EACR,CAAC;CAEF,MAAM,eAAe,MAAM,MAAM,SAAS,KAAK,OAAO,WAAW;CAEjE,MAAM,WAAW,cAAc,SAAS,MAAM,EAAE,CAAC,MAAM,CAAC;AAExD,QACE,oBAAC;EAAe,OAAO,EAAE,OAAO;GAAE,UAAU;GAAI,UAAU;GAAG,EAAE;YAC7D,oBAAC;GAAQ,WAAW,OAAO;aACzB,oBAAC;IACC,WAAW,OAAO;IAClB,aAAa,EAAE,eACb,oBAACC;KAAW,MAAM,WAAW,gBAAgB;KAAc,MAAM;MAAW;IAE9E,qBAAqB;IACrB;cAEA,oBAAC,SAAS;KACR;KACA,QAAQ,eAAe,aAAa,QAAQ;eAG5C,oBAAC;MAAe,OAAO,EAAE,OAAO;OAAE,UAAU;OAAI,UAAU;OAAG,EAAE;gBAC7D,oBAAC;OACe;OACd,OAAO;OACP,WAAW,gBAAgB;AACzB,sBAAc,YAAY,QAAQ,KAAK,GAAG,CAAC;;OAE7C,cAAc,eAAe;QAC7B;OACa;OAXZ,MAYU;KACR;IACH;GACK;EAGtB;AAED,UAAU,cAAc;AAExB,wBAAe"}
@@ -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 react85 from "react";
4
+ import * as react72 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: react85.NamedExoticComponent<VideoProps>;
42
+ declare const Video: react72.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 react142 from "react";
2
+ import * as react136 from "react";
3
3
 
4
4
  //#region src/awesome/AuroraBackground/AuroraBackground.d.ts
5
- declare const AuroraBackground: react142.NamedExoticComponent<AuroraBackgroundProps>;
5
+ declare const AuroraBackground: react136.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 react144 from "react";
3
+ import * as react137 from "react";
4
4
 
5
5
  //#region src/awesome/BottomGradientButton/BottomGradientButton.d.ts
6
- declare const BottomGradientButton: react144.NamedExoticComponent<ButtonProps>;
6
+ declare const BottomGradientButton: react137.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 react146 from "react";
2
+ import * as react138 from "react";
3
3
 
4
4
  //#region src/awesome/Features/Features.d.ts
5
- declare const Features: react146.NamedExoticComponent<FeaturesProps>;
5
+ declare const Features: react138.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 react147 from "react";
2
+ import * as react139 from "react";
3
3
 
4
4
  //#region src/awesome/Giscus/Giscus.d.ts
5
- declare const Giscus: react147.NamedExoticComponent<GiscusProps>;
5
+ declare const Giscus: react139.NamedExoticComponent<GiscusProps>;
6
6
  //#endregion
7
7
  export { Giscus };
8
8
  //# sourceMappingURL=Giscus.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { GradientButtonProps } from "./type.mjs";
2
- import * as react139 from "react";
2
+ import * as react140 from "react";
3
3
 
4
4
  //#region src/awesome/GradientButton/GradientButton.d.ts
5
- declare const GradientButton: react139.NamedExoticComponent<GradientButtonProps>;
5
+ declare const GradientButton: react140.NamedExoticComponent<GradientButtonProps>;
6
6
  //#endregion
7
7
  export { GradientButton };
8
8
  //# sourceMappingURL=GradientButton.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { GridBackgroundProps } from "./type.mjs";
2
- import * as react137 from "react";
2
+ import * as react141 from "react";
3
3
 
4
4
  //#region src/awesome/GridBackground/GridBackground.d.ts
5
- declare const GridBackground: react137.NamedExoticComponent<GridBackgroundProps>;
5
+ declare const GridBackground: react141.NamedExoticComponent<GridBackgroundProps>;
6
6
  //#endregion
7
7
  export { GridBackground };
8
8
  //# sourceMappingURL=GridBackground.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { GridShowcaseProps } from "./type.mjs";
2
- import * as react138 from "react";
2
+ import * as react142 from "react";
3
3
 
4
4
  //#region src/awesome/GridBackground/GridShowcase.d.ts
5
- declare const GridShowcase: react138.NamedExoticComponent<GridShowcaseProps>;
5
+ declare const GridShowcase: react142.NamedExoticComponent<GridShowcaseProps>;
6
6
  //#endregion
7
7
  export { GridShowcase };
8
8
  //# sourceMappingURL=GridShowcase.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HeroProps } from "./type.mjs";
2
- import * as react140 from "react";
2
+ import * as react143 from "react";
3
3
 
4
4
  //#region src/awesome/Hero/Hero.d.ts
5
- declare const Hero: react140.NamedExoticComponent<HeroProps>;
5
+ declare const Hero: react143.NamedExoticComponent<HeroProps>;
6
6
  //#endregion
7
7
  export { Hero };
8
8
  //# sourceMappingURL=Hero.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { SplineProps } from "./type.mjs";
2
- import * as react141 from "react";
2
+ import * as react144 from "react";
3
3
  import "@splinetool/runtime";
4
4
 
5
5
  //#region src/awesome/Spline/Spine.d.ts
6
- declare const Spline: react141.NamedExoticComponent<SplineProps>;
6
+ declare const Spline: react144.NamedExoticComponent<SplineProps>;
7
7
  //#endregion
8
8
  export { Spline };
9
9
  //# sourceMappingURL=Spine.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SpotlightProps } from "./type.mjs";
2
- import * as react143 from "react";
2
+ import * as react145 from "react";
3
3
 
4
4
  //#region src/awesome/Spotlight/Spotlight.d.ts
5
- declare const Spotlight: react143.NamedExoticComponent<SpotlightProps>;
5
+ declare const Spotlight: react145.NamedExoticComponent<SpotlightProps>;
6
6
  //#endregion
7
7
  export { Spotlight };
8
8
  //# sourceMappingURL=Spotlight.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SpotlightCardProps } from "./type.mjs";
2
- import * as react145 from "react";
2
+ import * as react147 from "react";
3
3
 
4
4
  //#region src/awesome/SpotlightCard/SpotlightCard.d.ts
5
- declare const SpotlightCard: react145.NamedExoticComponent<SpotlightCardProps<any>>;
5
+ declare const SpotlightCard: react147.NamedExoticComponent<SpotlightCardProps<any>>;
6
6
  //#endregion
7
7
  export { SpotlightCard };
8
8
  //# sourceMappingURL=SpotlightCard.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { TypewriterEffectProps } from "./type.mjs";
2
- import * as react136 from "react";
2
+ import * as react146 from "react";
3
3
 
4
4
  //#region src/awesome/TypewriterEffect/TypewriterEffect.d.ts
5
- declare const TypewriterEffect: react136.NamedExoticComponent<TypewriterEffectProps>;
5
+ declare const TypewriterEffect: react146.NamedExoticComponent<TypewriterEffectProps>;
6
6
  //#endregion
7
7
  export { TypewriterEffect };
8
8
  //# sourceMappingURL=TypewriterEffect.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
- import * as react62 from "react";
2
+ import * as react43 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/brand/LobeChat/index.d.ts
@@ -8,7 +8,7 @@ interface LobeChatProps extends DivProps {
8
8
  size?: number;
9
9
  type?: '3d' | 'flat' | 'mono' | 'text' | 'combine';
10
10
  }
11
- declare const LobeChat: react62.NamedExoticComponent<LobeChatProps>;
11
+ declare const LobeChat: react43.NamedExoticComponent<LobeChatProps>;
12
12
  //#endregion
13
13
  export { LobeChat, LobeChatProps };
14
14
  //# sourceMappingURL=index.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
- import * as react63 from "react";
2
+ import * as react44 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/brand/LobeHub/index.d.ts
@@ -8,7 +8,7 @@ interface LobeHubProps extends DivProps {
8
8
  size?: number;
9
9
  type?: '3d' | 'flat' | 'mono' | 'text' | 'combine';
10
10
  }
11
- declare const LobeHub: react63.NamedExoticComponent<LobeHubProps>;
11
+ declare const LobeHub: react44.NamedExoticComponent<LobeHubProps>;
12
12
  //#endregion
13
13
  export { LobeHub, LobeHubProps };
14
14
  //# sourceMappingURL=index.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { SplineProps } from "../../awesome/Spline/type.mjs";
2
2
  import "../../awesome/Spline/index.mjs";
3
- import * as react64 from "react";
3
+ import * as react46 from "react";
4
4
  import { CSSProperties } from "react";
5
5
 
6
6
  //#region src/brand/LogoThree/LogoSpline.d.ts
@@ -10,7 +10,7 @@ interface LogoSplineProps extends Partial<SplineProps> {
10
10
  style?: CSSProperties;
11
11
  width?: number | string;
12
12
  }
13
- declare const LogoSpline: react64.NamedExoticComponent<LogoSplineProps>;
13
+ declare const LogoSpline: react46.NamedExoticComponent<LogoSplineProps>;
14
14
  //#endregion
15
15
  export { LogoSpline, LogoSplineProps };
16
16
  //# sourceMappingURL=LogoSpline.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { SplineProps } from "../../awesome/Spline/type.mjs";
2
2
  import "../../awesome/Spline/index.mjs";
3
- import * as react65 from "react";
3
+ import * as react45 from "react";
4
4
  import { CSSProperties } from "react";
5
5
 
6
6
  //#region src/brand/LogoThree/index.d.ts
@@ -9,7 +9,7 @@ interface LogoThreeProps extends Partial<SplineProps> {
9
9
  size?: number;
10
10
  style?: CSSProperties;
11
11
  }
12
- declare const LogoThree: react65.NamedExoticComponent<LogoThreeProps>;
12
+ declare const LogoThree: react45.NamedExoticComponent<LogoThreeProps>;
13
13
  //#endregion
14
14
  export { LogoThree, LogoThreeProps };
15
15
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { BackBottomProps } from "./type.mjs";
2
- import * as react129 from "react";
2
+ import * as react128 from "react";
3
3
 
4
4
  //#region src/chat/BackBottom/BackBottom.d.ts
5
- declare const BackBottom: react129.NamedExoticComponent<BackBottomProps>;
5
+ declare const BackBottom: react128.NamedExoticComponent<BackBottomProps>;
6
6
  //#endregion
7
7
  export { BackBottom };
8
8
  //# sourceMappingURL=BackBottom.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ChatInputAreaInnerProps } from "../type.mjs";
2
- import * as react130 from "react";
2
+ import * as react129 from "react";
3
3
 
4
4
  //#region src/chat/ChatInputArea/components/ChatInputAreaInner.d.ts
5
- declare const ChatInputAreaInner: react130.NamedExoticComponent<ChatInputAreaInnerProps>;
5
+ declare const ChatInputAreaInner: react129.NamedExoticComponent<ChatInputAreaInnerProps>;
6
6
  //#endregion
7
7
  export { ChatInputAreaInner };
8
8
  //# sourceMappingURL=ChatInputAreaInner.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ChatItemProps } from "./type.mjs";
2
- import * as react132 from "react";
2
+ import * as react130 from "react";
3
3
 
4
4
  //#region src/chat/ChatItem/ChatItem.d.ts
5
- declare const ChatItem: react132.NamedExoticComponent<ChatItemProps>;
5
+ declare const ChatItem: react130.NamedExoticComponent<ChatItemProps>;
6
6
  //#endregion
7
7
  export { ChatItem };
8
8
  //# sourceMappingURL=ChatItem.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ChatListProps } from "./type.mjs";
2
- import * as react128 from "react";
2
+ import * as react131 from "react";
3
3
 
4
4
  //#region src/chat/ChatList/ChatList.d.ts
5
- declare const ChatList: react128.NamedExoticComponent<ChatListProps>;
5
+ declare const ChatList: react131.NamedExoticComponent<ChatListProps>;
6
6
  //#endregion
7
7
  export { ChatList };
8
8
  //# sourceMappingURL=ChatList.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { EditableMessageProps } from "./type.mjs";
2
- import * as react131 from "react";
2
+ import * as react132 from "react";
3
3
 
4
4
  //#region src/chat/EditableMessage/EditableMessage.d.ts
5
- declare const EditableMessage: react131.NamedExoticComponent<EditableMessageProps>;
5
+ declare const EditableMessage: react132.NamedExoticComponent<EditableMessageProps>;
6
6
  //#endregion
7
7
  export { EditableMessage };
8
8
  //# sourceMappingURL=EditableMessage.d.mts.map
@@ -6,15 +6,15 @@ import MessageModal_default from "../MessageModal/MessageModal.mjs";
6
6
  import { memo } from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  import { cx } from "antd-style";
9
- import useControlledState from "use-merge-value";
9
+ import useMergeState from "use-merge-value";
10
10
 
11
11
  //#region src/chat/EditableMessage/EditableMessage.tsx
12
12
  const EditableMessage = memo(({ value, onChange, classNames = {}, onEditingChange, editing, openModal, onOpenChange, placeholder, showEditWhenEmpty = false, styles: customStyles, className, style, height, variant, editButtonSize, text, fullFeaturedCodeBlock, model, fontSize, language = "markdown", markdownProps }) => {
13
- const [isEdit, setTyping] = useControlledState(false, {
13
+ const [isEdit, setTyping] = useMergeState(false, {
14
14
  onChange: onEditingChange,
15
15
  value: editing
16
16
  });
17
- const [expand, setExpand] = useControlledState(false, {
17
+ const [expand, setExpand] = useMergeState(false, {
18
18
  onChange: onOpenChange,
19
19
  value: openModal
20
20
  });