@lobehub/ui 4.38.3 → 5.0.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 (277) 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/ActionIconGroup/ActionIconGroup.mjs +1 -1
  5. package/es/ActionIconGroup/type.d.mts +1 -1
  6. package/es/Alert/Alert.d.mts +2 -2
  7. package/es/AutoComplete/Select.d.mts +2 -2
  8. package/es/Avatar/AvatarGroup/index.d.mts +2 -2
  9. package/es/Burger/Burger.d.mts +2 -2
  10. package/es/CodeDiff/CodeDiff.d.mts +2 -2
  11. package/es/CodeDiff/PatchDiff.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/ConfigProvider/index.d.mts +2 -2
  15. package/es/ContextMenu/index.d.mts +6 -7
  16. package/es/ContextMenu/index.mjs +3 -3
  17. package/es/CopyButton/CopyButton.d.mts +2 -2
  18. package/es/DatePicker/DatePicker.d.mts +2 -2
  19. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  20. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  21. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  22. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  23. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  24. package/es/Drawer/Drawer.d.mts +2 -2
  25. package/es/Dropdown/Dropdown.d.mts +2 -2
  26. package/es/DropdownMenu/index.d.mts +6 -5
  27. package/es/DropdownMenu/index.mjs +4 -4
  28. package/es/EditableText/EditableText.d.mts +2 -2
  29. package/es/EditorSlashMenu/atoms.d.mts +13 -13
  30. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  31. package/es/Flex/FlexBasic.d.mts +2 -2
  32. package/es/FontLoader/index.d.mts +2 -2
  33. package/es/Footer/Footer.d.mts +2 -2
  34. package/es/Form/components/FormGroup.d.mts +2 -2
  35. package/es/Form/components/FormItem.d.mts +2 -2
  36. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  37. package/es/FormModal/FormModal.d.mts +2 -2
  38. package/es/Freeze/Freeze.d.mts +2 -2
  39. package/es/GuideCard/GuideCard.d.mts +2 -2
  40. package/es/Header/Header.d.mts +2 -2
  41. package/es/Highlighter/Highlighter.d.mts +2 -2
  42. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  43. package/es/Highlighter/SyntaxHighlighter/style.mjs +4 -5
  44. package/es/Highlighter/SyntaxHighlighter/style.mjs.map +1 -1
  45. package/es/Hotkey/Hotkey.d.mts +2 -2
  46. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  47. package/es/Icon/Icon.d.mts +2 -2
  48. package/es/Icon/components/IconProvider.d.mts +3 -3
  49. package/es/Image/PreviewGroup.d.mts +2 -2
  50. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  51. package/es/Input/Input.d.mts +2 -2
  52. package/es/Input/InputNumber.d.mts +2 -2
  53. package/es/Input/InputOPT.d.mts +2 -2
  54. package/es/Input/InputPassword.d.mts +2 -2
  55. package/es/Input/TextArea.d.mts +2 -2
  56. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  57. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  58. package/es/Layout/components/LayoutMain.d.mts +2 -2
  59. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  60. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  61. package/es/Layout/components/LayoutToc.d.mts +2 -2
  62. package/es/List/ListItem/index.d.mts +2 -2
  63. package/es/Markdown/Markdown.d.mts +2 -2
  64. package/es/Markdown/SyntaxMarkdown/style.mjs +4 -5
  65. package/es/Markdown/SyntaxMarkdown/style.mjs.map +1 -1
  66. package/es/Markdown/Typography.d.mts +2 -2
  67. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  68. package/es/Markdown/plugins/rehypeStreamAnimated.mjs +1 -1
  69. package/es/Markdown/plugins/rehypeStreamAnimated.mjs.map +1 -1
  70. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  71. package/es/Menu/Menu.d.mts +2 -2
  72. package/es/Mermaid/Mermaid.d.mts +2 -2
  73. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  74. package/es/Modal/Modal.d.mts +2 -2
  75. package/es/Modal/ModalProvider.d.mts +2 -2
  76. package/es/Modal/imperative.d.mts +2 -2
  77. package/es/MotionProvider/index.d.mts +2 -2
  78. package/es/Popover/ArrowIcon.d.mts +2 -2
  79. package/es/Popover/atoms.d.mts +9 -9
  80. package/es/Popover/context.d.mts +2 -2
  81. package/es/ScrollArea/index.d.mts +5 -4
  82. package/es/ScrollArea/index.mjs +2 -2
  83. package/es/SearchBar/SearchBar.d.mts +2 -2
  84. package/es/Segmented/Segmented.d.mts +2 -2
  85. package/es/Select/Select.d.mts +3 -3
  86. package/es/Select/Select.mjs +1 -1
  87. package/es/Select/Select.mjs.map +1 -1
  88. package/es/SideNav/SideNav.d.mts +2 -2
  89. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  90. package/es/SortableList/components/DragHandle.d.mts +2 -2
  91. package/es/SortableList/components/SortableItem.d.mts +2 -2
  92. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  93. package/es/ThemeSwitch/ThemeSwitch.mjs +1 -1
  94. package/es/Toast/index.d.mts +4 -3
  95. package/es/Toast/index.mjs +1 -1
  96. package/es/Toc/Toc.d.mts +2 -2
  97. package/es/Video/index.d.mts +2 -2
  98. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  99. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  100. package/es/awesome/Features/Features.d.mts +2 -2
  101. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  102. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  103. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  104. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  105. package/es/awesome/Hero/Hero.d.mts +2 -2
  106. package/es/awesome/Spline/Spine.d.mts +2 -2
  107. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  108. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  109. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  110. package/es/base-ui/ContextMenu/ContextMenuHost.d.mts +8 -0
  111. package/es/{ContextMenu → base-ui/ContextMenu}/ContextMenuHost.mjs +6 -6
  112. package/es/base-ui/ContextMenu/ContextMenuHost.mjs.map +1 -0
  113. package/es/{ContextMenu → base-ui/ContextMenu}/ContextMenuTrigger.d.mts +1 -1
  114. package/es/{ContextMenu → base-ui/ContextMenu}/ContextMenuTrigger.mjs +2 -2
  115. package/es/base-ui/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  116. package/es/base-ui/ContextMenu/index.d.mts +7 -0
  117. package/es/base-ui/ContextMenu/renderItems.d.mts +4 -0
  118. package/es/{ContextMenu → base-ui/ContextMenu}/renderItems.mjs +7 -7
  119. package/es/base-ui/ContextMenu/renderItems.mjs.map +1 -0
  120. package/es/{ContextMenu → base-ui/ContextMenu}/store.d.mts +3 -3
  121. package/es/{ContextMenu → base-ui/ContextMenu}/store.mjs +1 -1
  122. package/es/base-ui/ContextMenu/store.mjs.map +1 -0
  123. package/es/base-ui/ContextMenu/type.d.mts +12 -0
  124. package/es/base-ui/DropdownMenu/DropdownMenu.d.mts +8 -0
  125. package/es/{DropdownMenu → base-ui/DropdownMenu}/DropdownMenu.mjs +3 -3
  126. package/es/base-ui/DropdownMenu/DropdownMenu.mjs.map +1 -0
  127. package/es/{DropdownMenu → base-ui/DropdownMenu}/atoms.d.mts +19 -19
  128. package/es/{DropdownMenu → base-ui/DropdownMenu}/atoms.mjs +7 -7
  129. package/es/base-ui/DropdownMenu/atoms.mjs.map +1 -0
  130. package/es/base-ui/DropdownMenu/index.d.mts +5 -0
  131. package/es/{DropdownMenu → base-ui/DropdownMenu}/renderItems.d.mts +3 -3
  132. package/es/{DropdownMenu → base-ui/DropdownMenu}/renderItems.mjs +3 -3
  133. package/es/base-ui/DropdownMenu/renderItems.mjs.map +1 -0
  134. package/es/{DropdownMenu → base-ui/DropdownMenu}/type.d.mts +9 -9
  135. package/es/{ScrollArea → base-ui/ScrollArea}/ScrollArea.d.mts +1 -1
  136. package/es/{ScrollArea → base-ui/ScrollArea}/ScrollArea.mjs +1 -1
  137. package/es/base-ui/ScrollArea/ScrollArea.mjs.map +1 -0
  138. package/es/{ScrollArea → base-ui/ScrollArea}/atoms.d.mts +8 -8
  139. package/es/{ScrollArea → base-ui/ScrollArea}/atoms.mjs +1 -1
  140. package/es/base-ui/ScrollArea/atoms.mjs.map +1 -0
  141. package/es/{ScrollArea → base-ui/ScrollArea}/globalStyle.mjs +1 -1
  142. package/es/base-ui/ScrollArea/globalStyle.mjs.map +1 -0
  143. package/es/base-ui/ScrollArea/index.d.mts +3 -0
  144. package/es/{ScrollArea → base-ui/ScrollArea}/style.mjs +1 -1
  145. package/es/base-ui/ScrollArea/style.mjs.map +1 -0
  146. package/es/{ScrollArea → base-ui/ScrollArea}/type.d.mts +1 -1
  147. package/es/base-ui/Select/Select.d.mts +8 -0
  148. package/es/{LobeSelect/LobeSelect.mjs → base-ui/Select/Select.mjs} +9 -9
  149. package/es/base-ui/Select/Select.mjs.map +1 -0
  150. package/es/base-ui/Select/atoms.d.mts +155 -0
  151. package/es/{LobeSelect → base-ui/Select}/atoms.mjs +38 -38
  152. package/es/base-ui/Select/atoms.mjs.map +1 -0
  153. package/es/base-ui/Select/index.d.mts +3 -0
  154. package/es/{LobeSelect → base-ui/Select}/style.mjs +2 -2
  155. package/es/base-ui/Select/style.mjs.map +1 -0
  156. package/es/{LobeSelect → base-ui/Select}/type.d.mts +24 -24
  157. package/es/base-ui/Switch/Switch.d.mts +8 -0
  158. package/es/{LobeSwitch/LobeSwitch.mjs → base-ui/Switch/Switch.mjs} +12 -12
  159. package/es/base-ui/Switch/Switch.mjs.map +1 -0
  160. package/es/base-ui/Switch/atoms.d.mts +56 -0
  161. package/es/{LobeSwitch → base-ui/Switch}/atoms.mjs +16 -16
  162. package/es/base-ui/Switch/atoms.mjs.map +1 -0
  163. package/es/base-ui/Switch/index.d.mts +4 -0
  164. package/es/{LobeSwitch → base-ui/Switch}/style.d.mts +1 -1
  165. package/es/{LobeSwitch → base-ui/Switch}/style.mjs +4 -4
  166. package/es/base-ui/Switch/style.mjs.map +1 -0
  167. package/es/{LobeSwitch → base-ui/Switch}/type.d.mts +21 -21
  168. package/es/{Toast → base-ui/Toast}/Toast.mjs +2 -2
  169. package/es/base-ui/Toast/Toast.mjs.map +1 -0
  170. package/es/{Toast → base-ui/Toast}/context.mjs +1 -1
  171. package/es/base-ui/Toast/context.mjs.map +1 -0
  172. package/es/{Toast → base-ui/Toast}/imperative.d.mts +3 -3
  173. package/es/{Toast → base-ui/Toast}/imperative.mjs +3 -3
  174. package/es/base-ui/Toast/imperative.mjs.map +1 -0
  175. package/es/base-ui/Toast/index.d.mts +2 -0
  176. package/es/{Toast → base-ui/Toast}/style.mjs +1 -1
  177. package/es/base-ui/Toast/style.mjs.map +1 -0
  178. package/es/{Toast → base-ui/Toast}/type.d.mts +3 -3
  179. package/es/base-ui/index.d.mts +28 -0
  180. package/es/base-ui/index.mjs +16 -0
  181. package/es/brand/LobeChat/index.d.mts +2 -2
  182. package/es/brand/LobeHub/index.d.mts +2 -2
  183. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  184. package/es/brand/LogoThree/index.d.mts +2 -2
  185. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  186. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  187. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  188. package/es/chat/ChatList/ChatList.d.mts +2 -2
  189. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  190. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  191. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  192. package/es/chat/MessageModal/MessageModal.d.mts +2 -2
  193. package/es/color/ColorScales/index.d.mts +2 -2
  194. package/es/color/CssVar/index.d.mts +2 -2
  195. package/es/hooks/useNativeButton.mjs +2 -2
  196. package/es/hooks/useNativeButton.mjs.map +1 -1
  197. package/es/i18n/context.d.mts +2 -2
  198. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  199. package/es/icons/lucideExtra/CreateBotIcon.d.mts +3 -3
  200. package/es/icons/lucideExtra/DiscordIcon.d.mts +3 -3
  201. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +2 -2
  202. package/es/icons/lucideExtra/GroupBotIcon.d.mts +2 -2
  203. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  204. package/es/icons/lucideExtra/LeftClickIcon.d.mts +2 -2
  205. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  206. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  207. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  208. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  209. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
  210. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  211. package/es/icons/lucideExtra/SkillsIcon.d.mts +3 -3
  212. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +3 -3
  213. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  214. package/es/index.d.mts +15 -24
  215. package/es/index.mjs +11 -16
  216. package/es/mdx/Mdx/index.d.mts +2 -2
  217. package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
  218. package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
  219. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  220. package/es/storybook/StoryBook/index.d.mts +2 -2
  221. package/es/styles/animations.mjs +8 -10
  222. package/es/styles/animations.mjs.map +1 -1
  223. package/package.json +46 -31
  224. package/awesome.d.ts +0 -1
  225. package/awesome.js +0 -1
  226. package/brand.d.ts +0 -1
  227. package/brand.js +0 -1
  228. package/chat.d.ts +0 -1
  229. package/chat.js +0 -1
  230. package/color.d.ts +0 -1
  231. package/color.js +0 -1
  232. package/es/ContextMenu/ContextMenuHost.d.mts +0 -8
  233. package/es/ContextMenu/ContextMenuHost.mjs.map +0 -1
  234. package/es/ContextMenu/ContextMenuTrigger.mjs.map +0 -1
  235. package/es/ContextMenu/renderItems.d.mts +0 -4
  236. package/es/ContextMenu/renderItems.mjs.map +0 -1
  237. package/es/ContextMenu/store.mjs.map +0 -1
  238. package/es/ContextMenu/type.d.mts +0 -12
  239. package/es/DropdownMenu/DropdownMenu.d.mts +0 -8
  240. package/es/DropdownMenu/DropdownMenu.mjs.map +0 -1
  241. package/es/DropdownMenu/atoms.mjs.map +0 -1
  242. package/es/DropdownMenu/renderItems.mjs.map +0 -1
  243. package/es/LobeSelect/LobeSelect.d.mts +0 -8
  244. package/es/LobeSelect/LobeSelect.mjs.map +0 -1
  245. package/es/LobeSelect/atoms.d.mts +0 -155
  246. package/es/LobeSelect/atoms.mjs.map +0 -1
  247. package/es/LobeSelect/index.d.mts +0 -4
  248. package/es/LobeSelect/index.mjs +0 -4
  249. package/es/LobeSelect/style.mjs.map +0 -1
  250. package/es/LobeSwitch/LobeSwitch.d.mts +0 -8
  251. package/es/LobeSwitch/LobeSwitch.mjs.map +0 -1
  252. package/es/LobeSwitch/atoms.d.mts +0 -56
  253. package/es/LobeSwitch/atoms.mjs.map +0 -1
  254. package/es/LobeSwitch/index.d.mts +0 -5
  255. package/es/LobeSwitch/index.d.ts +0 -1
  256. package/es/LobeSwitch/index.js +0 -1
  257. package/es/LobeSwitch/index.mjs +0 -5
  258. package/es/LobeSwitch/style.mjs.map +0 -1
  259. package/es/ScrollArea/ScrollArea.mjs.map +0 -1
  260. package/es/ScrollArea/atoms.mjs.map +0 -1
  261. package/es/ScrollArea/globalStyle.mjs.map +0 -1
  262. package/es/ScrollArea/style.mjs.map +0 -1
  263. package/es/Toast/Toast.mjs.map +0 -1
  264. package/es/Toast/context.mjs.map +0 -1
  265. package/es/Toast/imperative.mjs.map +0 -1
  266. package/es/Toast/style.mjs.map +0 -1
  267. package/icons.d.ts +0 -1
  268. package/icons.js +0 -1
  269. package/mdx.d.ts +0 -1
  270. package/mdx.js +0 -1
  271. package/mobile.d.ts +0 -1
  272. package/mobile.js +0 -1
  273. package/storybook.d.ts +0 -1
  274. package/storybook.js +0 -1
  275. /package/es/{ContextMenu → base-ui/ContextMenu}/imperative.d.mts +0 -0
  276. /package/es/{LobeSelect → base-ui}/index.d.ts +0 -0
  277. /package/es/{LobeSelect → base-ui}/index.js +0 -0
@@ -1,10 +1,10 @@
1
1
  import { DropdownMenuPlacement } from "./type.mjs";
2
2
  import React from "react";
3
- import * as react_jsx_runtime44 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
4
4
  import * as _base_ui_react_menu0 from "@base-ui/react/menu";
5
5
  import { Menu } from "@base-ui/react/menu";
6
6
 
7
- //#region src/DropdownMenu/atoms.d.ts
7
+ //#region src/base-ui/DropdownMenu/atoms.d.ts
8
8
  declare const DropdownMenuRoot: typeof Menu.Root;
9
9
  declare const DropdownMenuSubmenuRoot: typeof Menu.SubmenuRoot;
10
10
  declare const DropdownMenuCheckboxItemIndicator: React.ForwardRefExoticComponent<_base_ui_react_menu0.MenuCheckboxItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
@@ -18,7 +18,7 @@ declare const DropdownMenuTrigger: {
18
18
  nativeButton,
19
19
  ref: refProp,
20
20
  ...rest
21
- }: DropdownMenuTriggerProps): react_jsx_runtime44.JSX.Element;
21
+ }: DropdownMenuTriggerProps): react_jsx_runtime26.JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
  type DropdownMenuPortalProps = React.ComponentProps<typeof Menu.Portal> & {
@@ -31,7 +31,7 @@ declare const DropdownMenuPortal: {
31
31
  ({
32
32
  container,
33
33
  ...rest
34
- }: DropdownMenuPortalProps): react_jsx_runtime44.JSX.Element;
34
+ }: DropdownMenuPortalProps): react_jsx_runtime26.JSX.Element;
35
35
  displayName: string;
36
36
  };
37
37
  type DropdownMenuPositionerProps = React.ComponentProps<typeof Menu.Positioner> & {
@@ -48,7 +48,7 @@ declare const DropdownMenuPositioner: {
48
48
  sideOffset,
49
49
  children,
50
50
  ...rest
51
- }: DropdownMenuPositionerProps): react_jsx_runtime44.JSX.Element;
51
+ }: DropdownMenuPositionerProps): react_jsx_runtime26.JSX.Element;
52
52
  displayName: string;
53
53
  };
54
54
  type DropdownMenuPopupProps = React.ComponentProps<typeof Menu.Popup>;
@@ -56,7 +56,7 @@ declare const DropdownMenuPopup: {
56
56
  ({
57
57
  className,
58
58
  ...rest
59
- }: DropdownMenuPopupProps): react_jsx_runtime44.JSX.Element;
59
+ }: DropdownMenuPopupProps): react_jsx_runtime26.JSX.Element;
60
60
  displayName: string;
61
61
  };
62
62
  type DropdownMenuItemProps = React.ComponentProps<typeof Menu.Item> & {
@@ -67,7 +67,7 @@ declare const DropdownMenuItem: {
67
67
  className,
68
68
  danger,
69
69
  ...rest
70
- }: DropdownMenuItemProps): react_jsx_runtime44.JSX.Element;
70
+ }: DropdownMenuItemProps): react_jsx_runtime26.JSX.Element;
71
71
  displayName: string;
72
72
  };
73
73
  type DropdownMenuCheckboxItemProps = React.ComponentProps<typeof Menu.CheckboxItem> & {
@@ -78,7 +78,7 @@ declare const DropdownMenuCheckboxItemPrimitive: {
78
78
  className,
79
79
  danger,
80
80
  ...rest
81
- }: DropdownMenuCheckboxItemProps): react_jsx_runtime44.JSX.Element;
81
+ }: DropdownMenuCheckboxItemProps): react_jsx_runtime26.JSX.Element;
82
82
  displayName: string;
83
83
  };
84
84
  type DropdownMenuSeparatorProps = React.ComponentProps<typeof Menu.Separator>;
@@ -86,7 +86,7 @@ declare const DropdownMenuSeparator: {
86
86
  ({
87
87
  className,
88
88
  ...rest
89
- }: DropdownMenuSeparatorProps): react_jsx_runtime44.JSX.Element;
89
+ }: DropdownMenuSeparatorProps): react_jsx_runtime26.JSX.Element;
90
90
  displayName: string;
91
91
  };
92
92
  declare const DropdownMenuGroup: React.ForwardRefExoticComponent<_base_ui_react_menu0.MenuGroupProps & React.RefAttributes<Element>>;
@@ -95,7 +95,7 @@ declare const DropdownMenuGroupLabel: {
95
95
  ({
96
96
  className,
97
97
  ...rest
98
- }: DropdownMenuGroupLabelProps): react_jsx_runtime44.JSX.Element;
98
+ }: DropdownMenuGroupLabelProps): react_jsx_runtime26.JSX.Element;
99
99
  displayName: string;
100
100
  };
101
101
  type DropdownMenuSubmenuTriggerProps = React.ComponentProps<typeof Menu.SubmenuTrigger> & {
@@ -106,7 +106,7 @@ declare const DropdownMenuSubmenuTrigger: {
106
106
  className,
107
107
  danger,
108
108
  ...rest
109
- }: DropdownMenuSubmenuTriggerProps): react_jsx_runtime44.JSX.Element;
109
+ }: DropdownMenuSubmenuTriggerProps): react_jsx_runtime26.JSX.Element;
110
110
  displayName: string;
111
111
  };
112
112
  type DropdownMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;
@@ -114,7 +114,7 @@ declare const DropdownMenuItemContent: {
114
114
  ({
115
115
  className,
116
116
  ...rest
117
- }: DropdownMenuItemContentProps): react_jsx_runtime44.JSX.Element;
117
+ }: DropdownMenuItemContentProps): react_jsx_runtime26.JSX.Element;
118
118
  displayName: string;
119
119
  };
120
120
  type DropdownMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;
@@ -122,7 +122,7 @@ declare const DropdownMenuItemIcon: {
122
122
  ({
123
123
  className,
124
124
  ...rest
125
- }: DropdownMenuItemIconProps): react_jsx_runtime44.JSX.Element;
125
+ }: DropdownMenuItemIconProps): react_jsx_runtime26.JSX.Element;
126
126
  displayName: string;
127
127
  };
128
128
  type DropdownMenuItemLabelGroupProps = React.HTMLAttributes<HTMLDivElement>;
@@ -130,7 +130,7 @@ declare const DropdownMenuItemLabelGroup: {
130
130
  ({
131
131
  className,
132
132
  ...rest
133
- }: DropdownMenuItemLabelGroupProps): react_jsx_runtime44.JSX.Element;
133
+ }: DropdownMenuItemLabelGroupProps): react_jsx_runtime26.JSX.Element;
134
134
  displayName: string;
135
135
  };
136
136
  type DropdownMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;
@@ -138,7 +138,7 @@ declare const DropdownMenuItemLabel: {
138
138
  ({
139
139
  className,
140
140
  ...rest
141
- }: DropdownMenuItemLabelProps): react_jsx_runtime44.JSX.Element;
141
+ }: DropdownMenuItemLabelProps): react_jsx_runtime26.JSX.Element;
142
142
  displayName: string;
143
143
  };
144
144
  type DropdownMenuItemDescProps = React.HTMLAttributes<HTMLSpanElement>;
@@ -146,7 +146,7 @@ declare const DropdownMenuItemDesc: {
146
146
  ({
147
147
  className,
148
148
  ...rest
149
- }: DropdownMenuItemDescProps): react_jsx_runtime44.JSX.Element;
149
+ }: DropdownMenuItemDescProps): react_jsx_runtime26.JSX.Element;
150
150
  displayName: string;
151
151
  };
152
152
  type DropdownMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;
@@ -154,7 +154,7 @@ declare const DropdownMenuItemExtra: {
154
154
  ({
155
155
  className,
156
156
  ...rest
157
- }: DropdownMenuItemExtraProps): react_jsx_runtime44.JSX.Element;
157
+ }: DropdownMenuItemExtraProps): react_jsx_runtime26.JSX.Element;
158
158
  displayName: string;
159
159
  };
160
160
  type DropdownMenuSubmenuArrowProps = React.HTMLAttributes<HTMLSpanElement>;
@@ -162,7 +162,7 @@ declare const DropdownMenuSubmenuArrow: {
162
162
  ({
163
163
  className,
164
164
  ...rest
165
- }: DropdownMenuSubmenuArrowProps): react_jsx_runtime44.JSX.Element;
165
+ }: DropdownMenuSubmenuArrowProps): react_jsx_runtime26.JSX.Element;
166
166
  displayName: string;
167
167
  };
168
168
  type DropdownMenuSwitchItemProps = Omit<React.ComponentProps<typeof Menu.Item>, 'onClick'> & {
@@ -183,7 +183,7 @@ declare const DropdownMenuSwitchItem: {
183
183
  onCheckedChange,
184
184
  children,
185
185
  ...rest
186
- }: DropdownMenuSwitchItemProps): react_jsx_runtime44.JSX.Element;
186
+ }: DropdownMenuSwitchItemProps): react_jsx_runtime26.JSX.Element;
187
187
  displayName: string;
188
188
  };
189
189
  //#endregion
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
- import { useNativeButton } from "../hooks/useNativeButton.mjs";
4
- import { FloatingLayerProvider } from "../hooks/useFloatingLayer.mjs";
5
- import { useAppElement } from "../ThemeProvider/AppElementContext.mjs";
6
- import { CLASSNAMES } from "../styles/classNames.mjs";
7
- import { placementMap } from "../utils/placement.mjs";
8
- import { styles } from "../Menu/sharedStyle.mjs";
3
+ import { useNativeButton } from "../../hooks/useNativeButton.mjs";
4
+ import { FloatingLayerProvider } from "../../hooks/useFloatingLayer.mjs";
5
+ import { useAppElement } from "../../ThemeProvider/AppElementContext.mjs";
6
+ import { CLASSNAMES } from "../../styles/classNames.mjs";
7
+ import { placementMap } from "../../utils/placement.mjs";
8
+ import { styles } from "../../Menu/sharedStyle.mjs";
9
9
  import { cloneElement, isValidElement, useCallback, useState } from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { Switch } from "antd";
@@ -15,7 +15,7 @@ import { mergeRefs } from "react-merge-refs";
15
15
  import { Menu as Menu$1 } from "@base-ui/react/menu";
16
16
  import clsx from "clsx";
17
17
 
18
- //#region src/DropdownMenu/atoms.tsx
18
+ //#region src/base-ui/DropdownMenu/atoms.tsx
19
19
  const DropdownMenuRoot = (props) => /* @__PURE__ */ jsx(Menu$1.Root, {
20
20
  modal: false,
21
21
  ...props
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atoms.mjs","names":["DropdownMenuRoot: typeof Menu.Root","Menu"],"sources":["../../../src/base-ui/DropdownMenu/atoms.tsx"],"sourcesContent":["'use client';\n\nimport { Menu } from '@base-ui/react/menu';\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { Switch } from 'antd';\nimport { cx } from 'antd-style';\nimport clsx from 'clsx';\nimport type React from 'react';\nimport { cloneElement, isValidElement, useCallback, useState } from 'react';\nimport { mergeRefs } from 'react-merge-refs';\n\nimport { FloatingLayerProvider } from '@/hooks/useFloatingLayer';\nimport { useNativeButton } from '@/hooks/useNativeButton';\nimport { styles } from '@/Menu/sharedStyle';\nimport { CLASSNAMES } from '@/styles/classNames';\nimport { useAppElement } from '@/ThemeProvider';\nimport { placementMap } from '@/utils/placement';\n\nimport { type DropdownMenuPlacement } from './type';\n\nexport const DropdownMenuRoot: typeof Menu.Root = (props) => <Menu.Root modal={false} {...props} />;\nexport const DropdownMenuSubmenuRoot = Menu.SubmenuRoot;\nexport const DropdownMenuCheckboxItemIndicator = Menu.CheckboxItemIndicator;\n\nconst mergeStateClassName = <TState,>(\n base: string,\n className: string | ((state: TState) => string | undefined) | undefined,\n) => {\n if (typeof className === 'function') return (state: TState) => cx(base, className(state));\n return cx(base, className);\n};\n\nexport type DropdownMenuTriggerProps = Omit<\n React.ComponentPropsWithRef<typeof Menu.Trigger>,\n 'children' | 'render'\n> & {\n children: React.ReactNode;\n};\n\nexport const DropdownMenuTrigger = ({\n children,\n className,\n nativeButton,\n ref: refProp,\n ...rest\n}: DropdownMenuTriggerProps) => {\n const { isNativeButtonTriggerElement, resolvedNativeButton } = useNativeButton({\n children,\n nativeButton,\n });\n\n const renderer = (props: any) => {\n // Base UI's trigger props include `type=\"button\"` by default.\n // If we render into a non-<button> element, that prop is invalid and can warn.\n const resolvedProps = (() => {\n if (isNativeButtonTriggerElement) return props as any;\n // eslint-disable-next-line unused-imports/no-unused-vars\n const { type, ...restProps } = props as any;\n return restProps;\n })();\n\n const mergedProps = mergeProps((children as any).props, resolvedProps);\n return cloneElement(children as any, {\n ...mergedProps,\n className: clsx(CLASSNAMES.DropdownMenuTrigger, className, mergedProps.className),\n ref: mergeRefs([(children as any).ref, (props as any).ref, refProp]),\n });\n };\n\n if (isValidElement(children)) {\n return <Menu.Trigger {...rest} nativeButton={resolvedNativeButton} render={renderer as any} />;\n }\n\n return (\n <Menu.Trigger\n {...rest}\n className={clsx(CLASSNAMES.DropdownMenuTrigger, className)}\n nativeButton={resolvedNativeButton}\n ref={refProp as any}\n >\n {children}\n </Menu.Trigger>\n );\n};\n\nDropdownMenuTrigger.displayName = 'DropdownMenuTrigger';\n\nexport type DropdownMenuPortalProps = React.ComponentProps<typeof Menu.Portal> & {\n /**\n * When `container` is not provided, it uses a shared container created by `usePortalContainer`.\n */\n container?: HTMLElement | null;\n};\n\nexport const DropdownMenuPortal = ({ container, ...rest }: DropdownMenuPortalProps) => {\n const appElement = useAppElement();\n return <Menu.Portal container={container ?? appElement ?? undefined} {...rest} />;\n};\n\nDropdownMenuPortal.displayName = 'DropdownMenuPortal';\n\nexport type DropdownMenuPositionerProps = React.ComponentProps<typeof Menu.Positioner> & {\n hoverTrigger?: boolean;\n placement?: DropdownMenuPlacement;\n};\n\nexport const DropdownMenuPositioner = ({\n className,\n placement,\n hoverTrigger,\n align,\n side,\n sideOffset,\n children,\n ...rest\n}: DropdownMenuPositionerProps) => {\n const placementConfig = placement ? placementMap[placement] : undefined;\n const [positionerNode, setPositionerNode] = useState<HTMLDivElement | null>(null);\n\n return (\n <Menu.Positioner\n {...rest}\n align={align ?? placementConfig?.align}\n className={mergeStateClassName(styles.positioner, className as any) as any}\n data-hover-trigger={hoverTrigger || undefined}\n data-placement={placement}\n ref={setPositionerNode}\n side={side ?? placementConfig?.side}\n sideOffset={sideOffset ?? (placementConfig ? 6 : undefined)}\n >\n <FloatingLayerProvider value={positionerNode}>{children}</FloatingLayerProvider>\n </Menu.Positioner>\n );\n};\n\nDropdownMenuPositioner.displayName = 'DropdownMenuPositioner';\n\nexport type DropdownMenuPopupProps = React.ComponentProps<typeof Menu.Popup>;\n\nexport const DropdownMenuPopup = ({ className, ...rest }: DropdownMenuPopupProps) => {\n return (\n <Menu.Popup {...rest} className={mergeStateClassName(styles.popup, className as any) as any} />\n );\n};\n\nDropdownMenuPopup.displayName = 'DropdownMenuPopup';\n\nexport type DropdownMenuItemProps = React.ComponentProps<typeof Menu.Item> & { danger?: boolean };\n\nexport const DropdownMenuItem = ({ className, danger, ...rest }: DropdownMenuItemProps) => {\n return (\n <Menu.Item\n {...rest}\n className={(state) =>\n cx(\n styles.item,\n danger && styles.danger,\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\n\nDropdownMenuItem.displayName = 'DropdownMenuItem';\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentProps<typeof Menu.CheckboxItem> & {\n danger?: boolean;\n};\n\nexport const DropdownMenuCheckboxItemPrimitive = ({\n className,\n danger,\n ...rest\n}: DropdownMenuCheckboxItemProps) => {\n return (\n <Menu.CheckboxItem\n {...rest}\n className={(state) =>\n cx(\n styles.item,\n danger && styles.danger,\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\n\nDropdownMenuCheckboxItemPrimitive.displayName = 'DropdownMenuCheckboxItemPrimitive';\n\nexport type DropdownMenuSeparatorProps = React.ComponentProps<typeof Menu.Separator>;\n\nexport const DropdownMenuSeparator = ({ className, ...rest }: DropdownMenuSeparatorProps) => {\n return (\n <Menu.Separator\n {...rest}\n className={(state) =>\n cx(styles.separator, typeof className === 'function' ? className(state) : className)\n }\n />\n );\n};\n\nDropdownMenuSeparator.displayName = 'DropdownMenuSeparator';\n\nexport const DropdownMenuGroup = Menu.Group;\n\nexport type DropdownMenuGroupLabelProps = React.ComponentProps<typeof Menu.GroupLabel>;\n\nexport const DropdownMenuGroupLabel = ({ className, ...rest }: DropdownMenuGroupLabelProps) => {\n return (\n <Menu.GroupLabel\n {...rest}\n className={(state) =>\n cx(styles.groupLabel, typeof className === 'function' ? className(state) : className)\n }\n />\n );\n};\n\nDropdownMenuGroupLabel.displayName = 'DropdownMenuGroupLabel';\n\nexport type DropdownMenuSubmenuTriggerProps = React.ComponentProps<typeof Menu.SubmenuTrigger> & {\n danger?: boolean;\n};\n\nexport const DropdownMenuSubmenuTrigger = ({\n className,\n danger,\n ...rest\n}: DropdownMenuSubmenuTriggerProps) => {\n return (\n <Menu.SubmenuTrigger\n {...rest}\n className={(state) =>\n cx(\n styles.item,\n danger && styles.danger,\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\n\nDropdownMenuSubmenuTrigger.displayName = 'DropdownMenuSubmenuTrigger';\n\nexport type DropdownMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const DropdownMenuItemContent = ({ className, ...rest }: DropdownMenuItemContentProps) => {\n return <div {...rest} className={cx(styles.itemContent, className)} />;\n};\n\nDropdownMenuItemContent.displayName = 'DropdownMenuItemContent';\n\nexport type DropdownMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;\n\nexport const DropdownMenuItemIcon = ({ className, ...rest }: DropdownMenuItemIconProps) => {\n return <span {...rest} className={cx(styles.icon, className)} />;\n};\n\nDropdownMenuItemIcon.displayName = 'DropdownMenuItemIcon';\n\nexport type DropdownMenuItemLabelGroupProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const DropdownMenuItemLabelGroup = ({\n className,\n ...rest\n}: DropdownMenuItemLabelGroupProps) => {\n return <div {...rest} className={cx(styles.labelGroup, className)} />;\n};\n\nDropdownMenuItemLabelGroup.displayName = 'DropdownMenuItemLabelGroup';\n\nexport type DropdownMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;\n\nexport const DropdownMenuItemLabel = ({ className, ...rest }: DropdownMenuItemLabelProps) => {\n return <span {...rest} className={cx(styles.label, className)} />;\n};\n\nDropdownMenuItemLabel.displayName = 'DropdownMenuItemLabel';\n\nexport type DropdownMenuItemDescProps = React.HTMLAttributes<HTMLSpanElement>;\n\nexport const DropdownMenuItemDesc = ({ className, ...rest }: DropdownMenuItemDescProps) => {\n return <span {...rest} className={cx(styles.desc, className)} />;\n};\n\nDropdownMenuItemDesc.displayName = 'DropdownMenuItemDesc';\n\nexport type DropdownMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;\n\nexport const DropdownMenuItemExtra = ({ className, ...rest }: DropdownMenuItemExtraProps) => {\n return <span {...rest} className={cx(styles.extra, className)} />;\n};\n\nDropdownMenuItemExtra.displayName = 'DropdownMenuItemExtra';\n\nexport type DropdownMenuSubmenuArrowProps = React.HTMLAttributes<HTMLSpanElement>;\n\nexport const DropdownMenuSubmenuArrow = ({ className, ...rest }: DropdownMenuSubmenuArrowProps) => {\n return <span {...rest} className={cx(styles.submenuArrow, className)} />;\n};\n\nDropdownMenuSubmenuArrow.displayName = 'DropdownMenuSubmenuArrow';\n\nexport type DropdownMenuSwitchItemProps = Omit<\n React.ComponentProps<typeof Menu.Item>,\n 'onClick'\n> & {\n checked?: boolean;\n closeOnClick?: boolean;\n danger?: boolean;\n defaultChecked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n};\n\nexport const DropdownMenuSwitchItem = ({\n checked: checkedProp,\n className,\n closeOnClick = false,\n danger,\n defaultChecked,\n disabled,\n onCheckedChange,\n children,\n ...rest\n}: DropdownMenuSwitchItemProps) => {\n const [internalChecked, setInternalChecked] = useState(defaultChecked ?? false);\n const isControlled = checkedProp !== undefined;\n const checked = isControlled ? checkedProp : internalChecked;\n\n const handleCheckedChange = useCallback(\n (newChecked: boolean) => {\n if (!isControlled) {\n setInternalChecked(newChecked);\n }\n onCheckedChange?.(newChecked);\n },\n [isControlled, onCheckedChange],\n );\n\n return (\n <Menu.Item\n {...rest}\n closeOnClick={closeOnClick}\n disabled={disabled}\n className={(state) =>\n cx(\n styles.item,\n danger && styles.danger,\n typeof className === 'function' ? className(state) : className,\n )\n }\n onClick={(e) => {\n e.preventDefault();\n if (!disabled) {\n handleCheckedChange(!checked);\n }\n }}\n >\n {children}\n <Switch\n checked={checked}\n disabled={disabled}\n size=\"small\"\n style={{ marginInlineStart: 16 }}\n onChange={handleCheckedChange}\n onClick={(_, e) => e.stopPropagation()}\n />\n </Menu.Item>\n );\n};\n\nDropdownMenuSwitchItem.displayName = 'DropdownMenuSwitchItem';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,MAAaA,oBAAsC,UAAU,oBAACC,OAAK;CAAK,OAAO;CAAO,GAAI;EAAS;AACnG,MAAa,0BAA0BA,OAAK;AAC5C,MAAa,oCAAoCA,OAAK;AAEtD,MAAM,uBACJ,MACA,cACG;AACH,KAAI,OAAO,cAAc,WAAY,SAAQ,UAAkB,GAAG,MAAM,UAAU,MAAM,CAAC;AACzF,QAAO,GAAG,MAAM,UAAU;;AAU5B,MAAa,uBAAuB,EAClC,UACA,WACA,cACA,KAAK,SACL,GAAG,WAC2B;CAC9B,MAAM,EAAE,8BAA8B,yBAAyB,gBAAgB;EAC7E;EACA;EACD,CAAC;CAEF,MAAM,YAAY,UAAe;EAG/B,MAAM,uBAAuB;AAC3B,OAAI,6BAA8B,QAAO;GAEzC,MAAM,EAAE,MAAM,GAAG,cAAc;AAC/B,UAAO;MACL;EAEJ,MAAM,cAAc,WAAY,SAAiB,OAAO,cAAc;AACtE,SAAO,aAAa,UAAiB;GACnC,GAAG;GACH,WAAW,KAAK,WAAW,qBAAqB,WAAW,YAAY,UAAU;GACjF,KAAK,UAAU;IAAE,SAAiB;IAAM,MAAc;IAAK;IAAQ,CAAC;GACrE,CAAC;;AAGJ,KAAI,eAAe,SAAS,CAC1B,QAAO,oBAACA,OAAK;EAAQ,GAAI;EAAM,cAAc;EAAsB,QAAQ;GAAmB;AAGhG,QACE,oBAACA,OAAK;EACJ,GAAI;EACJ,WAAW,KAAK,WAAW,qBAAqB,UAAU;EAC1D,cAAc;EACd,KAAK;EAEJ;GACY;;AAInB,oBAAoB,cAAc;AASlC,MAAa,sBAAsB,EAAE,WAAW,GAAG,WAAoC;CACrF,MAAM,aAAa,eAAe;AAClC,QAAO,oBAACA,OAAK;EAAO,WAAW,aAAa,cAAc;EAAW,GAAI;GAAQ;;AAGnF,mBAAmB,cAAc;AAOjC,MAAa,0BAA0B,EACrC,WACA,WACA,cACA,OACA,MACA,YACA,UACA,GAAG,WAC8B;CACjC,MAAM,kBAAkB,YAAY,aAAa,aAAa;CAC9D,MAAM,CAAC,gBAAgB,qBAAqB,SAAgC,KAAK;AAEjF,QACE,oBAACA,OAAK;EACJ,GAAI;EACJ,OAAO,SAAS,iBAAiB;EACjC,WAAW,oBAAoB,OAAO,YAAY,UAAiB;EACnE,sBAAoB,gBAAgB;EACpC,kBAAgB;EAChB,KAAK;EACL,MAAM,QAAQ,iBAAiB;EAC/B,YAAY,eAAe,kBAAkB,IAAI;YAEjD,oBAAC;GAAsB,OAAO;GAAiB;IAAiC;GAChE;;AAItB,uBAAuB,cAAc;AAIrC,MAAa,qBAAqB,EAAE,WAAW,GAAG,WAAmC;AACnF,QACE,oBAACA,OAAK;EAAM,GAAI;EAAM,WAAW,oBAAoB,OAAO,OAAO,UAAiB;GAAW;;AAInG,kBAAkB,cAAc;AAIhC,MAAa,oBAAoB,EAAE,WAAW,QAAQ,GAAG,WAAkC;AACzF,QACE,oBAACA,OAAK;EACJ,GAAI;EACJ,YAAY,UACV,GACE,OAAO,MACP,UAAU,OAAO,QACjB,OAAO,cAAc,aAAa,UAAU,MAAM,GAAG,UACtD;GAEH;;AAIN,iBAAiB,cAAc;AAM/B,MAAa,qCAAqC,EAChD,WACA,QACA,GAAG,WACgC;AACnC,QACE,oBAACA,OAAK;EACJ,GAAI;EACJ,YAAY,UACV,GACE,OAAO,MACP,UAAU,OAAO,QACjB,OAAO,cAAc,aAAa,UAAU,MAAM,GAAG,UACtD;GAEH;;AAIN,kCAAkC,cAAc;AAIhD,MAAa,yBAAyB,EAAE,WAAW,GAAG,WAAuC;AAC3F,QACE,oBAACA,OAAK;EACJ,GAAI;EACJ,YAAY,UACV,GAAG,OAAO,WAAW,OAAO,cAAc,aAAa,UAAU,MAAM,GAAG,UAAU;GAEtF;;AAIN,sBAAsB,cAAc;AAEpC,MAAa,oBAAoBA,OAAK;AAItC,MAAa,0BAA0B,EAAE,WAAW,GAAG,WAAwC;AAC7F,QACE,oBAACA,OAAK;EACJ,GAAI;EACJ,YAAY,UACV,GAAG,OAAO,YAAY,OAAO,cAAc,aAAa,UAAU,MAAM,GAAG,UAAU;GAEvF;;AAIN,uBAAuB,cAAc;AAMrC,MAAa,8BAA8B,EACzC,WACA,QACA,GAAG,WACkC;AACrC,QACE,oBAACA,OAAK;EACJ,GAAI;EACJ,YAAY,UACV,GACE,OAAO,MACP,UAAU,OAAO,QACjB,OAAO,cAAc,aAAa,UAAU,MAAM,GAAG,UACtD;GAEH;;AAIN,2BAA2B,cAAc;AAIzC,MAAa,2BAA2B,EAAE,WAAW,GAAG,WAAyC;AAC/F,QAAO,oBAAC;EAAI,GAAI;EAAM,WAAW,GAAG,OAAO,aAAa,UAAU;GAAI;;AAGxE,wBAAwB,cAAc;AAItC,MAAa,wBAAwB,EAAE,WAAW,GAAG,WAAsC;AACzF,QAAO,oBAAC;EAAK,GAAI;EAAM,WAAW,GAAG,OAAO,MAAM,UAAU;GAAI;;AAGlE,qBAAqB,cAAc;AAInC,MAAa,8BAA8B,EACzC,WACA,GAAG,WACkC;AACrC,QAAO,oBAAC;EAAI,GAAI;EAAM,WAAW,GAAG,OAAO,YAAY,UAAU;GAAI;;AAGvE,2BAA2B,cAAc;AAIzC,MAAa,yBAAyB,EAAE,WAAW,GAAG,WAAuC;AAC3F,QAAO,oBAAC;EAAK,GAAI;EAAM,WAAW,GAAG,OAAO,OAAO,UAAU;GAAI;;AAGnE,sBAAsB,cAAc;AAIpC,MAAa,wBAAwB,EAAE,WAAW,GAAG,WAAsC;AACzF,QAAO,oBAAC;EAAK,GAAI;EAAM,WAAW,GAAG,OAAO,MAAM,UAAU;GAAI;;AAGlE,qBAAqB,cAAc;AAInC,MAAa,yBAAyB,EAAE,WAAW,GAAG,WAAuC;AAC3F,QAAO,oBAAC;EAAK,GAAI;EAAM,WAAW,GAAG,OAAO,OAAO,UAAU;GAAI;;AAGnE,sBAAsB,cAAc;AAIpC,MAAa,4BAA4B,EAAE,WAAW,GAAG,WAA0C;AACjG,QAAO,oBAAC;EAAK,GAAI;EAAM,WAAW,GAAG,OAAO,cAAc,UAAU;GAAI;;AAG1E,yBAAyB,cAAc;AAavC,MAAa,0BAA0B,EACrC,SAAS,aACT,WACA,eAAe,OACf,QACA,gBACA,UACA,iBACA,UACA,GAAG,WAC8B;CACjC,MAAM,CAAC,iBAAiB,sBAAsB,SAAS,kBAAkB,MAAM;CAC/E,MAAM,eAAe,gBAAgB;CACrC,MAAM,UAAU,eAAe,cAAc;CAE7C,MAAM,sBAAsB,aACzB,eAAwB;AACvB,MAAI,CAAC,aACH,oBAAmB,WAAW;AAEhC,oBAAkB,WAAW;IAE/B,CAAC,cAAc,gBAAgB,CAChC;AAED,QACE,qBAACA,OAAK;EACJ,GAAI;EACU;EACJ;EACV,YAAY,UACV,GACE,OAAO,MACP,UAAU,OAAO,QACjB,OAAO,cAAc,aAAa,UAAU,MAAM,GAAG,UACtD;EAEH,UAAU,MAAM;AACd,KAAE,gBAAgB;AAClB,OAAI,CAAC,SACH,qBAAoB,CAAC,QAAQ;;aAIhC,UACD,oBAAC;GACU;GACC;GACV,MAAK;GACL,OAAO,EAAE,mBAAmB,IAAI;GAChC,UAAU;GACV,UAAU,GAAG,MAAM,EAAE,iBAAiB;IACtC;GACQ;;AAIhB,uBAAuB,cAAc"}
@@ -0,0 +1,5 @@
1
+ import { IconSpaceMode } from "../../Menu/renderUtils.mjs";
2
+ import { renderDropdownMenuItems } from "./renderItems.mjs";
3
+ import { DropdownItem, DropdownMenuCheckboxItem, DropdownMenuPlacement, DropdownMenuProps, DropdownMenuSwitchItem } from "./type.mjs";
4
+ import { DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuCheckboxItemProps, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuGroupLabelProps, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemContentProps, DropdownMenuItemDesc, DropdownMenuItemDescProps, DropdownMenuItemExtra, DropdownMenuItemExtraProps, DropdownMenuItemIcon, DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuItemLabelGroupProps, DropdownMenuItemLabelProps, DropdownMenuItemProps, DropdownMenuPopup, DropdownMenuPopupProps, DropdownMenuPortal, DropdownMenuPortalProps, DropdownMenuPositioner, DropdownMenuPositionerProps, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem as DropdownMenuSwitchItem$1, DropdownMenuSwitchItemProps, DropdownMenuTrigger, DropdownMenuTriggerProps } from "./atoms.mjs";
5
+ import { DropdownMenu } from "./DropdownMenu.mjs";
@@ -1,9 +1,9 @@
1
- import { IconAlign, IconSpaceMode, RenderOptions } from "../Menu/renderUtils.mjs";
2
- import "../Menu/index.mjs";
1
+ import { IconAlign, IconSpaceMode, RenderOptions } from "../../Menu/renderUtils.mjs";
2
+ import "../../Menu/index.mjs";
3
3
  import { DropdownItem } from "./type.mjs";
4
4
  import { ReactNode } from "react";
5
5
 
6
- //#region src/DropdownMenu/renderItems.d.ts
6
+ //#region src/base-ui/DropdownMenu/renderItems.d.ts
7
7
  declare const renderDropdownMenuItems: (items: DropdownItem[], keyPath?: string[], options?: RenderOptions) => ReactNode[];
8
8
  //#endregion
9
9
  export { renderDropdownMenuItems };
@@ -1,10 +1,10 @@
1
- import { styles } from "../Menu/sharedStyle.mjs";
1
+ import { styles } from "../../Menu/sharedStyle.mjs";
2
2
  import { DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem } from "./atoms.mjs";
3
- import { getItemKey, getItemLabel, hasAnyIcon, hasCheckboxAndIcon, renderIcon } from "../Menu/renderUtils.mjs";
3
+ import { getItemKey, getItemLabel, hasAnyIcon, hasCheckboxAndIcon, renderIcon } from "../../Menu/renderUtils.mjs";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { Check, ChevronRight } from "lucide-react";
6
6
 
7
- //#region src/DropdownMenu/renderItems.tsx
7
+ //#region src/base-ui/DropdownMenu/renderItems.tsx
8
8
  const renderItemContent = (item, options, iconNode) => {
9
9
  const label = getItemLabel(item);
10
10
  const desc = "desc" in item ? item.desc : void 0;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderItems.mjs","names":["info: MenuInfo","label","labelText","isDanger"],"sources":["../../../src/base-ui/DropdownMenu/renderItems.tsx"],"sourcesContent":["import { Check, ChevronRight } from 'lucide-react';\nimport { type MenuInfo } from 'rc-menu/es/interface';\nimport {\n type KeyboardEvent as ReactKeyboardEvent,\n type MouseEvent as ReactMouseEvent,\n type ReactNode,\n} from 'react';\n\nimport {\n getItemKey,\n getItemLabel,\n hasAnyIcon,\n hasCheckboxAndIcon,\n type MenuDividerType,\n type MenuItemGroupType,\n type MenuItemType,\n renderIcon,\n type RenderItemContentOptions,\n type RenderOptions,\n type SubMenuType,\n} from '@/Menu';\nimport { styles } from '@/Menu/sharedStyle';\n\nimport {\n DropdownMenuCheckboxItemIndicator,\n DropdownMenuCheckboxItemPrimitive,\n DropdownMenuGroup,\n DropdownMenuGroupLabel,\n DropdownMenuItem,\n DropdownMenuItemContent,\n DropdownMenuItemDesc,\n DropdownMenuItemExtra,\n DropdownMenuItemIcon,\n DropdownMenuItemLabel,\n DropdownMenuItemLabelGroup,\n DropdownMenuPopup,\n DropdownMenuPortal,\n DropdownMenuPositioner,\n DropdownMenuSeparator,\n DropdownMenuSubmenuArrow,\n DropdownMenuSubmenuRoot,\n DropdownMenuSubmenuTrigger,\n DropdownMenuSwitchItem,\n} from './atoms';\nimport {\n type DropdownItem,\n type DropdownMenuCheckboxItem as DropdownMenuCheckboxItemType,\n type DropdownMenuSwitchItem as DropdownMenuSwitchItemType,\n} from './type';\n\nexport type { IconAlign, IconSpaceMode } from '@/Menu';\n\nconst renderItemContent = (\n item: MenuItemType | SubMenuType | DropdownMenuCheckboxItemType | DropdownMenuSwitchItemType,\n options?: RenderItemContentOptions,\n iconNode?: ReactNode,\n) => {\n const label = getItemLabel(item);\n const desc = 'desc' in item ? item.desc : undefined;\n const extra = 'extra' in item ? item.extra : undefined;\n const indicatorOnRight = options?.indicatorOnRight;\n const alignStart = Boolean(desc) && options?.iconAlign === 'start';\n\n const hasCustomIcon = iconNode !== undefined && !indicatorOnRight;\n const hasIcon = hasCustomIcon ? Boolean(iconNode) : Boolean(item.icon);\n const shouldRenderIcon = hasCustomIcon\n ? Boolean(options?.reserveIconSpace || iconNode)\n : Boolean(hasIcon || options?.reserveIconSpace);\n\n const labelNode = desc ? (\n <DropdownMenuItemLabelGroup>\n <DropdownMenuItemLabel>{label}</DropdownMenuItemLabel>\n <DropdownMenuItemDesc>{desc}</DropdownMenuItemDesc>\n </DropdownMenuItemLabelGroup>\n ) : (\n <DropdownMenuItemLabel>{label}</DropdownMenuItemLabel>\n );\n\n return (\n <DropdownMenuItemContent className={alignStart ? styles.itemContentAlignStart : undefined}>\n {shouldRenderIcon ? (\n <DropdownMenuItemIcon\n aria-hidden={!hasIcon}\n className={alignStart ? styles.iconAlignStart : undefined}\n >\n {hasCustomIcon ? iconNode : hasIcon ? renderIcon(item.icon) : null}\n </DropdownMenuItemIcon>\n ) : null}\n {labelNode}\n {extra ? <DropdownMenuItemExtra>{extra}</DropdownMenuItemExtra> : null}\n {indicatorOnRight && iconNode ? iconNode : null}\n {options?.submenu ? (\n <DropdownMenuSubmenuArrow>\n <ChevronRight size={16} />\n </DropdownMenuSubmenuArrow>\n ) : null}\n </DropdownMenuItemContent>\n );\n};\n\nconst invokeItemClick = (\n item: MenuItemType,\n keyPath: string[],\n event: ReactMouseEvent<HTMLElement> | ReactKeyboardEvent<HTMLElement>,\n) => {\n if (!item.onClick) return;\n const key = item.key ?? keyPath.at(-1) ?? '';\n const info: MenuInfo = {\n domEvent: event,\n item: event.currentTarget as MenuInfo['item'],\n key: String(key),\n keyPath,\n };\n item.onClick(info);\n};\n\nexport const renderDropdownMenuItems = (\n items: DropdownItem[],\n keyPath: string[] = [],\n options?: RenderOptions,\n): ReactNode[] => {\n const iconAlign = options?.iconAlign;\n const iconSpaceMode = options?.iconSpaceMode ?? 'global';\n const reserveIconSpace =\n options?.reserveIconSpace ?? hasAnyIcon(items, iconSpaceMode === 'global');\n const indicatorOnRight = options?.indicatorOnRight ?? hasCheckboxAndIcon(items);\n\n return items.map((item, index) => {\n if (!item) return null;\n\n const fallbackKey = `${keyPath.join('-') || 'root'}-${index}`;\n const itemKey = getItemKey(item, fallbackKey);\n const nextKeyPath = [...keyPath, String(itemKey)];\n\n if ((item as DropdownMenuCheckboxItemType).type === 'checkbox') {\n const checkboxItem = item as DropdownMenuCheckboxItemType;\n const label = getItemLabel(checkboxItem);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = Boolean(checkboxItem.danger);\n const indicator = (\n <DropdownMenuCheckboxItemIndicator>{renderIcon(Check)}</DropdownMenuCheckboxItemIndicator>\n );\n\n return (\n <DropdownMenuCheckboxItemPrimitive\n checked={checkboxItem.checked}\n closeOnClick={checkboxItem.closeOnClick}\n danger={isDanger}\n defaultChecked={checkboxItem.defaultChecked}\n disabled={checkboxItem.disabled}\n key={itemKey}\n label={labelText}\n onCheckedChange={(checked) => checkboxItem.onCheckedChange?.(checked)}\n >\n {renderItemContent(\n checkboxItem,\n { iconAlign, indicatorOnRight, reserveIconSpace },\n indicator,\n )}\n </DropdownMenuCheckboxItemPrimitive>\n );\n }\n\n if ((item as DropdownMenuSwitchItemType).type === 'switch') {\n const switchItem = item as DropdownMenuSwitchItemType;\n const label = getItemLabel(switchItem);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = Boolean(switchItem.danger);\n\n return (\n <DropdownMenuSwitchItem\n checked={switchItem.checked}\n closeOnClick={switchItem.closeOnClick}\n danger={isDanger}\n defaultChecked={switchItem.defaultChecked}\n disabled={switchItem.disabled}\n key={itemKey}\n label={labelText}\n onCheckedChange={(checked) => switchItem.onCheckedChange?.(checked)}\n >\n {renderItemContent(switchItem, { iconAlign, reserveIconSpace })}\n </DropdownMenuSwitchItem>\n );\n }\n\n if ((item as MenuDividerType).type === 'divider') {\n return <DropdownMenuSeparator key={itemKey} />;\n }\n\n if ((item as MenuItemGroupType).type === 'group') {\n const group = item as MenuItemGroupType;\n const groupReserveIconSpace =\n iconSpaceMode === 'group'\n ? group.children\n ? hasAnyIcon(group.children)\n : false\n : reserveIconSpace;\n const groupIndicatorOnRight = group.children ? hasCheckboxAndIcon(group.children) : false;\n return (\n <DropdownMenuGroup key={itemKey}>\n {group.label ? <DropdownMenuGroupLabel>{group.label}</DropdownMenuGroupLabel> : null}\n {group.children\n ? renderDropdownMenuItems(group.children, nextKeyPath, {\n iconAlign,\n iconSpaceMode,\n indicatorOnRight: groupIndicatorOnRight,\n reserveIconSpace: groupReserveIconSpace,\n })\n : null}\n </DropdownMenuGroup>\n );\n }\n\n if ((item as SubMenuType).type === 'submenu' || 'children' in item) {\n const submenu = item as SubMenuType;\n const label = getItemLabel(submenu);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = 'danger' in submenu && Boolean(submenu.danger);\n\n return (\n <DropdownMenuSubmenuRoot key={itemKey}>\n <DropdownMenuSubmenuTrigger\n danger={isDanger}\n disabled={submenu.disabled}\n label={labelText}\n >\n {renderItemContent(submenu, {\n iconAlign,\n reserveIconSpace,\n submenu: true,\n })}\n </DropdownMenuSubmenuTrigger>\n <DropdownMenuPortal>\n <DropdownMenuPositioner alignOffset={-4} data-submenu=\"\" sideOffset={-1}>\n <DropdownMenuPopup>\n {submenu.children\n ? renderDropdownMenuItems(submenu.children, nextKeyPath, {\n iconAlign,\n iconSpaceMode,\n })\n : null}\n </DropdownMenuPopup>\n </DropdownMenuPositioner>\n </DropdownMenuPortal>\n </DropdownMenuSubmenuRoot>\n );\n }\n\n const menuItem = item as MenuItemType;\n const label = getItemLabel(menuItem);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = 'danger' in menuItem && Boolean(menuItem.danger);\n\n return (\n <DropdownMenuItem\n closeOnClick={menuItem.closeOnClick}\n danger={isDanger}\n disabled={menuItem.disabled}\n key={itemKey}\n label={labelText}\n onClick={(event) => invokeItemClick(menuItem, nextKeyPath, event)}\n >\n {renderItemContent(menuItem, { iconAlign, reserveIconSpace })}\n </DropdownMenuItem>\n );\n });\n};\n"],"mappings":"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"}
@@ -1,16 +1,16 @@
1
- import { Trigger } from "../types/trigger.mjs";
2
- import "../types/index.mjs";
3
- import { Placement } from "../utils/placement.mjs";
4
- import { MenuCheckboxItemType } from "../Menu/checkboxItem.mjs";
5
- import { MenuSwitchItemType } from "../Menu/switchItem.mjs";
6
- import { BaseMenuItemType } from "../Menu/baseItem.mjs";
7
- import { IconAlign, IconSpaceMode } from "../Menu/renderUtils.mjs";
8
- import "../Menu/index.mjs";
1
+ import { Trigger } from "../../types/trigger.mjs";
2
+ import "../../types/index.mjs";
3
+ import { Placement } from "../../utils/placement.mjs";
4
+ import { MenuCheckboxItemType } from "../../Menu/checkboxItem.mjs";
5
+ import { MenuSwitchItemType } from "../../Menu/switchItem.mjs";
6
+ import { BaseMenuItemType } from "../../Menu/baseItem.mjs";
7
+ import { IconAlign, IconSpaceMode } from "../../Menu/renderUtils.mjs";
8
+ import "../../Menu/index.mjs";
9
9
  import "./renderItems.mjs";
10
10
  import { ReactNode } from "react";
11
11
  import { MenuPopupProps, MenuPortalProps, MenuPositionerProps, MenuRootProps, MenuTriggerProps } from "@base-ui/react/menu";
12
12
 
13
- //#region src/DropdownMenu/type.d.ts
13
+ //#region src/base-ui/DropdownMenu/type.d.ts
14
14
  type DropdownMenuPlacement = Placement;
15
15
  type DropdownMenuCheckboxItem = MenuCheckboxItemType;
16
16
  type DropdownMenuSwitchItem = MenuSwitchItemType;
@@ -1,7 +1,7 @@
1
1
  import { ScrollAreaProps } from "./type.mjs";
2
2
  import { FC } from "react";
3
3
 
4
- //#region src/ScrollArea/ScrollArea.d.ts
4
+ //#region src/base-ui/ScrollArea/ScrollArea.d.ts
5
5
  declare const ScrollArea: FC<ScrollAreaProps>;
6
6
  //#endregion
7
7
  export { ScrollArea };
@@ -3,7 +3,7 @@
3
3
  import { ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "./atoms.mjs";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
- //#region src/ScrollArea/ScrollArea.tsx
6
+ //#region src/base-ui/ScrollArea/ScrollArea.tsx
7
7
  const ScrollArea = ({ children, contentProps, corner = false, cornerProps, scrollFade = false, scrollbarProps, thumbProps, viewportProps, ...rest }) => {
8
8
  return /* @__PURE__ */ jsxs(ScrollAreaRoot, {
9
9
  ...rest,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollArea.mjs","names":["ScrollArea: FC<ScrollAreaProps>"],"sources":["../../../src/base-ui/ScrollArea/ScrollArea.tsx"],"sourcesContent":["'use client';\n\nimport { type FC } from 'react';\n\nimport {\n ScrollAreaContent,\n ScrollAreaCorner,\n ScrollAreaRoot,\n ScrollAreaScrollbar,\n ScrollAreaThumb,\n ScrollAreaViewport,\n} from './atoms';\nimport type { ScrollAreaProps } from './type';\n\nexport const ScrollArea: FC<ScrollAreaProps> = ({\n children,\n contentProps,\n corner = false,\n cornerProps,\n scrollFade = false,\n scrollbarProps,\n thumbProps,\n viewportProps,\n ...rest\n}) => {\n return (\n <ScrollAreaRoot {...rest}>\n <ScrollAreaViewport scrollFade={scrollFade} {...viewportProps}>\n <ScrollAreaContent {...contentProps}>{children}</ScrollAreaContent>\n </ScrollAreaViewport>\n <ScrollAreaScrollbar {...scrollbarProps}>\n <ScrollAreaThumb {...thumbProps} />\n </ScrollAreaScrollbar>\n {corner && <ScrollAreaCorner {...cornerProps} />}\n </ScrollAreaRoot>\n );\n};\n"],"mappings":";;;;;;AAcA,MAAaA,cAAmC,EAC9C,UACA,cACA,SAAS,OACT,aACA,aAAa,OACb,gBACA,YACA,eACA,GAAG,WACC;AACJ,QACE,qBAAC;EAAe,GAAI;;GAClB,oBAAC;IAA+B;IAAY,GAAI;cAC9C,oBAAC;KAAkB,GAAI;KAAe;MAA6B;KAChD;GACrB,oBAAC;IAAoB,GAAI;cACvB,oBAAC,mBAAgB,GAAI,aAAc;KACf;GACrB,UAAU,oBAAC,oBAAiB,GAAI,cAAe;;GACjC"}
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime22 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
3
3
  import { ScrollArea } from "@base-ui/react/scroll-area";
4
4
 
5
- //#region src/ScrollArea/atoms.d.ts
5
+ //#region src/base-ui/ScrollArea/atoms.d.ts
6
6
  type ScrollAreaRootProps = React.ComponentProps<typeof ScrollArea.Root>;
7
7
  type ScrollAreaViewportProps = React.ComponentProps<typeof ScrollArea.Viewport> & {
8
8
  /**
@@ -19,7 +19,7 @@ declare const ScrollAreaRoot: {
19
19
  ({
20
20
  className,
21
21
  ...rest
22
- }: ScrollAreaRootProps): react_jsx_runtime22.JSX.Element;
22
+ }: ScrollAreaRootProps): react_jsx_runtime20.JSX.Element;
23
23
  displayName: string;
24
24
  };
25
25
  declare const ScrollAreaViewport: {
@@ -27,35 +27,35 @@ declare const ScrollAreaViewport: {
27
27
  className,
28
28
  scrollFade,
29
29
  ...rest
30
- }: ScrollAreaViewportProps): react_jsx_runtime22.JSX.Element;
30
+ }: ScrollAreaViewportProps): react_jsx_runtime20.JSX.Element;
31
31
  displayName: string;
32
32
  };
33
33
  declare const ScrollAreaContent: {
34
34
  ({
35
35
  className,
36
36
  ...rest
37
- }: ScrollAreaContentProps): react_jsx_runtime22.JSX.Element;
37
+ }: ScrollAreaContentProps): react_jsx_runtime20.JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  declare const ScrollAreaScrollbar: {
41
41
  ({
42
42
  className,
43
43
  ...rest
44
- }: ScrollAreaScrollbarProps): react_jsx_runtime22.JSX.Element;
44
+ }: ScrollAreaScrollbarProps): react_jsx_runtime20.JSX.Element;
45
45
  displayName: string;
46
46
  };
47
47
  declare const ScrollAreaThumb: {
48
48
  ({
49
49
  className,
50
50
  ...rest
51
- }: ScrollAreaThumbProps): react_jsx_runtime22.JSX.Element;
51
+ }: ScrollAreaThumbProps): react_jsx_runtime20.JSX.Element;
52
52
  displayName: string;
53
53
  };
54
54
  declare const ScrollAreaCorner: {
55
55
  ({
56
56
  className,
57
57
  ...rest
58
- }: ScrollAreaCornerProps): react_jsx_runtime22.JSX.Element;
58
+ }: ScrollAreaCornerProps): react_jsx_runtime20.JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  //#endregion
@@ -6,7 +6,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { cx } from "antd-style";
7
7
  import { ScrollArea } from "@base-ui/react/scroll-area";
8
8
 
9
- //#region src/ScrollArea/atoms.tsx
9
+ //#region src/base-ui/ScrollArea/atoms.tsx
10
10
  const mergeStateClassName = (base, className) => {
11
11
  if (typeof className === "function") return (state) => cx(base, className(state));
12
12
  return cx(base, className);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atoms.mjs","names":["BaseScrollArea","ScrollAreaGlobalStyle"],"sources":["../../../src/base-ui/ScrollArea/atoms.tsx"],"sourcesContent":["'use client';\n\nimport { ScrollArea as BaseScrollArea } from '@base-ui/react/scroll-area';\nimport { cx } from 'antd-style';\nimport type React from 'react';\n\nimport ScrollAreaGlobalStyle from './globalStyle';\nimport { styles } from './style';\n\nconst mergeStateClassName = <TState,>(\n base: string,\n className: string | ((state: TState) => string | undefined) | undefined,\n) => {\n if (typeof className === 'function') return (state: TState) => cx(base, className(state));\n return cx(base, className);\n};\n\nexport type ScrollAreaRootProps = React.ComponentProps<typeof BaseScrollArea.Root>;\nexport type ScrollAreaViewportProps = React.ComponentProps<typeof BaseScrollArea.Viewport> & {\n /**\n * Enable gradient scroll fade on the viewport edges.\n * @default false\n */\n scrollFade?: boolean;\n};\nexport type ScrollAreaContentProps = React.ComponentProps<typeof BaseScrollArea.Content>;\nexport type ScrollAreaScrollbarProps = React.ComponentProps<typeof BaseScrollArea.Scrollbar>;\nexport type ScrollAreaThumbProps = React.ComponentProps<typeof BaseScrollArea.Thumb>;\nexport type ScrollAreaCornerProps = React.ComponentProps<typeof BaseScrollArea.Corner>;\n\nexport const ScrollAreaRoot = ({ className, ...rest }: ScrollAreaRootProps) => {\n return (\n <BaseScrollArea.Root {...rest} className={mergeStateClassName(styles.root, className) as any} />\n );\n};\n\nScrollAreaRoot.displayName = 'ScrollAreaRoot';\n\nexport const ScrollAreaViewport = ({\n className,\n scrollFade = false,\n ...rest\n}: ScrollAreaViewportProps) => {\n return (\n <>\n <ScrollAreaGlobalStyle />\n <BaseScrollArea.Viewport\n {...rest}\n className={\n mergeStateClassName(\n cx(styles.viewport, scrollFade && styles.viewportFade),\n className,\n ) as any\n }\n />\n </>\n );\n};\n\nScrollAreaViewport.displayName = 'ScrollAreaViewport';\n\nexport const ScrollAreaContent = ({ className, ...rest }: ScrollAreaContentProps) => {\n return (\n <BaseScrollArea.Content\n {...rest}\n className={mergeStateClassName(styles.content, className) as any}\n />\n );\n};\n\nScrollAreaContent.displayName = 'ScrollAreaContent';\n\nexport const ScrollAreaScrollbar = ({ className, ...rest }: ScrollAreaScrollbarProps) => {\n return (\n <BaseScrollArea.Scrollbar\n {...rest}\n className={mergeStateClassName(styles.scrollbar, className) as any}\n />\n );\n};\n\nScrollAreaScrollbar.displayName = 'ScrollAreaScrollbar';\n\nexport const ScrollAreaThumb = ({ className, ...rest }: ScrollAreaThumbProps) => {\n return (\n <BaseScrollArea.Thumb\n {...rest}\n className={mergeStateClassName(styles.thumb, className) as any}\n />\n );\n};\n\nScrollAreaThumb.displayName = 'ScrollAreaThumb';\n\nexport const ScrollAreaCorner = ({ className, ...rest }: ScrollAreaCornerProps) => {\n return (\n <BaseScrollArea.Corner\n {...rest}\n className={mergeStateClassName(styles.corner, className) as any}\n />\n );\n};\n\nScrollAreaCorner.displayName = 'ScrollAreaCorner';\n"],"mappings":";;;;;;;;;AASA,MAAM,uBACJ,MACA,cACG;AACH,KAAI,OAAO,cAAc,WAAY,SAAQ,UAAkB,GAAG,MAAM,UAAU,MAAM,CAAC;AACzF,QAAO,GAAG,MAAM,UAAU;;AAgB5B,MAAa,kBAAkB,EAAE,WAAW,GAAG,WAAgC;AAC7E,QACE,oBAACA,WAAe;EAAK,GAAI;EAAM,WAAW,oBAAoB,OAAO,MAAM,UAAU;GAAW;;AAIpG,eAAe,cAAc;AAE7B,MAAa,sBAAsB,EACjC,WACA,aAAa,OACb,GAAG,WAC0B;AAC7B,QACE,4CACE,oBAACC,wBAAwB,EACzB,oBAACD,WAAe;EACd,GAAI;EACJ,WACE,oBACE,GAAG,OAAO,UAAU,cAAc,OAAO,aAAa,EACtD,UACD;GAEH,IACD;;AAIP,mBAAmB,cAAc;AAEjC,MAAa,qBAAqB,EAAE,WAAW,GAAG,WAAmC;AACnF,QACE,oBAACA,WAAe;EACd,GAAI;EACJ,WAAW,oBAAoB,OAAO,SAAS,UAAU;GACzD;;AAIN,kBAAkB,cAAc;AAEhC,MAAa,uBAAuB,EAAE,WAAW,GAAG,WAAqC;AACvF,QACE,oBAACA,WAAe;EACd,GAAI;EACJ,WAAW,oBAAoB,OAAO,WAAW,UAAU;GAC3D;;AAIN,oBAAoB,cAAc;AAElC,MAAa,mBAAmB,EAAE,WAAW,GAAG,WAAiC;AAC/E,QACE,oBAACA,WAAe;EACd,GAAI;EACJ,WAAW,oBAAoB,OAAO,OAAO,UAAU;GACvD;;AAIN,gBAAgB,cAAc;AAE9B,MAAa,oBAAoB,EAAE,WAAW,GAAG,WAAkC;AACjF,QACE,oBAACA,WAAe;EACd,GAAI;EACJ,WAAW,oBAAoB,OAAO,QAAQ,UAAU;GACxD;;AAIN,iBAAiB,cAAc"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { createGlobalStyle, css } from "antd-style";
4
4
 
5
- //#region src/ScrollArea/globalStyle.ts
5
+ //#region src/base-ui/ScrollArea/globalStyle.ts
6
6
  /**
7
7
  * Register animatable custom properties used by scroll-driven animations.
8
8
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalStyle.mjs","names":[],"sources":["../../../src/base-ui/ScrollArea/globalStyle.ts"],"sourcesContent":["'use client';\n\nimport { createGlobalStyle, css } from 'antd-style';\n\n/**\n * Register animatable custom properties used by scroll-driven animations.\n *\n * Without @property registration, custom properties interpolate discretely,\n * which can cause visible snapping at scroll boundaries.\n */\nconst ScrollAreaGlobalStyle = createGlobalStyle(\n () => css`\n @property --lobe-scroll-area-fade-top {\n inherits: true;\n initial-value: 0;\n syntax: '<length>';\n }\n\n @property --lobe-scroll-area-fade-bottom {\n inherits: true;\n initial-value: 0;\n syntax: '<length>';\n }\n `,\n);\n\nexport default ScrollAreaGlobalStyle;\n"],"mappings":";;;;;;;;;;;AAUA,MAAM,wBAAwB,wBACtB,GAAG;;;;;;;;;;;;IAaV;AAED,0BAAe"}
@@ -0,0 +1,3 @@
1
+ import { ScrollAreaContent, ScrollAreaContentProps, ScrollAreaCorner, ScrollAreaCornerProps, ScrollAreaRoot, ScrollAreaRootProps, ScrollAreaScrollbar, ScrollAreaScrollbarProps, ScrollAreaThumb, ScrollAreaThumbProps, ScrollAreaViewport, ScrollAreaViewportProps } from "./atoms.mjs";
2
+ import { ScrollAreaProps } from "./type.mjs";
3
+ import { ScrollArea } from "./ScrollArea.mjs";
@@ -1,6 +1,6 @@
1
1
  import { createStaticStyles } from "antd-style";
2
2
 
3
- //#region src/ScrollArea/style.ts
3
+ //#region src/base-ui/ScrollArea/style.ts
4
4
  const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => ({
5
5
  content: css$1`
6
6
  display: flex;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.mjs","names":["cssVar"],"sources":["../../../src/base-ui/ScrollArea/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n content: css`\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n font-size: ${cssVar.fontSizeSM};\n line-height: 1.375rem;\n color: ${cssVar.colorText};\n `,\n\n corner: css`\n background: ${cssVar.colorFillSecondary};\n `,\n\n root: css`\n position: relative;\n box-sizing: border-box;\n border-radius: ${cssVar.borderRadiusLG};\n background: ${cssVar.colorBgLayout};\n `,\n\n scrollbar: css`\n pointer-events: none;\n\n position: relative;\n\n display: flex;\n justify-content: center;\n\n margin: 8px;\n border-radius: ${cssVar.borderRadiusSM};\n\n opacity: 0;\n background: transparent;\n\n transition: opacity 150ms;\n\n &::before {\n content: '';\n position: absolute;\n }\n\n &[data-scrolling] {\n transition-duration: 0ms;\n }\n\n &[data-hovering],\n &[data-scrolling] {\n pointer-events: auto;\n opacity: 1;\n }\n\n &[data-orientation='vertical'] {\n width: 4px;\n\n &::before {\n inset-inline-start: 50%;\n transform: translateX(-50%);\n width: 20px;\n height: 100%;\n }\n }\n\n &[data-orientation='horizontal'] {\n height: 4px;\n\n &::before {\n inset-block-end: -8px;\n inset-inline: 0;\n width: 100%;\n height: 20px;\n }\n }\n `,\n\n thumb: css`\n width: 100%;\n border-radius: inherit;\n background: ${cssVar.colorTextQuaternary};\n `,\n\n viewport: css`\n position: relative;\n height: 100%;\n outline: none;\n\n &:focus-visible {\n outline: 2px solid ${cssVar.colorPrimary};\n outline-offset: 2px;\n }\n `,\n\n viewportFade: css`\n --scroll-area-overflow-y-start: inherit;\n --scroll-area-overflow-y-end: inherit;\n --lobe-scroll-area-fade-size: 40px;\n --lobe-scroll-area-fade-top: min(\n var(--lobe-scroll-area-fade-size),\n var(--scroll-area-overflow-y-start, 0px)\n );\n --lobe-scroll-area-fade-bottom: min(\n var(--lobe-scroll-area-fade-size),\n var(--scroll-area-overflow-y-end, 0px)\n );\n\n /* Fade the CONTENT via mask, so it works on background images too. */\n mask-image: linear-gradient(\n to bottom,\n transparent 0,\n #000 var(--lobe-scroll-area-fade-top),\n #000 calc(100% - var(--lobe-scroll-area-fade-bottom)),\n transparent 100%\n );\n mask-repeat: no-repeat;\n mask-size: 100% 100%;\n\n /* Scroll-driven animation: use scroll position to drive the mask. */\n @supports (animation-timeline: scroll()) {\n /*\n * Important: drive fade by *distance to edges* (first/last 40px),\n * so reaching top/bottom doesn't cause a sudden snap.\n */\n @keyframes lobe-scroll-area-fade-top-in {\n from {\n --lobe-scroll-area-fade-top: 0;\n }\n\n to {\n --lobe-scroll-area-fade-top: var(--lobe-scroll-area-fade-size);\n }\n }\n\n @keyframes lobe-scroll-area-fade-bottom-out {\n from {\n --lobe-scroll-area-fade-bottom: var(--lobe-scroll-area-fade-size);\n }\n\n to {\n --lobe-scroll-area-fade-bottom: 0;\n }\n }\n\n animation-name: lobe-scroll-area-fade-top-in, lobe-scroll-area-fade-bottom-out;\n animation-duration: 1ms, 1ms;\n animation-timing-function: linear, linear;\n animation-fill-mode: both, both;\n animation-timeline: scroll(self y), scroll(self y);\n\n animation-range:\n 0 var(--lobe-scroll-area-fade-size),\n calc(100% - var(--lobe-scroll-area-fade-size)) 100%;\n }\n `,\n}));\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,wBAAc;CAC7D,SAAS,KAAG;;;;;iBAKGA,SAAO,WAAW;;aAEtBA,SAAO,UAAU;;CAG5B,QAAQ,KAAG;kBACKA,SAAO,mBAAmB;;CAG1C,MAAM,KAAG;;;qBAGUA,SAAO,eAAe;kBACzBA,SAAO,cAAc;;CAGrC,WAAW,KAAG;;;;;;;;;qBASKA,SAAO,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CzC,OAAO,KAAG;;;kBAGMA,SAAO,oBAAoB;;CAG3C,UAAU,KAAG;;;;;;2BAMYA,SAAO,aAAa;;;;CAK7C,cAAc,KAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DlB,EAAE"}
@@ -1,7 +1,7 @@
1
1
  import { ScrollAreaContentProps, ScrollAreaCornerProps, ScrollAreaRootProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaViewportProps } from "./atoms.mjs";
2
2
  import { ReactNode } from "react";
3
3
 
4
- //#region src/ScrollArea/type.d.ts
4
+ //#region src/base-ui/ScrollArea/type.d.ts
5
5
  interface ScrollAreaProps extends Omit<ScrollAreaRootProps, 'children'> {
6
6
  children?: ReactNode;
7
7
  contentProps?: Omit<ScrollAreaContentProps, 'children'>;
@@ -0,0 +1,8 @@
1
+ import { SelectProps } from "./type.mjs";
2
+ import * as react155 from "react";
3
+
4
+ //#region src/base-ui/Select/Select.d.ts
5
+ declare const Select: react155.NamedExoticComponent<SelectProps<any>>;
6
+ //#endregion
7
+ export { Select };
8
+ //# sourceMappingURL=Select.d.mts.map
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
- import { useAppElement } from "../ThemeProvider/AppElementContext.mjs";
4
- import Icon_default from "../Icon/Icon.mjs";
5
- import { styles } from "../Menu/sharedStyle.mjs";
3
+ import { useAppElement } from "../../ThemeProvider/AppElementContext.mjs";
4
+ import Icon_default from "../../Icon/Icon.mjs";
5
+ import { styles } from "../../Menu/sharedStyle.mjs";
6
6
  import { styles as styles$1, triggerVariants } from "./style.mjs";
7
7
  import { isValidElement, memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -11,7 +11,7 @@ import { Check, ChevronDown, Loader2, X } from "lucide-react";
11
11
  import { Select } from "@base-ui/react/select";
12
12
  import { Virtualizer } from "virtua";
13
13
 
14
- //#region src/LobeSelect/LobeSelect.tsx
14
+ //#region src/base-ui/Select/Select.tsx
15
15
  const isGroupOption = (option) => Boolean(option.options);
16
16
  const getOptionSearchText = (option) => {
17
17
  if (typeof option.label === "string" || typeof option.label === "number") return String(option.label);
@@ -30,7 +30,7 @@ const countVirtualItems = (items) => items.reduce((count, item) => {
30
30
  return count + 1;
31
31
  }, 0);
32
32
  const isValueEmpty = (value) => value === null || value === void 0 || value === "";
33
- const LobeSelect = memo(({ allowClear, autoFocus, className, classNames, defaultOpen, defaultValue, disabled, id, labelRender, listHeight = 512, listItemHeight, loading, mode, name, onChange, onOpenChange, onSelect, open, optionRender, options, placeholder, popupClassName, popupMatchSelectWidth, prefix, readOnly, required, behaviorVariant = "default", selectedIndicatorVariant = "check", shadow, showSearch, size = "middle", style, suffixIcon, suffixIconProps, tokenSeparators, value, variant, virtual }) => {
33
+ const Select$1 = memo(({ allowClear, autoFocus, className, classNames, defaultOpen, defaultValue, disabled, id, labelRender, listHeight = 512, listItemHeight, loading, mode, name, onChange, onOpenChange, onSelect, open, optionRender, options, placeholder, popupClassName, popupMatchSelectWidth, prefix, readOnly, required, behaviorVariant = "default", selectedIndicatorVariant = "check", shadow, showSearch, size = "middle", style, suffixIcon, suffixIconProps, tokenSeparators, value, variant, virtual }) => {
34
34
  const { isDarkMode } = useThemeMode();
35
35
  const resolvedVariant = variant ?? (isDarkMode ? "filled" : "outlined");
36
36
  const isMultiple = mode === "multiple" || mode === "tags";
@@ -549,9 +549,9 @@ const LobeSelect = memo(({ allowClear, autoFocus, className, classNames, default
549
549
  })]
550
550
  });
551
551
  });
552
- LobeSelect.displayName = "LobeSelect";
553
- var LobeSelect_default = LobeSelect;
552
+ Select$1.displayName = "Select";
553
+ var Select_default = Select$1;
554
554
 
555
555
  //#endregion
556
- export { LobeSelect_default as default };
557
- //# sourceMappingURL=LobeSelect.mjs.map
556
+ export { Select_default as default };
557
+ //# sourceMappingURL=Select.mjs.map