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.
@@ -1,4 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { ReactNode, PropsWithChildren } from 'react';
2
2
  import { HTMLMotionProps } from 'motion/react';
3
- declare function ScreenLayout({ children, ...props }: PropsWithChildren<Omit<HTMLMotionProps<"div">, "initial" | "drag" | "dragControls" | "dragListener" | "onDragStart" | "onDrag" | "onDragEnd" | "onPointerDown" | "onPointerMove" | "onPointerUp">>): import("react").JSX.Element;
4
- export default ScreenLayout;
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, active, params }: PropsWithChildren<{
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;
@@ -1,4 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
2
  import { HTMLMotionProps } from 'motion/react';
3
- declare function Screen({ children, ...props }: PropsWithChildren<Omit<HTMLMotionProps<"div">, "initial" | "drag" | "dragControls" | "dragListener" | "onDragStart" | "onDrag" | "onDragEnd" | "onPointerDown" | "onPointerMove" | "onPointerUp">>): import("react").JSX.Element;
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;
@@ -0,0 +1,3 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ declare function ScreenDecorator({ children, ref, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
3
+ export default ScreenDecorator;
@@ -1,4 +1,3 @@
1
- import { PropsWithChildren } from 'react';
2
- import { HTMLMotionProps } from 'motion/react';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flemo",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "A modern React router library with built-in motion animations and smooth transitions",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -1,3 +0,0 @@
1
- import { ComponentPropsWithRef } from 'react';
2
- declare function ScreenMotionDecorator({ children, ref, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
3
- export default ScreenMotionDecorator;