@lobehub/ui 4.36.2 → 4.37.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 (149) 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/AvatarGroup/index.d.mts +2 -2
  7. package/es/Burger/Burger.d.mts +2 -2
  8. package/es/CodeDiff/CodeDiff.d.mts +2 -2
  9. package/es/CodeDiff/PatchDiff.d.mts +2 -2
  10. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  11. package/es/Collapse/Collapse.d.mts +2 -2
  12. package/es/ConfigProvider/index.d.mts +2 -2
  13. package/es/ContextMenu/ContextMenuHost.mjs +1 -1
  14. package/es/ContextMenu/ContextMenuHost.mjs.map +1 -1
  15. package/es/CopyButton/CopyButton.d.mts +2 -2
  16. package/es/DatePicker/DatePicker.d.mts +2 -2
  17. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  18. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  19. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  20. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  21. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  22. package/es/Drawer/Drawer.d.mts +2 -2
  23. package/es/Dropdown/Dropdown.d.mts +2 -2
  24. package/es/DropdownMenu/DropdownMenu.d.mts +2 -2
  25. package/es/DropdownMenu/atoms.d.mts +18 -18
  26. package/es/EditableText/EditableText.d.mts +2 -2
  27. package/es/EditorSlashMenu/atoms.d.mts +13 -13
  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/Freeze/Freeze.d.mts +2 -2
  37. package/es/GuideCard/GuideCard.d.mts +2 -2
  38. package/es/Header/Header.d.mts +2 -2
  39. package/es/Highlighter/Highlighter.d.mts +2 -2
  40. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  41. package/es/Highlighter/SyntaxHighlighter/style.mjs +6 -12
  42. package/es/Highlighter/SyntaxHighlighter/style.mjs.map +1 -1
  43. package/es/Hotkey/Hotkey.d.mts +2 -2
  44. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  45. package/es/Icon/Icon.d.mts +2 -2
  46. package/es/Icon/components/IconProvider.d.mts +3 -3
  47. package/es/Image/PreviewGroup.d.mts +2 -2
  48. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  49. package/es/Input/Input.d.mts +2 -2
  50. package/es/Input/InputOPT.d.mts +2 -2
  51. package/es/Input/InputPassword.d.mts +2 -2
  52. package/es/Input/TextArea.d.mts +2 -2
  53. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  54. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  55. package/es/Layout/components/LayoutMain.d.mts +2 -2
  56. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  57. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  58. package/es/Layout/components/LayoutToc.d.mts +2 -2
  59. package/es/List/ListItem/index.d.mts +2 -2
  60. package/es/LobeSelect/LobeSelect.d.mts +2 -2
  61. package/es/LobeSelect/LobeSelect.mjs +50 -45
  62. package/es/LobeSelect/LobeSelect.mjs.map +1 -1
  63. package/es/LobeSelect/atoms.d.mts +19 -19
  64. package/es/LobeSwitch/LobeSwitch.d.mts +2 -2
  65. package/es/LobeSwitch/atoms.d.mts +4 -4
  66. package/es/Markdown/Markdown.d.mts +2 -2
  67. package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs +5 -1
  68. package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs.map +1 -1
  69. package/es/Markdown/SyntaxMarkdown/style.mjs +6 -12
  70. package/es/Markdown/SyntaxMarkdown/style.mjs.map +1 -1
  71. package/es/Markdown/Typography.d.mts +2 -2
  72. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  73. package/es/Markdown/plugins/rehypeStreamAnimated.mjs +1 -1
  74. package/es/Markdown/plugins/rehypeStreamAnimated.mjs.map +1 -1
  75. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  76. package/es/Menu/Menu.d.mts +2 -2
  77. package/es/Mermaid/Mermaid.d.mts +2 -2
  78. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  79. package/es/Modal/Modal.d.mts +2 -2
  80. package/es/Modal/ModalProvider.d.mts +2 -2
  81. package/es/Modal/imperative.d.mts +2 -2
  82. package/es/MotionProvider/index.d.mts +2 -2
  83. package/es/Popover/ArrowIcon.d.mts +2 -2
  84. package/es/Popover/atoms.d.mts +9 -9
  85. package/es/Popover/context.d.mts +2 -2
  86. package/es/ScrollArea/atoms.d.mts +7 -7
  87. package/es/SearchBar/SearchBar.d.mts +2 -2
  88. package/es/Segmented/Segmented.d.mts +2 -2
  89. package/es/Select/Select.d.mts +2 -2
  90. package/es/SideNav/SideNav.d.mts +2 -2
  91. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  92. package/es/SortableList/components/DragHandle.d.mts +2 -2
  93. package/es/SortableList/components/SortableItem.d.mts +2 -2
  94. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  95. package/es/Toast/imperative.d.mts +3 -3
  96. package/es/Toast/imperative.mjs +10 -8
  97. package/es/Toast/imperative.mjs.map +1 -1
  98. package/es/Toc/Toc.d.mts +2 -2
  99. package/es/Video/index.d.mts +2 -2
  100. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  101. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  102. package/es/awesome/Features/Features.d.mts +2 -2
  103. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  104. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  105. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  106. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  107. package/es/awesome/Hero/Hero.d.mts +2 -2
  108. package/es/awesome/Spline/Spine.d.mts +2 -2
  109. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  110. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  111. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  112. package/es/brand/LobeChat/index.d.mts +2 -2
  113. package/es/brand/LobeHub/index.d.mts +2 -2
  114. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  115. package/es/brand/LogoThree/index.d.mts +2 -2
  116. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  117. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  118. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  119. package/es/chat/ChatList/ChatList.d.mts +2 -2
  120. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  121. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  122. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  123. package/es/chat/MessageModal/MessageModal.d.mts +2 -2
  124. package/es/color/ColorScales/index.d.mts +2 -2
  125. package/es/color/CssVar/index.d.mts +2 -2
  126. package/es/i18n/context.d.mts +2 -2
  127. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  128. package/es/icons/lucideExtra/CreateBotIcon.d.mts +2 -2
  129. package/es/icons/lucideExtra/DiscordIcon.d.mts +2 -2
  130. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +2 -2
  131. package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
  132. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  133. package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
  134. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  135. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  136. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  137. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  138. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
  139. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  140. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +2 -2
  141. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  142. package/es/mdx/Mdx/index.d.mts +2 -2
  143. package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
  144. package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
  145. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  146. package/es/storybook/StoryBook/index.d.mts +2 -2
  147. package/es/styles/animations.mjs +17 -0
  148. package/es/styles/animations.mjs.map +1 -0
  149. package/package.json +2 -1
@@ -1,8 +1,8 @@
1
1
  import { FormGroupProps } from "../type.mjs";
2
- import * as react61 from "react";
2
+ import * as react37 from "react";
3
3
 
4
4
  //#region src/Form/components/FormGroup.d.ts
5
- declare const FormGroup: react61.NamedExoticComponent<FormGroupProps>;
5
+ declare const FormGroup: react37.NamedExoticComponent<FormGroupProps>;
6
6
  //#endregion
7
7
  export { FormGroup };
8
8
  //# sourceMappingURL=FormGroup.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { FormItemProps } from "../type.mjs";
2
- import * as react62 from "react";
2
+ import * as react39 from "react";
3
3
 
4
4
  //#region src/Form/components/FormItem.d.ts
5
- declare const FormItem: react62.NamedExoticComponent<FormItemProps>;
5
+ declare const FormItem: react39.NamedExoticComponent<FormItemProps>;
6
6
  //#endregion
7
7
  export { FormItem };
8
8
  //# sourceMappingURL=FormItem.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { FormSubmitFooterProps } from "../type.mjs";
2
- import * as react63 from "react";
2
+ import * as react38 from "react";
3
3
 
4
4
  //#region src/Form/components/FormSubmitFooter.d.ts
5
- declare const FormSubmitFooter: react63.NamedExoticComponent<FormSubmitFooterProps>;
5
+ declare const FormSubmitFooter: react38.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 react59 from "react";
2
+ import * as react14 from "react";
3
3
 
4
4
  //#region src/FormModal/FormModal.d.ts
5
- declare const FormModal: react59.NamedExoticComponent<FormModalProps>;
5
+ declare const FormModal: react14.NamedExoticComponent<FormModalProps>;
6
6
  //#endregion
7
7
  export { FormModal };
8
8
  //# sourceMappingURL=FormModal.d.mts.map
@@ -1,12 +1,12 @@
1
1
  import { FreezeProps } from "./type.mjs";
2
- import * as react_jsx_runtime60 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/Freeze/Freeze.d.ts
5
5
  declare const Freeze: {
6
6
  ({
7
7
  frozen,
8
8
  children
9
- }: FreezeProps): react_jsx_runtime60.JSX.Element;
9
+ }: FreezeProps): react_jsx_runtime0.JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { GuideCardProps } from "./type.mjs";
2
- import * as react150 from "react";
2
+ import * as react149 from "react";
3
3
 
4
4
  //#region src/GuideCard/GuideCard.d.ts
5
- declare const GuideCard: react150.NamedExoticComponent<GuideCardProps>;
5
+ declare const GuideCard: react149.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 react60 from "react";
2
+ import * as react8 from "react";
3
3
 
4
4
  //#region src/Header/Header.d.ts
5
- declare const Header: react60.NamedExoticComponent<HeaderProps>;
5
+ declare const Header: react8.NamedExoticComponent<HeaderProps>;
6
6
  //#endregion
7
7
  export { Header };
8
8
  //# sourceMappingURL=Header.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HighlighterProps } from "./type.mjs";
2
- import * as react57 from "react";
2
+ import * as react9 from "react";
3
3
 
4
4
  //#region src/Highlighter/Highlighter.d.ts
5
- declare const Highlighter: react57.NamedExoticComponent<HighlighterProps>;
5
+ declare const Highlighter: react9.NamedExoticComponent<HighlighterProps>;
6
6
  //#endregion
7
7
  export { Highlighter };
8
8
  //# sourceMappingURL=Highlighter.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SyntaxHighlighterProps } from "../type.mjs";
2
- import * as react58 from "react";
2
+ import * as react10 from "react";
3
3
 
4
4
  //#region src/Highlighter/SyntaxHighlighter/index.d.ts
5
- declare const SyntaxHighlighter: react58.NamedExoticComponent<SyntaxHighlighterProps>;
5
+ declare const SyntaxHighlighter: react10.NamedExoticComponent<SyntaxHighlighterProps>;
6
6
  //#endregion
7
7
  export { SyntaxHighlighter };
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1,23 +1,17 @@
1
- import { createStaticStyles, cx, keyframes } from "antd-style";
1
+ import { maskLeftToRight } from "../../styles/animations.mjs";
2
+ import { createStaticStyles, cx } from "antd-style";
2
3
  import { cva } from "class-variance-authority";
3
4
 
4
5
  //#region src/Highlighter/SyntaxHighlighter/style.ts
5
- const fadeIn = keyframes`
6
- 0% {
7
- opacity: 0;
8
- }
9
- 100% {
10
- opacity: 1;
11
- }
12
- `;
13
6
  const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => {
14
7
  return {
15
8
  animated: css$1`
16
- .animate-fade-in,
9
+ --lobe-markdown-stream-animation: ${maskLeftToRight} 0.5s ease-in-out forwards;
10
+
11
+ .animate-mask-left-to-right,
17
12
  span.line > span,
18
13
  code:not(:has(span.line)) {
19
- opacity: 1;
20
- animation: ${fadeIn} 1s ease-in-out;
14
+ animation: var(--lobe-markdown-stream-animation);
21
15
  }
22
16
  `,
23
17
  noBackground: css$1`
@@ -1 +1 @@
1
- {"version":3,"file":"style.mjs","names":["cssVar"],"sources":["../../../src/Highlighter/SyntaxHighlighter/style.ts"],"sourcesContent":["import { createStaticStyles, cx, keyframes } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n animated: css`\n .animate-fade-in,\n span.line > span,\n code:not(:has(span.line)) {\n opacity: 1;\n animation: ${fadeIn} 1s ease-in-out;\n }\n `,\n\n noBackground: css`\n pre {\n background: transparent !important;\n }\n `,\n\n noPadding: css`\n pre {\n padding: 0;\n }\n `,\n\n padding: css`\n pre {\n padding: 16px;\n }\n `,\n root: css`\n direction: ltr;\n margin: 0;\n padding: 0;\n text-align: start;\n\n pre {\n overflow-x: auto;\n margin: 0;\n }\n `,\n shiki: cx(\n 'ant-highlighter-highlighter-shiki',\n css`\n pre {\n user-select: none;\n\n code {\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n .line {\n user-select: text;\n\n display: block;\n\n width: calc(100% + 32px);\n margin-block: 0;\n margin-inline: -16px;\n padding-block: 0;\n padding-inline: 16px;\n }\n }\n\n &.has-focused {\n .line:not(.focused) {\n opacity: 0.5;\n }\n }\n\n .highlighted {\n background: ${cssVar.colorFillTertiary};\n\n &.warning {\n background: ${cssVar.colorWarningBg};\n }\n\n &.error {\n background: ${cssVar.colorErrorBg};\n }\n }\n\n .highlighted-word {\n padding-block: 0.1em;\n padding-inline: 0.2em;\n border: 1px solid ${cssVar.colorBorderSecondary};\n border-radius: ${cssVar.borderRadius};\n\n background: ${cssVar.colorFillTertiary};\n }\n\n .diff {\n &.remove {\n background: ${cssVar.colorErrorBg};\n\n &::before {\n content: '-';\n\n position: absolute;\n inset-inline-start: 4px;\n\n display: inline-block;\n\n color: ${cssVar.colorErrorText};\n }\n }\n\n &.add {\n background: ${cssVar.colorSuccessBg};\n\n &::before {\n content: '+';\n\n position: absolute;\n inset-inline-start: 4px;\n\n display: inline-block;\n\n color: ${cssVar.colorSuccessText};\n }\n }\n }\n }\n `,\n ),\n unshiki: css`\n color: ${cssVar.colorTextDescription};\n `,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n animated: false,\n shiki: true,\n showBackground: false,\n variant: 'borderless',\n },\n\n variants: {\n shiki: {\n false: styles.unshiki,\n true: styles.shiki,\n },\n showBackground: {\n false: styles.noBackground,\n true: null,\n },\n animated: {\n true: styles.animated,\n false: null,\n },\n variant: {\n filled: styles.padding,\n outlined: styles.padding,\n borderless: styles.noPadding,\n },\n },\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,SAAS;;;;;;;;AASxB,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,UAAU,KAAG;;;;;qBAKI,OAAO;;;EAIxB,cAAc,KAAG;;;;;EAMjB,WAAW,KAAG;;;;;EAMd,SAAS,KAAG;;;;;EAKZ,MAAM,KAAG;;;;;;;;;;;EAWT,OAAO,GACL,qCACA,KAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA6BiBA,SAAO,kBAAkB;;;4BAGvBA,SAAO,eAAe;;;;4BAItBA,SAAO,aAAa;;;;;;;gCAOhBA,SAAO,qBAAqB;6BAC/BA,SAAO,aAAa;;0BAEvBA,SAAO,kBAAkB;;;;;4BAKvBA,SAAO,aAAa;;;;;;;;;;yBAUvBA,SAAO,eAAe;;;;;4BAKnBA,SAAO,eAAe;;;;;;;;;;yBAUzBA,SAAO,iBAAiB;;;;;QAM5C;EACD,SAAS,KAAG;eACDA,SAAO,qBAAqB;;EAExC;EACD;AAEF,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB;EACf,UAAU;EACV,OAAO;EACP,gBAAgB;EAChB,SAAS;EACV;CAED,UAAU;EACR,OAAO;GACL,OAAO,OAAO;GACd,MAAM,OAAO;GACd;EACD,gBAAgB;GACd,OAAO,OAAO;GACd,MAAM;GACP;EACD,UAAU;GACR,MAAM,OAAO;GACb,OAAO;GACR;EACD,SAAS;GACP,QAAQ,OAAO;GACf,UAAU,OAAO;GACjB,YAAY,OAAO;GACpB;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"style.mjs","names":["cssVar"],"sources":["../../../src/Highlighter/SyntaxHighlighter/style.ts"],"sourcesContent":["import { createStaticStyles, cx } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { maskLeftToRight } from '@/styles/animations';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n animated: css`\n --lobe-markdown-stream-animation: ${maskLeftToRight} 0.5s ease-in-out forwards;\n\n .animate-mask-left-to-right,\n span.line > span,\n code:not(:has(span.line)) {\n animation: var(--lobe-markdown-stream-animation);\n }\n `,\n\n noBackground: css`\n pre {\n background: transparent !important;\n }\n `,\n\n noPadding: css`\n pre {\n padding: 0;\n }\n `,\n\n padding: css`\n pre {\n padding: 16px;\n }\n `,\n root: css`\n direction: ltr;\n margin: 0;\n padding: 0;\n text-align: start;\n\n pre {\n overflow-x: auto;\n margin: 0;\n }\n `,\n shiki: cx(\n 'ant-highlighter-highlighter-shiki',\n css`\n pre {\n user-select: none;\n\n code {\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n .line {\n user-select: text;\n\n display: block;\n\n width: calc(100% + 32px);\n margin-block: 0;\n margin-inline: -16px;\n padding-block: 0;\n padding-inline: 16px;\n }\n }\n\n &.has-focused {\n .line:not(.focused) {\n opacity: 0.5;\n }\n }\n\n .highlighted {\n background: ${cssVar.colorFillTertiary};\n\n &.warning {\n background: ${cssVar.colorWarningBg};\n }\n\n &.error {\n background: ${cssVar.colorErrorBg};\n }\n }\n\n .highlighted-word {\n padding-block: 0.1em;\n padding-inline: 0.2em;\n border: 1px solid ${cssVar.colorBorderSecondary};\n border-radius: ${cssVar.borderRadius};\n\n background: ${cssVar.colorFillTertiary};\n }\n\n .diff {\n &.remove {\n background: ${cssVar.colorErrorBg};\n\n &::before {\n content: '-';\n\n position: absolute;\n inset-inline-start: 4px;\n\n display: inline-block;\n\n color: ${cssVar.colorErrorText};\n }\n }\n\n &.add {\n background: ${cssVar.colorSuccessBg};\n\n &::before {\n content: '+';\n\n position: absolute;\n inset-inline-start: 4px;\n\n display: inline-block;\n\n color: ${cssVar.colorSuccessText};\n }\n }\n }\n }\n `,\n ),\n unshiki: css`\n color: ${cssVar.colorTextDescription};\n `,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n animated: false,\n shiki: true,\n showBackground: false,\n variant: 'borderless',\n },\n\n variants: {\n shiki: {\n false: styles.unshiki,\n true: styles.shiki,\n },\n showBackground: {\n false: styles.noBackground,\n true: null,\n },\n animated: {\n true: styles.animated,\n false: null,\n },\n variant: {\n filled: styles.padding,\n outlined: styles.padding,\n borderless: styles.noPadding,\n },\n },\n});\n"],"mappings":";;;;;AAKA,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,UAAU,KAAG;0CACyB,gBAAgB;;;;;;;;EAStD,cAAc,KAAG;;;;;EAMjB,WAAW,KAAG;;;;;EAMd,SAAS,KAAG;;;;;EAKZ,MAAM,KAAG;;;;;;;;;;;EAWT,OAAO,GACL,qCACA,KAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA6BiBA,SAAO,kBAAkB;;;4BAGvBA,SAAO,eAAe;;;;4BAItBA,SAAO,aAAa;;;;;;;gCAOhBA,SAAO,qBAAqB;6BAC/BA,SAAO,aAAa;;0BAEvBA,SAAO,kBAAkB;;;;;4BAKvBA,SAAO,aAAa;;;;;;;;;;yBAUvBA,SAAO,eAAe;;;;;4BAKnBA,SAAO,eAAe;;;;;;;;;;yBAUzBA,SAAO,iBAAiB;;;;;QAM5C;EACD,SAAS,KAAG;eACDA,SAAO,qBAAqB;;EAExC;EACD;AAEF,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB;EACf,UAAU;EACV,OAAO;EACP,gBAAgB;EAChB,SAAS;EACV;CAED,UAAU;EACR,OAAO;GACL,OAAO,OAAO;GACd,MAAM,OAAO;GACd;EACD,gBAAgB;GACd,OAAO,OAAO;GACd,MAAM;GACP;EACD,UAAU;GACR,MAAM,OAAO;GACb,OAAO;GACR;EACD,SAAS;GACP,QAAQ,OAAO;GACf,UAAU,OAAO;GACjB,YAAY,OAAO;GACpB;EACF;CACF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { HotkeyProps } from "./type.mjs";
2
- import * as react56 from "react";
2
+ import * as react7 from "react";
3
3
 
4
4
  //#region src/Hotkey/Hotkey.d.ts
5
- declare const Hotkey: react56.NamedExoticComponent<HotkeyProps>;
5
+ declare const Hotkey: react7.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 react55 from "react";
2
+ import * as react74 from "react";
3
3
 
4
4
  //#region src/HotkeyInput/HotkeyInput.d.ts
5
- declare const HotkeyInput: react55.NamedExoticComponent<HotkeyInputProps>;
5
+ declare const HotkeyInput: react74.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 react54 from "react";
2
+ import * as react75 from "react";
3
3
 
4
4
  //#region src/Icon/Icon.d.ts
5
- declare const Icon: react54.NamedExoticComponent<IconProps>;
5
+ declare const Icon: react75.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 react52 from "react";
2
+ import * as react76 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: react52.Context<IconContentConfig>;
8
- declare const IconProvider: react52.NamedExoticComponent<{
7
+ declare const IconContext: react76.Context<IconContentConfig>;
8
+ declare const IconProvider: react76.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 react45 from "react";
2
+ import * as react73 from "react";
3
3
 
4
4
  //#region src/Image/PreviewGroup.d.ts
5
- declare const PreviewGroup: react45.NamedExoticComponent<PreviewGroupProps>;
5
+ declare const PreviewGroup: react73.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 react126 from "react";
2
+ import * as react125 from "react";
3
3
 
4
4
  //#region src/ImageSelect/ImageSelect.d.ts
5
- declare const ImageSelect: react126.NamedExoticComponent<ImageSelectProps>;
5
+ declare const ImageSelect: react125.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 react152 from "react";
2
+ import * as react150 from "react";
3
3
 
4
4
  //#region src/Input/Input.d.ts
5
- declare const Input: react152.NamedExoticComponent<InputProps>;
5
+ declare const Input: react150.NamedExoticComponent<InputProps>;
6
6
  //#endregion
7
7
  export { Input };
8
8
  //# sourceMappingURL=Input.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputOPTProps } from "./type.mjs";
2
- import * as react153 from "react";
2
+ import * as react152 from "react";
3
3
 
4
4
  //#region src/Input/InputOPT.d.ts
5
- declare const InputOPT: react153.NamedExoticComponent<InputOPTProps>;
5
+ declare const InputOPT: react152.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 react154 from "react";
2
+ import * as react153 from "react";
3
3
 
4
4
  //#region src/Input/InputPassword.d.ts
5
- declare const InputPassword: react154.NamedExoticComponent<InputPasswordProps>;
5
+ declare const InputPassword: react153.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 react155 from "react";
2
+ import * as react154 from "react";
3
3
 
4
4
  //#region src/Input/TextArea.d.ts
5
- declare const TextArea: react155.NamedExoticComponent<TextAreaProps>;
5
+ declare const TextArea: react154.NamedExoticComponent<TextAreaProps>;
6
6
  //#endregion
7
7
  export { TextArea };
8
8
  //# sourceMappingURL=TextArea.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
2
  import "../../index.mjs";
3
- import * as react47 from "react";
3
+ import * as react0 from "react";
4
4
 
5
5
  //#region src/Layout/components/LayoutFooter.d.ts
6
- declare const LayoutFooter: react47.NamedExoticComponent<DivProps>;
6
+ declare const LayoutFooter: react0.NamedExoticComponent<DivProps>;
7
7
  //#endregion
8
8
  export { LayoutFooter };
9
9
  //# sourceMappingURL=LayoutFooter.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutHeaderProps } from "../type.mjs";
2
- import * as react49 from "react";
2
+ import * as react2 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutHeader.d.ts
5
- declare const LayoutHeader: react49.NamedExoticComponent<LayoutHeaderProps>;
5
+ declare const LayoutHeader: react2.NamedExoticComponent<LayoutHeaderProps>;
6
6
  //#endregion
7
7
  export { LayoutHeader };
8
8
  //# sourceMappingURL=LayoutHeader.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
2
  import "../../index.mjs";
3
- import * as react46 from "react";
3
+ import * as react1 from "react";
4
4
 
5
5
  //#region src/Layout/components/LayoutMain.d.ts
6
- declare const LayoutMain: react46.NamedExoticComponent<DivProps>;
6
+ declare const LayoutMain: react1.NamedExoticComponent<DivProps>;
7
7
  //#endregion
8
8
  export { LayoutMain };
9
9
  //# sourceMappingURL=LayoutMain.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutSidebarProps } from "../type.mjs";
2
- import * as react50 from "react";
2
+ import * as react3 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutSidebar.d.ts
5
- declare const LayoutSidebar: react50.NamedExoticComponent<LayoutSidebarProps>;
5
+ declare const LayoutSidebar: react3.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 react51 from "react";
2
+ import * as react4 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutSidebarInner.d.ts
5
- declare const LayoutSidebarInner: react51.NamedExoticComponent<LayoutSidebarInnerProps>;
5
+ declare const LayoutSidebarInner: react4.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 react48 from "react";
2
+ import * as react5 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutToc.d.ts
5
- declare const LayoutToc: react48.NamedExoticComponent<LayoutTocProps>;
5
+ declare const LayoutToc: react5.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 react44 from "react";
2
+ import * as react6 from "react";
3
3
 
4
4
  //#region src/List/ListItem/index.d.ts
5
- declare const ListItem: react44.NamedExoticComponent<ListItemProps>;
5
+ declare const ListItem: react6.NamedExoticComponent<ListItemProps>;
6
6
  //#endregion
7
7
  export { ListItem };
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LobeSelectProps } from "./type.mjs";
2
- import * as react41 from "react";
2
+ import * as react29 from "react";
3
3
 
4
4
  //#region src/LobeSelect/LobeSelect.d.ts
5
- declare const LobeSelect: react41.NamedExoticComponent<LobeSelectProps<any>>;
5
+ declare const LobeSelect: react29.NamedExoticComponent<LobeSelectProps<any>>;
6
6
  //#endregion
7
7
  export { LobeSelect };
8
8
  //# sourceMappingURL=LobeSelect.d.mts.map
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import { useAppElement } from "../ThemeProvider/AppElementContext.mjs";
3
4
  import Icon_default from "../Icon/Icon.mjs";
4
5
  import { styles } from "../Menu/sharedStyle.mjs";
5
6
  import { styles as styles$1, triggerVariants } from "./style.mjs";
@@ -453,6 +454,7 @@ const LobeSelect = memo(({ allowClear, autoFocus, className, classNames, default
453
454
  })]
454
455
  }, `${String(item.value)}-${currentIndex}`);
455
456
  });
457
+ const appElement = useAppElement();
456
458
  return /* @__PURE__ */ jsxs(Select.Root, {
457
459
  disabled,
458
460
  id,
@@ -495,53 +497,56 @@ const LobeSelect = memo(({ allowClear, autoFocus, className, classNames, default
495
497
  })]
496
498
  })
497
499
  ]
498
- }), /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, {
499
- align: "start",
500
- alignItemWithTrigger: isItemAligned,
501
- className: styles$1.positioner,
502
- side: "bottom",
503
- sideOffset: 6,
504
- children: /* @__PURE__ */ jsxs(Select.Popup, {
505
- style: popupStyle,
506
- className: cx(styles.popup, styles$1.popup, popupClassName, classNames?.popup, classNames?.dropdown),
507
- children: [shouldShowSearch && /* @__PURE__ */ jsx("div", {
508
- className: cx(styles$1.search, classNames?.search),
509
- children: /* @__PURE__ */ jsx("input", {
510
- className: styles$1.searchInput,
511
- placeholder: typeof placeholder === "string" ? placeholder : void 0,
512
- value: searchValue,
513
- onChange: handleSearchChange,
514
- onKeyDown: handleSearchKeyDown
515
- })
516
- }), (() => {
517
- const content = filteredOptions.length > 0 ? renderOptions(filteredOptions) : /* @__PURE__ */ jsx("div", {
518
- className: cx(styles.item, styles.empty, styles$1.empty, classNames?.empty),
519
- children: "No data"
520
- });
521
- if (!virtual || filteredOptions.length === 0) return /* @__PURE__ */ jsx(Select.List, {
522
- className: cx(styles$1.list, classNames?.list),
523
- "data-virtual": virtual || void 0,
524
- children: content
525
- });
526
- return /* @__PURE__ */ jsx(Select.List, {
527
- className: cx(styles$1.list, classNames?.list),
528
- "data-virtual": virtual || void 0,
529
- ref: listRef,
530
- style: virtualListStyle,
531
- tabIndex: virtual ? -1 : void 0,
532
- onPointerDown: virtual ? markPointerScroll : void 0,
533
- onScroll: virtual ? handleListScroll : void 0,
534
- onTouchMove: virtual ? markPointerScroll : void 0,
535
- onWheel: virtual ? markPointerScroll : void 0,
536
- children: /* @__PURE__ */ jsx(Virtualizer, {
537
- itemSize: listItemHeight,
538
- keepMounted: keepMountedIndices,
539
- children: content
500
+ }), /* @__PURE__ */ jsx(Select.Portal, {
501
+ container: appElement,
502
+ children: /* @__PURE__ */ jsx(Select.Positioner, {
503
+ align: "start",
504
+ alignItemWithTrigger: isItemAligned,
505
+ className: styles$1.positioner,
506
+ side: "bottom",
507
+ sideOffset: 6,
508
+ children: /* @__PURE__ */ jsxs(Select.Popup, {
509
+ style: popupStyle,
510
+ className: cx(styles.popup, styles$1.popup, popupClassName, classNames?.popup, classNames?.dropdown),
511
+ children: [shouldShowSearch && /* @__PURE__ */ jsx("div", {
512
+ className: cx(styles$1.search, classNames?.search),
513
+ children: /* @__PURE__ */ jsx("input", {
514
+ className: styles$1.searchInput,
515
+ placeholder: typeof placeholder === "string" ? placeholder : void 0,
516
+ value: searchValue,
517
+ onChange: handleSearchChange,
518
+ onKeyDown: handleSearchKeyDown
540
519
  })
541
- });
542
- })()]
520
+ }), (() => {
521
+ const content = filteredOptions.length > 0 ? renderOptions(filteredOptions) : /* @__PURE__ */ jsx("div", {
522
+ className: cx(styles.item, styles.empty, styles$1.empty, classNames?.empty),
523
+ children: "No data"
524
+ });
525
+ if (!virtual || filteredOptions.length === 0) return /* @__PURE__ */ jsx(Select.List, {
526
+ className: cx(styles$1.list, classNames?.list),
527
+ "data-virtual": virtual || void 0,
528
+ children: content
529
+ });
530
+ return /* @__PURE__ */ jsx(Select.List, {
531
+ className: cx(styles$1.list, classNames?.list),
532
+ "data-virtual": virtual || void 0,
533
+ ref: listRef,
534
+ style: virtualListStyle,
535
+ tabIndex: virtual ? -1 : void 0,
536
+ onPointerDown: virtual ? markPointerScroll : void 0,
537
+ onScroll: virtual ? handleListScroll : void 0,
538
+ onTouchMove: virtual ? markPointerScroll : void 0,
539
+ onWheel: virtual ? markPointerScroll : void 0,
540
+ children: /* @__PURE__ */ jsx(Virtualizer, {
541
+ itemSize: listItemHeight,
542
+ keepMounted: keepMountedIndices,
543
+ children: content
544
+ })
545
+ });
546
+ })()]
547
+ })
543
548
  })
544
- }) })]
549
+ })]
545
550
  });
546
551
  });
547
552
  LobeSelect.displayName = "LobeSelect";