@bigbinary/neetoui 3.7.0-beta.9 → 4.0.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/layouts.d.ts ADDED
@@ -0,0 +1,116 @@
1
+ import React from "react";
2
+ import { NavLinkProps } from "react-router-dom";
3
+ import { AvatarProps, InputProps } from "./index";
4
+
5
+ export interface AppSwitcherProps {
6
+ isOpen?: boolean;
7
+ className?: string;
8
+ closeOnEsc?: boolean;
9
+ closeOnOutsideClick?: boolean;
10
+ environment?: "development" | "staging" | "production";
11
+ activeApp?: string;
12
+ subdomain?: string;
13
+ neetoApps?: string[];
14
+ recentApps?: string[];
15
+ isSidebarOpen?: boolean;
16
+ onClose?: () => void;
17
+ [key: string]: any;
18
+ }
19
+
20
+ export interface ContainerProps {
21
+ isHeaderFixed?: boolean;
22
+ }
23
+
24
+ export interface HeaderProps {
25
+ title?: React.ReactNode;
26
+ menuBarToggle?: () => void;
27
+ searchProps?: InputProps;
28
+ className?: string;
29
+ actionBlock?: React.ReactNode;
30
+ breadcrumbs?: { text: React.ReactNode; link: string }[];
31
+ }
32
+
33
+ export interface MenuBarProps {
34
+ title?: string;
35
+ className?: string;
36
+ showMenu?: boolean;
37
+ "data-cy"?: string;
38
+ }
39
+
40
+ export type ScrollableProps = {
41
+ className?: string;
42
+ size?: "small" | "large" | "viewport";
43
+ } & React.DetailedHTMLProps<
44
+ React.HTMLAttributes<HTMLDivElement>,
45
+ HTMLDivElement
46
+ >;
47
+
48
+ type NavLinkItemType = {
49
+ to: string;
50
+ label?: React.ReactNode;
51
+ icon?: any;
52
+ description?: React.ReactNode;
53
+ } & React.PropsWithoutRef<NavLinkProps<any>> &
54
+ React.RefAttributes<HTMLAnchorElement>;
55
+
56
+ type FooterLinkType = {
57
+ label?: React.ReactNode;
58
+ icon?: any;
59
+ href?: string;
60
+ to?: string;
61
+ } & React.DetailedHTMLProps<
62
+ React.AnchorHTMLAttributes<HTMLAnchorElement>,
63
+ HTMLAnchorElement
64
+ > &
65
+ React.PropsWithoutRef<NavLinkProps<any>> &
66
+ React.RefAttributes<HTMLAnchorElement>;
67
+
68
+ type LinkType = {
69
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
70
+ label: React.ReactNode;
71
+ icon?: any;
72
+ } & React.DetailedHTMLProps<
73
+ React.ButtonHTMLAttributes<HTMLButtonElement>,
74
+ HTMLButtonElement
75
+ >;
76
+
77
+ export interface SidebarProps {
78
+ organizationInfo?: {
79
+ logo?: React.ReactNode;
80
+ name?: React.ReactNode;
81
+ subdomain?: React.ReactNode;
82
+ };
83
+ navLinks?: NavLinkItemType[];
84
+ tooltipStyle?: "default" | "featured";
85
+ /** @deprecated Prop removed as footer links in sidebar is no longer supported*/
86
+ footerLinks?: FooterLinkType[];
87
+ profileInfo?: {
88
+ name?: string;
89
+ email?: string;
90
+ topLinks?: LinkType[];
91
+ bottomLinks?: LinkType[];
92
+ customContent?: React.ReactNode;
93
+ changelogProps?: LinkType;
94
+ helpProps?: LinkType;
95
+ "data-cy"?: string;
96
+ } & AvatarProps;
97
+ /** @deprecated Prop removed as expanded state of sidebar is no longer supported */
98
+ isCollapsed?: boolean;
99
+ showAppSwitcher?: boolean;
100
+ onAppSwitcherToggle?: React.MouseEventHandler<HTMLButtonElement>;
101
+ appName?: string;
102
+ }
103
+
104
+ export interface SubHeaderProps {
105
+ className?: string;
106
+ leftActionBlock?: React.ReactNode;
107
+ rightActionBlock?: React.ReactNode;
108
+ }
109
+
110
+ export const AppSwitcher: React.FC<AppSwitcherProps>;
111
+ export const Container: React.ForwardRefExoticComponent<ContainerProps>;
112
+ export const Header: React.FC<HeaderProps>;
113
+ export const MenuBar: React.FC<MenuBarProps>;
114
+ export const Scrollable: React.FC<ScrollableProps>;
115
+ export const Sidebar: React.FC<SidebarProps>;
116
+ export const SubHeader: React.FC<SubHeaderProps>;