@collana-solutions/react-pattern-ui 0.0.0-stage → 6.2.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/LICENSE +21 -0
- package/README.md +23 -3
- package/dist/index.d.ts +9 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +2 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/lib/Layout/AuthenticationLayout.d.ts +9 -0
- package/dist/lib/Layout/PanelSideBarLayout/NavbarLayout.d.ts +8 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/ButtonIcon.d.ts +9 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/Context/PanelSideBarContext.d.ts +15 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/Context/PanelSideBarContextProps.d.ts +84 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/Definitions/PanelItem.d.ts +60 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/Definitions/PanelLinkRenderer.d.ts +13 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/MainSection.d.ts +8 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/PanelItemsRenderer.d.ts +12 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/PanelSideBarItem.d.ts +10 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/PanelSideBarToggle.d.ts +7 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/PanelSidebar.d.ts +5 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/Utils/getActivePanel.d.ts +4 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBar/Utils/panelUtils.d.ts +20 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBarLayout.d.ts +41 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBarLayoutContent.d.ts +10 -0
- package/dist/lib/Layout/PanelSideBarLayout/PanelSideBarNavbar.d.ts +24 -0
- package/dist/lib/Paging/Paging.d.ts +28 -0
- package/dist/scss/Form/_form.scss +8 -0
- package/dist/scss/Form/index.scss +1 -0
- package/dist/scss/Layout/AuthenticationLayout.scss +94 -0
- package/dist/scss/Layout/_PanelSideBarLayout.scss +533 -0
- package/dist/scss/Layout/_PanelSideBarNavbar.scss +76 -0
- package/dist/scss/Layout/index.scss +3 -0
- package/dist/scss/Layout/variables.scss +73 -0
- package/dist/styles.css +548 -0
- package/package.json +105 -6
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import "../../../styles/Layout/AuthenticationLayout.scss";
|
|
3
|
+
interface AuthenticationLayoutProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
footer?: ReactNode;
|
|
6
|
+
logo?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const AuthenticationLayout: (props: PropsWithChildren<AuthenticationLayoutProps>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { AuthenticationLayout, AuthenticationLayoutProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../../../../styles/Layout/index.scss";
|
|
2
|
+
import { ComponentProps, PropsWithChildren } from "react";
|
|
3
|
+
import { PanelSideBarLayoutContent } from "./PanelSideBarLayoutContent";
|
|
4
|
+
import { PanelSidebarNavbarInternalProps } from "./PanelSideBarNavbar";
|
|
5
|
+
import { PanelSideBarLayoutProps } from "./PanelSideBarLayout";
|
|
6
|
+
export interface NavbarLayoutProps extends PropsWithChildren, Pick<ComponentProps<typeof PanelSideBarLayoutContent>, "footer" | "mainContentBodyRef" | "mainContentBodyStyle">, Pick<PanelSideBarLayoutProps, "useResponsiveLayout" | "navbarLeftItems" | "navbarRightItems" | "brand">, Pick<PanelSidebarNavbarInternalProps, "theme"> {
|
|
7
|
+
}
|
|
8
|
+
export declare const NavbarLayout: (props: NavbarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PanelItem } from "./Definitions/PanelItem";
|
|
2
|
+
interface ButtonIconProps<TPanelItemId extends string, TPanelItem> {
|
|
3
|
+
item: PanelItem<TPanelItemId, TPanelItem>;
|
|
4
|
+
activePanelId?: TPanelItemId;
|
|
5
|
+
renderTilesAsLinks?: boolean;
|
|
6
|
+
setActivePanel: (panelId: TPanelItemId) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ButtonIcon: <TPanelItemId extends string, TPanelItem>(props: ButtonIconProps<TPanelItemId, TPanelItem>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PanelSideBarContextProps } from "./PanelSideBarContextProps";
|
|
3
|
+
export type MenuItemToggleFn<TPanelItemId extends string> = (menuItemId: TPanelItemId) => void;
|
|
4
|
+
export interface PanelSideBarMenuProviderProps<TPanelItemId extends string, TPanelItem> extends Pick<PanelSideBarContextProps<TPanelItemId, TPanelItem>, "menuItems" | "LinkRenderer" | "theme" | "renderTilesAsLinks" | "renderFirstItemsLevelAsTiles" | "defaultActivePanelId"> {
|
|
5
|
+
/**
|
|
6
|
+
* The children elements.
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* if the sidebar should be open by default.
|
|
11
|
+
*/
|
|
12
|
+
sidebarOpenByDefault?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const PanelSideBarProvider: <TPanelItemId extends string, TPanelItem>(props: PanelSideBarMenuProviderProps<TPanelItemId, TPanelItem>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const usePanelSideBarContext: <TPanelItemId extends string, TPanelItem>() => PanelSideBarContextProps<TPanelItemId, TPanelItem>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Dispatch, MutableRefObject, SetStateAction } from "react";
|
|
2
|
+
import { PanelItem } from "../Definitions/PanelItem";
|
|
3
|
+
import { PanelLinkRenderer } from "../Definitions/PanelLinkRenderer";
|
|
4
|
+
import { MenuItemToggleFn } from "./PanelSideBarContext";
|
|
5
|
+
export interface SidebarProps {
|
|
6
|
+
/**
|
|
7
|
+
* If the sidebar is currently open or not
|
|
8
|
+
*/
|
|
9
|
+
isSidebarOpen: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Function for toggling sidebar
|
|
12
|
+
*/
|
|
13
|
+
toggleSidebar: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* The theme
|
|
16
|
+
*/
|
|
17
|
+
theme?: "light" | "dark" | "blue";
|
|
18
|
+
}
|
|
19
|
+
export interface PanelSideBarContextProps<TPanelItemId extends string, TPanelItem> extends SidebarProps {
|
|
20
|
+
/**
|
|
21
|
+
* The active panel id.
|
|
22
|
+
*/
|
|
23
|
+
activePanelId?: TPanelItemId;
|
|
24
|
+
/**
|
|
25
|
+
* The menu items.
|
|
26
|
+
*/
|
|
27
|
+
menuItems: PanelItem<TPanelItemId, TPanelItem>[];
|
|
28
|
+
/**
|
|
29
|
+
* The function used to set a panel as active
|
|
30
|
+
* @param panelId The panel item identifier
|
|
31
|
+
*/
|
|
32
|
+
setActivePanel: (panelId: TPanelItemId) => void;
|
|
33
|
+
/**
|
|
34
|
+
* The list of toggled menu item identifier
|
|
35
|
+
*/
|
|
36
|
+
toggledMenuItemIds: string[];
|
|
37
|
+
/**
|
|
38
|
+
* The function used to toggle a menu item
|
|
39
|
+
*/
|
|
40
|
+
toggleMenuItem: MenuItemToggleFn<TPanelItemId>;
|
|
41
|
+
/**
|
|
42
|
+
* The default active panel id that will be taken if no active panel is dynamically found
|
|
43
|
+
*/
|
|
44
|
+
defaultActivePanelId?: TPanelItemId;
|
|
45
|
+
/**
|
|
46
|
+
* Function for untoggling all menu items
|
|
47
|
+
*/
|
|
48
|
+
untoggleMenuItems: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Boolean indicating if you want to render first items level as icons or directly as menu entries
|
|
51
|
+
*/
|
|
52
|
+
renderFirstItemsLevelAsTiles?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Boolean indicating if you want to render first level items as links or as button
|
|
55
|
+
*/
|
|
56
|
+
renderTilesAsLinks?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The component used to render the menu item links.
|
|
59
|
+
*/
|
|
60
|
+
LinkRenderer: PanelLinkRenderer<TPanelItemId, TPanelItem>;
|
|
61
|
+
/**
|
|
62
|
+
* The list of toggled menu item identifier
|
|
63
|
+
*/
|
|
64
|
+
hiddenMenuItemIds: TPanelItemId[];
|
|
65
|
+
/**
|
|
66
|
+
* Function to get the hidden menu items
|
|
67
|
+
*/
|
|
68
|
+
setHiddenMenuItemsIds: Dispatch<SetStateAction<TPanelItemId[]>>;
|
|
69
|
+
/**
|
|
70
|
+
* Function to open menu items
|
|
71
|
+
* @param panelItemIds the panel item identifiers to open
|
|
72
|
+
*/
|
|
73
|
+
openMenuItems: (panelItemIds: TPanelItemId[]) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Function to close menu items
|
|
76
|
+
* @param panelItemIds the panel item identifiers to close
|
|
77
|
+
* @param includeActivePanel whether needs to include the active panel
|
|
78
|
+
*/
|
|
79
|
+
closeMenuItems: (panelItemIds: TPanelItemId[], includeActivePanel?: boolean) => void;
|
|
80
|
+
/**
|
|
81
|
+
* the main content body ref
|
|
82
|
+
*/
|
|
83
|
+
mainContentBodyRef: MutableRefObject<HTMLElement | null>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export type PanelItemOnSideBarCollapseOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the sidebar maintains the panel item icon visible on collapsing.
|
|
6
|
+
* It works whether {@link PanelSideBarContextProps#renderFirstItemsLevelAsTiles} is enabled and the panel item has {@link PanelItem#children}
|
|
7
|
+
*/
|
|
8
|
+
showIcon?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The icon to be displayed when the active panel item has `showIcon` enabled, the sidebar is collapsed and the panel item does not have any icon.
|
|
11
|
+
* @see {@link PanelItemOnSideBarCollapseOptions#showIcon} {@link PanelItem#icon}
|
|
12
|
+
*/
|
|
13
|
+
fallbackIcon?: IconProp;
|
|
14
|
+
};
|
|
15
|
+
export type PanelItem<TPanelItemId extends string, TPanelItem = Record<string, unknown>> = TPanelItem & {
|
|
16
|
+
/**
|
|
17
|
+
* The panel icon.
|
|
18
|
+
*/
|
|
19
|
+
icon?: IconProp;
|
|
20
|
+
/**
|
|
21
|
+
* The panel item identifier.
|
|
22
|
+
*/
|
|
23
|
+
id: TPanelItemId;
|
|
24
|
+
/**
|
|
25
|
+
* The custom onClick that prevents all others default action.
|
|
26
|
+
*/
|
|
27
|
+
onClick?(): void;
|
|
28
|
+
/**
|
|
29
|
+
* The panel menu items.
|
|
30
|
+
*/
|
|
31
|
+
children?: PanelItem<TPanelItemId, TPanelItem>[];
|
|
32
|
+
/**
|
|
33
|
+
* Whether the panel is disabled.
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The panel title.
|
|
38
|
+
*/
|
|
39
|
+
title: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the item should be displayed.
|
|
42
|
+
*/
|
|
43
|
+
display?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the item is expanded.
|
|
46
|
+
*/
|
|
47
|
+
expanded?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the item is active.
|
|
50
|
+
*/
|
|
51
|
+
active?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether collapse only with icon.
|
|
54
|
+
*/
|
|
55
|
+
collapseIconOnly?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The panel item options once the sidebar gets collapsed.
|
|
58
|
+
*/
|
|
59
|
+
onSidebarCollapseOptions?: PanelItemOnSideBarCollapseOptions;
|
|
60
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from "react";
|
|
2
|
+
import { PanelItem } from "./PanelItem";
|
|
3
|
+
export interface PanelLinkRendererProps<TPanelItemId extends string, TPanelItem> {
|
|
4
|
+
/**
|
|
5
|
+
* The generic panel item.
|
|
6
|
+
*/
|
|
7
|
+
item: PanelItem<TPanelItemId, TPanelItem>;
|
|
8
|
+
/**
|
|
9
|
+
* The panel children item.
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export type PanelLinkRenderer<TPanelItemId extends string, TPanelItem> = ComponentType<PanelLinkRendererProps<TPanelItemId, TPanelItem>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
interface MainSectionProps extends PropsWithChildren {
|
|
3
|
+
isSidebarOpen: boolean;
|
|
4
|
+
useResponsiveLayout?: boolean;
|
|
5
|
+
renderFirstItemsLevelAsTiles?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const MainSection: (props: MainSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { MainSection };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PanelItem } from "./Definitions/PanelItem";
|
|
2
|
+
import { PanelLinkRenderer } from "./Definitions/PanelLinkRenderer";
|
|
3
|
+
interface PanelItemsRendererProps<TPanelItemId extends string, TPanelItem> {
|
|
4
|
+
items: PanelItem<TPanelItemId, TPanelItem>[];
|
|
5
|
+
activePanelId?: TPanelItemId;
|
|
6
|
+
renderTilesAsLinks?: boolean;
|
|
7
|
+
setActivePanel: (panelId: TPanelItemId) => void;
|
|
8
|
+
LinkRenderer: PanelLinkRenderer<TPanelItemId, TPanelItem>;
|
|
9
|
+
hiddenMenuItemIds: TPanelItemId[];
|
|
10
|
+
}
|
|
11
|
+
export declare const PanelItemsRenderer: <TPanelItemId extends string, TPanelItem>(props: PanelItemsRendererProps<TPanelItemId, TPanelItem>) => import("react/jsx-runtime").JSX.Element[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PanelItem } from "./../PanelSideBar/Definitions/PanelItem";
|
|
2
|
+
export interface PanelSideBarItemProps<TPanelItemId extends string, TPanelItem> {
|
|
3
|
+
children: PanelItem<TPanelItemId, TPanelItem>;
|
|
4
|
+
depth?: number;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
isParentHidden?: boolean;
|
|
7
|
+
isIconShownOnSidebarCollapse: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const PanelSideBarItem: <TPanelItemId extends string, TPanelItem>(props: PanelSideBarItemProps<TPanelItemId, TPanelItem>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { PanelSideBarItem };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonProps } from "@neolution-ch/reactstrap";
|
|
2
|
+
interface PanelSideBarToggleProps extends ButtonProps {
|
|
3
|
+
toggled: boolean;
|
|
4
|
+
isIconShownOnSidebarCollapse: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const PanelSideBarToggle: (props: PanelSideBarToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PanelItem } from "../Definitions/PanelItem";
|
|
2
|
+
export declare const getActivePanel: <TPanelItemId extends string, TPanelItem>(items: PanelItem<TPanelItemId, TPanelItem>[], defaultActivePanelId?: TPanelItemId) => PanelItem<TPanelItemId, TPanelItem> | undefined;
|
|
3
|
+
export declare const hasActiveChildren: <TPanelItemId extends string, TPanelItem>(items: PanelItem<TPanelItemId, TPanelItem>[]) => boolean;
|
|
4
|
+
export declare const getActivePanelParentsIds: <TPanelItemId extends string, TPanelItem>(items: PanelItem<TPanelItemId, TPanelItem>[], activePanel: TPanelItemId) => TPanelItemId[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PanelItem } from "../Definitions/PanelItem";
|
|
2
|
+
/**
|
|
3
|
+
* Recursively gets the hidden panel items identifiers
|
|
4
|
+
* @param items the panel items
|
|
5
|
+
* @returns the hidden panel items identifiers
|
|
6
|
+
*/
|
|
7
|
+
declare const getHiddenPanelIds: <TPanelItemId extends string, TPanelItem>(items: PanelItem<TPanelItemId, TPanelItem>[]) => TPanelItemId[];
|
|
8
|
+
/**
|
|
9
|
+
* Recursively gets the children panel items identifiers
|
|
10
|
+
* @param children the panel items
|
|
11
|
+
* @returns the children panel items identifiers
|
|
12
|
+
*/
|
|
13
|
+
declare const getChildrenPanelItemsIds: <TPanelItemId extends string, TPanelItem>(children: PanelItem<TPanelItemId, TPanelItem>[]) => TPanelItemId[];
|
|
14
|
+
/**
|
|
15
|
+
* Recursively gets the pre-expanded panel items
|
|
16
|
+
* @param items the panel items
|
|
17
|
+
* @returns the panel items that are pre-expanded
|
|
18
|
+
*/
|
|
19
|
+
declare const getPreExpandedMenuItems: <TPanelItemId extends string, TPanelItem>(items: PanelItem<TPanelItemId, TPanelItem>[]) => TPanelItemId[];
|
|
20
|
+
export { getChildrenPanelItemsIds, getHiddenPanelIds, getPreExpandedMenuItems };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import "../../../../styles/Layout/index.scss";
|
|
3
|
+
export interface PanelSideBarLayoutProps extends PropsWithChildren {
|
|
4
|
+
/**
|
|
5
|
+
* The brand content shown on the top navigation bar.
|
|
6
|
+
*/
|
|
7
|
+
brand?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The footer content.
|
|
10
|
+
*/
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* The collapsible option to choose.
|
|
14
|
+
*/
|
|
15
|
+
collapsible?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The navbar content on the right.
|
|
18
|
+
*/
|
|
19
|
+
navbarRightItems?: ReactNode[];
|
|
20
|
+
/**
|
|
21
|
+
* The navbar content on the left.
|
|
22
|
+
*/
|
|
23
|
+
navbarLeftItems?: ReactNode[];
|
|
24
|
+
/**
|
|
25
|
+
* If using the toggle button instead of the side menu adiacent bar.
|
|
26
|
+
*/
|
|
27
|
+
useToggleButton?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* If use the responsive layout when the screen is sm in order to remove the sidebar overlay.
|
|
30
|
+
*/
|
|
31
|
+
useResponsiveLayout?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If true, exclude the sidebar menu.
|
|
34
|
+
*/
|
|
35
|
+
excludeSibebarMenu?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The style applied to the main content body.
|
|
38
|
+
*/
|
|
39
|
+
mainContentBodyStyle?: React.CSSProperties;
|
|
40
|
+
}
|
|
41
|
+
export declare const PanelSideBarLayout: <TPanelItemId extends string, TPanelItem>(props: PanelSideBarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactNode, RefObject } from "react";
|
|
2
|
+
interface PanelSideBarLayoutContentProps extends PropsWithChildren {
|
|
3
|
+
footer?: ReactNode;
|
|
4
|
+
isIconShownOnSidebarCollapse: boolean;
|
|
5
|
+
excludeSibebarMenu: boolean;
|
|
6
|
+
mainContentBodyRef?: RefObject<HTMLElement | null>;
|
|
7
|
+
mainContentBodyStyle?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare const PanelSideBarLayoutContent: (props: PanelSideBarLayoutContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { SidebarProps } from "./PanelSideBar/Context/PanelSideBarContextProps";
|
|
3
|
+
export interface PanelSidebarNavbarInternalProps extends Pick<Partial<SidebarProps>, "theme" | "toggleSidebar"> {
|
|
4
|
+
/**
|
|
5
|
+
* The brand content shown on the top navigation bar.
|
|
6
|
+
*/
|
|
7
|
+
brand?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The menu content on the right.
|
|
10
|
+
*/
|
|
11
|
+
navbarLeftItems?: ReactNode[];
|
|
12
|
+
/**
|
|
13
|
+
* The menu content on the left.
|
|
14
|
+
*/
|
|
15
|
+
navbarRightItems?: ReactNode[];
|
|
16
|
+
/**
|
|
17
|
+
* The menu content on the left.
|
|
18
|
+
*/
|
|
19
|
+
useToggleButton?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const PanelSidebarNavbarInternal: (props: PanelSidebarNavbarInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export type PanelSidebarNavbarProps = Omit<PanelSidebarNavbarInternalProps, "toggleSidebar" | "useToggleButton">;
|
|
23
|
+
declare const PanelSidebarNavbar: (props: PanelSidebarNavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export { PanelSidebarNavbarInternal, PanelSidebarNavbar };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface PagingProps {
|
|
3
|
+
currentItemsPerPage: number;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalRecords: number;
|
|
6
|
+
currentRecordCount: number;
|
|
7
|
+
pagingPossible?: boolean;
|
|
8
|
+
translations: PagingTranslations;
|
|
9
|
+
navigationComponents?: PagingNavigationComponents;
|
|
10
|
+
possiblePageItemCounts?: number[];
|
|
11
|
+
maxPagesShown?: number;
|
|
12
|
+
showControls?: boolean;
|
|
13
|
+
changePageSizePossible?: boolean;
|
|
14
|
+
setItemsPerPage(itemsPerPage: number): void;
|
|
15
|
+
setCurrentPage(itemsPerPage: number): void;
|
|
16
|
+
}
|
|
17
|
+
interface PagingTranslations {
|
|
18
|
+
showedItemsText: string;
|
|
19
|
+
itemsPerPageDropdown: string;
|
|
20
|
+
}
|
|
21
|
+
interface PagingNavigationComponents {
|
|
22
|
+
backPageComponent: ReactNode;
|
|
23
|
+
nextPageComponent: ReactNode;
|
|
24
|
+
firstPageComponent: ReactNode;
|
|
25
|
+
lastPageComponent: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
declare const Paging: ({ currentItemsPerPage, currentPage, totalRecords, currentRecordCount, pagingPossible, translations, navigationComponents, possiblePageItemCounts, maxPagesShown, showControls, changePageSizePossible, setItemsPerPage, setCurrentPage, }: PagingProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export { Paging, PagingProps, PagingTranslations, PagingNavigationComponents };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use "form";
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@import "../../node_modules/bootstrap/scss/functions";
|
|
2
|
+
@import "../../node_modules/bootstrap/scss/variables";
|
|
3
|
+
@import "../../node_modules/bootstrap/scss/mixins";
|
|
4
|
+
|
|
5
|
+
$container-min-width: 15rem;
|
|
6
|
+
|
|
7
|
+
.auth {
|
|
8
|
+
&__wrapper {
|
|
9
|
+
height: 100vh;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__container {
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: 0 1fr 0;
|
|
15
|
+
grid-template-rows: 1fr;
|
|
16
|
+
min-width: $container-min-width;
|
|
17
|
+
height: 100vh;
|
|
18
|
+
background-color: $body-bg;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__logo {
|
|
23
|
+
display: grid;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
|
|
26
|
+
img {
|
|
27
|
+
max-width: $container-min-width;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__content {
|
|
32
|
+
margin: 0 1rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__footer {
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-column: 1/-1;
|
|
38
|
+
grid-row: 2;
|
|
39
|
+
height: 10vh;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
max-height: 20vh;
|
|
42
|
+
overflow: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__sidebar {
|
|
46
|
+
&-left,
|
|
47
|
+
&-right {
|
|
48
|
+
max-height: 100vh;
|
|
49
|
+
overflow: auto;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include media-breakpoint-up(sm) {
|
|
55
|
+
.auth {
|
|
56
|
+
&__wrapper {
|
|
57
|
+
$neolution: #faba2f;
|
|
58
|
+
$neolution-light: #faba2f2f;
|
|
59
|
+
background-color: $neolution-light;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@include media-breakpoint-up(md) {
|
|
65
|
+
.auth {
|
|
66
|
+
&__footer {
|
|
67
|
+
height: 20vh;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@include media-breakpoint-up(lg) {
|
|
73
|
+
.auth {
|
|
74
|
+
&__container {
|
|
75
|
+
grid-template-columns: 0 6fr 0;
|
|
76
|
+
column-gap: 2rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&__content {
|
|
80
|
+
display: grid;
|
|
81
|
+
grid-template-columns: repeat(2, 1fr);
|
|
82
|
+
column-gap: 2rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__logo {
|
|
86
|
+
align-self: center;
|
|
87
|
+
|
|
88
|
+
img {
|
|
89
|
+
max-width: unset;
|
|
90
|
+
min-width: $container-min-width;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|