lingee-ui 0.0.25 → 0.0.27
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/README.md +3 -2
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/{chunk-2N2YZIHQ.js → chunk-IVBJOGYS.js} +1 -1
- package/dist/{chunk-EBYXYMEL.mjs → chunk-VLFNSJ2J.mjs} +1 -1
- package/dist/{index-89atTLPD.d.mts → index-7pb5YOcq.d.mts} +2 -2
- package/dist/{index-89atTLPD.d.ts → index-7pb5YOcq.d.ts} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.mts +43 -4
- package/dist/index.d.ts +43 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/skill/AGENTS-SNIPPET.md +35 -10
- package/skill/SKILL.md +12 -12
- package/skill/VERSION.json +4 -4
- package/skill/references/components/color-picker.md +1 -1
- package/skill/references/components/date-picker.md +1 -1
- package/skill/references/components/dialog.md +1 -1
- package/skill/references/components/scroll-area.md +2 -2
- package/skill/references/components/sidebar.md +17 -2
- package/skill/references/components/slider.md +1 -1
- package/skill/references/icons.md +20 -11
- package/skill/references/setup.md +11 -3
- package/skill/references/tokens.md +36 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as ButtonProps } from './index-
|
|
2
|
-
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-
|
|
1
|
+
import { B as ButtonProps } from './index-7pb5YOcq.mjs';
|
|
2
|
+
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-7pb5YOcq.mjs';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ElementType, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
5
|
import { TooltipProps } from './tooltip/index.mjs';
|
|
@@ -2300,6 +2300,23 @@ interface SidebarListItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "tit
|
|
|
2300
2300
|
className?: string;
|
|
2301
2301
|
style?: CSSProperties;
|
|
2302
2302
|
}
|
|
2303
|
+
interface SidebarShowMoreRowProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onToggle"> {
|
|
2304
|
+
/** 列表当前是否已全部展开;决定箭头朝向 */
|
|
2305
|
+
expanded: boolean;
|
|
2306
|
+
/** 行内文案,如「查看更多(12)」「收起」,由消费方按 expanded 传入 */
|
|
2307
|
+
label: ReactNode;
|
|
2308
|
+
onToggle?: () => void;
|
|
2309
|
+
className?: string;
|
|
2310
|
+
style?: CSSProperties;
|
|
2311
|
+
}
|
|
2312
|
+
interface SidebarEmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "children" | "onClick"> {
|
|
2313
|
+
/** 主行:说明当前状态 */
|
|
2314
|
+
title: ReactNode;
|
|
2315
|
+
/** 副行:指出下一步动作;不传只渲染主行 */
|
|
2316
|
+
hint?: ReactNode;
|
|
2317
|
+
className?: string;
|
|
2318
|
+
style?: CSSProperties;
|
|
2319
|
+
}
|
|
2303
2320
|
/**
|
|
2304
2321
|
* 箭头位置。
|
|
2305
2322
|
* - title: 紧跟标题之后(文件夹节点用法,标题短时箭头也靠左)
|
|
@@ -2575,6 +2592,25 @@ declare const SidebarListItem: React__default.ForwardRefExoticComponent<SidebarL
|
|
|
2575
2592
|
*/
|
|
2576
2593
|
declare const SidebarCollapsibleListItem: React__default.ForwardRefExoticComponent<SidebarCollapsibleListItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2577
2594
|
|
|
2595
|
+
/**
|
|
2596
|
+
* Sidebar.ShowMoreRow — 分组底部的「查看更多 / 收起」入口
|
|
2597
|
+
*
|
|
2598
|
+
* 作为分组内最后一行渲染,不放进 GroupHeader 的 actions:
|
|
2599
|
+
* 组头操作区仅悬停显现,而这个入口必须常显,否则用户看不出列表被截断。
|
|
2600
|
+
*/
|
|
2601
|
+
declare const SidebarShowMoreRow: React__default.ForwardRefExoticComponent<SidebarShowMoreRowProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* Sidebar.Empty — 整列级空态(主副两行)
|
|
2605
|
+
*
|
|
2606
|
+
* 用于「整个列表为空」的场景;分组 / 文件夹内的空态只有一行,
|
|
2607
|
+
* 已由 FolderNode / FolderSection 的 status 内置,层级不同不要混用。
|
|
2608
|
+
*
|
|
2609
|
+
* 不给 Empty.Card 增加 title / hint API:两行结构只在侧边栏窄列里成立,
|
|
2610
|
+
* 放进通用组件会让其它场景多出一套用不上的排版。
|
|
2611
|
+
*/
|
|
2612
|
+
declare const SidebarEmpty: React__default.ForwardRefExoticComponent<SidebarEmptyProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2613
|
+
|
|
2578
2614
|
/**
|
|
2579
2615
|
* Sidebar.FolderNode — 文件夹节点
|
|
2580
2616
|
*
|
|
@@ -2773,7 +2809,8 @@ declare function formatFileSize(bytes: number): string;
|
|
|
2773
2809
|
* <Sidebar.CollapsibleNavItem label="分组" items={items} />
|
|
2774
2810
|
* <Sidebar.GroupHeader title="置顶" collapsible expanded onToggle={fn} />
|
|
2775
2811
|
* <Sidebar.ListItem title="会话" indicator="running" menu={<Dropdown />} />
|
|
2776
|
-
* <
|
|
2812
|
+
* <Sidebar.ShowMoreRow expanded={false} label="查看更多(3)" onToggle={fn} />
|
|
2813
|
+
* <Sidebar.Empty title="暂无内容" hint="点击上方按钮新建" />
|
|
2777
2814
|
* </ScrollArea>
|
|
2778
2815
|
* <Sidebar.Footer avatar={avatar} name="用户" actions={actions} />
|
|
2779
2816
|
* </Sidebar.Root>
|
|
@@ -2789,6 +2826,8 @@ declare const Sidebar: {
|
|
|
2789
2826
|
GroupHeader: React$1.ForwardRefExoticComponent<SidebarGroupHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2790
2827
|
ListItem: React$1.ForwardRefExoticComponent<SidebarListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2791
2828
|
CollapsibleListItem: React$1.ForwardRefExoticComponent<SidebarCollapsibleListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2829
|
+
ShowMoreRow: React$1.ForwardRefExoticComponent<SidebarShowMoreRowProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2830
|
+
Empty: React$1.ForwardRefExoticComponent<SidebarEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2792
2831
|
FolderNode: React$1.ForwardRefExoticComponent<SidebarFolderNodeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2793
2832
|
FolderSection: React$1.ForwardRefExoticComponent<SidebarFolderSectionProps & React$1.RefAttributes<HTMLElement>>;
|
|
2794
2833
|
Footer: React$1.ForwardRefExoticComponent<SidebarFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -4479,4 +4518,4 @@ declare const Carousel: CarouselComponent;
|
|
|
4479
4518
|
*/
|
|
4480
4519
|
declare function cn(...inputs: ClassValue[]): string;
|
|
4481
4520
|
|
|
4482
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Cascader, type CascaderDropdownProps, type CascaderOption, type CascaderProps, type CascaderSize, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerRgba, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogHostWindow, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale$1 as Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableComponents, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, Timeline, TimelineCard, type TimelineCardProps, type TimelineCardStatus, type TimelineItem, type TimelineProps, type TimelineStatus, TooltipProps, type TransformAction, type TransformType, TreeSelect, type TreeSelectDropdownProps, type TreeSelectNode, type TreeSelectProps, type TreeSelectSize, Upload, type UploadFile, type UploadFileStatus, type UploadListType, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, idID, isInHostModal, msMY, notifyHostModalReady, entityKey as personPickerEntityKey, thTH, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN, zhTW };
|
|
4521
|
+
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Cascader, type CascaderDropdownProps, type CascaderOption, type CascaderProps, type CascaderSize, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerRgba, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogHostWindow, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale$1 as Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarEmpty, type SidebarEmptyProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarShowMoreRow, type SidebarShowMoreRowProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableComponents, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, Timeline, TimelineCard, type TimelineCardProps, type TimelineCardStatus, type TimelineItem, type TimelineProps, type TimelineStatus, TooltipProps, type TransformAction, type TransformType, TreeSelect, type TreeSelectDropdownProps, type TreeSelectNode, type TreeSelectProps, type TreeSelectSize, Upload, type UploadFile, type UploadFileStatus, type UploadListType, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, idID, isInHostModal, msMY, notifyHostModalReady, entityKey as personPickerEntityKey, thTH, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN, zhTW };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as ButtonProps } from './index-
|
|
2
|
-
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-
|
|
1
|
+
import { B as ButtonProps } from './index-7pb5YOcq.js';
|
|
2
|
+
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-7pb5YOcq.js';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ElementType, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
5
|
import { TooltipProps } from './tooltip/index.js';
|
|
@@ -2300,6 +2300,23 @@ interface SidebarListItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "tit
|
|
|
2300
2300
|
className?: string;
|
|
2301
2301
|
style?: CSSProperties;
|
|
2302
2302
|
}
|
|
2303
|
+
interface SidebarShowMoreRowProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onToggle"> {
|
|
2304
|
+
/** 列表当前是否已全部展开;决定箭头朝向 */
|
|
2305
|
+
expanded: boolean;
|
|
2306
|
+
/** 行内文案,如「查看更多(12)」「收起」,由消费方按 expanded 传入 */
|
|
2307
|
+
label: ReactNode;
|
|
2308
|
+
onToggle?: () => void;
|
|
2309
|
+
className?: string;
|
|
2310
|
+
style?: CSSProperties;
|
|
2311
|
+
}
|
|
2312
|
+
interface SidebarEmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "children" | "onClick"> {
|
|
2313
|
+
/** 主行:说明当前状态 */
|
|
2314
|
+
title: ReactNode;
|
|
2315
|
+
/** 副行:指出下一步动作;不传只渲染主行 */
|
|
2316
|
+
hint?: ReactNode;
|
|
2317
|
+
className?: string;
|
|
2318
|
+
style?: CSSProperties;
|
|
2319
|
+
}
|
|
2303
2320
|
/**
|
|
2304
2321
|
* 箭头位置。
|
|
2305
2322
|
* - title: 紧跟标题之后(文件夹节点用法,标题短时箭头也靠左)
|
|
@@ -2575,6 +2592,25 @@ declare const SidebarListItem: React__default.ForwardRefExoticComponent<SidebarL
|
|
|
2575
2592
|
*/
|
|
2576
2593
|
declare const SidebarCollapsibleListItem: React__default.ForwardRefExoticComponent<SidebarCollapsibleListItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2577
2594
|
|
|
2595
|
+
/**
|
|
2596
|
+
* Sidebar.ShowMoreRow — 分组底部的「查看更多 / 收起」入口
|
|
2597
|
+
*
|
|
2598
|
+
* 作为分组内最后一行渲染,不放进 GroupHeader 的 actions:
|
|
2599
|
+
* 组头操作区仅悬停显现,而这个入口必须常显,否则用户看不出列表被截断。
|
|
2600
|
+
*/
|
|
2601
|
+
declare const SidebarShowMoreRow: React__default.ForwardRefExoticComponent<SidebarShowMoreRowProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* Sidebar.Empty — 整列级空态(主副两行)
|
|
2605
|
+
*
|
|
2606
|
+
* 用于「整个列表为空」的场景;分组 / 文件夹内的空态只有一行,
|
|
2607
|
+
* 已由 FolderNode / FolderSection 的 status 内置,层级不同不要混用。
|
|
2608
|
+
*
|
|
2609
|
+
* 不给 Empty.Card 增加 title / hint API:两行结构只在侧边栏窄列里成立,
|
|
2610
|
+
* 放进通用组件会让其它场景多出一套用不上的排版。
|
|
2611
|
+
*/
|
|
2612
|
+
declare const SidebarEmpty: React__default.ForwardRefExoticComponent<SidebarEmptyProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2613
|
+
|
|
2578
2614
|
/**
|
|
2579
2615
|
* Sidebar.FolderNode — 文件夹节点
|
|
2580
2616
|
*
|
|
@@ -2773,7 +2809,8 @@ declare function formatFileSize(bytes: number): string;
|
|
|
2773
2809
|
* <Sidebar.CollapsibleNavItem label="分组" items={items} />
|
|
2774
2810
|
* <Sidebar.GroupHeader title="置顶" collapsible expanded onToggle={fn} />
|
|
2775
2811
|
* <Sidebar.ListItem title="会话" indicator="running" menu={<Dropdown />} />
|
|
2776
|
-
* <
|
|
2812
|
+
* <Sidebar.ShowMoreRow expanded={false} label="查看更多(3)" onToggle={fn} />
|
|
2813
|
+
* <Sidebar.Empty title="暂无内容" hint="点击上方按钮新建" />
|
|
2777
2814
|
* </ScrollArea>
|
|
2778
2815
|
* <Sidebar.Footer avatar={avatar} name="用户" actions={actions} />
|
|
2779
2816
|
* </Sidebar.Root>
|
|
@@ -2789,6 +2826,8 @@ declare const Sidebar: {
|
|
|
2789
2826
|
GroupHeader: React$1.ForwardRefExoticComponent<SidebarGroupHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2790
2827
|
ListItem: React$1.ForwardRefExoticComponent<SidebarListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2791
2828
|
CollapsibleListItem: React$1.ForwardRefExoticComponent<SidebarCollapsibleListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2829
|
+
ShowMoreRow: React$1.ForwardRefExoticComponent<SidebarShowMoreRowProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2830
|
+
Empty: React$1.ForwardRefExoticComponent<SidebarEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2792
2831
|
FolderNode: React$1.ForwardRefExoticComponent<SidebarFolderNodeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2793
2832
|
FolderSection: React$1.ForwardRefExoticComponent<SidebarFolderSectionProps & React$1.RefAttributes<HTMLElement>>;
|
|
2794
2833
|
Footer: React$1.ForwardRefExoticComponent<SidebarFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -4479,4 +4518,4 @@ declare const Carousel: CarouselComponent;
|
|
|
4479
4518
|
*/
|
|
4480
4519
|
declare function cn(...inputs: ClassValue[]): string;
|
|
4481
4520
|
|
|
4482
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Cascader, type CascaderDropdownProps, type CascaderOption, type CascaderProps, type CascaderSize, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerRgba, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogHostWindow, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale$1 as Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableComponents, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, Timeline, TimelineCard, type TimelineCardProps, type TimelineCardStatus, type TimelineItem, type TimelineProps, type TimelineStatus, TooltipProps, type TransformAction, type TransformType, TreeSelect, type TreeSelectDropdownProps, type TreeSelectNode, type TreeSelectProps, type TreeSelectSize, Upload, type UploadFile, type UploadFileStatus, type UploadListType, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, idID, isInHostModal, msMY, notifyHostModalReady, entityKey as personPickerEntityKey, thTH, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN, zhTW };
|
|
4521
|
+
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Cascader, type CascaderDropdownProps, type CascaderOption, type CascaderProps, type CascaderSize, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerRgba, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogHostWindow, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale$1 as Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarEmpty, type SidebarEmptyProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarShowMoreRow, type SidebarShowMoreRowProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableComponents, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, Timeline, TimelineCard, type TimelineCardProps, type TimelineCardStatus, type TimelineItem, type TimelineProps, type TimelineStatus, TooltipProps, type TransformAction, type TransformType, TreeSelect, type TreeSelectDropdownProps, type TreeSelectNode, type TreeSelectProps, type TreeSelectSize, Upload, type UploadFile, type UploadFileStatus, type UploadListType, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, idID, isInHostModal, msMY, notifyHostModalReady, entityKey as personPickerEntityKey, thTH, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN, zhTW };
|