@julseb-lib/react 1.0.9 → 1.0.11

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.
@@ -805,6 +805,18 @@ interface ILibTabs extends LibComponentBase<HTMLDivElement> {
805
805
  children?: never;
806
806
  }
807
807
 
808
+ interface ILibSlideshowPagination {
809
+ position?: LibSlideshowPaginationPosition;
810
+ hideOnTouch?: boolean;
811
+ color?: LibColorsHover;
812
+ type?: LibSlideshowPagination;
813
+ className?: ClassNames;
814
+ images?: Array<string>;
815
+ active: number;
816
+ setActive: DispatchState<number>;
817
+ contentLength: number;
818
+ handleClick: (n: number) => void;
819
+ }
808
820
  interface ILibPaginationControls {
809
821
  className?: string;
810
822
  size?: LibSlideshowButtonsSize;
@@ -821,18 +833,6 @@ interface ILibPaginationOptions {
821
833
  autoPlay?: number;
822
834
  speed?: number;
823
835
  }
824
- interface ILibSlideshowPagination {
825
- position?: LibSlideshowPaginationPosition;
826
- hideOnTouch?: boolean;
827
- color?: LibColorsHover;
828
- type?: LibSlideshowPagination;
829
- }
830
- interface ILibSlideshowPagination extends Pick<ILibSlideshow, "className" | "pagination" | "images" | "hidePagination"> {
831
- active: number;
832
- setActive: DispatchState<number>;
833
- contentLength: number;
834
- handleClick: (n: number) => void;
835
- }
836
836
 
837
837
  interface ILibSlideshowBase extends LibComponentBase<HTMLDivElement> {
838
838
  imgFit?: CssObjectFit;
@@ -844,12 +844,12 @@ interface ILibSlideshowBase extends LibComponentBase<HTMLDivElement> {
844
844
  }
845
845
  interface SlideshowWithImages extends ILibSlideshowBase {
846
846
  images?: Array<string>;
847
- pagination?: Pick<ILibSlideshowPagination, "color" | "className" | "hideOnTouch" | "images" | "pagination" | "hidePagination" | "position" | "type">;
847
+ pagination?: Pick<Partial<ILibSlideshowPagination>, "color" | "className" | "hideOnTouch" | "images" | "position" | "type">;
848
848
  children?: never;
849
849
  }
850
850
  interface SlideshowWithChildren extends ILibSlideshowBase {
851
851
  images?: never;
852
- pagination?: ILibSlideshowPagination;
852
+ pagination?: Pick<Partial<ILibSlideshowPagination>, "color" | "className" | "hideOnTouch" | "images" | "position" | "type">;
853
853
  children?: Array<ReactNode>;
854
854
  }
855
855
  type ILibSlideshow = SlideshowWithImages | SlideshowWithChildren;
@@ -805,6 +805,18 @@ interface ILibTabs extends LibComponentBase<HTMLDivElement> {
805
805
  children?: never;
806
806
  }
807
807
 
808
+ interface ILibSlideshowPagination {
809
+ position?: LibSlideshowPaginationPosition;
810
+ hideOnTouch?: boolean;
811
+ color?: LibColorsHover;
812
+ type?: LibSlideshowPagination;
813
+ className?: ClassNames;
814
+ images?: Array<string>;
815
+ active: number;
816
+ setActive: DispatchState<number>;
817
+ contentLength: number;
818
+ handleClick: (n: number) => void;
819
+ }
808
820
  interface ILibPaginationControls {
809
821
  className?: string;
810
822
  size?: LibSlideshowButtonsSize;
@@ -821,18 +833,6 @@ interface ILibPaginationOptions {
821
833
  autoPlay?: number;
822
834
  speed?: number;
823
835
  }
824
- interface ILibSlideshowPagination {
825
- position?: LibSlideshowPaginationPosition;
826
- hideOnTouch?: boolean;
827
- color?: LibColorsHover;
828
- type?: LibSlideshowPagination;
829
- }
830
- interface ILibSlideshowPagination extends Pick<ILibSlideshow, "className" | "pagination" | "images" | "hidePagination"> {
831
- active: number;
832
- setActive: DispatchState<number>;
833
- contentLength: number;
834
- handleClick: (n: number) => void;
835
- }
836
836
 
837
837
  interface ILibSlideshowBase extends LibComponentBase<HTMLDivElement> {
838
838
  imgFit?: CssObjectFit;
@@ -844,12 +844,12 @@ interface ILibSlideshowBase extends LibComponentBase<HTMLDivElement> {
844
844
  }
845
845
  interface SlideshowWithImages extends ILibSlideshowBase {
846
846
  images?: Array<string>;
847
- pagination?: Pick<ILibSlideshowPagination, "color" | "className" | "hideOnTouch" | "images" | "pagination" | "hidePagination" | "position" | "type">;
847
+ pagination?: Pick<Partial<ILibSlideshowPagination>, "color" | "className" | "hideOnTouch" | "images" | "position" | "type">;
848
848
  children?: never;
849
849
  }
850
850
  interface SlideshowWithChildren extends ILibSlideshowBase {
851
851
  images?: never;
852
- pagination?: ILibSlideshowPagination;
852
+ pagination?: Pick<Partial<ILibSlideshowPagination>, "color" | "className" | "hideOnTouch" | "images" | "position" | "type">;
853
853
  children?: Array<ReactNode>;
854
854
  }
855
855
  type ILibSlideshow = SlideshowWithImages | SlideshowWithChildren;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julseb-lib/react",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "files": [