elseware-ui 2.22.3 → 2.22.4
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/avatar/Avatar.d.ts +1 -0
- package/build/components/data-display/badge/Badge.d.ts +2 -0
- package/build/components/data-display/info/Info.d.ts +2 -0
- package/build/components/navigation/route-tabs/RouteTab.d.ts +3 -3
- package/build/components/navigation/route-tabs/RouteTabs.d.ts +10 -5
- package/build/index.es.js +31 -28
- package/build/index.js +31 -27
- package/build/interfaces/components.d.ts +1 -1
- package/build/types/components.d.ts +1 -0
- package/build/utils/components.d.ts +2 -0
- package/build/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,5 +9,6 @@ export interface AvatarProps extends BaseComponentProps {
|
|
|
9
9
|
size?: Size;
|
|
10
10
|
src?: string;
|
|
11
11
|
borderVariant?: boolean;
|
|
12
|
+
children?: ReactNode;
|
|
12
13
|
}
|
|
13
14
|
export declare const Avatar: ({ alt, icon, children, variant, shape, size, src, borderVariant, className, ...rest }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
1
2
|
import { BaseComponentProps } from "../../../interfaces";
|
|
2
3
|
import { Variant, Shape, Size, OctilePosition } from "../../../types";
|
|
3
4
|
export interface BadgeProps extends BaseComponentProps {
|
|
@@ -9,5 +10,6 @@ export interface BadgeProps extends BaseComponentProps {
|
|
|
9
10
|
size?: Size;
|
|
10
11
|
showZero?: boolean;
|
|
11
12
|
position?: OctilePosition;
|
|
13
|
+
children?: ReactNode;
|
|
12
14
|
}
|
|
13
15
|
export declare const Badge: ({ children, offset, dot, count, variant, shape, size, showZero, position, className, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
1
2
|
import { BaseComponentProps } from "../../../interfaces";
|
|
2
3
|
import { Variant, Shape, Appearance } from "../../../types";
|
|
3
4
|
export interface InfoProps extends BaseComponentProps {
|
|
4
5
|
variant?: Variant;
|
|
5
6
|
appearance?: Appearance;
|
|
6
7
|
shape?: Shape;
|
|
8
|
+
children?: ReactNode;
|
|
7
9
|
}
|
|
8
10
|
declare function Info({ children, className, variant, appearance, shape, ...rest }: InfoProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export default Info;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseComponentProps } from "../../../interfaces";
|
|
2
|
+
export interface RouteTabProps extends BaseComponentProps {
|
|
2
3
|
title: string;
|
|
3
4
|
selected?: boolean;
|
|
4
|
-
styles?: string;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
}
|
|
7
|
-
declare function RouteTab({ title, onClick, selected,
|
|
7
|
+
declare function RouteTab({ title, onClick, selected, className, ...rest }: RouteTabProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default RouteTab;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { BaseComponentProps } from "../../../interfaces";
|
|
3
|
+
import { RouteTabMode } from "../../../types";
|
|
4
|
+
export interface RouteTabsNavItem {
|
|
3
5
|
name: string;
|
|
4
6
|
to: string;
|
|
5
7
|
selected?: boolean;
|
|
6
8
|
}
|
|
7
|
-
interface RouteTabsProps {
|
|
8
|
-
navData:
|
|
9
|
-
children: React.ReactNode;
|
|
9
|
+
interface RouteTabsProps extends BaseComponentProps {
|
|
10
|
+
navData: RouteTabsNavItem[];
|
|
11
|
+
children: React.ReactNode | ((activeTab: string) => React.ReactNode);
|
|
10
12
|
onTabClick?: (to: string) => void;
|
|
13
|
+
mode?: RouteTabMode;
|
|
14
|
+
defaultActive?: string;
|
|
15
|
+
animated?: boolean;
|
|
11
16
|
}
|
|
12
|
-
declare function RouteTabs({ navData, children, onTabClick }: RouteTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function RouteTabs({ navData, children, onTabClick, mode, defaultActive, animated, className, ...rest }: RouteTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
13
18
|
export default RouteTabs;
|