cos-design 3.7.5 → 3.7.6

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.
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface AuroraProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 极光色带,默认绿/青/紫 */
6
8
  colors?: string[];
7
9
  }
@@ -1,6 +1,8 @@
1
1
  export interface BubbleFieldProps {
2
2
  width?: number;
3
3
  height?: number;
4
+ /** 为 true 时铺满父容器(父级需有明确高度) */
5
+ fill?: boolean;
4
6
  /** 气泡数量上限 */
5
7
  bubbleCount?: number;
6
8
  /** 上浮速度 */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface CyberGridProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 网格线颜色 */
6
8
  color?: string;
7
9
  /** 移动速度,默认 1 */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface MeteorRainProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 流星数量,默认 8 */
6
8
  meteorCount?: number;
7
9
  }
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface RippleWaterProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 水面渐变浅端(左上) */
6
8
  fromColor?: string;
7
9
  /** 水面渐变深端(右下) */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface SmokeFogProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 烟雾密度 0~1,默认 0.5 */
6
8
  density?: number;
7
9
  /** 烟雾颜色,默认偏冷灰白 `#d2d4d8` */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface SnowfallProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 飘落模式 */
6
8
  mode?: 'snow' | 'sakura';
7
9
  /** 粒子数量 */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface StarfieldProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 星星数量 */
6
8
  starCount?: number;
7
9
  /** 飞行速度,默认 1 */
@@ -22,6 +22,8 @@ export type WeatherType = 'sunny' | 'partlyCloudy' | 'overcast'
22
22
  export interface WeatherBackgroundProps {
23
23
  width?: number;
24
24
  height?: number;
25
+ /** 为 true 时铺满父容器(父级需有明确高度) */
26
+ fill?: boolean;
25
27
  /** 天气类型:sunny / partlyCloudy / overcast / rain 雨天 / thunderstorm / fog / snow 雪天 / sleet / hail / smog;雨量用 rainLevel,雪量用 snowLevel,风效用 windLevel */
26
28
  weather?: WeatherType;
27
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cos-design",
3
- "version": "3.7.5",
3
+ "version": "3.7.6",
4
4
  "description": "React visual-effect components for marketing pages, campaigns, canvas backgrounds, and creative showcases",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",