lingee-ui 0.0.15 → 0.0.16
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 +2 -2
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/{chunk-P36XWLE4.js → chunk-22TFFOQL.js} +1 -1
- package/dist/chunk-CB2FRG23.js +1 -0
- package/dist/{chunk-K7VTWIZJ.mjs → chunk-CGHN44HV.mjs} +1 -1
- package/dist/chunk-ES5A2ZO6.js +1 -0
- package/dist/{chunk-E3NN26A5.js → chunk-ITHSP4P3.js} +1 -1
- package/dist/{chunk-XWFDVFPJ.mjs → chunk-LAIK6VBD.mjs} +1 -1
- package/dist/chunk-N5L3OI7Q.mjs +1 -0
- package/dist/chunk-Q5MDN5PA.js +2 -0
- package/dist/chunk-YNDT7LQA.mjs +1 -0
- package/dist/chunk-ZX6JEZS3.mjs +2 -0
- 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-CZhoE8dw.d.mts +36 -0
- package/dist/index-CZhoE8dw.d.ts +36 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +42 -7
- package/dist/index.d.ts +42 -7
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/input/index.js +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/textarea/index.css +1 -1
- package/dist/textarea/index.d.mts +2 -22
- package/dist/textarea/index.d.ts +2 -22
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/index.mjs +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/index.mjs +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tree/index.css +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/tree/index.mjs +1 -1
- package/package.json +6 -6
- package/skill/AGENTS-SNIPPET.md +50 -37
- package/skill/SKILL.md +7 -7
- package/skill/VERSION.json +4 -4
- package/skill/references/components/checkbox.md +2 -0
- package/skill/references/components/color-picker.md +2 -0
- package/skill/references/components/date-picker.md +3 -0
- package/skill/references/components/dialog.md +34 -11
- package/skill/references/components/drawer.md +3 -0
- package/skill/references/components/dropdown.md +97 -79
- package/skill/references/components/ellipsis-tooltip.md +8 -0
- package/skill/references/components/empty.md +1 -1
- package/skill/references/components/form.md +8 -0
- package/skill/references/components/pagination.md +5 -0
- package/skill/references/components/popover.md +17 -6
- package/skill/references/components/radio.md +5 -1
- package/skill/references/components/range-picker.md +8 -0
- package/skill/references/components/select.md +3 -0
- package/skill/references/components/slider.md +1 -0
- package/skill/references/components/steps.md +1 -0
- package/skill/references/components/table.md +11 -2
- package/skill/references/components/textarea.md +8 -5
- package/skill/references/components/time-picker.md +2 -0
- package/skill/references/components/toast.md +35 -12
- package/skill/references/components/tooltip.md +5 -0
- package/skill/references/components/upload.md +3 -0
- package/skill/references/icons.md +22 -7
- package/skill/references/setup.md +1 -1
- package/skill/references/tokens.md +49 -36
- package/dist/chunk-K3345E52.mjs +0 -2
- package/dist/chunk-OC42BRM5.mjs +0 -1
- package/dist/chunk-R5EGWXDT.mjs +0 -1
- package/dist/chunk-TVE57POC.js +0 -1
- package/dist/chunk-UGDPRB5F.js +0 -1
- package/dist/chunk-XTBZBKJT.js +0 -2
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, CSSProperties, HTMLAttributes, MouseEvent, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
5
|
import { TooltipProps } from './tooltip/index.mjs';
|
|
@@ -9,7 +9,7 @@ import { PopoverContentProps } from './popover/index.mjs';
|
|
|
9
9
|
export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverPlacement, PopoverProps, PopoverTrigger, PopoverTriggerAction, PopoverTriggerProps } from './popover/index.mjs';
|
|
10
10
|
export { Switch, SwitchProps, SwitchSize } from './switch/index.mjs';
|
|
11
11
|
export { Input, InputProps, InputShape, InputSize } from './input/index.mjs';
|
|
12
|
-
export { Textarea, TextareaProps } from './
|
|
12
|
+
export { T as Textarea, a as TextareaAutoSizeConfig, b as TextareaProps } from './index-CZhoE8dw.mjs';
|
|
13
13
|
export { ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.mjs';
|
|
14
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
15
15
|
import { L as LgSize } from './index-B5SLxsZP.mjs';
|
|
@@ -208,7 +208,10 @@ declare const zhCN: {
|
|
|
208
208
|
placeholderFull: string;
|
|
209
209
|
};
|
|
210
210
|
Table: {
|
|
211
|
+
loading: string;
|
|
211
212
|
empty: string;
|
|
213
|
+
/** 传入 onRetry 时由 Empty.Card 追加「重试」,故此处不含引导语 */
|
|
214
|
+
loadError: string;
|
|
212
215
|
};
|
|
213
216
|
Tree: {
|
|
214
217
|
empty: string;
|
|
@@ -356,7 +359,9 @@ declare const enUS: {
|
|
|
356
359
|
placeholderFull: string;
|
|
357
360
|
};
|
|
358
361
|
Table: {
|
|
362
|
+
loading: string;
|
|
359
363
|
empty: string;
|
|
364
|
+
loadError: string;
|
|
360
365
|
};
|
|
361
366
|
Tree: {
|
|
362
367
|
empty: string;
|
|
@@ -1546,7 +1551,15 @@ declare const Spin: React__default.ForwardRefExoticComponent<SpinProps & React__
|
|
|
1546
1551
|
type EmptySize = LgSize;
|
|
1547
1552
|
/** lingee-icon 组件类型 */
|
|
1548
1553
|
type EmptyIconComponent = ComponentType<SvgIconProps>;
|
|
1549
|
-
interface EmptyProps extends
|
|
1554
|
+
interface EmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
1555
|
+
/**
|
|
1556
|
+
* 描述下方的自定义内容,通常是引导用户下一步的操作按钮。
|
|
1557
|
+
*
|
|
1558
|
+
* 早先类型上用 `Omit` 排除了 children,但文档、示例与实际用法一直在传
|
|
1559
|
+
* (靠 restProps 展开到根节点才得以显示)。此处显式声明并在组件内定点渲染,
|
|
1560
|
+
* 使类型、实现与文档三者一致。
|
|
1561
|
+
*/
|
|
1562
|
+
children?: ReactNode;
|
|
1550
1563
|
/**
|
|
1551
1564
|
* 尺寸,默认 "md"
|
|
1552
1565
|
* - lg: 页面级缺省,图标 56px + 文字 16px,垂直居中
|
|
@@ -2645,6 +2658,14 @@ interface TableSorterState {
|
|
|
2645
2658
|
columnKey: Key;
|
|
2646
2659
|
order: "ascend" | "descend" | null;
|
|
2647
2660
|
}
|
|
2661
|
+
/** 表格三态。与 Empty.Card 的 status 同名同义 */
|
|
2662
|
+
type TableStatusType = "loading" | "empty" | "error";
|
|
2663
|
+
/** 三态文案覆盖。未提供的键回落到 locale 内置文案 */
|
|
2664
|
+
interface TableStatusText {
|
|
2665
|
+
loading?: ReactNode;
|
|
2666
|
+
empty?: ReactNode;
|
|
2667
|
+
error?: ReactNode;
|
|
2668
|
+
}
|
|
2648
2669
|
/**
|
|
2649
2670
|
* Table 组件 Props
|
|
2650
2671
|
*/
|
|
@@ -2659,8 +2680,20 @@ interface TableProps<RecordType = any> {
|
|
|
2659
2680
|
size?: TableSize;
|
|
2660
2681
|
/** 是否显示边框 */
|
|
2661
2682
|
bordered?: boolean;
|
|
2662
|
-
/**
|
|
2683
|
+
/**
|
|
2684
|
+
* 加载状态。
|
|
2685
|
+
* 无数据时占位区展示加载中缺省态;已有数据时展示半透明遮罩,保留原内容不跳动
|
|
2686
|
+
*/
|
|
2663
2687
|
loading?: boolean;
|
|
2688
|
+
/**
|
|
2689
|
+
* 加载失败状态,为 true 时表体展示失败缺省态。
|
|
2690
|
+
* 优先级低于 loading(重试期间应展示加载中而非上一次的失败)
|
|
2691
|
+
*/
|
|
2692
|
+
loadError?: boolean;
|
|
2693
|
+
/** 加载失败时的重试回调,传入后失败缺省态整体可点击 */
|
|
2694
|
+
onRetry?: () => void;
|
|
2695
|
+
/** 覆盖三态缺省态的默认文案,未传的键走 locale 内置文案 */
|
|
2696
|
+
statusText?: TableStatusText;
|
|
2664
2697
|
/** 横向滚动宽度 */
|
|
2665
2698
|
scroll?: {
|
|
2666
2699
|
x?: number | string;
|
|
@@ -2672,8 +2705,10 @@ interface TableProps<RecordType = any> {
|
|
|
2672
2705
|
onSortChange?: (sorter: TableSorterState) => void;
|
|
2673
2706
|
/** 行点击 */
|
|
2674
2707
|
onRow?: (record: RecordType, index: number) => Record<string, any>;
|
|
2675
|
-
/**
|
|
2708
|
+
/** 空数据展示,覆盖内置空缺省态 */
|
|
2676
2709
|
empty?: ReactNode;
|
|
2710
|
+
/** 自定义失败渲染内容,覆盖内置失败缺省态 */
|
|
2711
|
+
errorContent?: ReactNode;
|
|
2677
2712
|
/** 表格标题 */
|
|
2678
2713
|
title?: ReactNode | (() => ReactNode);
|
|
2679
2714
|
/** 表格底部 */
|
|
@@ -3479,4 +3514,4 @@ declare const Carousel: CarouselComponent;
|
|
|
3479
3514
|
*/
|
|
3480
3515
|
declare function cn(...inputs: ClassValue[]): string;
|
|
3481
3516
|
|
|
3482
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, 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 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, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, 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 TableProps, type TableRowSelection, type TableSize, type TableSorterState, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };
|
|
3517
|
+
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, 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 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, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, 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 TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };
|
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, CSSProperties, HTMLAttributes, MouseEvent, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
5
|
import { TooltipProps } from './tooltip/index.js';
|
|
@@ -9,7 +9,7 @@ import { PopoverContentProps } from './popover/index.js';
|
|
|
9
9
|
export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverPlacement, PopoverProps, PopoverTrigger, PopoverTriggerAction, PopoverTriggerProps } from './popover/index.js';
|
|
10
10
|
export { Switch, SwitchProps, SwitchSize } from './switch/index.js';
|
|
11
11
|
export { Input, InputProps, InputShape, InputSize } from './input/index.js';
|
|
12
|
-
export { Textarea, TextareaProps } from './
|
|
12
|
+
export { T as Textarea, a as TextareaAutoSizeConfig, b as TextareaProps } from './index-CZhoE8dw.js';
|
|
13
13
|
export { ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.js';
|
|
14
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
15
15
|
import { L as LgSize } from './index-B5SLxsZP.js';
|
|
@@ -208,7 +208,10 @@ declare const zhCN: {
|
|
|
208
208
|
placeholderFull: string;
|
|
209
209
|
};
|
|
210
210
|
Table: {
|
|
211
|
+
loading: string;
|
|
211
212
|
empty: string;
|
|
213
|
+
/** 传入 onRetry 时由 Empty.Card 追加「重试」,故此处不含引导语 */
|
|
214
|
+
loadError: string;
|
|
212
215
|
};
|
|
213
216
|
Tree: {
|
|
214
217
|
empty: string;
|
|
@@ -356,7 +359,9 @@ declare const enUS: {
|
|
|
356
359
|
placeholderFull: string;
|
|
357
360
|
};
|
|
358
361
|
Table: {
|
|
362
|
+
loading: string;
|
|
359
363
|
empty: string;
|
|
364
|
+
loadError: string;
|
|
360
365
|
};
|
|
361
366
|
Tree: {
|
|
362
367
|
empty: string;
|
|
@@ -1546,7 +1551,15 @@ declare const Spin: React__default.ForwardRefExoticComponent<SpinProps & React__
|
|
|
1546
1551
|
type EmptySize = LgSize;
|
|
1547
1552
|
/** lingee-icon 组件类型 */
|
|
1548
1553
|
type EmptyIconComponent = ComponentType<SvgIconProps>;
|
|
1549
|
-
interface EmptyProps extends
|
|
1554
|
+
interface EmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
1555
|
+
/**
|
|
1556
|
+
* 描述下方的自定义内容,通常是引导用户下一步的操作按钮。
|
|
1557
|
+
*
|
|
1558
|
+
* 早先类型上用 `Omit` 排除了 children,但文档、示例与实际用法一直在传
|
|
1559
|
+
* (靠 restProps 展开到根节点才得以显示)。此处显式声明并在组件内定点渲染,
|
|
1560
|
+
* 使类型、实现与文档三者一致。
|
|
1561
|
+
*/
|
|
1562
|
+
children?: ReactNode;
|
|
1550
1563
|
/**
|
|
1551
1564
|
* 尺寸,默认 "md"
|
|
1552
1565
|
* - lg: 页面级缺省,图标 56px + 文字 16px,垂直居中
|
|
@@ -2645,6 +2658,14 @@ interface TableSorterState {
|
|
|
2645
2658
|
columnKey: Key;
|
|
2646
2659
|
order: "ascend" | "descend" | null;
|
|
2647
2660
|
}
|
|
2661
|
+
/** 表格三态。与 Empty.Card 的 status 同名同义 */
|
|
2662
|
+
type TableStatusType = "loading" | "empty" | "error";
|
|
2663
|
+
/** 三态文案覆盖。未提供的键回落到 locale 内置文案 */
|
|
2664
|
+
interface TableStatusText {
|
|
2665
|
+
loading?: ReactNode;
|
|
2666
|
+
empty?: ReactNode;
|
|
2667
|
+
error?: ReactNode;
|
|
2668
|
+
}
|
|
2648
2669
|
/**
|
|
2649
2670
|
* Table 组件 Props
|
|
2650
2671
|
*/
|
|
@@ -2659,8 +2680,20 @@ interface TableProps<RecordType = any> {
|
|
|
2659
2680
|
size?: TableSize;
|
|
2660
2681
|
/** 是否显示边框 */
|
|
2661
2682
|
bordered?: boolean;
|
|
2662
|
-
/**
|
|
2683
|
+
/**
|
|
2684
|
+
* 加载状态。
|
|
2685
|
+
* 无数据时占位区展示加载中缺省态;已有数据时展示半透明遮罩,保留原内容不跳动
|
|
2686
|
+
*/
|
|
2663
2687
|
loading?: boolean;
|
|
2688
|
+
/**
|
|
2689
|
+
* 加载失败状态,为 true 时表体展示失败缺省态。
|
|
2690
|
+
* 优先级低于 loading(重试期间应展示加载中而非上一次的失败)
|
|
2691
|
+
*/
|
|
2692
|
+
loadError?: boolean;
|
|
2693
|
+
/** 加载失败时的重试回调,传入后失败缺省态整体可点击 */
|
|
2694
|
+
onRetry?: () => void;
|
|
2695
|
+
/** 覆盖三态缺省态的默认文案,未传的键走 locale 内置文案 */
|
|
2696
|
+
statusText?: TableStatusText;
|
|
2664
2697
|
/** 横向滚动宽度 */
|
|
2665
2698
|
scroll?: {
|
|
2666
2699
|
x?: number | string;
|
|
@@ -2672,8 +2705,10 @@ interface TableProps<RecordType = any> {
|
|
|
2672
2705
|
onSortChange?: (sorter: TableSorterState) => void;
|
|
2673
2706
|
/** 行点击 */
|
|
2674
2707
|
onRow?: (record: RecordType, index: number) => Record<string, any>;
|
|
2675
|
-
/**
|
|
2708
|
+
/** 空数据展示,覆盖内置空缺省态 */
|
|
2676
2709
|
empty?: ReactNode;
|
|
2710
|
+
/** 自定义失败渲染内容,覆盖内置失败缺省态 */
|
|
2711
|
+
errorContent?: ReactNode;
|
|
2677
2712
|
/** 表格标题 */
|
|
2678
2713
|
title?: ReactNode | (() => ReactNode);
|
|
2679
2714
|
/** 表格底部 */
|
|
@@ -3479,4 +3514,4 @@ declare const Carousel: CarouselComponent;
|
|
|
3479
3514
|
*/
|
|
3480
3515
|
declare function cn(...inputs: ClassValue[]): string;
|
|
3481
3516
|
|
|
3482
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, 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 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, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, 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 TableProps, type TableRowSelection, type TableSize, type TableSorterState, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };
|
|
3517
|
+
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, 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 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, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, 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 TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };
|