gemini-uis 0.7.0 → 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 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
  /**
@@ -390,6 +394,11 @@ export declare const FolderIcon: FC<IconProps>;
390
394
 
391
395
  export declare type IconProps = SVGProps<SVGSVGElement>;
392
396
 
397
+ /**
398
+ * 指示器的样式变体
399
+ */
400
+ export declare type IndicatorVariant = 'dot' | 'number' | 'line';
401
+
393
402
  export declare const InfoIcon: FC<IconProps>;
394
403
 
395
404
  export declare const JumpNextIcon: FC<IconProps>;
@@ -432,6 +441,16 @@ export declare type LoadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
432
441
  */
433
442
  export declare type LoadingVariant = 'spinner' | 'dots' | 'pulse' | 'skeleton';
434
443
 
444
+ /**
445
+ * 导航按钮的方向
446
+ */
447
+ export declare type NavigationDirection = 'left' | 'right';
448
+
449
+ /**
450
+ * 导航按钮的样式变体
451
+ */
452
+ export declare type NavigationVariant = 'default' | 'outline' | 'ghost';
453
+
435
454
  export declare const NextIcon: FC<IconProps>;
436
455
 
437
456
  export declare const Pagination: FC<PaginationProps>;
@@ -594,6 +613,70 @@ export declare const SearchIcon: FC<IconProps>;
594
613
 
595
614
  export declare const SettingsIcon: FC<IconProps>;
596
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
+
597
680
  export declare const SuccessIcon: FC<IconProps>;
598
681
 
599
682
  export declare const UsersIcon: FC<IconProps>;