elseware-ui 2.13.1 → 2.13.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/build/components/data-display/chip/Chip.d.ts +2 -1
- package/build/compositions/index.d.ts +1 -2
- package/build/compositions/navigation/box-nav/BoxNav.d.ts +3 -0
- package/build/compositions/navigation/box-nav/BoxNav.types.d.ts +13 -0
- package/build/compositions/navigation/box-nav/BoxNavItem.d.ts +10 -0
- package/build/compositions/navigation/box-nav/index.d.ts +3 -0
- package/build/index.es.js +51 -22
- package/build/index.js +52 -22
- package/package.json +2 -2
|
@@ -3,7 +3,8 @@ export interface ChipProps {
|
|
|
3
3
|
label?: string;
|
|
4
4
|
variant?: keyof typeof Variant;
|
|
5
5
|
shape?: keyof typeof Shape;
|
|
6
|
+
ghost?: boolean;
|
|
6
7
|
size?: keyof typeof Size;
|
|
7
8
|
styles?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const Chip: ({ label, variant, shape, size, styles, }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Chip: ({ label, variant, shape, ghost, size, styles, }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { BoxHeaderNav, };
|
|
1
|
+
export * from "./navigation/box-nav";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface NavItem {
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
name: string;
|
|
5
|
+
to: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface BoxNavProps {
|
|
9
|
+
data?: NavItem[];
|
|
10
|
+
currentPath?: string;
|
|
11
|
+
onNavigate?: (to: string) => void;
|
|
12
|
+
navigate?: (to: string) => void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface BoxNavItemProps {
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
name: string;
|
|
5
|
+
to: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>, to: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare function BoxNavItem({ icon, name, to, selected, onClick }: BoxNavItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BoxNavItem;
|