gemini-uis 0.6.1 → 0.8.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/dist/index.d.ts +251 -0
- package/dist/index.js +894 -319
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ export declare type CardRef = HTMLDivElement;
|
|
|
83
83
|
*/
|
|
84
84
|
export declare type CardShadow = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
85
85
|
|
|
86
|
+
export declare const ChevronLeftIcon: FC<IconProps>;
|
|
87
|
+
|
|
88
|
+
export declare const ChevronRightIcon: FC<IconProps>;
|
|
89
|
+
|
|
86
90
|
export declare const CloseIcon: FC<IconProps>;
|
|
87
91
|
|
|
88
92
|
/**
|
|
@@ -382,12 +386,27 @@ export declare type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
|
382
386
|
*/
|
|
383
387
|
export declare type EmptyStateVariant = 'default' | 'minimal' | 'card';
|
|
384
388
|
|
|
389
|
+
export declare const ErrorIcon: FC<IconProps>;
|
|
390
|
+
|
|
391
|
+
export declare const FirstIcon: FC<IconProps>;
|
|
392
|
+
|
|
385
393
|
export declare const FolderIcon: FC<IconProps>;
|
|
386
394
|
|
|
387
395
|
export declare type IconProps = SVGProps<SVGSVGElement>;
|
|
388
396
|
|
|
397
|
+
/**
|
|
398
|
+
* 指示器的样式变体
|
|
399
|
+
*/
|
|
400
|
+
export declare type IndicatorVariant = 'dot' | 'number' | 'line';
|
|
401
|
+
|
|
389
402
|
export declare const InfoIcon: FC<IconProps>;
|
|
390
403
|
|
|
404
|
+
export declare const JumpNextIcon: FC<IconProps>;
|
|
405
|
+
|
|
406
|
+
export declare const JumpPrevIcon: FC<IconProps>;
|
|
407
|
+
|
|
408
|
+
export declare const LastIcon: FC<IconProps>;
|
|
409
|
+
|
|
391
410
|
export declare const Loading: FC<LoadingProps>;
|
|
392
411
|
|
|
393
412
|
export declare const LoadingIcon: FC<IconProps>;
|
|
@@ -422,10 +441,242 @@ export declare type LoadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
422
441
|
*/
|
|
423
442
|
export declare type LoadingVariant = 'spinner' | 'dots' | 'pulse' | 'skeleton';
|
|
424
443
|
|
|
444
|
+
/**
|
|
445
|
+
* 导航按钮的方向
|
|
446
|
+
*/
|
|
447
|
+
export declare type NavigationDirection = 'left' | 'right';
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* 导航按钮的样式变体
|
|
451
|
+
*/
|
|
452
|
+
export declare type NavigationVariant = 'default' | 'outline' | 'ghost';
|
|
453
|
+
|
|
454
|
+
export declare const NextIcon: FC<IconProps>;
|
|
455
|
+
|
|
456
|
+
export declare const Pagination: FC<PaginationProps>;
|
|
457
|
+
|
|
458
|
+
export declare type PaginationAlign = 'left' | 'center' | 'right';
|
|
459
|
+
|
|
460
|
+
export declare interface PaginationItemProps {
|
|
461
|
+
/** 页码 */
|
|
462
|
+
page: number;
|
|
463
|
+
/** 是否激活 */
|
|
464
|
+
active?: boolean;
|
|
465
|
+
/** 是否禁用 */
|
|
466
|
+
disabled?: boolean;
|
|
467
|
+
/** 点击事件 */
|
|
468
|
+
onClick?: (page: number) => void;
|
|
469
|
+
/** 自定义类名 */
|
|
470
|
+
className?: string;
|
|
471
|
+
/** 是否显示省略号 */
|
|
472
|
+
ellipsis?: boolean;
|
|
473
|
+
/** 自定义内容 */
|
|
474
|
+
children?: ReactNode;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export declare interface PaginationJumpProps {
|
|
478
|
+
/** 跳转方向 */
|
|
479
|
+
direction: 'prev' | 'next';
|
|
480
|
+
/** 点击事件 */
|
|
481
|
+
onClick?: () => void;
|
|
482
|
+
/** 是否禁用 */
|
|
483
|
+
disabled?: boolean;
|
|
484
|
+
/** 自定义类名 */
|
|
485
|
+
className?: string;
|
|
486
|
+
/** 自定义图标 */
|
|
487
|
+
icon?: ReactNode;
|
|
488
|
+
/** hover 提示 */
|
|
489
|
+
title?: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export declare interface PaginationProps {
|
|
493
|
+
/** 当前页码 */
|
|
494
|
+
current?: number;
|
|
495
|
+
/** 默认页码 */
|
|
496
|
+
defaultCurrent?: number;
|
|
497
|
+
/** 每页条数 */
|
|
498
|
+
pageSize?: number;
|
|
499
|
+
/** 默认每页条数 */
|
|
500
|
+
defaultPageSize?: number;
|
|
501
|
+
/** 数据总数 */
|
|
502
|
+
total?: number;
|
|
503
|
+
/** 页码改变时的回调 */
|
|
504
|
+
onChange?: (page: number, pageSize: number) => void;
|
|
505
|
+
/** pageSize 变化的回调 */
|
|
506
|
+
onShowSizeChange?: (current: number, size: number) => void;
|
|
507
|
+
/** 是否显示快速跳转 */
|
|
508
|
+
showQuickJumper?: boolean;
|
|
509
|
+
/** 是否显示每页条数选择器 */
|
|
510
|
+
showSizeChanger?: boolean;
|
|
511
|
+
/** 指定每页可以显示多少条 */
|
|
512
|
+
pageSizeOptions?: string[];
|
|
513
|
+
/** 是否显示总数 */
|
|
514
|
+
showTotal?: boolean | ((total: number, range: [number, number]) => ReactNode);
|
|
515
|
+
/** 是否显示上一页下一页按钮 */
|
|
516
|
+
showPrevNextJumpers?: boolean;
|
|
517
|
+
/** 是否显示首页末页按钮 */
|
|
518
|
+
showFirstLastJumpers?: boolean;
|
|
519
|
+
/** 是否禁用 */
|
|
520
|
+
disabled?: boolean;
|
|
521
|
+
/** 是否隐藏当只有一页时 */
|
|
522
|
+
hideOnSinglePage?: boolean;
|
|
523
|
+
/** 组件大小 */
|
|
524
|
+
size?: PaginationSize;
|
|
525
|
+
/** 对齐方式 */
|
|
526
|
+
align?: PaginationAlign;
|
|
527
|
+
/** 自定义类名 */
|
|
528
|
+
className?: string;
|
|
529
|
+
/** 自定义样式 */
|
|
530
|
+
style?: React.CSSProperties;
|
|
531
|
+
/** 是否显示省略号 */
|
|
532
|
+
showLessItems?: boolean;
|
|
533
|
+
/** 简单模式 */
|
|
534
|
+
simple?: boolean;
|
|
535
|
+
/** 自定义上一页按钮内容 */
|
|
536
|
+
prevIcon?: ReactNode;
|
|
537
|
+
/** 自定义下一页按钮内容 */
|
|
538
|
+
nextIcon?: ReactNode;
|
|
539
|
+
/** 自定义首页按钮内容 */
|
|
540
|
+
firstIcon?: ReactNode;
|
|
541
|
+
/** 自定义末页按钮内容 */
|
|
542
|
+
lastIcon?: ReactNode;
|
|
543
|
+
/** 自定义跳转按钮内容 */
|
|
544
|
+
jumpPrevIcon?: ReactNode;
|
|
545
|
+
/** 自定义跳转按钮内容 */
|
|
546
|
+
jumpNextIcon?: ReactNode;
|
|
547
|
+
/** 文字配置 */
|
|
548
|
+
texts?: {
|
|
549
|
+
/** 每页条数文字 */
|
|
550
|
+
itemsPerPage?: string;
|
|
551
|
+
/** 条目文字 */
|
|
552
|
+
items?: string;
|
|
553
|
+
/** 跳转到文字 */
|
|
554
|
+
jumpTo?: string;
|
|
555
|
+
/** 页码文字 */
|
|
556
|
+
page?: string;
|
|
557
|
+
/** 总数文字 */
|
|
558
|
+
total?: string;
|
|
559
|
+
/** 首页文字 */
|
|
560
|
+
first?: string;
|
|
561
|
+
/** 上一页文字 */
|
|
562
|
+
previous?: string;
|
|
563
|
+
/** 下一页文字 */
|
|
564
|
+
next?: string;
|
|
565
|
+
/** 末页文字 */
|
|
566
|
+
last?: string;
|
|
567
|
+
/** 跳转上一页文字 */
|
|
568
|
+
jumpPrev?: string;
|
|
569
|
+
/** 跳转下一页文字 */
|
|
570
|
+
jumpNext?: string;
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export declare interface PaginationQuickJumperProps {
|
|
575
|
+
/** 当前页码 */
|
|
576
|
+
current: number;
|
|
577
|
+
/** 总页数 */
|
|
578
|
+
totalPages: number;
|
|
579
|
+
/** 跳转回调 */
|
|
580
|
+
onJump: (page: number) => void;
|
|
581
|
+
/** 是否禁用 */
|
|
582
|
+
disabled?: boolean;
|
|
583
|
+
/** 自定义类名 */
|
|
584
|
+
className?: string;
|
|
585
|
+
/** 跳转到文字 */
|
|
586
|
+
jumpToText?: string;
|
|
587
|
+
/** 页码文字 */
|
|
588
|
+
pageText?: string;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export declare type PaginationSize = 'small' | 'middle' | 'large';
|
|
592
|
+
|
|
593
|
+
export declare interface PaginationSizeChangerProps {
|
|
594
|
+
/** 当前页码 */
|
|
595
|
+
current: number;
|
|
596
|
+
/** 当前每页条数 */
|
|
597
|
+
pageSize: number;
|
|
598
|
+
/** 每页条数选项 */
|
|
599
|
+
pageSizeOptions: string[];
|
|
600
|
+
/** 变化回调 */
|
|
601
|
+
onChange: (current: number, pageSize: number) => void;
|
|
602
|
+
/** 是否禁用 */
|
|
603
|
+
disabled?: boolean;
|
|
604
|
+
/** 自定义类名 */
|
|
605
|
+
className?: string;
|
|
606
|
+
/** 每页条数文字 */
|
|
607
|
+
itemsPerPageText?: string;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export declare const PrevIcon: FC<IconProps>;
|
|
611
|
+
|
|
425
612
|
export declare const SearchIcon: FC<IconProps>;
|
|
426
613
|
|
|
427
614
|
export declare const SettingsIcon: FC<IconProps>;
|
|
428
615
|
|
|
616
|
+
export declare const Slider: ForwardRefExoticComponent<SliderProps & RefAttributes<SliderRef>>;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Slider组件的属性接口
|
|
620
|
+
*/
|
|
621
|
+
export declare interface SliderProps {
|
|
622
|
+
/** 传入的节点列表 */
|
|
623
|
+
items: ReactNode[];
|
|
624
|
+
/** 每页显示的item个数 */
|
|
625
|
+
itemsPerPage?: number;
|
|
626
|
+
/** 每次滑动移动的item个数 */
|
|
627
|
+
slidePerPage?: number;
|
|
628
|
+
/** 是否允许鼠标拖动 */
|
|
629
|
+
draggable?: boolean;
|
|
630
|
+
/** 第一个元素距离视窗最左边的距离 */
|
|
631
|
+
paddingLeft?: number;
|
|
632
|
+
/** 元素之间的间距 */
|
|
633
|
+
gap?: number;
|
|
634
|
+
/** 是否显示导航按钮 */
|
|
635
|
+
showNavigation?: boolean;
|
|
636
|
+
/** 左箭头自定义样式类名 */
|
|
637
|
+
leftArrowClassName?: string;
|
|
638
|
+
/** 右箭头自定义样式类名 */
|
|
639
|
+
rightArrowClassName?: string;
|
|
640
|
+
/** 是否显示指示器 */
|
|
641
|
+
showIndicators?: boolean;
|
|
642
|
+
/** 是否自动播放 */
|
|
643
|
+
autoPlay?: boolean;
|
|
644
|
+
/** 自动播放间隔时间(毫秒) */
|
|
645
|
+
autoPlayInterval?: number;
|
|
646
|
+
/** 是否循环播放 */
|
|
647
|
+
loop?: boolean;
|
|
648
|
+
/** 自定义类名 */
|
|
649
|
+
className?: string;
|
|
650
|
+
/** 每个item最外层容器的自定义类名 */
|
|
651
|
+
itemContainerClassName?: string;
|
|
652
|
+
/** 自定义样式 */
|
|
653
|
+
style?: React.CSSProperties;
|
|
654
|
+
/** 导航按钮点击事件 */
|
|
655
|
+
onSlideChange?: (currentIndex: number) => void;
|
|
656
|
+
/** 上一页按钮的aria-label文本 */
|
|
657
|
+
previousPageLabel?: string;
|
|
658
|
+
/** 下一页按钮的aria-label文本 */
|
|
659
|
+
nextPageLabel?: string;
|
|
660
|
+
/** 指示器按钮的aria-label文本模板,{page}会被替换为页码 */
|
|
661
|
+
goToPageLabel?: string;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Slider组件的引用类型
|
|
666
|
+
*/
|
|
667
|
+
export declare interface SliderRef {
|
|
668
|
+
/** 滑动到指定索引 */
|
|
669
|
+
slideTo: (index: number) => void;
|
|
670
|
+
/** 滑动到下一页 */
|
|
671
|
+
slideNext: () => void;
|
|
672
|
+
/** 滑动到上一页 */
|
|
673
|
+
slidePrev: () => void;
|
|
674
|
+
/** 获取当前索引 */
|
|
675
|
+
getCurrentIndex: () => number;
|
|
676
|
+
/** 获取总页数 */
|
|
677
|
+
getTotalPages: () => number;
|
|
678
|
+
}
|
|
679
|
+
|
|
429
680
|
export declare const SuccessIcon: FC<IconProps>;
|
|
430
681
|
|
|
431
682
|
export declare const UsersIcon: FC<IconProps>;
|