elseware-ui 2.25.0 → 2.26.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/build/compositions/navigation/index.d.ts +1 -0
- package/build/compositions/navigation/top-nav/TopNav.d.ts +2 -0
- package/build/compositions/navigation/top-nav/com/TNContext.d.ts +8 -0
- package/build/compositions/navigation/top-nav/com/TNDropdown.d.ts +8 -0
- package/build/compositions/navigation/top-nav/com/TNDropdownGroup.d.ts +12 -0
- package/build/compositions/navigation/top-nav/com/TNDropdownItem.d.ts +11 -0
- package/build/compositions/navigation/top-nav/com/TNDropdownTitle.d.ts +5 -0
- package/build/compositions/navigation/top-nav/com/TNGroup.d.ts +12 -0
- package/build/compositions/navigation/top-nav/com/TNItem.d.ts +10 -0
- package/build/compositions/navigation/top-nav/index.d.ts +7 -0
- package/build/compositions/navigation/top-nav/types.d.ts +37 -0
- package/build/index.es.js +8 -8
- package/build/index.js +8 -8
- package/build/interfaces/components.d.ts +11 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseComponentProps } from "../../../../interfaces";
|
|
3
|
+
export interface TNContextProps extends BaseComponentProps {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
name: string;
|
|
6
|
+
badge?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const TNContext: ({ icon, name, badge }: TNContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseComponentProps } from "../../../../interfaces";
|
|
2
|
+
import { TopNavNode } from "../types";
|
|
3
|
+
export interface TNDropdownProps extends BaseComponentProps {
|
|
4
|
+
items: TopNavNode[];
|
|
5
|
+
navigate?: (to: string) => void;
|
|
6
|
+
components?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const TNDropdown: ({ items, navigate, components, }: TNDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseComponentProps } from "../../../../interfaces";
|
|
3
|
+
import { TopNavNode } from "../types";
|
|
4
|
+
export interface TNDropdownGroupProps extends BaseComponentProps {
|
|
5
|
+
name: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
badge?: React.ReactNode;
|
|
8
|
+
items: TopNavNode[];
|
|
9
|
+
navigate?: (to: string) => void;
|
|
10
|
+
components?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const TNDropdownGroup: ({ name, icon, badge, items, navigate, className, }: TNDropdownGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MouseEvent } from "react";
|
|
2
|
+
import { BaseComponentProps } from "../../../../interfaces";
|
|
3
|
+
export interface TNDropdownItemProps extends BaseComponentProps {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
name: string;
|
|
6
|
+
badge?: React.ReactNode;
|
|
7
|
+
to?: string;
|
|
8
|
+
navigate?: (to: string) => void;
|
|
9
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const TNDropdownItem: ({ icon, name, badge, to, navigate, onClick, className, }: TNDropdownItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseComponentProps } from "../../../../interfaces";
|
|
2
|
+
export interface TNDropdownTitleProps extends BaseComponentProps {
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const TNDropdownTitle: ({ name, className }: TNDropdownTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseComponentProps } from "../../../../interfaces";
|
|
3
|
+
import { TopNavNode } from "../types";
|
|
4
|
+
export interface TNGroupProps extends BaseComponentProps {
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
name: string;
|
|
7
|
+
items: TopNavNode[];
|
|
8
|
+
navigate?: (to: string) => void;
|
|
9
|
+
columns?: number;
|
|
10
|
+
components?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const TNGroup: ({ icon, name, items, navigate, columns, components, }: TNGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MouseEvent } from "react";
|
|
2
|
+
import { BaseComponentProps } from "../../../../interfaces";
|
|
3
|
+
export interface TNItemProps extends BaseComponentProps<HTMLButtonElement> {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
name: string;
|
|
6
|
+
badge?: React.ReactNode;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const TNItem: ({ icon, name, selected, onClick }: TNItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TopNav } from "./TopNav";
|
|
2
|
+
import { TNDropdown } from "./com/TNDropdown";
|
|
3
|
+
import { TNDropdownItem } from "./com/TNDropdownItem";
|
|
4
|
+
import { TNDropdownTitle } from "./com/TNDropdownTitle";
|
|
5
|
+
import { TNGroup } from "./com/TNGroup";
|
|
6
|
+
export { TopNav, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup };
|
|
7
|
+
export * from "./types";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TopNavComponents {
|
|
3
|
+
item?: React.ElementType;
|
|
4
|
+
group?: React.ElementType;
|
|
5
|
+
dropdown?: React.ElementType;
|
|
6
|
+
dropdownItem?: React.ElementType;
|
|
7
|
+
dropdownGroup?: React.ElementType;
|
|
8
|
+
dropdownTitle?: React.ElementType;
|
|
9
|
+
}
|
|
10
|
+
export interface BaseTopNavNode {
|
|
11
|
+
key?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
badge?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
component?: React.ElementType;
|
|
17
|
+
}
|
|
18
|
+
export interface TopNavItemNode extends BaseTopNavNode {
|
|
19
|
+
type: "item";
|
|
20
|
+
to?: string;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface TopNavGroupNode extends BaseTopNavNode {
|
|
24
|
+
type: "group";
|
|
25
|
+
items: TopNavNode[];
|
|
26
|
+
columns?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface TopNavTitleNode extends BaseTopNavNode {
|
|
29
|
+
type: "title";
|
|
30
|
+
}
|
|
31
|
+
export type TopNavNode = TopNavItemNode | TopNavGroupNode | TopNavTitleNode;
|
|
32
|
+
export interface TopNavProps {
|
|
33
|
+
items: TopNavNode[];
|
|
34
|
+
currentPath?: string;
|
|
35
|
+
navigate?: (to: string) => void;
|
|
36
|
+
components?: TopNavComponents;
|
|
37
|
+
}
|