@cloudtower/eagle 0.27.87 → 0.27.89

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.
@@ -0,0 +1,7 @@
1
+ export type AvatarProps = {
2
+ /**
3
+ * 头像文本,会截取字符串的第一个字符进行展示
4
+ */
5
+ username: string;
6
+ className?: string;
7
+ };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { AvatarProps } from "./avatar.type";
3
+ declare const Avatar: React.FC<AvatarProps>;
4
+ export default Avatar;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { NavProps } from "./nav.type";
3
+ declare const Nav: React.FC<NavProps>;
4
+ export default Nav;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export type NavProps = {
3
+ /**
4
+ * 导航栏左侧区域
5
+ */
6
+ left?: React.ReactNode[];
7
+ /**
8
+ * 导航栏右侧区域
9
+ */
10
+ right?: React.ReactNode[];
11
+ /**
12
+ * 导航栏中央区域
13
+ */
14
+ center?: React.ReactNode[];
15
+ isScrolled?: boolean;
16
+ navRef?: React.RefObject<HTMLHeadElement>;
17
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Header: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown>>;
3
+ export declare const NavCenterStyle: import("@linaria/core").LinariaClassName;
@@ -82,6 +82,8 @@ export * from "./Tooltip";
82
82
  export * from "./Truncate";
83
83
  export * from "./Typo";
84
84
  export * from "./Units";
85
+ export * from "./Avatar";
86
+ export * from "./Nav";
85
87
  export declare const units: {
86
88
  Percent: import("./Units").PercentFn;
87
89
  Byte: import("./Units").UnitFn;
@@ -0,0 +1,9 @@
1
+ import Avatar from "../../../src/core/Avatar";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Avatar>;
6
+ /**
7
+ * 用来代表用户或事物
8
+ */
9
+ export declare const Basic: Story;
@@ -0,0 +1,9 @@
1
+ import Nav from "../../../src/core/Nav";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Nav>;
6
+ /**
7
+ * 导航栏分为三个区域,可以通过 left、right、center 来进行对应的设置
8
+ */
9
+ export declare const Basic: Story;