@pactor-app/ui 1.46.0 → 1.48.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.
- package/dist/{chunk-XA7J5SGA.js → chunk-5FQ5SDIZ.js} +231 -356
- package/dist/{chunk-FU4P7CAM.js → chunk-B2Y6JC36.js} +281 -84
- package/dist/{chunk-QB2RZXDD.js → chunk-PF2FHU2X.js} +821 -876
- package/dist/{chunk-HU2RFIWH.js → chunk-PSEMK4AY.js} +116 -12
- package/dist/{chunk-JV2V4HCI.js → chunk-RLAOCITX.js} +2 -2
- package/dist/{chunk-7OBUSV5S.js → chunk-YHTRCBKF.js} +184 -59
- package/dist/components/index.cjs +1246 -1116
- package/dist/components/index.d.cts +36 -4
- package/dist/components/index.d.ts +36 -4
- package/dist/components/index.js +6 -6
- package/dist/index.cjs +1382 -1148
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/interaction/index.cjs +114 -10
- package/dist/interaction/index.d.cts +35 -1
- package/dist/interaction/index.d.ts +35 -1
- package/dist/interaction/index.js +1 -1
- package/dist/layout/index.cjs +435 -154
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.d.cts +2 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +10 -10
- package/package.json +6 -6
- package/styles.css +35 -0
|
@@ -1869,6 +1869,23 @@ interface MentionsProps {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
declare function Mentions({ name, label, rules, options, trigger, rows, placeholder, value, disabled, size, onChange, className, style, }: MentionsProps): React.JSX.Element;
|
|
1871
1871
|
|
|
1872
|
+
/** 菜单项右端操作按钮;`menu` 提供时点击展开下拉框 */
|
|
1873
|
+
interface MenuItemAction {
|
|
1874
|
+
key: string;
|
|
1875
|
+
/** 图标名(Icon 白名单,kebab/Pascal 均可) */
|
|
1876
|
+
icon: string;
|
|
1877
|
+
/** hover 提示文案 */
|
|
1878
|
+
tooltip?: string;
|
|
1879
|
+
/** 下拉菜单项;选择后 onItemAction 的 action 传 `${actionKey}:${itemValue}` */
|
|
1880
|
+
menu?: DropdownMenuItemData[];
|
|
1881
|
+
}
|
|
1882
|
+
/** onItemAction 事件载荷 */
|
|
1883
|
+
interface MenuItemActionEvent {
|
|
1884
|
+
/** 所属菜单项 key */
|
|
1885
|
+
key: string;
|
|
1886
|
+
/** 操作标识:纯图标按钮为 action.key;下拉选择为 `${action.key}:${value}` */
|
|
1887
|
+
action: string;
|
|
1888
|
+
}
|
|
1872
1889
|
/** 菜单项;`children` 为子菜单(inline 模式下缩进展示) */
|
|
1873
1890
|
interface MenuItem {
|
|
1874
1891
|
key: string;
|
|
@@ -1883,6 +1900,10 @@ interface MenuItem {
|
|
|
1883
1900
|
group?: string;
|
|
1884
1901
|
/** 置灰不可选,点击不触发 onSelect */
|
|
1885
1902
|
disabled?: boolean;
|
|
1903
|
+
/** 右端弱提示文本(如创建时间),位于操作按钮前;点击不触发 onSelect */
|
|
1904
|
+
trailing?: string;
|
|
1905
|
+
/** 右端操作按钮组(图标按钮 / 下拉触发器);点击不触发 onSelect / 目录 toggle */
|
|
1906
|
+
actions?: MenuItemAction[];
|
|
1886
1907
|
children?: MenuItem[];
|
|
1887
1908
|
}
|
|
1888
1909
|
interface MenuProps {
|
|
@@ -1902,8 +1923,16 @@ interface MenuProps {
|
|
|
1902
1923
|
collapsed?: boolean;
|
|
1903
1924
|
/** 初始展开的目录 key(与 selectedKey 祖先链合并;展开状态非受控) */
|
|
1904
1925
|
defaultExpandedKeys?: string[];
|
|
1926
|
+
/** 初始展开全部目录(仅配合 collapsible;优于 defaultExpandedKeys,
|
|
1927
|
+
* 运行时动态新增的目录同样默认展开,适合数据驱动的树) */
|
|
1928
|
+
defaultExpandAll?: boolean;
|
|
1929
|
+
/** 目录项 chevron 展开指示的位置(仅配合 collapsible,缺省 right):
|
|
1930
|
+
* left = 图标/文字前(树形风格);right = 行内右端 */
|
|
1931
|
+
chevronPlacement?: 'left' | 'right';
|
|
1905
1932
|
/** 选中变化事件,传出选中项 key */
|
|
1906
1933
|
onSelect?: (key: string) => void;
|
|
1934
|
+
/** 项操作事件(trailing 旁的操作按钮 / 下拉选择),传出 { key, action } */
|
|
1935
|
+
onItemAction?: (event: MenuItemActionEvent) => void;
|
|
1907
1936
|
/** 通用:根节点 class(与内置样式合并) */
|
|
1908
1937
|
className?: string;
|
|
1909
1938
|
/** 通用:根节点内联样式(同 className 挂载规则) */
|
|
@@ -1916,9 +1945,12 @@ interface MenuProps {
|
|
|
1916
1945
|
* 时自动降级为仅图标(label / badge / dot / 分组隐藏,hover 经 RailTooltip 展示)。
|
|
1917
1946
|
* `collapsible`(仅 inline 模式)使含 children 的目录项可展开/收起:
|
|
1918
1947
|
* 点击目录项只 toggle 不触发 onSelect,右端 chevron 展开时旋转 180°;
|
|
1919
|
-
* 展开状态内部维护,初始为 defaultExpandedKeys ∪ selectedKey
|
|
1948
|
+
* 展开状态内部维护,初始为 defaultExpandedKeys ∪ selectedKey 祖先链,
|
|
1949
|
+
* 或 defaultExpandAll 时全部展开(含运行时新增的目录)。inline 模式下
|
|
1950
|
+
* 目录项不可选中(无选中态、不触发 onSelect);trailing / actions 与
|
|
1951
|
+
* 文字共用同一行容器,悬浮 / 选中底色覆盖整行。
|
|
1920
1952
|
*/
|
|
1921
|
-
declare function Menu({ items, mode, selectedKey, collapsible, collapsed: collapsedProp, defaultExpandedKeys, onSelect, className, style, }: MenuProps): React.JSX.Element;
|
|
1953
|
+
declare function Menu({ items, mode, selectedKey, collapsible, collapsed: collapsedProp, defaultExpandedKeys, defaultExpandAll, chevronPlacement, onSelect, onItemAction, className, style, }: MenuProps): React.JSX.Element;
|
|
1922
1954
|
|
|
1923
1955
|
/** 菜单项(叶子);value 为 onSelect 传出值 */
|
|
1924
1956
|
interface MenubarLeafItem {
|
|
@@ -3535,7 +3567,7 @@ interface FormContextValue {
|
|
|
3535
3567
|
/** 标记后代字段处于 Form 容器内 */
|
|
3536
3568
|
inForm: true;
|
|
3537
3569
|
/** 表单布局(表单项排布 class 由字段侧按此生成) */
|
|
3538
|
-
layout:
|
|
3570
|
+
layout: "horizontal" | "vertical" | "inline";
|
|
3539
3571
|
/** 当前表单 values(受控) */
|
|
3540
3572
|
values: Record<string, unknown>;
|
|
3541
3573
|
/** 校验错误(字段名 → 错误文案) */
|
|
@@ -3565,4 +3597,4 @@ interface ClearHoverButtonProps {
|
|
|
3565
3597
|
}
|
|
3566
3598
|
declare function ClearHoverButton({ label, onClear, className }: ClearHoverButtonProps): React.JSX.Element;
|
|
3567
3599
|
|
|
3568
|
-
export { Accordion, type AccordionItemData, type AccordionProps, Affix, type AffixProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, Anchor, type AnchorItemData, type AnchorProps, AspectRatio, type AspectRatioProps, Audio, type AudioProps, Avatar, type AvatarProps, BackTop, type BackTopProps, Badge, type BadgeProps, type BadgeVariant, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, type CalendarProps, Card, type CardProps, Carousel, type CarouselImage, type CarouselItemData, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, ChatInput, type ChatInputProps, Checkbox, type CheckboxProps, ChipFilter, type ChipFilterItem, type ChipFilterProps, ChipNode, type ChipNodeProps, ClearHoverButton, type ClearHoverButtonProps, CodeBlock, type CodeBlockProps, Col, type ColBreakpoint, type ColProps, type ColResponsiveValue, Collapsible, type CollapsibleProps, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupData, type CommandItemData, type CommandProps, Container, type ContainerProps, type ContainerSize, Content, type ContentProps, ContextMenu, type ContextMenuItemData, type ContextMenuProps, type ControlSize, DataTable, type DataTableColumn, type DataTablePagination, type DataTableProps, type DataTableSort, type DataTableSortOrder, DatePicker, type DatePickerPreset, type DatePickerPresetKey, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRangeValue, Descriptions, type DescriptionsItemData, type DescriptionsProps, Dialog, type DialogProps, DiffViewer, type DiffViewerProps, type DocumentPageData, DocumentPreview, type DocumentPreviewProps, Drawer, type DrawerPlacement, type DrawerProps, DropdownMenu, type DropdownMenuItemData, type DropdownMenuProps, Empty, type EmptyProps, Field, type FieldProps, type FieldRule, FilePreview, type FilePreviewKind, type FilePreviewProps, Flex, type FlexProps, Footer, type FooterProps, For, type ForProps, Form, type FormContextValue, type FormProps, Gallery, type GalleryItemData, type GalleryProps, Grid, type GridProps, Header, type HeaderBrandPosition, type HeaderDropdown, type HeaderDropdownItem, type HeaderLocale, type HeaderMenuItem, type HeaderProps, type HeaderTheme, type HeaderUser, type HeaderUserItem, HoverCard, type HoverCardProps, ICONS, Icon, type IconProps, type IconSize, Image, ImageLightbox, type ImageLightboxProps, type ImageProps, ImageViewer, type ImageViewerProps, Input, InputGroup, type InputGroupProps, InputOTP, type InputOTPProps, type InputProps, Item, type ItemProps, JSONViewer, type JSONViewerProps, Kbd, type KbdProps, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, List, type ListItemData, type ListProps, LoadingOverlay, type LoadingOverlayProps, type MentionOption, Mentions, type MentionsProps, Menu, type MenuItem, type MenuProps, Menubar, type MenubarLeafItem, type MenubarMenuData, type MenubarProps, Message, type MessageProps, NavigationMenu, type NavigationMenuChildItem, type NavigationMenuItemData, type NavigationMenuProps, Notification, type NotificationProps, NumberInput, type NumberInputProps, Page, type PageProps, Pagination, type PaginationProps, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, RailTooltip, Rate, type RateProps, Resizable, type ResizablePanelData, type ResizableProps, Result, type ResultProps, type ResultStatus, RichText, type RichTextProps, Row, type RowAlign, type RowJustify, type RowProps, ScrollArea, type ScrollAreaProps, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarBrand, type SidebarNavItem, type SidebarProps, Sider, type SiderProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Sonner, type SonnerProps, Space, type SpaceProps, Spinner, type SpinnerProps, type SpinnerSize, Statistic, type StatisticProps, Status, type StatusProps, type StatusType, type StepItemData, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TablePagination, type TablePaginationInfo, type TableProps, Tabs, type TabsProps, Tag, type TagColor, type TagProps, Text, type TextProps, type TextType, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Timeline, type TimelineItemData, type TimelineProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, Tour, type TourProps, type TourStep, Transfer, type TransferOption, type TransferProps, Tree, type TreeNodeData, type TreeProps, TreeSelect, type TreeSelectOption, type TreeSelectProps, Typography, type TypographyProps, type TypographyVariant, Upload, type UploadFileMeta, type UploadProps, Video, type VideoProps, Watermark, type WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer };
|
|
3600
|
+
export { Accordion, type AccordionItemData, type AccordionProps, Affix, type AffixProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, Anchor, type AnchorItemData, type AnchorProps, AspectRatio, type AspectRatioProps, Audio, type AudioProps, Avatar, type AvatarProps, BackTop, type BackTopProps, Badge, type BadgeProps, type BadgeVariant, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, type CalendarProps, Card, type CardProps, Carousel, type CarouselImage, type CarouselItemData, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, ChatInput, type ChatInputProps, Checkbox, type CheckboxProps, ChipFilter, type ChipFilterItem, type ChipFilterProps, ChipNode, type ChipNodeProps, ClearHoverButton, type ClearHoverButtonProps, CodeBlock, type CodeBlockProps, Col, type ColBreakpoint, type ColProps, type ColResponsiveValue, Collapsible, type CollapsibleProps, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupData, type CommandItemData, type CommandProps, Container, type ContainerProps, type ContainerSize, Content, type ContentProps, ContextMenu, type ContextMenuItemData, type ContextMenuProps, type ControlSize, DataTable, type DataTableColumn, type DataTablePagination, type DataTableProps, type DataTableSort, type DataTableSortOrder, DatePicker, type DatePickerPreset, type DatePickerPresetKey, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRangeValue, Descriptions, type DescriptionsItemData, type DescriptionsProps, Dialog, type DialogProps, DiffViewer, type DiffViewerProps, type DocumentPageData, DocumentPreview, type DocumentPreviewProps, Drawer, type DrawerPlacement, type DrawerProps, DropdownMenu, type DropdownMenuItemData, type DropdownMenuProps, Empty, type EmptyProps, Field, type FieldProps, type FieldRule, FilePreview, type FilePreviewKind, type FilePreviewProps, Flex, type FlexProps, Footer, type FooterProps, For, type ForProps, Form, type FormContextValue, type FormProps, Gallery, type GalleryItemData, type GalleryProps, Grid, type GridProps, Header, type HeaderBrandPosition, type HeaderDropdown, type HeaderDropdownItem, type HeaderLocale, type HeaderMenuItem, type HeaderProps, type HeaderTheme, type HeaderUser, type HeaderUserItem, HoverCard, type HoverCardProps, ICONS, Icon, type IconProps, type IconSize, Image, ImageLightbox, type ImageLightboxProps, type ImageProps, ImageViewer, type ImageViewerProps, Input, InputGroup, type InputGroupProps, InputOTP, type InputOTPProps, type InputProps, Item, type ItemProps, JSONViewer, type JSONViewerProps, Kbd, type KbdProps, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, List, type ListItemData, type ListProps, LoadingOverlay, type LoadingOverlayProps, type MentionOption, Mentions, type MentionsProps, Menu, type MenuItem, type MenuItemAction, type MenuItemActionEvent, type MenuProps, Menubar, type MenubarLeafItem, type MenubarMenuData, type MenubarProps, Message, type MessageProps, NavigationMenu, type NavigationMenuChildItem, type NavigationMenuItemData, type NavigationMenuProps, Notification, type NotificationProps, NumberInput, type NumberInputProps, Page, type PageProps, Pagination, type PaginationProps, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, RailTooltip, Rate, type RateProps, Resizable, type ResizablePanelData, type ResizableProps, Result, type ResultProps, type ResultStatus, RichText, type RichTextProps, Row, type RowAlign, type RowJustify, type RowProps, ScrollArea, type ScrollAreaProps, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarBrand, type SidebarNavItem, type SidebarProps, Sider, type SiderProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Sonner, type SonnerProps, Space, type SpaceProps, Spinner, type SpinnerProps, type SpinnerSize, Statistic, type StatisticProps, Status, type StatusProps, type StatusType, type StepItemData, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TablePagination, type TablePaginationInfo, type TableProps, Tabs, type TabsProps, Tag, type TagColor, type TagProps, Text, type TextProps, type TextType, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Timeline, type TimelineItemData, type TimelineProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, Tour, type TourProps, type TourStep, Transfer, type TransferOption, type TransferProps, Tree, type TreeNodeData, type TreeProps, TreeSelect, type TreeSelectOption, type TreeSelectProps, Typography, type TypographyProps, type TypographyVariant, Upload, type UploadFileMeta, type UploadProps, Video, type VideoProps, Watermark, type WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer };
|
|
@@ -1869,6 +1869,23 @@ interface MentionsProps {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
declare function Mentions({ name, label, rules, options, trigger, rows, placeholder, value, disabled, size, onChange, className, style, }: MentionsProps): React.JSX.Element;
|
|
1871
1871
|
|
|
1872
|
+
/** 菜单项右端操作按钮;`menu` 提供时点击展开下拉框 */
|
|
1873
|
+
interface MenuItemAction {
|
|
1874
|
+
key: string;
|
|
1875
|
+
/** 图标名(Icon 白名单,kebab/Pascal 均可) */
|
|
1876
|
+
icon: string;
|
|
1877
|
+
/** hover 提示文案 */
|
|
1878
|
+
tooltip?: string;
|
|
1879
|
+
/** 下拉菜单项;选择后 onItemAction 的 action 传 `${actionKey}:${itemValue}` */
|
|
1880
|
+
menu?: DropdownMenuItemData[];
|
|
1881
|
+
}
|
|
1882
|
+
/** onItemAction 事件载荷 */
|
|
1883
|
+
interface MenuItemActionEvent {
|
|
1884
|
+
/** 所属菜单项 key */
|
|
1885
|
+
key: string;
|
|
1886
|
+
/** 操作标识:纯图标按钮为 action.key;下拉选择为 `${action.key}:${value}` */
|
|
1887
|
+
action: string;
|
|
1888
|
+
}
|
|
1872
1889
|
/** 菜单项;`children` 为子菜单(inline 模式下缩进展示) */
|
|
1873
1890
|
interface MenuItem {
|
|
1874
1891
|
key: string;
|
|
@@ -1883,6 +1900,10 @@ interface MenuItem {
|
|
|
1883
1900
|
group?: string;
|
|
1884
1901
|
/** 置灰不可选,点击不触发 onSelect */
|
|
1885
1902
|
disabled?: boolean;
|
|
1903
|
+
/** 右端弱提示文本(如创建时间),位于操作按钮前;点击不触发 onSelect */
|
|
1904
|
+
trailing?: string;
|
|
1905
|
+
/** 右端操作按钮组(图标按钮 / 下拉触发器);点击不触发 onSelect / 目录 toggle */
|
|
1906
|
+
actions?: MenuItemAction[];
|
|
1886
1907
|
children?: MenuItem[];
|
|
1887
1908
|
}
|
|
1888
1909
|
interface MenuProps {
|
|
@@ -1902,8 +1923,16 @@ interface MenuProps {
|
|
|
1902
1923
|
collapsed?: boolean;
|
|
1903
1924
|
/** 初始展开的目录 key(与 selectedKey 祖先链合并;展开状态非受控) */
|
|
1904
1925
|
defaultExpandedKeys?: string[];
|
|
1926
|
+
/** 初始展开全部目录(仅配合 collapsible;优于 defaultExpandedKeys,
|
|
1927
|
+
* 运行时动态新增的目录同样默认展开,适合数据驱动的树) */
|
|
1928
|
+
defaultExpandAll?: boolean;
|
|
1929
|
+
/** 目录项 chevron 展开指示的位置(仅配合 collapsible,缺省 right):
|
|
1930
|
+
* left = 图标/文字前(树形风格);right = 行内右端 */
|
|
1931
|
+
chevronPlacement?: 'left' | 'right';
|
|
1905
1932
|
/** 选中变化事件,传出选中项 key */
|
|
1906
1933
|
onSelect?: (key: string) => void;
|
|
1934
|
+
/** 项操作事件(trailing 旁的操作按钮 / 下拉选择),传出 { key, action } */
|
|
1935
|
+
onItemAction?: (event: MenuItemActionEvent) => void;
|
|
1907
1936
|
/** 通用:根节点 class(与内置样式合并) */
|
|
1908
1937
|
className?: string;
|
|
1909
1938
|
/** 通用:根节点内联样式(同 className 挂载规则) */
|
|
@@ -1916,9 +1945,12 @@ interface MenuProps {
|
|
|
1916
1945
|
* 时自动降级为仅图标(label / badge / dot / 分组隐藏,hover 经 RailTooltip 展示)。
|
|
1917
1946
|
* `collapsible`(仅 inline 模式)使含 children 的目录项可展开/收起:
|
|
1918
1947
|
* 点击目录项只 toggle 不触发 onSelect,右端 chevron 展开时旋转 180°;
|
|
1919
|
-
* 展开状态内部维护,初始为 defaultExpandedKeys ∪ selectedKey
|
|
1948
|
+
* 展开状态内部维护,初始为 defaultExpandedKeys ∪ selectedKey 祖先链,
|
|
1949
|
+
* 或 defaultExpandAll 时全部展开(含运行时新增的目录)。inline 模式下
|
|
1950
|
+
* 目录项不可选中(无选中态、不触发 onSelect);trailing / actions 与
|
|
1951
|
+
* 文字共用同一行容器,悬浮 / 选中底色覆盖整行。
|
|
1920
1952
|
*/
|
|
1921
|
-
declare function Menu({ items, mode, selectedKey, collapsible, collapsed: collapsedProp, defaultExpandedKeys, onSelect, className, style, }: MenuProps): React.JSX.Element;
|
|
1953
|
+
declare function Menu({ items, mode, selectedKey, collapsible, collapsed: collapsedProp, defaultExpandedKeys, defaultExpandAll, chevronPlacement, onSelect, onItemAction, className, style, }: MenuProps): React.JSX.Element;
|
|
1922
1954
|
|
|
1923
1955
|
/** 菜单项(叶子);value 为 onSelect 传出值 */
|
|
1924
1956
|
interface MenubarLeafItem {
|
|
@@ -3535,7 +3567,7 @@ interface FormContextValue {
|
|
|
3535
3567
|
/** 标记后代字段处于 Form 容器内 */
|
|
3536
3568
|
inForm: true;
|
|
3537
3569
|
/** 表单布局(表单项排布 class 由字段侧按此生成) */
|
|
3538
|
-
layout:
|
|
3570
|
+
layout: "horizontal" | "vertical" | "inline";
|
|
3539
3571
|
/** 当前表单 values(受控) */
|
|
3540
3572
|
values: Record<string, unknown>;
|
|
3541
3573
|
/** 校验错误(字段名 → 错误文案) */
|
|
@@ -3565,4 +3597,4 @@ interface ClearHoverButtonProps {
|
|
|
3565
3597
|
}
|
|
3566
3598
|
declare function ClearHoverButton({ label, onClear, className }: ClearHoverButtonProps): React.JSX.Element;
|
|
3567
3599
|
|
|
3568
|
-
export { Accordion, type AccordionItemData, type AccordionProps, Affix, type AffixProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, Anchor, type AnchorItemData, type AnchorProps, AspectRatio, type AspectRatioProps, Audio, type AudioProps, Avatar, type AvatarProps, BackTop, type BackTopProps, Badge, type BadgeProps, type BadgeVariant, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, type CalendarProps, Card, type CardProps, Carousel, type CarouselImage, type CarouselItemData, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, ChatInput, type ChatInputProps, Checkbox, type CheckboxProps, ChipFilter, type ChipFilterItem, type ChipFilterProps, ChipNode, type ChipNodeProps, ClearHoverButton, type ClearHoverButtonProps, CodeBlock, type CodeBlockProps, Col, type ColBreakpoint, type ColProps, type ColResponsiveValue, Collapsible, type CollapsibleProps, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupData, type CommandItemData, type CommandProps, Container, type ContainerProps, type ContainerSize, Content, type ContentProps, ContextMenu, type ContextMenuItemData, type ContextMenuProps, type ControlSize, DataTable, type DataTableColumn, type DataTablePagination, type DataTableProps, type DataTableSort, type DataTableSortOrder, DatePicker, type DatePickerPreset, type DatePickerPresetKey, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRangeValue, Descriptions, type DescriptionsItemData, type DescriptionsProps, Dialog, type DialogProps, DiffViewer, type DiffViewerProps, type DocumentPageData, DocumentPreview, type DocumentPreviewProps, Drawer, type DrawerPlacement, type DrawerProps, DropdownMenu, type DropdownMenuItemData, type DropdownMenuProps, Empty, type EmptyProps, Field, type FieldProps, type FieldRule, FilePreview, type FilePreviewKind, type FilePreviewProps, Flex, type FlexProps, Footer, type FooterProps, For, type ForProps, Form, type FormContextValue, type FormProps, Gallery, type GalleryItemData, type GalleryProps, Grid, type GridProps, Header, type HeaderBrandPosition, type HeaderDropdown, type HeaderDropdownItem, type HeaderLocale, type HeaderMenuItem, type HeaderProps, type HeaderTheme, type HeaderUser, type HeaderUserItem, HoverCard, type HoverCardProps, ICONS, Icon, type IconProps, type IconSize, Image, ImageLightbox, type ImageLightboxProps, type ImageProps, ImageViewer, type ImageViewerProps, Input, InputGroup, type InputGroupProps, InputOTP, type InputOTPProps, type InputProps, Item, type ItemProps, JSONViewer, type JSONViewerProps, Kbd, type KbdProps, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, List, type ListItemData, type ListProps, LoadingOverlay, type LoadingOverlayProps, type MentionOption, Mentions, type MentionsProps, Menu, type MenuItem, type MenuProps, Menubar, type MenubarLeafItem, type MenubarMenuData, type MenubarProps, Message, type MessageProps, NavigationMenu, type NavigationMenuChildItem, type NavigationMenuItemData, type NavigationMenuProps, Notification, type NotificationProps, NumberInput, type NumberInputProps, Page, type PageProps, Pagination, type PaginationProps, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, RailTooltip, Rate, type RateProps, Resizable, type ResizablePanelData, type ResizableProps, Result, type ResultProps, type ResultStatus, RichText, type RichTextProps, Row, type RowAlign, type RowJustify, type RowProps, ScrollArea, type ScrollAreaProps, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarBrand, type SidebarNavItem, type SidebarProps, Sider, type SiderProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Sonner, type SonnerProps, Space, type SpaceProps, Spinner, type SpinnerProps, type SpinnerSize, Statistic, type StatisticProps, Status, type StatusProps, type StatusType, type StepItemData, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TablePagination, type TablePaginationInfo, type TableProps, Tabs, type TabsProps, Tag, type TagColor, type TagProps, Text, type TextProps, type TextType, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Timeline, type TimelineItemData, type TimelineProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, Tour, type TourProps, type TourStep, Transfer, type TransferOption, type TransferProps, Tree, type TreeNodeData, type TreeProps, TreeSelect, type TreeSelectOption, type TreeSelectProps, Typography, type TypographyProps, type TypographyVariant, Upload, type UploadFileMeta, type UploadProps, Video, type VideoProps, Watermark, type WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer };
|
|
3600
|
+
export { Accordion, type AccordionItemData, type AccordionProps, Affix, type AffixProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, Anchor, type AnchorItemData, type AnchorProps, AspectRatio, type AspectRatioProps, Audio, type AudioProps, Avatar, type AvatarProps, BackTop, type BackTopProps, Badge, type BadgeProps, type BadgeVariant, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, type CalendarProps, Card, type CardProps, Carousel, type CarouselImage, type CarouselItemData, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, ChatInput, type ChatInputProps, Checkbox, type CheckboxProps, ChipFilter, type ChipFilterItem, type ChipFilterProps, ChipNode, type ChipNodeProps, ClearHoverButton, type ClearHoverButtonProps, CodeBlock, type CodeBlockProps, Col, type ColBreakpoint, type ColProps, type ColResponsiveValue, Collapsible, type CollapsibleProps, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupData, type CommandItemData, type CommandProps, Container, type ContainerProps, type ContainerSize, Content, type ContentProps, ContextMenu, type ContextMenuItemData, type ContextMenuProps, type ControlSize, DataTable, type DataTableColumn, type DataTablePagination, type DataTableProps, type DataTableSort, type DataTableSortOrder, DatePicker, type DatePickerPreset, type DatePickerPresetKey, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRangeValue, Descriptions, type DescriptionsItemData, type DescriptionsProps, Dialog, type DialogProps, DiffViewer, type DiffViewerProps, type DocumentPageData, DocumentPreview, type DocumentPreviewProps, Drawer, type DrawerPlacement, type DrawerProps, DropdownMenu, type DropdownMenuItemData, type DropdownMenuProps, Empty, type EmptyProps, Field, type FieldProps, type FieldRule, FilePreview, type FilePreviewKind, type FilePreviewProps, Flex, type FlexProps, Footer, type FooterProps, For, type ForProps, Form, type FormContextValue, type FormProps, Gallery, type GalleryItemData, type GalleryProps, Grid, type GridProps, Header, type HeaderBrandPosition, type HeaderDropdown, type HeaderDropdownItem, type HeaderLocale, type HeaderMenuItem, type HeaderProps, type HeaderTheme, type HeaderUser, type HeaderUserItem, HoverCard, type HoverCardProps, ICONS, Icon, type IconProps, type IconSize, Image, ImageLightbox, type ImageLightboxProps, type ImageProps, ImageViewer, type ImageViewerProps, Input, InputGroup, type InputGroupProps, InputOTP, type InputOTPProps, type InputProps, Item, type ItemProps, JSONViewer, type JSONViewerProps, Kbd, type KbdProps, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, List, type ListItemData, type ListProps, LoadingOverlay, type LoadingOverlayProps, type MentionOption, Mentions, type MentionsProps, Menu, type MenuItem, type MenuItemAction, type MenuItemActionEvent, type MenuProps, Menubar, type MenubarLeafItem, type MenubarMenuData, type MenubarProps, Message, type MessageProps, NavigationMenu, type NavigationMenuChildItem, type NavigationMenuItemData, type NavigationMenuProps, Notification, type NotificationProps, NumberInput, type NumberInputProps, Page, type PageProps, Pagination, type PaginationProps, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, RailTooltip, Rate, type RateProps, Resizable, type ResizablePanelData, type ResizableProps, Result, type ResultProps, type ResultStatus, RichText, type RichTextProps, Row, type RowAlign, type RowJustify, type RowProps, ScrollArea, type ScrollAreaProps, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarBrand, type SidebarNavItem, type SidebarProps, Sider, type SiderProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Sonner, type SonnerProps, Space, type SpaceProps, Spinner, type SpinnerProps, type SpinnerSize, Statistic, type StatisticProps, Status, type StatusProps, type StatusType, type StepItemData, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TablePagination, type TablePaginationInfo, type TableProps, Tabs, type TabsProps, Tag, type TagColor, type TagProps, Text, type TextProps, type TextType, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Timeline, type TimelineItemData, type TimelineProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, Tour, type TourProps, type TourStep, Transfer, type TransferOption, type TransferProps, Tree, type TreeNodeData, type TreeProps, TreeSelect, type TreeSelectOption, type TreeSelectProps, Typography, type TypographyProps, type TypographyVariant, Upload, type UploadFileMeta, type UploadProps, Video, type VideoProps, Watermark, type WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer };
|
package/dist/components/index.js
CHANGED
|
@@ -42,7 +42,6 @@ import {
|
|
|
42
42
|
DiffViewer,
|
|
43
43
|
DocumentPreview,
|
|
44
44
|
Drawer,
|
|
45
|
-
DropdownMenu,
|
|
46
45
|
Empty,
|
|
47
46
|
Field,
|
|
48
47
|
FilePreview,
|
|
@@ -111,7 +110,6 @@ import {
|
|
|
111
110
|
Timeline,
|
|
112
111
|
Toggle,
|
|
113
112
|
ToggleGroup,
|
|
114
|
-
Tooltip,
|
|
115
113
|
Tour,
|
|
116
114
|
Transfer,
|
|
117
115
|
Tree,
|
|
@@ -127,19 +125,21 @@ import {
|
|
|
127
125
|
registerBuiltinComponents,
|
|
128
126
|
useFormContext,
|
|
129
127
|
useOptionalRenderer
|
|
130
|
-
} from "../chunk-
|
|
128
|
+
} from "../chunk-PF2FHU2X.js";
|
|
131
129
|
import {
|
|
130
|
+
DropdownMenu,
|
|
132
131
|
ICONS,
|
|
133
132
|
Icon,
|
|
134
133
|
Menu,
|
|
135
134
|
RailTooltip,
|
|
136
135
|
Sidebar,
|
|
136
|
+
Tooltip,
|
|
137
137
|
normalizeIconName,
|
|
138
138
|
useSidebarDrawer
|
|
139
|
-
} from "../chunk-
|
|
140
|
-
import "../chunk-
|
|
139
|
+
} from "../chunk-B2Y6JC36.js";
|
|
140
|
+
import "../chunk-5FQ5SDIZ.js";
|
|
141
141
|
import "../chunk-YVHPJHW3.js";
|
|
142
|
-
import "../chunk-
|
|
142
|
+
import "../chunk-YHTRCBKF.js";
|
|
143
143
|
import "../chunk-WKJUCGV4.js";
|
|
144
144
|
export {
|
|
145
145
|
Accordion,
|