@cloudtower/eagle 0.27.91 → 0.27.92

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.
@@ -267,7 +267,9 @@ const Color = {
267
267
  "purple-a10-50": "#7E41FF1A"
268
268
  },
269
269
  gradient: {
270
- loading: "linear-gradient(90deg, #0080ff 0%, #9ecfff 50%, #0080ff 100%)"
270
+ loading: "linear-gradient(90deg, #0080ff 0%, #9ecfff 50%, #0080ff 100%)",
271
+ "light-blue": "linear-gradient(180deg,rgba(0, 136, 255, 0.2) 0%,rgba(0, 136, 255, 0.6) 100%)",
272
+ "dark-blue": "radial-gradient(133.15% 133.15% at 4.69% 7.03%, #5BCAFF 0%, #06F 100%)"
271
273
  }
272
274
  };
273
275
 
@@ -4,4 +4,8 @@ export type AvatarProps = {
4
4
  */
5
5
  username: string;
6
6
  className?: string;
7
+ /**
8
+ * 背景色
9
+ */
10
+ background?: "light-blue" | "dark-blue";
7
11
  };
@@ -268,5 +268,7 @@ export declare const Color: {
268
268
  };
269
269
  readonly gradient: {
270
270
  readonly loading: "linear-gradient(90deg, #0080ff 0%, #9ecfff 50%, #0080ff 100%)";
271
+ readonly "light-blue": "linear-gradient(180deg,rgba(0, 136, 255, 0.2) 0%,rgba(0, 136, 255, 0.6) 100%)";
272
+ readonly "dark-blue": "radial-gradient(133.15% 133.15% at 4.69% 7.03%, #5BCAFF 0%, #06F 100%)";
271
273
  };
272
274
  };
@@ -7,3 +7,7 @@ type Story = StoryObj<typeof Avatar>;
7
7
  * 用来代表用户或事物
8
8
  */
9
9
  export declare const Basic: Story;
10
+ /**
11
+ * 默认支持两种背景色 'light-blue' 和 'dark-blue',也可以传递自定义的背景色
12
+ */
13
+ export declare const Background: Story;