@lobehub/ui 5.2.1 → 5.3.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 (163) 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/CopyButton/CopyButton.d.mts +2 -2
  14. package/es/DatePicker/DatePicker.d.mts +2 -2
  15. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  16. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  17. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  18. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  19. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  20. package/es/Drawer/Drawer.d.mts +2 -2
  21. package/es/Dropdown/Dropdown.d.mts +2 -2
  22. package/es/EditableText/EditableText.d.mts +2 -2
  23. package/es/EditorSlashMenu/atoms.d.mts +13 -13
  24. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  25. package/es/Flex/FlexBasic.d.mts +2 -2
  26. package/es/FontLoader/index.d.mts +2 -2
  27. package/es/Footer/Footer.d.mts +2 -2
  28. package/es/Form/components/FormGroup.d.mts +2 -2
  29. package/es/Form/components/FormItem.d.mts +2 -2
  30. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  31. package/es/FormModal/FormModal.d.mts +2 -2
  32. package/es/Freeze/Freeze.d.mts +2 -2
  33. package/es/GuideCard/GuideCard.d.mts +2 -2
  34. package/es/Header/Header.d.mts +2 -2
  35. package/es/Highlighter/Highlighter.d.mts +2 -2
  36. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  37. package/es/Hotkey/Hotkey.d.mts +2 -2
  38. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  39. package/es/Icon/Icon.d.mts +2 -2
  40. package/es/Icon/components/IconProvider.d.mts +3 -3
  41. package/es/Image/Image.mjs +2 -2
  42. package/es/Image/Image.mjs.map +1 -1
  43. package/es/Image/PreviewGroup.d.mts +2 -2
  44. package/es/Image/components/Toolbar.mjs +116 -36
  45. package/es/Image/components/Toolbar.mjs.map +1 -1
  46. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  47. package/es/Input/Input.d.mts +2 -2
  48. package/es/Input/InputNumber.d.mts +2 -2
  49. package/es/Input/InputOPT.d.mts +2 -2
  50. package/es/Input/InputPassword.d.mts +2 -2
  51. package/es/Input/TextArea.d.mts +2 -2
  52. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  53. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  54. package/es/Layout/components/LayoutMain.d.mts +2 -2
  55. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  56. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  57. package/es/Layout/components/LayoutToc.d.mts +2 -2
  58. package/es/List/ListItem/index.d.mts +2 -2
  59. package/es/Markdown/Markdown.d.mts +2 -2
  60. package/es/Markdown/Typography.d.mts +2 -2
  61. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  62. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  63. package/es/Menu/Menu.d.mts +2 -2
  64. package/es/Modal/Modal.d.mts +2 -2
  65. package/es/Modal/ModalProvider.d.mts +2 -2
  66. package/es/Modal/imperative.d.mts +2 -2
  67. package/es/MotionProvider/index.d.mts +2 -2
  68. package/es/Popover/ArrowIcon.d.mts +2 -2
  69. package/es/Popover/atoms.d.mts +9 -9
  70. package/es/Popover/context.d.mts +2 -2
  71. package/es/SearchBar/SearchBar.d.mts +2 -2
  72. package/es/Segmented/Segmented.d.mts +2 -2
  73. package/es/Select/Select.d.mts +2 -2
  74. package/es/SideNav/SideNav.d.mts +2 -2
  75. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  76. package/es/SortableList/components/DragHandle.d.mts +2 -2
  77. package/es/SortableList/components/SortableItem.d.mts +2 -2
  78. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  79. package/es/Toc/Toc.d.mts +2 -2
  80. package/es/Tooltip/TooltipGroup.mjs +4 -3
  81. package/es/Tooltip/TooltipGroup.mjs.map +1 -1
  82. package/es/Tooltip/TooltipStandalone.mjs +18 -5
  83. package/es/Tooltip/TooltipStandalone.mjs.map +1 -1
  84. package/es/Tooltip/type.d.mts +7 -0
  85. package/es/Tooltip/useMergedTooltipProps.mjs +4 -1
  86. package/es/Tooltip/useMergedTooltipProps.mjs.map +1 -1
  87. package/es/Video/index.d.mts +2 -2
  88. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  89. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  90. package/es/awesome/Features/Features.d.mts +2 -2
  91. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  92. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  93. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  94. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  95. package/es/awesome/Hero/Hero.d.mts +2 -2
  96. package/es/awesome/Spline/Spine.d.mts +2 -2
  97. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  98. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  99. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  100. package/es/base-ui/ContextMenu/ContextMenuHost.mjs +2 -0
  101. package/es/base-ui/ContextMenu/ContextMenuHost.mjs.map +1 -1
  102. package/es/base-ui/ContextMenu/renderItems.mjs.map +1 -1
  103. package/es/base-ui/DropdownMenu/DropdownMenu.d.mts +2 -2
  104. package/es/base-ui/DropdownMenu/atoms.d.mts +18 -18
  105. package/es/base-ui/Modal/atoms.d.mts +12 -12
  106. package/es/base-ui/Modal/context.d.mts +2 -2
  107. package/es/base-ui/Modal/imperative.d.mts +2 -2
  108. package/es/base-ui/ScrollArea/atoms.d.mts +7 -7
  109. package/es/base-ui/Select/Select.d.mts +2 -2
  110. package/es/base-ui/Select/atoms.d.mts +19 -19
  111. package/es/base-ui/Toast/imperative.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/i18n/resources/en/image.d.mts +18 -0
  128. package/es/i18n/resources/en/image.mjs +19 -0
  129. package/es/i18n/resources/en/image.mjs.map +1 -0
  130. package/es/i18n/resources/en/index.d.mts +4 -3
  131. package/es/i18n/resources/en/index.mjs +2 -0
  132. package/es/i18n/resources/en/index.mjs.map +1 -1
  133. package/es/i18n/resources/zhCn/image.d.mts +18 -0
  134. package/es/i18n/resources/zhCn/image.mjs +19 -0
  135. package/es/i18n/resources/zhCn/image.mjs.map +1 -0
  136. package/es/i18n/resources/zhCn/index.d.mts +4 -3
  137. package/es/i18n/resources/zhCn/index.mjs +2 -0
  138. package/es/i18n/resources/zhCn/index.mjs.map +1 -1
  139. package/es/i18n/types.d.mts +4 -3
  140. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  141. package/es/icons/lucideExtra/CreateBotIcon.d.mts +2 -2
  142. package/es/icons/lucideExtra/DiscordIcon.d.mts +3 -3
  143. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +3 -3
  144. package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
  145. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  146. package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
  147. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  148. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  149. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  150. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  151. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
  152. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  153. package/es/icons/lucideExtra/SkillsIcon.d.mts +3 -3
  154. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +3 -3
  155. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  156. package/es/mdx/Mdx/index.d.mts +2 -2
  157. package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
  158. package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
  159. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  160. package/es/storybook/StoryBook/index.d.mts +2 -2
  161. package/es/utils/blobToPng.mjs +41 -0
  162. package/es/utils/blobToPng.mjs.map +1 -0
  163. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"renderItems.mjs","names":["common","info: MenuInfo","label","labelText","isDanger","Icon"],"sources":["../../../src/base-ui/ContextMenu/renderItems.tsx"],"sourcesContent":["import { ContextMenu } from '@base-ui/react/context-menu';\nimport { Switch } from 'antd';\nimport { cx } from 'antd-style';\nimport { 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';\nimport { memo, useCallback, useState } from 'react';\n\nimport common from '@/i18n/resources/en/common';\nimport { useTranslation } from '@/i18n/useTranslation';\nimport Icon from '@/Icon';\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 { preventDefaultAndStopPropagation } from '@/utils/dom';\n\nimport { styles } from './style';\nimport {\n type ContextMenuCheckboxItem,\n type ContextMenuItem,\n type ContextMenuSwitchItem,\n} from './type';\n\nexport type { IconAlign, IconSpaceMode } from '@/Menu';\n\nconst EmptyMenuItem = memo(() => {\n const { t } = useTranslation(common);\n return (\n <ContextMenu.Item disabled className={cx(styles.item, styles.empty)}>\n <div className={styles.itemContent}>\n <span className={styles.label}>{t('common.empty')}</span>\n </div>\n </ContextMenu.Item>\n );\n});\n\nEmptyMenuItem.displayName = 'EmptyMenuItem';\n\ninterface ContextMenuSwitchItemInternalProps {\n checked?: boolean;\n children: ReactNode;\n closeOnClick?: boolean;\n danger?: boolean;\n defaultChecked?: boolean;\n disabled?: boolean;\n label?: string;\n onCheckedChange?: (checked: boolean) => void;\n}\n\nconst ContextMenuSwitchItemInternal = ({\n checked: checkedProp,\n children,\n closeOnClick = false,\n danger,\n defaultChecked,\n disabled,\n label,\n onCheckedChange,\n}: ContextMenuSwitchItemInternalProps) => {\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 <ContextMenu.Item\n className={cx(styles.item, danger && styles.danger)}\n closeOnClick={closeOnClick}\n disabled={disabled}\n label={label}\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 </ContextMenu.Item>\n );\n};\n\nconst renderItemContent = (\n item: MenuItemType | SubMenuType | ContextMenuCheckboxItem | ContextMenuSwitchItem,\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 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 <div className={styles.labelGroup}>\n <span className={styles.label}>{label}</span>\n <span className={styles.desc}>{desc}</span>\n </div>\n ) : (\n <span className={styles.label}>{label}</span>\n );\n\n return (\n <div className={cx(styles.itemContent, alignStart && styles.itemContentAlignStart)}>\n {shouldRenderIcon ? (\n <span\n aria-hidden={!hasIcon}\n className={cx(styles.icon, alignStart && styles.iconAlignStart)}\n >\n {hasCustomIcon ? iconNode : hasIcon ? renderIcon(item.icon, 'small') : null}\n </span>\n ) : null}\n {labelNode}\n {extra ? <span className={styles.extra}>{extra}</span> : null}\n {indicatorOnRight && iconNode ? iconNode : null}\n {options?.submenu ? (\n <span className={styles.submenuArrow}>\n <ChevronRight size={16} />\n </span>\n ) : null}\n </div>\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 renderContextMenuItems = (\n items: ContextMenuItem[],\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 ContextMenuCheckboxItem).type === 'checkbox') {\n const checkboxItem = item as ContextMenuCheckboxItem;\n const label = getItemLabel(checkboxItem);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = Boolean(checkboxItem.danger);\n const indicator = (\n <ContextMenu.CheckboxItemIndicator>\n <Icon icon={Check} size={'small'} />\n </ContextMenu.CheckboxItemIndicator>\n );\n\n return (\n <ContextMenu.CheckboxItem\n checked={checkboxItem.checked}\n className={cx(styles.item, isDanger && styles.danger)}\n closeOnClick={checkboxItem.closeOnClick}\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 </ContextMenu.CheckboxItem>\n );\n }\n\n if ((item as ContextMenuSwitchItem).type === 'switch') {\n const switchItem = item as ContextMenuSwitchItem;\n const label = getItemLabel(switchItem);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = Boolean(switchItem.danger);\n\n return (\n <ContextMenuSwitchItemInternal\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={switchItem.onCheckedChange}\n >\n {renderItemContent(switchItem, { iconAlign, reserveIconSpace })}\n </ContextMenuSwitchItemInternal>\n );\n }\n\n if ((item as MenuDividerType).type === 'divider') {\n return <ContextMenu.Separator className={styles.separator} 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 <ContextMenu.Group key={itemKey}>\n {group.label ? (\n <ContextMenu.GroupLabel className={styles.groupLabel}>\n {group.label}\n </ContextMenu.GroupLabel>\n ) : null}\n {group.children\n ? renderContextMenuItems(group.children, nextKeyPath, {\n iconAlign,\n iconSpaceMode,\n indicatorOnRight: groupIndicatorOnRight,\n reserveIconSpace: groupReserveIconSpace,\n })\n : null}\n </ContextMenu.Group>\n );\n }\n\n if (\n (item as SubMenuType).type === 'submenu' ||\n ('children' in item && (item as SubMenuType).children)\n ) {\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 <ContextMenu.SubmenuRoot key={itemKey}>\n <ContextMenu.SubmenuTrigger\n className={cx(styles.item, isDanger && styles.danger)}\n disabled={submenu.disabled}\n label={labelText}\n >\n {renderItemContent(submenu, {\n iconAlign,\n reserveIconSpace,\n submenu: true,\n })}\n </ContextMenu.SubmenuTrigger>\n <ContextMenu.Portal>\n <ContextMenu.Positioner\n alignOffset={-4}\n className={styles.positioner}\n data-submenu=\"\"\n sideOffset={-1}\n onContextMenu={preventDefaultAndStopPropagation}\n >\n <ContextMenu.Popup className={styles.popup}>\n {submenu.children && submenu.children.length > 0 ? (\n renderContextMenuItems(submenu.children, nextKeyPath, {\n iconAlign,\n iconSpaceMode,\n })\n ) : (\n <EmptyMenuItem />\n )}\n </ContextMenu.Popup>\n </ContextMenu.Positioner>\n </ContextMenu.Portal>\n </ContextMenu.SubmenuRoot>\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 <ContextMenu.Item\n className={cx(styles.item, isDanger && styles.danger)}\n closeOnClick={menuItem.closeOnClick}\n disabled={menuItem.disabled}\n key={itemKey}\n label={labelText}\n onClick={(event) => invokeItemClick(menuItem, nextKeyPath, event)}\n >\n {renderItemContent(menuItem, { iconAlign, reserveIconSpace })}\n </ContextMenu.Item>\n );\n });\n};\n"],"mappings":";;;;;;;;;;;;;;AAuCA,MAAM,gBAAgB,WAAW;CAC/B,MAAM,EAAE,MAAM,eAAeA,eAAO;AACpC,QACE,oBAAC,YAAY;EAAK;EAAS,WAAW,GAAG,OAAO,MAAM,OAAO,MAAM;YACjE,oBAAC;GAAI,WAAW,OAAO;aACrB,oBAAC;IAAK,WAAW,OAAO;cAAQ,EAAE,eAAe;KAAQ;IACrD;GACW;EAErB;AAEF,cAAc,cAAc;AAa5B,MAAM,iCAAiC,EACrC,SAAS,aACT,UACA,eAAe,OACf,QACA,gBACA,UACA,OACA,sBACwC;CACxC,MAAM,CAAC,iBAAiB,sBAAsB,SAAS,kBAAkB,MAAM;CAC/E,MAAM,eAAe,gBAAgB;CACrC,MAAM,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D,UACE,qBAAC,YAAY,0BACX,oBAAC,YAAY;IACX,WAAW,GAAG,OAAO,MAAMA,cAAY,OAAO,OAAO;IACrD,UAAU,QAAQ;IAClB,OAAOD;cAEN,kBAAkB,SAAS;KAC1B;KACA;KACA,SAAS;KACV,CAAC;KACyB,EAC7B,oBAAC,YAAY,oBACX,oBAAC,YAAY;IACX,aAAa;IACb,WAAW,OAAO;IAClB,gBAAa;IACb,YAAY;IACZ,eAAe;cAEf,oBAAC,YAAY;KAAM,WAAW,OAAO;eAClC,QAAQ,YAAY,QAAQ,SAAS,SAAS,IAC7C,uBAAuB,QAAQ,UAAU,aAAa;MACpD;MACA;MACD,CAAC,GAEF,oBAAC,kBAAgB;MAED;KACG,GACN,KA/BO,QAgCJ;;EAI9B,MAAM,WAAW;EACjB,MAAM,QAAQ,aAAa,SAAS;EACpC,MAAM,YAAY,OAAO,UAAU,WAAW,QAAQ;EACtD,MAAM,WAAW,YAAY,YAAY,QAAQ,SAAS,OAAO;AAEjE,SACE,oBAAC,YAAY;GACX,WAAW,GAAG,OAAO,MAAM,YAAY,OAAO,OAAO;GACrD,cAAc,SAAS;GACvB,UAAU,SAAS;GAEnB,OAAO;GACP,UAAU,UAAU,gBAAgB,UAAU,aAAa,MAAM;aAEhE,kBAAkB,UAAU;IAAE;IAAW;IAAkB,CAAC;KAJxD,QAKY;GAErB"}
1
+ {"version":3,"file":"renderItems.mjs","names":["common","info: MenuInfo","label","labelText","isDanger","Icon"],"sources":["../../../src/base-ui/ContextMenu/renderItems.tsx"],"sourcesContent":["import { ContextMenu } from '@base-ui/react/context-menu';\nimport { Switch } from 'antd';\nimport { cx } from 'antd-style';\nimport { 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';\nimport { memo, useCallback, useState } from 'react';\n\nimport common from '@/i18n/resources/en/common';\nimport { useTranslation } from '@/i18n/useTranslation';\nimport Icon from '@/Icon';\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';\nimport { preventDefaultAndStopPropagation } from '@/utils/dom';\n\nimport {\n type ContextMenuCheckboxItem,\n type ContextMenuItem,\n type ContextMenuSwitchItem,\n} from './type';\n\nexport type { IconAlign, IconSpaceMode } from '@/Menu';\n\nconst EmptyMenuItem = memo(() => {\n const { t } = useTranslation(common);\n return (\n <ContextMenu.Item disabled className={cx(styles.item, styles.empty)}>\n <div className={styles.itemContent}>\n <span className={styles.label}>{t('common.empty')}</span>\n </div>\n </ContextMenu.Item>\n );\n});\n\nEmptyMenuItem.displayName = 'EmptyMenuItem';\n\ninterface ContextMenuSwitchItemInternalProps {\n checked?: boolean;\n children: ReactNode;\n closeOnClick?: boolean;\n danger?: boolean;\n defaultChecked?: boolean;\n disabled?: boolean;\n label?: string;\n onCheckedChange?: (checked: boolean) => void;\n}\n\nconst ContextMenuSwitchItemInternal = ({\n checked: checkedProp,\n children,\n closeOnClick = false,\n danger,\n defaultChecked,\n disabled,\n label,\n onCheckedChange,\n}: ContextMenuSwitchItemInternalProps) => {\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 <ContextMenu.Item\n className={cx(styles.item, danger && styles.danger)}\n closeOnClick={closeOnClick}\n disabled={disabled}\n label={label}\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 </ContextMenu.Item>\n );\n};\n\nconst renderItemContent = (\n item: MenuItemType | SubMenuType | ContextMenuCheckboxItem | ContextMenuSwitchItem,\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 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 <div className={styles.labelGroup}>\n <span className={styles.label}>{label}</span>\n <span className={styles.desc}>{desc}</span>\n </div>\n ) : (\n <span className={styles.label}>{label}</span>\n );\n\n return (\n <div className={cx(styles.itemContent, alignStart && styles.itemContentAlignStart)}>\n {shouldRenderIcon ? (\n <span\n aria-hidden={!hasIcon}\n className={cx(styles.icon, alignStart && styles.iconAlignStart)}\n >\n {hasCustomIcon ? iconNode : hasIcon ? renderIcon(item.icon, 'small') : null}\n </span>\n ) : null}\n {labelNode}\n {extra ? <span className={styles.extra}>{extra}</span> : null}\n {indicatorOnRight && iconNode ? iconNode : null}\n {options?.submenu ? (\n <span className={styles.submenuArrow}>\n <ChevronRight size={16} />\n </span>\n ) : null}\n </div>\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 renderContextMenuItems = (\n items: ContextMenuItem[],\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 ContextMenuCheckboxItem).type === 'checkbox') {\n const checkboxItem = item as ContextMenuCheckboxItem;\n const label = getItemLabel(checkboxItem);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = Boolean(checkboxItem.danger);\n const indicator = (\n <ContextMenu.CheckboxItemIndicator>\n <Icon icon={Check} size={'small'} />\n </ContextMenu.CheckboxItemIndicator>\n );\n\n return (\n <ContextMenu.CheckboxItem\n checked={checkboxItem.checked}\n className={cx(styles.item, isDanger && styles.danger)}\n closeOnClick={checkboxItem.closeOnClick}\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 </ContextMenu.CheckboxItem>\n );\n }\n\n if ((item as ContextMenuSwitchItem).type === 'switch') {\n const switchItem = item as ContextMenuSwitchItem;\n const label = getItemLabel(switchItem);\n const labelText = typeof label === 'string' ? label : undefined;\n const isDanger = Boolean(switchItem.danger);\n\n return (\n <ContextMenuSwitchItemInternal\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={switchItem.onCheckedChange}\n >\n {renderItemContent(switchItem, { iconAlign, reserveIconSpace })}\n </ContextMenuSwitchItemInternal>\n );\n }\n\n if ((item as MenuDividerType).type === 'divider') {\n return <ContextMenu.Separator className={styles.separator} 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 <ContextMenu.Group key={itemKey}>\n {group.label ? (\n <ContextMenu.GroupLabel className={styles.groupLabel}>\n {group.label}\n </ContextMenu.GroupLabel>\n ) : null}\n {group.children\n ? renderContextMenuItems(group.children, nextKeyPath, {\n iconAlign,\n iconSpaceMode,\n indicatorOnRight: groupIndicatorOnRight,\n reserveIconSpace: groupReserveIconSpace,\n })\n : null}\n </ContextMenu.Group>\n );\n }\n\n if (\n (item as SubMenuType).type === 'submenu' ||\n ('children' in item && (item as SubMenuType).children)\n ) {\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 <ContextMenu.SubmenuRoot key={itemKey}>\n <ContextMenu.SubmenuTrigger\n className={cx(styles.item, isDanger && styles.danger)}\n disabled={submenu.disabled}\n label={labelText}\n >\n {renderItemContent(submenu, {\n iconAlign,\n reserveIconSpace,\n submenu: true,\n })}\n </ContextMenu.SubmenuTrigger>\n <ContextMenu.Portal>\n <ContextMenu.Positioner\n alignOffset={-4}\n className={styles.positioner}\n data-submenu=\"\"\n sideOffset={-1}\n onContextMenu={preventDefaultAndStopPropagation}\n >\n <ContextMenu.Popup className={styles.popup}>\n {submenu.children && submenu.children.length > 0 ? (\n renderContextMenuItems(submenu.children, nextKeyPath, {\n iconAlign,\n iconSpaceMode,\n })\n ) : (\n <EmptyMenuItem />\n )}\n </ContextMenu.Popup>\n </ContextMenu.Positioner>\n </ContextMenu.Portal>\n </ContextMenu.SubmenuRoot>\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 <ContextMenu.Item\n className={cx(styles.item, isDanger && styles.danger)}\n closeOnClick={menuItem.closeOnClick}\n disabled={menuItem.disabled}\n key={itemKey}\n label={labelText}\n onClick={(event) => invokeItemClick(menuItem, nextKeyPath, event)}\n >\n {renderItemContent(menuItem, { iconAlign, reserveIconSpace })}\n </ContextMenu.Item>\n );\n });\n};\n"],"mappings":";;;;;;;;;;;;;;AAuCA,MAAM,gBAAgB,WAAW;CAC/B,MAAM,EAAE,MAAM,eAAeA,eAAO;AACpC,QACE,oBAAC,YAAY;EAAK;EAAS,WAAW,GAAG,OAAO,MAAM,OAAO,MAAM;YACjE,oBAAC;GAAI,WAAW,OAAO;aACrB,oBAAC;IAAK,WAAW,OAAO;cAAQ,EAAE,eAAe;KAAQ;IACrD;GACW;EAErB;AAEF,cAAc,cAAc;AAa5B,MAAM,iCAAiC,EACrC,SAAS,aACT,UACA,eAAe,OACf,QACA,gBACA,UACA,OACA,sBACwC;CACxC,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,qBAAC,YAAY;EACX,WAAW,GAAG,OAAO,MAAM,UAAU,OAAO,OAAO;EACrC;EACJ;EACH;EACP,UAAU,MAAM;AACd,KAAE,gBAAgB;AAClB,OAAI,CAAC,SACH,qBAAoB,CAAC,QAAQ;;aAI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AO;eAClC,QAAQ,YAAY,QAAQ,SAAS,SAAS,IAC7C,uBAAuB,QAAQ,UAAU,aAAa;MACpD;MACA;MACD,CAAC,GAEF,oBAAC,kBAAgB;MAED;KACG,GACN,KA/BO,QAgCJ;;EAI9B,MAAM,WAAW;EACjB,MAAM,QAAQ,aAAa,SAAS;EACpC,MAAM,YAAY,OAAO,UAAU,WAAW,QAAQ;EACtD,MAAM,WAAW,YAAY,YAAY,QAAQ,SAAS,OAAO;AAEjE,SACE,oBAAC,YAAY;GACX,WAAW,GAAG,OAAO,MAAM,YAAY,OAAO,OAAO;GACrD,cAAc,SAAS;GACvB,UAAU,SAAS;GAEnB,OAAO;GACP,UAAU,UAAU,gBAAgB,UAAU,aAAa,MAAM;aAEhE,kBAAkB,UAAU;IAAE;IAAW;IAAkB,CAAC;KAJxD,QAKY;GAErB"}
@@ -1,8 +1,8 @@
1
1
  import { DropdownMenuProps } from "./type.mjs";
2
- import * as react149 from "react";
2
+ import * as react119 from "react";
3
3
 
4
4
  //#region src/base-ui/DropdownMenu/DropdownMenu.d.ts
5
- declare const DropdownMenu: react149.NamedExoticComponent<DropdownMenuProps<unknown>>;
5
+ declare const DropdownMenu: react119.NamedExoticComponent<DropdownMenuProps<unknown>>;
6
6
  //#endregion
7
7
  export { DropdownMenu };
8
8
  //# sourceMappingURL=DropdownMenu.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { DropdownMenuPlacement } from "./type.mjs";
2
2
  import React from "react";
3
- import * as react_jsx_runtime26 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime20 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
 
@@ -18,7 +18,7 @@ declare const DropdownMenuTrigger: {
18
18
  nativeButton,
19
19
  ref: refProp,
20
20
  ...rest
21
- }: DropdownMenuTriggerProps): react_jsx_runtime26.JSX.Element;
21
+ }: DropdownMenuTriggerProps): react_jsx_runtime20.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_runtime26.JSX.Element;
34
+ }: DropdownMenuPortalProps): react_jsx_runtime20.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_runtime26.JSX.Element;
51
+ }: DropdownMenuPositionerProps): react_jsx_runtime20.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_runtime26.JSX.Element;
59
+ }: DropdownMenuPopupProps): react_jsx_runtime20.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_runtime26.JSX.Element;
70
+ }: DropdownMenuItemProps): react_jsx_runtime20.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_runtime26.JSX.Element;
81
+ }: DropdownMenuCheckboxItemProps): react_jsx_runtime20.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_runtime26.JSX.Element;
89
+ }: DropdownMenuSeparatorProps): react_jsx_runtime20.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_runtime26.JSX.Element;
98
+ }: DropdownMenuGroupLabelProps): react_jsx_runtime20.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_runtime26.JSX.Element;
109
+ }: DropdownMenuSubmenuTriggerProps): react_jsx_runtime20.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_runtime26.JSX.Element;
117
+ }: DropdownMenuItemContentProps): react_jsx_runtime20.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_runtime26.JSX.Element;
125
+ }: DropdownMenuItemIconProps): react_jsx_runtime20.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_runtime26.JSX.Element;
133
+ }: DropdownMenuItemLabelGroupProps): react_jsx_runtime20.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_runtime26.JSX.Element;
141
+ }: DropdownMenuItemLabelProps): react_jsx_runtime20.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_runtime26.JSX.Element;
149
+ }: DropdownMenuItemDescProps): react_jsx_runtime20.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_runtime26.JSX.Element;
157
+ }: DropdownMenuItemExtraProps): react_jsx_runtime20.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_runtime26.JSX.Element;
165
+ }: DropdownMenuSubmenuArrowProps): react_jsx_runtime20.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_runtime26.JSX.Element;
186
+ }: DropdownMenuSwitchItemProps): react_jsx_runtime20.JSX.Element;
187
187
  displayName: string;
188
188
  };
189
189
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime46 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime61 from "react/jsx-runtime";
3
3
  import { Dialog } from "@base-ui/react/dialog";
4
4
 
5
5
  //#region src/base-ui/Modal/atoms.d.ts
@@ -15,25 +15,25 @@ declare const ModalRoot: ({
15
15
  open,
16
16
  onExitComplete,
17
17
  ...rest
18
- }: ModalRootProps) => react_jsx_runtime46.JSX.Element;
18
+ }: ModalRootProps) => react_jsx_runtime61.JSX.Element;
19
19
  type ModalPortalProps = React.ComponentProps<typeof Dialog.Portal> & {
20
20
  container?: HTMLElement | null;
21
21
  };
22
22
  declare const ModalPortal: ({
23
23
  container,
24
24
  ...rest
25
- }: ModalPortalProps) => react_jsx_runtime46.JSX.Element;
25
+ }: ModalPortalProps) => react_jsx_runtime61.JSX.Element;
26
26
  type ModalViewportProps = React.ComponentProps<typeof Dialog.Viewport>;
27
27
  declare const ModalViewport: ({
28
28
  className,
29
29
  ...rest
30
- }: ModalViewportProps) => react_jsx_runtime46.JSX.Element;
30
+ }: ModalViewportProps) => react_jsx_runtime61.JSX.Element;
31
31
  type ModalBackdropProps = React.ComponentProps<typeof Dialog.Backdrop>;
32
32
  declare const ModalBackdrop: ({
33
33
  className,
34
34
  style,
35
35
  ...rest
36
- }: ModalBackdropProps) => react_jsx_runtime46.JSX.Element;
36
+ }: ModalBackdropProps) => react_jsx_runtime61.JSX.Element;
37
37
  type ModalPopupProps = React.ComponentProps<typeof Dialog.Popup> & {
38
38
  motionProps?: Record<string, any>;
39
39
  panelClassName?: string;
@@ -49,19 +49,19 @@ declare const ModalPopup: ({
49
49
  panelClassName,
50
50
  popupStyle,
51
51
  ...rest
52
- }: ModalPopupProps) => react_jsx_runtime46.JSX.Element;
52
+ }: ModalPopupProps) => react_jsx_runtime61.JSX.Element;
53
53
  type ModalHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
54
54
  ref?: React.Ref<HTMLDivElement>;
55
55
  };
56
56
  declare const ModalHeader: ({
57
57
  className,
58
58
  ...rest
59
- }: ModalHeaderProps) => react_jsx_runtime46.JSX.Element;
59
+ }: ModalHeaderProps) => react_jsx_runtime61.JSX.Element;
60
60
  type ModalTitleProps = React.ComponentProps<typeof Dialog.Title>;
61
61
  declare const ModalTitle: ({
62
62
  className,
63
63
  ...rest
64
- }: ModalTitleProps) => react_jsx_runtime46.JSX.Element;
64
+ }: ModalTitleProps) => react_jsx_runtime61.JSX.Element;
65
65
  type ModalDescriptionProps = React.ComponentProps<typeof Dialog.Description>;
66
66
  declare const ModalDescription: React.FC<ModalDescriptionProps>;
67
67
  type ModalContentProps = React.HTMLAttributes<HTMLDivElement> & {
@@ -70,20 +70,20 @@ type ModalContentProps = React.HTMLAttributes<HTMLDivElement> & {
70
70
  declare const ModalContent: ({
71
71
  className,
72
72
  ...rest
73
- }: ModalContentProps) => react_jsx_runtime46.JSX.Element;
73
+ }: ModalContentProps) => react_jsx_runtime61.JSX.Element;
74
74
  type ModalFooterProps = React.HTMLAttributes<HTMLDivElement> & {
75
75
  ref?: React.Ref<HTMLDivElement>;
76
76
  };
77
77
  declare const ModalFooter: ({
78
78
  className,
79
79
  ...rest
80
- }: ModalFooterProps) => react_jsx_runtime46.JSX.Element;
80
+ }: ModalFooterProps) => react_jsx_runtime61.JSX.Element;
81
81
  type ModalCloseProps = React.ComponentProps<typeof Dialog.Close>;
82
82
  declare const ModalClose: ({
83
83
  className,
84
84
  children,
85
85
  ...rest
86
- }: ModalCloseProps) => react_jsx_runtime46.JSX.Element;
86
+ }: ModalCloseProps) => react_jsx_runtime61.JSX.Element;
87
87
  type ModalTriggerProps = Omit<React.ComponentPropsWithRef<typeof Dialog.Trigger>, 'children' | 'render'> & {
88
88
  children?: React.ReactNode;
89
89
  nativeButton?: boolean;
@@ -94,7 +94,7 @@ declare const ModalTrigger: ({
94
94
  nativeButton,
95
95
  ref: refProp,
96
96
  ...rest
97
- }: ModalTriggerProps) => react_jsx_runtime46.JSX.Element;
97
+ }: ModalTriggerProps) => react_jsx_runtime61.JSX.Element;
98
98
  //#endregion
99
99
  export { ModalBackdrop, ModalBackdropProps, ModalClose, ModalCloseProps, ModalContent, ModalContentProps, ModalDescription, ModalDescriptionProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalPopup, ModalPopupProps, ModalPortal, ModalPortalProps, ModalRoot, ModalRootProps, ModalTitle, ModalTitleProps, ModalTrigger, ModalTriggerProps, ModalViewport, ModalViewportProps, useModalActions, useModalOpen };
100
100
  //# sourceMappingURL=atoms.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ModalContextValue } from "./type.mjs";
2
- import * as react151 from "react";
2
+ import * as react156 from "react";
3
3
 
4
4
  //#region src/base-ui/Modal/context.d.ts
5
- declare const ModalContext: react151.Context<ModalContextValue>;
5
+ declare const ModalContext: react156.Context<ModalContextValue>;
6
6
  declare const useModalContext: () => ModalContextValue;
7
7
  //#endregion
8
8
  export { ModalContext, useModalContext };
@@ -1,5 +1,5 @@
1
1
  import { ImperativeModalProps, ModalConfirmConfig, ModalInstance } from "./type.mjs";
2
- import * as react152 from "react";
2
+ import * as react157 from "react";
3
3
 
4
4
  //#region src/base-ui/Modal/imperative.d.ts
5
5
  interface ModalHostProps {
@@ -14,7 +14,7 @@ interface ModalSystem {
14
14
  ModalHost: React.FC<ModalHostProps>;
15
15
  }
16
16
  declare function createModalSystem(): ModalSystem;
17
- declare const ModalHost: react152.FC<ModalHostProps>;
17
+ declare const ModalHost: react157.FC<ModalHostProps>;
18
18
  declare const createModal: (props: ImperativeModalProps) => ModalInstance;
19
19
  declare const confirmModal: (config: ModalConfirmConfig) => {
20
20
  close: () => void;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime20 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime37 from "react/jsx-runtime";
3
3
  import { ScrollArea } from "@base-ui/react/scroll-area";
4
4
 
5
5
  //#region src/base-ui/ScrollArea/atoms.d.ts
@@ -19,7 +19,7 @@ declare const ScrollAreaRoot: {
19
19
  ({
20
20
  className,
21
21
  ...rest
22
- }: ScrollAreaRootProps): react_jsx_runtime20.JSX.Element;
22
+ }: ScrollAreaRootProps): react_jsx_runtime37.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_runtime20.JSX.Element;
30
+ }: ScrollAreaViewportProps): react_jsx_runtime37.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_runtime20.JSX.Element;
37
+ }: ScrollAreaContentProps): react_jsx_runtime37.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_runtime20.JSX.Element;
44
+ }: ScrollAreaScrollbarProps): react_jsx_runtime37.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_runtime20.JSX.Element;
51
+ }: ScrollAreaThumbProps): react_jsx_runtime37.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_runtime20.JSX.Element;
58
+ }: ScrollAreaCornerProps): react_jsx_runtime37.JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { SelectProps } from "./type.mjs";
2
- import * as react153 from "react";
2
+ import * as react155 from "react";
3
3
 
4
4
  //#region src/base-ui/Select/Select.d.ts
5
- declare const Select: react153.NamedExoticComponent<SelectProps<any>>;
5
+ declare const Select: react155.NamedExoticComponent<SelectProps<any>>;
6
6
  //#endregion
7
7
  export { Select };
8
8
  //# sourceMappingURL=Select.d.mts.map
@@ -1,15 +1,15 @@
1
1
  import { SelectSize, SelectVariant } from "./type.mjs";
2
- import * as react154 from "react";
2
+ import * as react151 from "react";
3
3
  import { ComponentProps, ComponentPropsWithRef } from "react";
4
- import * as react_jsx_runtime57 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime46 from "react/jsx-runtime";
5
5
  import * as _base_ui_react_select0 from "@base-ui/react/select";
6
6
  import { Select } from "@base-ui/react/select";
7
7
  import * as node_modules__base_ui_react_esm_separator_Separator0 from "node_modules/@base-ui/react/esm/separator/Separator";
8
8
 
9
9
  //#region src/base-ui/Select/atoms.d.ts
10
10
  declare const SelectRoot: typeof Select.Root;
11
- declare const SelectBackdrop: react154.ForwardRefExoticComponent<_base_ui_react_select0.SelectBackdropProps & react154.RefAttributes<HTMLDivElement>>;
12
- declare const SelectSeparator: react154.ForwardRefExoticComponent<node_modules__base_ui_react_esm_separator_Separator0.SeparatorProps & react154.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectBackdrop: react151.ForwardRefExoticComponent<_base_ui_react_select0.SelectBackdropProps & react151.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectSeparator: react151.ForwardRefExoticComponent<node_modules__base_ui_react_esm_separator_Separator0.SeparatorProps & react151.RefAttributes<HTMLDivElement>>;
13
13
  type SelectTriggerProps = Omit<ComponentPropsWithRef<typeof Select.Trigger>, 'children' | 'render'> & {
14
14
  children: ComponentProps<typeof Select.Trigger>['children'];
15
15
  shadow?: boolean;
@@ -26,7 +26,7 @@ declare const SelectTrigger: {
26
26
  variant,
27
27
  ref: refProp,
28
28
  ...rest
29
- }: SelectTriggerProps): react_jsx_runtime57.JSX.Element;
29
+ }: SelectTriggerProps): react_jsx_runtime46.JSX.Element;
30
30
  displayName: string;
31
31
  };
32
32
  type SelectIconProps = ComponentProps<typeof Select.Icon>;
@@ -34,7 +34,7 @@ declare const SelectIcon: {
34
34
  ({
35
35
  className,
36
36
  ...rest
37
- }: SelectIconProps): react_jsx_runtime57.JSX.Element;
37
+ }: SelectIconProps): react_jsx_runtime46.JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  type SelectValueProps = ComponentProps<typeof Select.Value>;
@@ -42,7 +42,7 @@ declare const SelectValue: {
42
42
  ({
43
43
  className,
44
44
  ...rest
45
- }: SelectValueProps): react_jsx_runtime57.JSX.Element;
45
+ }: SelectValueProps): react_jsx_runtime46.JSX.Element;
46
46
  displayName: string;
47
47
  };
48
48
  type SelectPortalProps = ComponentProps<typeof Select.Portal> & {
@@ -55,7 +55,7 @@ declare const SelectPortal: {
55
55
  ({
56
56
  container,
57
57
  ...rest
58
- }: SelectPortalProps): react_jsx_runtime57.JSX.Element;
58
+ }: SelectPortalProps): react_jsx_runtime46.JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  type SelectPositionerProps = ComponentProps<typeof Select.Positioner>;
@@ -67,7 +67,7 @@ declare const SelectPositioner: {
67
67
  side,
68
68
  sideOffset,
69
69
  ...rest
70
- }: SelectPositionerProps): react_jsx_runtime57.JSX.Element;
70
+ }: SelectPositionerProps): react_jsx_runtime46.JSX.Element;
71
71
  displayName: string;
72
72
  };
73
73
  type SelectPopupProps = ComponentProps<typeof Select.Popup>;
@@ -75,7 +75,7 @@ declare const SelectPopup: {
75
75
  ({
76
76
  className,
77
77
  ...rest
78
- }: SelectPopupProps): react_jsx_runtime57.JSX.Element;
78
+ }: SelectPopupProps): react_jsx_runtime46.JSX.Element;
79
79
  displayName: string;
80
80
  };
81
81
  type SelectListProps = ComponentProps<typeof Select.List>;
@@ -83,7 +83,7 @@ declare const SelectList: {
83
83
  ({
84
84
  className,
85
85
  ...rest
86
- }: SelectListProps): react_jsx_runtime57.JSX.Element;
86
+ }: SelectListProps): react_jsx_runtime46.JSX.Element;
87
87
  displayName: string;
88
88
  };
89
89
  type SelectItemProps = ComponentProps<typeof Select.Item>;
@@ -91,7 +91,7 @@ declare const SelectItem: {
91
91
  ({
92
92
  className,
93
93
  ...rest
94
- }: SelectItemProps): react_jsx_runtime57.JSX.Element;
94
+ }: SelectItemProps): react_jsx_runtime46.JSX.Element;
95
95
  displayName: string;
96
96
  };
97
97
  type SelectItemTextProps = ComponentProps<typeof Select.ItemText>;
@@ -99,7 +99,7 @@ declare const SelectItemText: {
99
99
  ({
100
100
  className,
101
101
  ...rest
102
- }: SelectItemTextProps): react_jsx_runtime57.JSX.Element;
102
+ }: SelectItemTextProps): react_jsx_runtime46.JSX.Element;
103
103
  displayName: string;
104
104
  };
105
105
  type SelectItemIndicatorProps = ComponentProps<typeof Select.ItemIndicator>;
@@ -107,7 +107,7 @@ declare const SelectItemIndicator: {
107
107
  ({
108
108
  className,
109
109
  ...rest
110
- }: SelectItemIndicatorProps): react_jsx_runtime57.JSX.Element;
110
+ }: SelectItemIndicatorProps): react_jsx_runtime46.JSX.Element;
111
111
  displayName: string;
112
112
  };
113
113
  type SelectGroupProps = ComponentProps<typeof Select.Group>;
@@ -115,7 +115,7 @@ declare const SelectGroup: {
115
115
  ({
116
116
  className,
117
117
  ...rest
118
- }: SelectGroupProps): react_jsx_runtime57.JSX.Element;
118
+ }: SelectGroupProps): react_jsx_runtime46.JSX.Element;
119
119
  displayName: string;
120
120
  };
121
121
  type SelectGroupLabelProps = ComponentProps<typeof Select.GroupLabel>;
@@ -123,7 +123,7 @@ declare const SelectGroupLabel: {
123
123
  ({
124
124
  className,
125
125
  ...rest
126
- }: SelectGroupLabelProps): react_jsx_runtime57.JSX.Element;
126
+ }: SelectGroupLabelProps): react_jsx_runtime46.JSX.Element;
127
127
  displayName: string;
128
128
  };
129
129
  type SelectScrollUpArrowProps = ComponentProps<typeof Select.ScrollUpArrow>;
@@ -131,7 +131,7 @@ declare const SelectScrollUpArrow: {
131
131
  ({
132
132
  className,
133
133
  ...rest
134
- }: SelectScrollUpArrowProps): react_jsx_runtime57.JSX.Element;
134
+ }: SelectScrollUpArrowProps): react_jsx_runtime46.JSX.Element;
135
135
  displayName: string;
136
136
  };
137
137
  type SelectScrollDownArrowProps = ComponentProps<typeof Select.ScrollDownArrow>;
@@ -139,7 +139,7 @@ declare const SelectScrollDownArrow: {
139
139
  ({
140
140
  className,
141
141
  ...rest
142
- }: SelectScrollDownArrowProps): react_jsx_runtime57.JSX.Element;
142
+ }: SelectScrollDownArrowProps): react_jsx_runtime46.JSX.Element;
143
143
  displayName: string;
144
144
  };
145
145
  type SelectArrowProps = ComponentProps<typeof Select.Arrow>;
@@ -147,7 +147,7 @@ declare const SelectArrow: {
147
147
  ({
148
148
  className,
149
149
  ...rest
150
- }: SelectArrowProps): react_jsx_runtime57.JSX.Element;
150
+ }: SelectArrowProps): react_jsx_runtime46.JSX.Element;
151
151
  displayName: string;
152
152
  };
153
153
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ToastAPI, ToastPosition } from "./type.mjs";
2
- import * as react142 from "react";
2
+ import * as react149 from "react";
3
3
 
4
4
  //#region src/base-ui/Toast/imperative.d.ts
5
5
  declare const toast: ToastAPI;
@@ -30,7 +30,7 @@ interface ToastHostProps {
30
30
  */
31
31
  swipeDirection?: ('left' | 'right' | 'up' | 'down') | ('left' | 'right' | 'up' | 'down')[];
32
32
  }
33
- declare const ToastHost: react142.MemoExoticComponent<({
33
+ declare const ToastHost: react149.MemoExoticComponent<({
34
34
  root,
35
35
  className,
36
36
  duration,
@@ -1,5 +1,5 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
- import * as react39 from "react";
2
+ import * as react37 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/brand/LobeChat/index.d.ts
@@ -8,7 +8,7 @@ interface LobeChatProps extends DivProps {
8
8
  size?: number;
9
9
  type?: '3d' | 'flat' | 'mono' | 'text' | 'combine';
10
10
  }
11
- declare const LobeChat: react39.NamedExoticComponent<LobeChatProps>;
11
+ declare const LobeChat: react37.NamedExoticComponent<LobeChatProps>;
12
12
  //#endregion
13
13
  export { LobeChat, LobeChatProps };
14
14
  //# sourceMappingURL=index.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
- import * as react40 from "react";
2
+ import * as react38 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/brand/LobeHub/index.d.ts
@@ -8,7 +8,7 @@ interface LobeHubProps extends DivProps {
8
8
  size?: number;
9
9
  type?: '3d' | 'flat' | 'mono' | 'text' | 'combine';
10
10
  }
11
- declare const LobeHub: react40.NamedExoticComponent<LobeHubProps>;
11
+ declare const LobeHub: react38.NamedExoticComponent<LobeHubProps>;
12
12
  //#endregion
13
13
  export { LobeHub, LobeHubProps };
14
14
  //# sourceMappingURL=index.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { SplineProps } from "../../awesome/Spline/type.mjs";
2
2
  import "../../awesome/Spline/index.mjs";
3
- import * as react42 from "react";
3
+ import * as react39 from "react";
4
4
  import { CSSProperties } from "react";
5
5
 
6
6
  //#region src/brand/LogoThree/LogoSpline.d.ts
@@ -10,7 +10,7 @@ interface LogoSplineProps extends Partial<SplineProps> {
10
10
  style?: CSSProperties;
11
11
  width?: number | string;
12
12
  }
13
- declare const LogoSpline: react42.NamedExoticComponent<LogoSplineProps>;
13
+ declare const LogoSpline: react39.NamedExoticComponent<LogoSplineProps>;
14
14
  //#endregion
15
15
  export { LogoSpline, LogoSplineProps };
16
16
  //# sourceMappingURL=LogoSpline.d.mts.map