@lumx/react 4.1.1-alpha.5 → 4.1.1-alpha.7

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/index.d.ts CHANGED
@@ -2687,10 +2687,23 @@ declare const Slider: Comp<SliderProps, HTMLDivElement>;
2687
2687
  */
2688
2688
  declare const clamp: (value: number, min: number, max: number) => number;
2689
2689
 
2690
+ /**
2691
+ * Slide mode
2692
+ */
2693
+ declare const SlideMode: {
2694
+ /** Move slides with CSS transform translate */
2695
+ readonly transformTranslate: "transform-translate";
2696
+ /** Move slides native scroll snap (available only on supported browsers) */
2697
+ readonly scrollSnap: "scroll-snap";
2698
+ };
2699
+ type SlideMode = ValueOf<typeof SlideMode>;
2700
+
2690
2701
  /**
2691
2702
  * Defines the props of the component.
2692
2703
  */
2693
2704
  interface SlideshowProps extends GenericProps$1, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
2705
+ /** Whether to use CSS transform translate or native scroll snap. */
2706
+ slideMode?: SlideMode;
2694
2707
  /** current slide active */
2695
2708
  activeIndex?: SlidesProps['activeIndex'];
2696
2709
  /** Interval between each slide when automatic rotation is enabled. */
@@ -2863,6 +2876,10 @@ interface SlidesProps extends GenericProps$1, HasTheme$1 {
2863
2876
  * Receives the group position starting from 1 and the total number of groups.
2864
2877
  * */
2865
2878
  slideGroupLabel?: (groupPosition: number, groupTotal: number) => string;
2879
+ /** Whether to use CSS transform translate or native scroll snap. */
2880
+ slideMode?: SlideMode;
2881
+ /** On slide change (only triggered on scroll when slideMode=scroll-snap) */
2882
+ onChange?(index: number): void;
2866
2883
  /** Children */
2867
2884
  children?: React__default.ReactNode;
2868
2885
  }