react-easy-wall 1.0.0

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/README.md ADDED
@@ -0,0 +1 @@
1
+ # react-easy-wall
@@ -0,0 +1,4 @@
1
+ export interface PanelProps {
2
+ label?: string;
3
+ }
4
+ export declare const Panel: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { DrawerProps } from '@mui/material';
2
+ import React from 'react';
3
+ export interface PanelProps extends DrawerProps {
4
+ children?: React.ReactNode;
5
+ size?: number;
6
+ }
7
+ export declare const Panel: React.FC<PanelProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { AvatarProps } from '@mui/material';
3
+ export interface PanelAvatarProps {
4
+ avatarProps?: AvatarProps;
5
+ textLink?: string;
6
+ }
7
+ export declare const PanelAvatar: React.FC<PanelAvatarProps>;
@@ -0,0 +1,5 @@
1
+ import { DividerProps } from '@mui/material';
2
+ import React from 'react';
3
+ export interface PanelDividerProps extends DividerProps {
4
+ }
5
+ export declare const PanelDivider: React.FC<PanelDividerProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ export interface PanelHeaderProps {
4
+ containerProps: BoxProps;
5
+ imageProps?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
6
+ }
7
+ export declare const PanelHeader: React.FC<PanelHeaderProps>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ListItemProps, ListItemTextProps } from '@mui/material';
3
+ export interface PanelItemProps {
4
+ listItemProps?: ListItemProps & {
5
+ href: string;
6
+ };
7
+ listItemTextProps?: ListItemTextProps;
8
+ }
9
+ export declare const PanelItem: React.FC<PanelItemProps>;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ListProps, DividerProps, BoxProps, TypographyProps } from '@mui/material';
3
+ import { PanelListRoute } from './panel.types';
4
+ export interface PanelListItems {
5
+ dividerProps?: DividerProps;
6
+ containerProps?: BoxProps;
7
+ listProps?: ListProps;
8
+ routes?: PanelListRoute[];
9
+ titleProps?: TypographyProps;
10
+ title?: string;
11
+ }
12
+ export declare const PanelListItems: React.FC<PanelListItems>;
@@ -0,0 +1,9 @@
1
+ export * from './Panel';
2
+ export * from './PanelAvatar';
3
+ export * from './PanelDivider';
4
+ export * from './PanelHeader';
5
+ export * from './PanelItem';
6
+ export * from './PanelListItems';
7
+ export * from './panel.store';
8
+ export * from './panel.types';
9
+ export * from './panel.actions';
@@ -0,0 +1,3 @@
1
+ import { PanelStoreAction } from './panel.types';
2
+ export declare const panelStoreAction: (data: PanelStoreAction) => void;
3
+ export declare const handlePanelClick: (isOpen: boolean) => void;
@@ -0,0 +1,5 @@
1
+ export declare const panelStore: import("@cobuildlab/react-simple-state").Store<{
2
+ isOpen: boolean;
3
+ }, {
4
+ isOpen: boolean;
5
+ }>;
@@ -0,0 +1,7 @@
1
+ export type PanelListRoute = {
2
+ path: string;
3
+ name: string;
4
+ };
5
+ export type PanelStoreAction = {
6
+ isOpen?: boolean;
7
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Config } from '../../config/config.types';
3
+ type SessionProviderProps = {
4
+ children: React.ReactNode;
5
+ config: Config;
6
+ };
7
+ export declare const SessionProvider: React.FC<SessionProviderProps>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { SessionContextDefaultValues } from './session.types';
2
+ export declare const Context: import("react").Context<SessionContextDefaultValues>;
3
+ export declare const Provider: import("react").Provider<SessionContextDefaultValues>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { User } from '../../shared/types/generated';
3
+ import { Config } from '../../config/config.types';
4
+ type SessionUserProviderProps = {
5
+ children: React.ReactNode;
6
+ initial: User | null | undefined;
7
+ config: Config;
8
+ };
9
+ export declare const SessionUserProvider: React.FC<SessionUserProviderProps>;
10
+ export {};
@@ -0,0 +1 @@
1
+ export * from './SessionProvider';
@@ -0,0 +1,3 @@
1
+ export declare const DEFAULT_USER_CONTEXT: {
2
+ user: undefined;
3
+ };
@@ -0,0 +1 @@
1
+ export declare const useSession: () => import("./session.types").SessionContextDefaultValues;
@@ -0,0 +1,6 @@
1
+ import { User } from '../../shared/types/generated';
2
+ import { Config } from '../../config/config.types';
3
+ export type SessionContextDefaultValues = {
4
+ user?: User | null;
5
+ config?: Config;
6
+ };
@@ -0,0 +1,4 @@
1
+ export interface Config {
2
+ uri?: string;
3
+ urlPortal?: string;
4
+ }
@@ -0,0 +1,21 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
4
+ interface PanelProps {
5
+ label?: string;
6
+ }
7
+ declare const Panel: () => react_jsx_runtime.JSX.Element;
8
+
9
+ interface Config {
10
+ uri?: string;
11
+ urlPortal?: string;
12
+ }
13
+
14
+ type SessionProviderProps = {
15
+ children: React.ReactNode;
16
+ config: Config;
17
+ };
18
+ declare const SessionProvider: React.FC<SessionProviderProps>;
19
+
20
+ export { Panel, SessionProvider };
21
+ export type { PanelProps };