gemini-uis 0.5.3 → 0.7.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/index.d.ts +200 -0
- package/dist/index.js +817 -349
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -382,14 +382,214 @@ export declare type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
|
382
382
|
*/
|
|
383
383
|
export declare type EmptyStateVariant = 'default' | 'minimal' | 'card';
|
|
384
384
|
|
|
385
|
+
export declare const ErrorIcon: FC<IconProps>;
|
|
386
|
+
|
|
387
|
+
export declare const FirstIcon: FC<IconProps>;
|
|
388
|
+
|
|
385
389
|
export declare const FolderIcon: FC<IconProps>;
|
|
386
390
|
|
|
387
391
|
export declare type IconProps = SVGProps<SVGSVGElement>;
|
|
388
392
|
|
|
389
393
|
export declare const InfoIcon: FC<IconProps>;
|
|
390
394
|
|
|
395
|
+
export declare const JumpNextIcon: FC<IconProps>;
|
|
396
|
+
|
|
397
|
+
export declare const JumpPrevIcon: FC<IconProps>;
|
|
398
|
+
|
|
399
|
+
export declare const LastIcon: FC<IconProps>;
|
|
400
|
+
|
|
401
|
+
export declare const Loading: FC<LoadingProps>;
|
|
402
|
+
|
|
391
403
|
export declare const LoadingIcon: FC<IconProps>;
|
|
392
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Loading组件的属性接口
|
|
407
|
+
*/
|
|
408
|
+
export declare interface LoadingProps {
|
|
409
|
+
/** 尺寸 */
|
|
410
|
+
size?: LoadingSize;
|
|
411
|
+
/** 变体 */
|
|
412
|
+
variant?: LoadingVariant;
|
|
413
|
+
/** 加载文本 */
|
|
414
|
+
text?: string;
|
|
415
|
+
/** 是否显示文本 */
|
|
416
|
+
showText?: boolean;
|
|
417
|
+
/** 是否全屏 */
|
|
418
|
+
fullscreen?: boolean;
|
|
419
|
+
/** 自定义类名 */
|
|
420
|
+
className?: string;
|
|
421
|
+
/** 子元素(用于skeleton模式) */
|
|
422
|
+
children?: ReactNode;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Loading组件的尺寸类型
|
|
427
|
+
*/
|
|
428
|
+
export declare type LoadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Loading组件的变体类型
|
|
432
|
+
*/
|
|
433
|
+
export declare type LoadingVariant = 'spinner' | 'dots' | 'pulse' | 'skeleton';
|
|
434
|
+
|
|
435
|
+
export declare const NextIcon: FC<IconProps>;
|
|
436
|
+
|
|
437
|
+
export declare const Pagination: FC<PaginationProps>;
|
|
438
|
+
|
|
439
|
+
export declare type PaginationAlign = 'left' | 'center' | 'right';
|
|
440
|
+
|
|
441
|
+
export declare interface PaginationItemProps {
|
|
442
|
+
/** 页码 */
|
|
443
|
+
page: number;
|
|
444
|
+
/** 是否激活 */
|
|
445
|
+
active?: boolean;
|
|
446
|
+
/** 是否禁用 */
|
|
447
|
+
disabled?: boolean;
|
|
448
|
+
/** 点击事件 */
|
|
449
|
+
onClick?: (page: number) => void;
|
|
450
|
+
/** 自定义类名 */
|
|
451
|
+
className?: string;
|
|
452
|
+
/** 是否显示省略号 */
|
|
453
|
+
ellipsis?: boolean;
|
|
454
|
+
/** 自定义内容 */
|
|
455
|
+
children?: ReactNode;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export declare interface PaginationJumpProps {
|
|
459
|
+
/** 跳转方向 */
|
|
460
|
+
direction: 'prev' | 'next';
|
|
461
|
+
/** 点击事件 */
|
|
462
|
+
onClick?: () => void;
|
|
463
|
+
/** 是否禁用 */
|
|
464
|
+
disabled?: boolean;
|
|
465
|
+
/** 自定义类名 */
|
|
466
|
+
className?: string;
|
|
467
|
+
/** 自定义图标 */
|
|
468
|
+
icon?: ReactNode;
|
|
469
|
+
/** hover 提示 */
|
|
470
|
+
title?: string;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export declare interface PaginationProps {
|
|
474
|
+
/** 当前页码 */
|
|
475
|
+
current?: number;
|
|
476
|
+
/** 默认页码 */
|
|
477
|
+
defaultCurrent?: number;
|
|
478
|
+
/** 每页条数 */
|
|
479
|
+
pageSize?: number;
|
|
480
|
+
/** 默认每页条数 */
|
|
481
|
+
defaultPageSize?: number;
|
|
482
|
+
/** 数据总数 */
|
|
483
|
+
total?: number;
|
|
484
|
+
/** 页码改变时的回调 */
|
|
485
|
+
onChange?: (page: number, pageSize: number) => void;
|
|
486
|
+
/** pageSize 变化的回调 */
|
|
487
|
+
onShowSizeChange?: (current: number, size: number) => void;
|
|
488
|
+
/** 是否显示快速跳转 */
|
|
489
|
+
showQuickJumper?: boolean;
|
|
490
|
+
/** 是否显示每页条数选择器 */
|
|
491
|
+
showSizeChanger?: boolean;
|
|
492
|
+
/** 指定每页可以显示多少条 */
|
|
493
|
+
pageSizeOptions?: string[];
|
|
494
|
+
/** 是否显示总数 */
|
|
495
|
+
showTotal?: boolean | ((total: number, range: [number, number]) => ReactNode);
|
|
496
|
+
/** 是否显示上一页下一页按钮 */
|
|
497
|
+
showPrevNextJumpers?: boolean;
|
|
498
|
+
/** 是否显示首页末页按钮 */
|
|
499
|
+
showFirstLastJumpers?: boolean;
|
|
500
|
+
/** 是否禁用 */
|
|
501
|
+
disabled?: boolean;
|
|
502
|
+
/** 是否隐藏当只有一页时 */
|
|
503
|
+
hideOnSinglePage?: boolean;
|
|
504
|
+
/** 组件大小 */
|
|
505
|
+
size?: PaginationSize;
|
|
506
|
+
/** 对齐方式 */
|
|
507
|
+
align?: PaginationAlign;
|
|
508
|
+
/** 自定义类名 */
|
|
509
|
+
className?: string;
|
|
510
|
+
/** 自定义样式 */
|
|
511
|
+
style?: React.CSSProperties;
|
|
512
|
+
/** 是否显示省略号 */
|
|
513
|
+
showLessItems?: boolean;
|
|
514
|
+
/** 简单模式 */
|
|
515
|
+
simple?: boolean;
|
|
516
|
+
/** 自定义上一页按钮内容 */
|
|
517
|
+
prevIcon?: ReactNode;
|
|
518
|
+
/** 自定义下一页按钮内容 */
|
|
519
|
+
nextIcon?: ReactNode;
|
|
520
|
+
/** 自定义首页按钮内容 */
|
|
521
|
+
firstIcon?: ReactNode;
|
|
522
|
+
/** 自定义末页按钮内容 */
|
|
523
|
+
lastIcon?: ReactNode;
|
|
524
|
+
/** 自定义跳转按钮内容 */
|
|
525
|
+
jumpPrevIcon?: ReactNode;
|
|
526
|
+
/** 自定义跳转按钮内容 */
|
|
527
|
+
jumpNextIcon?: ReactNode;
|
|
528
|
+
/** 文字配置 */
|
|
529
|
+
texts?: {
|
|
530
|
+
/** 每页条数文字 */
|
|
531
|
+
itemsPerPage?: string;
|
|
532
|
+
/** 条目文字 */
|
|
533
|
+
items?: string;
|
|
534
|
+
/** 跳转到文字 */
|
|
535
|
+
jumpTo?: string;
|
|
536
|
+
/** 页码文字 */
|
|
537
|
+
page?: string;
|
|
538
|
+
/** 总数文字 */
|
|
539
|
+
total?: string;
|
|
540
|
+
/** 首页文字 */
|
|
541
|
+
first?: string;
|
|
542
|
+
/** 上一页文字 */
|
|
543
|
+
previous?: string;
|
|
544
|
+
/** 下一页文字 */
|
|
545
|
+
next?: string;
|
|
546
|
+
/** 末页文字 */
|
|
547
|
+
last?: string;
|
|
548
|
+
/** 跳转上一页文字 */
|
|
549
|
+
jumpPrev?: string;
|
|
550
|
+
/** 跳转下一页文字 */
|
|
551
|
+
jumpNext?: string;
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export declare interface PaginationQuickJumperProps {
|
|
556
|
+
/** 当前页码 */
|
|
557
|
+
current: number;
|
|
558
|
+
/** 总页数 */
|
|
559
|
+
totalPages: number;
|
|
560
|
+
/** 跳转回调 */
|
|
561
|
+
onJump: (page: number) => void;
|
|
562
|
+
/** 是否禁用 */
|
|
563
|
+
disabled?: boolean;
|
|
564
|
+
/** 自定义类名 */
|
|
565
|
+
className?: string;
|
|
566
|
+
/** 跳转到文字 */
|
|
567
|
+
jumpToText?: string;
|
|
568
|
+
/** 页码文字 */
|
|
569
|
+
pageText?: string;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export declare type PaginationSize = 'small' | 'middle' | 'large';
|
|
573
|
+
|
|
574
|
+
export declare interface PaginationSizeChangerProps {
|
|
575
|
+
/** 当前页码 */
|
|
576
|
+
current: number;
|
|
577
|
+
/** 当前每页条数 */
|
|
578
|
+
pageSize: number;
|
|
579
|
+
/** 每页条数选项 */
|
|
580
|
+
pageSizeOptions: string[];
|
|
581
|
+
/** 变化回调 */
|
|
582
|
+
onChange: (current: number, pageSize: number) => void;
|
|
583
|
+
/** 是否禁用 */
|
|
584
|
+
disabled?: boolean;
|
|
585
|
+
/** 自定义类名 */
|
|
586
|
+
className?: string;
|
|
587
|
+
/** 每页条数文字 */
|
|
588
|
+
itemsPerPageText?: string;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export declare const PrevIcon: FC<IconProps>;
|
|
592
|
+
|
|
393
593
|
export declare const SearchIcon: FC<IconProps>;
|
|
394
594
|
|
|
395
595
|
export declare const SettingsIcon: FC<IconProps>;
|