react-public-components 1.2.0 → 1.2.1
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 +56 -20
- package/dist/index.cjs +639 -771
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +36 -187
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -81
- package/dist/index.d.ts +1 -81
- package/dist/index.js +632 -761
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -617,42 +617,6 @@ declare const FilePreviewer: React__default.FC<FilePreviewerProps> & {
|
|
|
617
617
|
};
|
|
618
618
|
};
|
|
619
619
|
|
|
620
|
-
interface FloatingActionItem {
|
|
621
|
-
key: string;
|
|
622
|
-
label: ReactNode;
|
|
623
|
-
icon?: ReactNode;
|
|
624
|
-
type?: 'default' | 'primary' | 'danger';
|
|
625
|
-
disabled?: boolean;
|
|
626
|
-
onClick?: (e: React__default.MouseEvent) => void;
|
|
627
|
-
}
|
|
628
|
-
interface FloatingActionBarProps {
|
|
629
|
-
/** 是否显示悬浮操作栏(如传 selectedCount 时,默认 selectedCount > 0 自动显示) */
|
|
630
|
-
open?: boolean;
|
|
631
|
-
/** 当前选中的项目数 */
|
|
632
|
-
selectedCount?: number;
|
|
633
|
-
/** 总项目数(可选,如传则展示 '已选 X / 共 Y 项') */
|
|
634
|
-
totalCount?: number;
|
|
635
|
-
/** 清空/取消全部选择的回调 */
|
|
636
|
-
onClear?: () => void;
|
|
637
|
-
/** 取消选择按钮文案,默认为 '取消选择' */
|
|
638
|
-
clearText?: ReactNode;
|
|
639
|
-
/** 批量操作按钮列表 */
|
|
640
|
-
actions?: FloatingActionItem[];
|
|
641
|
-
/** 自定义操作区内容插槽 */
|
|
642
|
-
children?: ReactNode;
|
|
643
|
-
/** 距离屏幕底部的偏移量(像素),默认为 28 */
|
|
644
|
-
offsetBottom?: number;
|
|
645
|
-
/** 是否支持右上角关闭按钮 */
|
|
646
|
-
closable?: boolean;
|
|
647
|
-
/** 关闭回调 */
|
|
648
|
-
onClose?: () => void;
|
|
649
|
-
/** 自定义类名 */
|
|
650
|
-
className?: string;
|
|
651
|
-
/** 自定义样式 */
|
|
652
|
-
style?: CSSProperties;
|
|
653
|
-
}
|
|
654
|
-
declare const FloatingActionBar: React__default.FC<FloatingActionBarProps>;
|
|
655
|
-
|
|
656
620
|
interface TagInputProps {
|
|
657
621
|
/** 标签列表(受控) */
|
|
658
622
|
value?: string[];
|
|
@@ -1381,28 +1345,6 @@ interface QuickDateRangeProps {
|
|
|
1381
1345
|
}
|
|
1382
1346
|
declare const QuickDateRange: React__default.FC<QuickDateRangeProps>;
|
|
1383
1347
|
|
|
1384
|
-
interface DiffColumn {
|
|
1385
|
-
key: string;
|
|
1386
|
-
title: string;
|
|
1387
|
-
/** 是否为数值对比列,默认为 false */
|
|
1388
|
-
isNumeric?: boolean;
|
|
1389
|
-
}
|
|
1390
|
-
interface DiffTableProps {
|
|
1391
|
-
/** 列定义 */
|
|
1392
|
-
columns: DiffColumn[];
|
|
1393
|
-
/** 基准期数据(如上月/上期) */
|
|
1394
|
-
baseData: Record<string, any>[];
|
|
1395
|
-
/** 当前期数据(如本月/当期) */
|
|
1396
|
-
currentData: Record<string, any>[];
|
|
1397
|
-
/** 唯一行主键,默认为 'id' */
|
|
1398
|
-
rowKey?: string;
|
|
1399
|
-
/** 自定义类名 */
|
|
1400
|
-
className?: string;
|
|
1401
|
-
/** 自定义样式 */
|
|
1402
|
-
style?: CSSProperties;
|
|
1403
|
-
}
|
|
1404
|
-
declare const DiffTable: React__default.FC<DiffTableProps>;
|
|
1405
|
-
|
|
1406
1348
|
interface PhotoItem {
|
|
1407
1349
|
src: string;
|
|
1408
1350
|
alt?: string;
|
|
@@ -1444,28 +1386,6 @@ interface TrendIndicatorProps {
|
|
|
1444
1386
|
}
|
|
1445
1387
|
declare const TrendIndicator: React__default.FC<TrendIndicatorProps>;
|
|
1446
1388
|
|
|
1447
|
-
interface CountdownButtonProps {
|
|
1448
|
-
/** 初始按钮文案,默认为 '获取验证码' */
|
|
1449
|
-
text?: ReactNode;
|
|
1450
|
-
/** 倒计时时长(秒),默认为 60 */
|
|
1451
|
-
seconds?: number;
|
|
1452
|
-
/** 倒计时中文案生成函数,默认为 (sec) => `${sec}s 后重试` */
|
|
1453
|
-
countdownText?: (secondsLeft: number) => ReactNode;
|
|
1454
|
-
/** 重置后的再次获取文案,默认使用 text */
|
|
1455
|
-
resetText?: ReactNode;
|
|
1456
|
-
/** 点击触发异步前置检查,返回 true 启动倒计时,返回 false 阻止,若抛错也自动恢复 */
|
|
1457
|
-
onBeforeStart?: () => Promise<boolean> | boolean;
|
|
1458
|
-
/** 倒计时结束回调 */
|
|
1459
|
-
onEnd?: () => void;
|
|
1460
|
-
/** 是否外部强行禁用 */
|
|
1461
|
-
disabled?: boolean;
|
|
1462
|
-
/** 自定义类名 */
|
|
1463
|
-
className?: string;
|
|
1464
|
-
/** 自定义样式 */
|
|
1465
|
-
style?: CSSProperties;
|
|
1466
|
-
}
|
|
1467
|
-
declare const CountdownButton: React__default.FC<CountdownButtonProps>;
|
|
1468
|
-
|
|
1469
1389
|
interface ProgressSegment {
|
|
1470
1390
|
label: string;
|
|
1471
1391
|
value: number;
|
|
@@ -1701,4 +1621,4 @@ interface JsonDiffViewerProps {
|
|
|
1701
1621
|
}
|
|
1702
1622
|
declare const JsonDiffViewer: React__default.FC<JsonDiffViewerProps>;
|
|
1703
1623
|
|
|
1704
|
-
export { type ActivityItem, ActivityLog, type ActivityLogProps, AnnouncementBar, type AnnouncementBarProps, AudioPlayer, type AudioPlayerProps, BadgeRibbon, type BadgeRibbonProps, BorderBeam, type BorderBeamColorStop, type BorderBeamProps, type Breakpoint, CascadeDrawer, type CascadeDrawerProps, type CascadeLevel, CodeSnippet, type CodeSnippetProps, CollapsibleBox as CollapseBox, type CollapseBoxButtonPosition, type CollapseBoxDirection, type CollapseBoxProps, Color, type ColorFormat, type ColorMode, ColorPicker, type ColorPickerProps, type ColorPresetItem, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CountUp, type CountUpProps, type CountUpRef,
|
|
1624
|
+
export { type ActivityItem, ActivityLog, type ActivityLogProps, AnnouncementBar, type AnnouncementBarProps, AudioPlayer, type AudioPlayerProps, BadgeRibbon, type BadgeRibbonProps, BorderBeam, type BorderBeamColorStop, type BorderBeamProps, type Breakpoint, CascadeDrawer, type CascadeDrawerProps, type CascadeLevel, CodeSnippet, type CodeSnippetProps, CollapsibleBox as CollapseBox, type CollapseBoxButtonPosition, type CollapseBoxDirection, type CollapseBoxProps, Color, type ColorFormat, type ColorMode, ColorPicker, type ColorPickerProps, type ColorPresetItem, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CountUp, type CountUpProps, type CountUpRef, type CronPeriodType, CronPicker, type CronPickerProps, type CropResult, type CropShape, DebounceSelect, type DebounceSelectProps, type DiffViewMode, DiffViewer, type DiffViewerProps, DisabledBox, type DisabledBoxProps, DragSortList, type DragSortListProps, DualRangeSlider, type DualRangeSliderProps, EnvBadge, type EnvBadgeProps, type EnvBuildInfo, type EnvPlacement, type EnvSwitchItem, type EnvType, FileDropZone, type FileDropZoneProps, type FileItem, FilePreviewer, type FilePreviewerProps, type FileType, type FilterChipItem, FilterChips, type FilterChipsProps, FlipCard, type FlipCardProps, type FlipDirection, type FlipTrigger, Fullscreen, type FullscreenButtonPosition, type FullscreenMode, type FullscreenProps, type FullscreenRef, type FullscreenRenderProps, type Gap, GradientText, type GradientTextProps, GuidedTour, type GuidedTourProps, HoverCard, type HoverCardProps, type HsbColor, ImageCropper, type ImageCropperProps, type ImageCropperRef, InfiniteScrollList, type InfiniteScrollListProps, JsonDiffViewer, type JsonDiffViewerProps, JsonEditor, type JsonEditorProps, JsonTree, type JsonTreeProps, KanbanBoard, type KanbanBoardProps, type KanbanColumn, KeyValEditor, type KeyValEditorProps, type KeyValItem, Marquee, type MarqueeDirection, type MarqueeProps, Masonry, type MasonryClassNames, type MasonryItem, type MasonryProps, type MasonrySemanticDOM, type MasonryStyles, MetricCard, type MetricCardProps, MiniSparkline, type MiniSparklineProps, NumberStepper, type NumberStepperProps, NumericRangeInput, type NumericRangeInputProps, type PasswordRule, PasswordStrength, type PasswordStrengthLevel, type PasswordStrengthProps, PdfViewer, type PdfViewerProps, type PhotoItem, PhotoViewer, type PhotoViewerProps, type ProgressSegment, QrCodeCard, type QrCodeCardProps, type QrCodeStatus, QuickDateRange, type QuickDateRangeProps, type RangeShortcut, type RangeValue, type RgbColor, type RibbonPlacement, ScrollTracker, type ScrollTrackerProps, SegmentedProgress, type SegmentedProgressProps, type SelectOption, type SelectValue, SensitiveMask, type SensitiveMaskProps, type SensitiveType, ShimmerSkeleton, type ShimmerSkeletonProps, type ShortcutItem, type SkeletonType, CustomSplitter as Splitter, type SplitterCollapsible, type SplitterOrientation, type SplitterPanelProps, type SplitterProps, type SplitterSize, SpotlightCard, type SpotlightCardProps, StatusTimeline, type StatusTimelineItem, type StatusTimelineProps, StickyHeader, type StickyHeaderProps, TagInput, type TagInputProps, TextEllipsis, type TextEllipsisExpandConfig, type TextEllipsisProps, TiltCard, type TiltCardProps, type TimelineOperator, type TimelineStatus, type TourPlacement, type TourStep, type TreeFilterNode, TreeFilterPanel, type TreeFilterPanelProps, TreeTransfer, type TreeTransferNode, type TreeTransferProps, TrendIndicator, type TrendIndicatorProps, VideoPlayer, type VideoPlayerProps, VirtualList, type VirtualListProps, Watermark, type WatermarkProps, evaluatePasswordStrength, generateColor, inferFileType, maskSensitiveText };
|
package/dist/index.d.ts
CHANGED
|
@@ -617,42 +617,6 @@ declare const FilePreviewer: React__default.FC<FilePreviewerProps> & {
|
|
|
617
617
|
};
|
|
618
618
|
};
|
|
619
619
|
|
|
620
|
-
interface FloatingActionItem {
|
|
621
|
-
key: string;
|
|
622
|
-
label: ReactNode;
|
|
623
|
-
icon?: ReactNode;
|
|
624
|
-
type?: 'default' | 'primary' | 'danger';
|
|
625
|
-
disabled?: boolean;
|
|
626
|
-
onClick?: (e: React__default.MouseEvent) => void;
|
|
627
|
-
}
|
|
628
|
-
interface FloatingActionBarProps {
|
|
629
|
-
/** 是否显示悬浮操作栏(如传 selectedCount 时,默认 selectedCount > 0 自动显示) */
|
|
630
|
-
open?: boolean;
|
|
631
|
-
/** 当前选中的项目数 */
|
|
632
|
-
selectedCount?: number;
|
|
633
|
-
/** 总项目数(可选,如传则展示 '已选 X / 共 Y 项') */
|
|
634
|
-
totalCount?: number;
|
|
635
|
-
/** 清空/取消全部选择的回调 */
|
|
636
|
-
onClear?: () => void;
|
|
637
|
-
/** 取消选择按钮文案,默认为 '取消选择' */
|
|
638
|
-
clearText?: ReactNode;
|
|
639
|
-
/** 批量操作按钮列表 */
|
|
640
|
-
actions?: FloatingActionItem[];
|
|
641
|
-
/** 自定义操作区内容插槽 */
|
|
642
|
-
children?: ReactNode;
|
|
643
|
-
/** 距离屏幕底部的偏移量(像素),默认为 28 */
|
|
644
|
-
offsetBottom?: number;
|
|
645
|
-
/** 是否支持右上角关闭按钮 */
|
|
646
|
-
closable?: boolean;
|
|
647
|
-
/** 关闭回调 */
|
|
648
|
-
onClose?: () => void;
|
|
649
|
-
/** 自定义类名 */
|
|
650
|
-
className?: string;
|
|
651
|
-
/** 自定义样式 */
|
|
652
|
-
style?: CSSProperties;
|
|
653
|
-
}
|
|
654
|
-
declare const FloatingActionBar: React__default.FC<FloatingActionBarProps>;
|
|
655
|
-
|
|
656
620
|
interface TagInputProps {
|
|
657
621
|
/** 标签列表(受控) */
|
|
658
622
|
value?: string[];
|
|
@@ -1381,28 +1345,6 @@ interface QuickDateRangeProps {
|
|
|
1381
1345
|
}
|
|
1382
1346
|
declare const QuickDateRange: React__default.FC<QuickDateRangeProps>;
|
|
1383
1347
|
|
|
1384
|
-
interface DiffColumn {
|
|
1385
|
-
key: string;
|
|
1386
|
-
title: string;
|
|
1387
|
-
/** 是否为数值对比列,默认为 false */
|
|
1388
|
-
isNumeric?: boolean;
|
|
1389
|
-
}
|
|
1390
|
-
interface DiffTableProps {
|
|
1391
|
-
/** 列定义 */
|
|
1392
|
-
columns: DiffColumn[];
|
|
1393
|
-
/** 基准期数据(如上月/上期) */
|
|
1394
|
-
baseData: Record<string, any>[];
|
|
1395
|
-
/** 当前期数据(如本月/当期) */
|
|
1396
|
-
currentData: Record<string, any>[];
|
|
1397
|
-
/** 唯一行主键,默认为 'id' */
|
|
1398
|
-
rowKey?: string;
|
|
1399
|
-
/** 自定义类名 */
|
|
1400
|
-
className?: string;
|
|
1401
|
-
/** 自定义样式 */
|
|
1402
|
-
style?: CSSProperties;
|
|
1403
|
-
}
|
|
1404
|
-
declare const DiffTable: React__default.FC<DiffTableProps>;
|
|
1405
|
-
|
|
1406
1348
|
interface PhotoItem {
|
|
1407
1349
|
src: string;
|
|
1408
1350
|
alt?: string;
|
|
@@ -1444,28 +1386,6 @@ interface TrendIndicatorProps {
|
|
|
1444
1386
|
}
|
|
1445
1387
|
declare const TrendIndicator: React__default.FC<TrendIndicatorProps>;
|
|
1446
1388
|
|
|
1447
|
-
interface CountdownButtonProps {
|
|
1448
|
-
/** 初始按钮文案,默认为 '获取验证码' */
|
|
1449
|
-
text?: ReactNode;
|
|
1450
|
-
/** 倒计时时长(秒),默认为 60 */
|
|
1451
|
-
seconds?: number;
|
|
1452
|
-
/** 倒计时中文案生成函数,默认为 (sec) => `${sec}s 后重试` */
|
|
1453
|
-
countdownText?: (secondsLeft: number) => ReactNode;
|
|
1454
|
-
/** 重置后的再次获取文案,默认使用 text */
|
|
1455
|
-
resetText?: ReactNode;
|
|
1456
|
-
/** 点击触发异步前置检查,返回 true 启动倒计时,返回 false 阻止,若抛错也自动恢复 */
|
|
1457
|
-
onBeforeStart?: () => Promise<boolean> | boolean;
|
|
1458
|
-
/** 倒计时结束回调 */
|
|
1459
|
-
onEnd?: () => void;
|
|
1460
|
-
/** 是否外部强行禁用 */
|
|
1461
|
-
disabled?: boolean;
|
|
1462
|
-
/** 自定义类名 */
|
|
1463
|
-
className?: string;
|
|
1464
|
-
/** 自定义样式 */
|
|
1465
|
-
style?: CSSProperties;
|
|
1466
|
-
}
|
|
1467
|
-
declare const CountdownButton: React__default.FC<CountdownButtonProps>;
|
|
1468
|
-
|
|
1469
1389
|
interface ProgressSegment {
|
|
1470
1390
|
label: string;
|
|
1471
1391
|
value: number;
|
|
@@ -1701,4 +1621,4 @@ interface JsonDiffViewerProps {
|
|
|
1701
1621
|
}
|
|
1702
1622
|
declare const JsonDiffViewer: React__default.FC<JsonDiffViewerProps>;
|
|
1703
1623
|
|
|
1704
|
-
export { type ActivityItem, ActivityLog, type ActivityLogProps, AnnouncementBar, type AnnouncementBarProps, AudioPlayer, type AudioPlayerProps, BadgeRibbon, type BadgeRibbonProps, BorderBeam, type BorderBeamColorStop, type BorderBeamProps, type Breakpoint, CascadeDrawer, type CascadeDrawerProps, type CascadeLevel, CodeSnippet, type CodeSnippetProps, CollapsibleBox as CollapseBox, type CollapseBoxButtonPosition, type CollapseBoxDirection, type CollapseBoxProps, Color, type ColorFormat, type ColorMode, ColorPicker, type ColorPickerProps, type ColorPresetItem, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CountUp, type CountUpProps, type CountUpRef,
|
|
1624
|
+
export { type ActivityItem, ActivityLog, type ActivityLogProps, AnnouncementBar, type AnnouncementBarProps, AudioPlayer, type AudioPlayerProps, BadgeRibbon, type BadgeRibbonProps, BorderBeam, type BorderBeamColorStop, type BorderBeamProps, type Breakpoint, CascadeDrawer, type CascadeDrawerProps, type CascadeLevel, CodeSnippet, type CodeSnippetProps, CollapsibleBox as CollapseBox, type CollapseBoxButtonPosition, type CollapseBoxDirection, type CollapseBoxProps, Color, type ColorFormat, type ColorMode, ColorPicker, type ColorPickerProps, type ColorPresetItem, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CountUp, type CountUpProps, type CountUpRef, type CronPeriodType, CronPicker, type CronPickerProps, type CropResult, type CropShape, DebounceSelect, type DebounceSelectProps, type DiffViewMode, DiffViewer, type DiffViewerProps, DisabledBox, type DisabledBoxProps, DragSortList, type DragSortListProps, DualRangeSlider, type DualRangeSliderProps, EnvBadge, type EnvBadgeProps, type EnvBuildInfo, type EnvPlacement, type EnvSwitchItem, type EnvType, FileDropZone, type FileDropZoneProps, type FileItem, FilePreviewer, type FilePreviewerProps, type FileType, type FilterChipItem, FilterChips, type FilterChipsProps, FlipCard, type FlipCardProps, type FlipDirection, type FlipTrigger, Fullscreen, type FullscreenButtonPosition, type FullscreenMode, type FullscreenProps, type FullscreenRef, type FullscreenRenderProps, type Gap, GradientText, type GradientTextProps, GuidedTour, type GuidedTourProps, HoverCard, type HoverCardProps, type HsbColor, ImageCropper, type ImageCropperProps, type ImageCropperRef, InfiniteScrollList, type InfiniteScrollListProps, JsonDiffViewer, type JsonDiffViewerProps, JsonEditor, type JsonEditorProps, JsonTree, type JsonTreeProps, KanbanBoard, type KanbanBoardProps, type KanbanColumn, KeyValEditor, type KeyValEditorProps, type KeyValItem, Marquee, type MarqueeDirection, type MarqueeProps, Masonry, type MasonryClassNames, type MasonryItem, type MasonryProps, type MasonrySemanticDOM, type MasonryStyles, MetricCard, type MetricCardProps, MiniSparkline, type MiniSparklineProps, NumberStepper, type NumberStepperProps, NumericRangeInput, type NumericRangeInputProps, type PasswordRule, PasswordStrength, type PasswordStrengthLevel, type PasswordStrengthProps, PdfViewer, type PdfViewerProps, type PhotoItem, PhotoViewer, type PhotoViewerProps, type ProgressSegment, QrCodeCard, type QrCodeCardProps, type QrCodeStatus, QuickDateRange, type QuickDateRangeProps, type RangeShortcut, type RangeValue, type RgbColor, type RibbonPlacement, ScrollTracker, type ScrollTrackerProps, SegmentedProgress, type SegmentedProgressProps, type SelectOption, type SelectValue, SensitiveMask, type SensitiveMaskProps, type SensitiveType, ShimmerSkeleton, type ShimmerSkeletonProps, type ShortcutItem, type SkeletonType, CustomSplitter as Splitter, type SplitterCollapsible, type SplitterOrientation, type SplitterPanelProps, type SplitterProps, type SplitterSize, SpotlightCard, type SpotlightCardProps, StatusTimeline, type StatusTimelineItem, type StatusTimelineProps, StickyHeader, type StickyHeaderProps, TagInput, type TagInputProps, TextEllipsis, type TextEllipsisExpandConfig, type TextEllipsisProps, TiltCard, type TiltCardProps, type TimelineOperator, type TimelineStatus, type TourPlacement, type TourStep, type TreeFilterNode, TreeFilterPanel, type TreeFilterPanelProps, TreeTransfer, type TreeTransferNode, type TreeTransferProps, TrendIndicator, type TrendIndicatorProps, VideoPlayer, type VideoPlayerProps, VirtualList, type VirtualListProps, Watermark, type WatermarkProps, evaluatePasswordStrength, generateColor, inferFileType, maskSensitiveText };
|