@tactics/lokaal-loket 0.0.113 → 0.0.114

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -801,21 +801,22 @@ type routeLocation = "route" | "location";
801
801
 
802
802
  declare const RouteLocation: (args: IRouteLocation) => react_jsx_runtime.JSX.Element;
803
803
 
804
- interface SwitchI {
805
- children: React$1.ReactElement<SwitchItemI>[];
806
- onChange?: (e: React$1.MouseEvent<HTMLDivElement>, index: number, child: React$1.ReactElement<SwitchItemI>) => void;
804
+ interface SwitchI<T> {
805
+ children: React$1.ReactElement<SwitchItemI<T>>[];
806
+ onChange?: (e: React$1.MouseEvent<HTMLDivElement>, index: number, value: T) => void;
807
807
  init: number;
808
808
  }
809
- interface SwitchItemI {
809
+ interface SwitchItemI<T> {
810
810
  label: string;
811
811
  content: React$1.ReactElement;
812
+ value: T;
812
813
  }
813
814
  interface SwitchItemContentI extends PropsWithChildren {
814
815
  }
815
816
 
816
817
  declare const Switch: {
817
- ({ children, onChange, init }: SwitchI): react_jsx_runtime.JSX.Element;
818
- Item: (props: SwitchItemI) => null;
818
+ ({ children, onChange, init }: SwitchI<any>): react_jsx_runtime.JSX.Element;
819
+ Item: (props: SwitchItemI<any>) => null;
819
820
  };
820
821
 
821
822
  interface CloseI {
package/build/index.d.ts CHANGED
@@ -801,21 +801,22 @@ type routeLocation = "route" | "location";
801
801
 
802
802
  declare const RouteLocation: (args: IRouteLocation) => react_jsx_runtime.JSX.Element;
803
803
 
804
- interface SwitchI {
805
- children: React$1.ReactElement<SwitchItemI>[];
806
- onChange?: (e: React$1.MouseEvent<HTMLDivElement>, index: number, child: React$1.ReactElement<SwitchItemI>) => void;
804
+ interface SwitchI<T> {
805
+ children: React$1.ReactElement<SwitchItemI<T>>[];
806
+ onChange?: (e: React$1.MouseEvent<HTMLDivElement>, index: number, value: T) => void;
807
807
  init: number;
808
808
  }
809
- interface SwitchItemI {
809
+ interface SwitchItemI<T> {
810
810
  label: string;
811
811
  content: React$1.ReactElement;
812
+ value: T;
812
813
  }
813
814
  interface SwitchItemContentI extends PropsWithChildren {
814
815
  }
815
816
 
816
817
  declare const Switch: {
817
- ({ children, onChange, init }: SwitchI): react_jsx_runtime.JSX.Element;
818
- Item: (props: SwitchItemI) => null;
818
+ ({ children, onChange, init }: SwitchI<any>): react_jsx_runtime.JSX.Element;
819
+ Item: (props: SwitchItemI<any>) => null;
819
820
  };
820
821
 
821
822
  interface CloseI {