@tactics/lokaal-loket 0.0.112 → 0.0.114
Sign up to get free protection for your applications and to get access to all the features.
- package/build/index.cjs +2 -2
- package/build/index.d.cts +7 -6
- package/build/index.d.ts +7 -6
- package/build/index.js +2 -2
- package/package.json +1 -1
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) => 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) => 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 {
|