flemo 1.3.0 → 1.3.2
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.mjs +543 -553
- package/dist/screen/LayoutScreen.d.ts +7 -3
- package/dist/screen/ParamsProvider/ParamsProvider.d.ts +1 -4
- package/dist/screen/Screen.d.ts +6 -2
- package/dist/screen/ScreenDecorator.d.ts +3 -0
- package/dist/screen/ScreenMotion.d.ts +2 -3
- package/package.json +1 -1
- package/dist/screen/ScreenMotionDecorator.d.ts +0 -3
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { ReactNode, PropsWithChildren } from 'react';
|
|
2
2
|
import { HTMLMotionProps } from 'motion/react';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export interface LayoutScreenProps extends PropsWithChildren<Omit<HTMLMotionProps<"div">, "initial" | "drag" | "dragControls" | "dragListener" | "onDragStart" | "onDrag" | "onDragEnd" | "onPointerDown" | "onPointerMove" | "onPointerUp">> {
|
|
4
|
+
appBar?: ReactNode;
|
|
5
|
+
navigationBar?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function LayoutScreen({ children, ...props }: LayoutScreenProps): import("react").JSX.Element;
|
|
8
|
+
export default LayoutScreen;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
declare function ParamsProvider({ children
|
|
3
|
-
active: boolean;
|
|
4
|
-
params: object;
|
|
5
|
-
}>): import("react").JSX.Element;
|
|
2
|
+
declare function ParamsProvider({ children }: PropsWithChildren): import("react").JSX.Element;
|
|
6
3
|
export default ParamsProvider;
|
package/dist/screen/Screen.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { HTMLMotionProps } from 'motion/react';
|
|
3
|
-
|
|
3
|
+
export interface ScreenProps extends PropsWithChildren<Omit<HTMLMotionProps<"div">, "initial" | "drag" | "dragControls" | "dragListener" | "onDragStart" | "onDrag" | "onDragEnd" | "onPointerDown" | "onPointerMove" | "onPointerUp">> {
|
|
4
|
+
appBar?: ReactNode;
|
|
5
|
+
navigationBar?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function Screen({ children, ...props }: ScreenProps): import("react").JSX.Element;
|
|
4
8
|
export default Screen;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare function ScreenMotion({ children, ...props }: PropsWithChildren<Omit<HTMLMotionProps<"div">, "initial" | "drag" | "dragControls" | "dragListener" | "onDragStart" | "onDrag" | "onDragEnd" | "onPointerDown" | "onPointerMove" | "onPointerUp">>): import("react").JSX.Element;
|
|
1
|
+
import { ScreenProps } from './Screen';
|
|
2
|
+
declare function ScreenMotion({ children, appBar, navigationBar, ...props }: ScreenProps): import("react").JSX.Element;
|
|
4
3
|
export default ScreenMotion;
|
package/package.json
CHANGED