cos-design 3.6.0 → 3.7.0

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,21 @@
1
+ import { default as React } from 'react';
2
+ export interface BlurTextProps {
3
+ /** 显示文字 */
4
+ text?: string;
5
+ /** 按词或按字拆分 */
6
+ animateBy?: 'words' | 'letters';
7
+ /** 入场方向 */
8
+ direction?: 'top' | 'bottom';
9
+ /** 相邻单元延迟(毫秒) */
10
+ stagger?: number;
11
+ /** 单单元动画时长(毫秒) */
12
+ duration?: number;
13
+ /** 字号 */
14
+ fontSize?: number;
15
+ /** 颜色 */
16
+ color?: string;
17
+ /** 动画完成后回调 */
18
+ onAnimationComplete?: () => void;
19
+ }
20
+ declare const BlurText: React.FC<BlurTextProps>;
21
+ export default BlurText;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export interface CircularTextProps {
3
+ /** 环绕文字 */
4
+ text?: string;
5
+ /** 一圈旋转时长(秒) */
6
+ spinDuration?: number;
7
+ /** 悬停行为 */
8
+ onHover?: 'slowDown' | 'speedUp' | 'pause' | 'goBonkers';
9
+ /** 字号 */
10
+ fontSize?: number;
11
+ /** 圆环半径(像素) */
12
+ radius?: number;
13
+ /** 文字颜色 */
14
+ color?: string;
15
+ }
16
+ declare const CircularText: React.FC<CircularTextProps>;
17
+ export default CircularText;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ export interface CurvedLoopProps {
3
+ /** 跑马灯文案 */
4
+ text?: string;
5
+ /** 滚动速度(像素/帧) */
6
+ speed?: number;
7
+ /** 曲线幅度 */
8
+ curveAmount?: number;
9
+ /** 初始方向 */
10
+ direction?: 'left' | 'right';
11
+ /** 是否可拖拽 */
12
+ interactive?: boolean;
13
+ /** 文字颜色 */
14
+ color?: string;
15
+ /** 字号(相对 SVG) */
16
+ fontSize?: number;
17
+ }
18
+ declare const CurvedLoop: React.FC<CurvedLoopProps>;
19
+ export default CurvedLoop;
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ export interface FuzzyTextProps {
3
+ /** 显示文字 */
4
+ text?: string;
5
+ /** 字号 */
6
+ fontSize?: number;
7
+ /** 字重 */
8
+ fontWeight?: number;
9
+ /** 颜色 */
10
+ color?: string;
11
+ /** 基础抖动强度 0~1 */
12
+ baseIntensity?: number;
13
+ /** 悬停抖动强度 0~1 */
14
+ hoverIntensity?: number;
15
+ /** 是否启用悬停增强 */
16
+ enableHover?: boolean;
17
+ /** 抖动像素范围 */
18
+ fuzzRange?: number;
19
+ }
20
+ declare const FuzzyText: React.FC<FuzzyTextProps>;
21
+ export default FuzzyText;
@@ -1,5 +1,7 @@
1
1
  export { default as BarcodeScan } from './barcodeScan';
2
2
  export type { BarcodeScanProps } from './barcodeScan';
3
+ export { default as BlurText } from './blurText';
4
+ export type { BlurTextProps } from './blurText';
3
5
  export { default as BurnAway } from './burnAway';
4
6
  export type { BurnAwayProps } from './burnAway';
5
7
  export { default as Aurora } from './aurora';
@@ -10,9 +12,13 @@ export { default as CanvasClock } from './canvasClock';
10
12
  export type { CanvasClockProps } from './canvasClock';
11
13
  export { default as Charge } from './charge';
12
14
  export type { ChargeProps } from './charge';
15
+ export { default as CircularText } from './circularText';
16
+ export type { CircularTextProps } from './circularText';
13
17
  export { default as ClickSpark } from './clickSpark';
14
18
  export type { ClickSparkProps } from './clickSpark';
15
19
  export { default as Confetti } from './confetti';
20
+ export { default as CurvedLoop } from './curvedLoop';
21
+ export type { CurvedLoopProps } from './curvedLoop';
16
22
  export { default as CyberGrid } from './cyberGrid';
17
23
  export type { CyberGridProps } from './cyberGrid';
18
24
  export type { ConfettiHandle, ConfettiProps } from './confetti';
@@ -33,6 +39,8 @@ export { default as Fireworks } from './fireworks';
33
39
  export type { FireworksHandle, FireworksProps } from './fireworks';
34
40
  export { default as FlipCounter } from './flipCounter';
35
41
  export type { CountUpProps } from './countUp';
42
+ export { default as FuzzyText } from './fuzzyText';
43
+ export type { FuzzyTextProps } from './fuzzyText';
36
44
  export { default as GradientFlow } from './gradientFlow';
37
45
  export type { GradientFlowProps } from './gradientFlow';
38
46
  export type { FlipCounterProps } from './flipCounter';
@@ -91,8 +99,12 @@ export type { RedPacketRainProps } from './redPacketRain';
91
99
  export { default as ReturnCity } from './returnCity';
92
100
  export { default as RopeChain } from './ropeChain';
93
101
  export type { RopeChainProps } from './ropeChain';
102
+ export { default as RotatingText } from './rotatingText';
103
+ export type { RotatingTextProps } from './rotatingText';
94
104
  export { default as Speedometer } from './speedometer';
95
105
  export type { SpeedometerProps } from './speedometer';
106
+ export { default as ShinyText } from './shinyText';
107
+ export type { ShinyTextProps } from './shinyText';
96
108
  export { default as TimelinePulse } from './timelinePulse';
97
109
  export type { TimelinePulseProps } from './timelinePulse';
98
110
  export { default as RippleWater } from './rippleWater';
@@ -118,6 +130,8 @@ export type { TurntablePrize, TurntableProps } from './turntable';
118
130
  export { default as Turntable } from './turntable';
119
131
  export { default as TextMorph } from './textMorph';
120
132
  export type { TextMorphProps } from './textMorph';
133
+ export { default as TrueFocus } from './trueFocus';
134
+ export type { TrueFocusProps } from './trueFocus';
121
135
  export { default as Typewriter } from './typewriter';
122
136
  export type { TypewriterProps } from './typewriter';
123
137
  export { default as WaveButton } from './waveButton';
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ export interface RotatingTextProps {
3
+ /** 轮播文案列表 */
4
+ texts?: string[];
5
+ /** 切换间隔(毫秒) */
6
+ interval?: number;
7
+ /** 字符错峰延迟(毫秒) */
8
+ stagger?: number;
9
+ /** 单字符动画时长(毫秒) */
10
+ duration?: number;
11
+ /** 字号 */
12
+ fontSize?: number;
13
+ /** 颜色 */
14
+ color?: string;
15
+ /** 高亮背景色 */
16
+ highlightColor?: string;
17
+ }
18
+ declare const RotatingText: React.FC<RotatingTextProps>;
19
+ export default RotatingText;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export interface ShinyTextProps {
3
+ /** 显示文字 */
4
+ text?: string;
5
+ /** 扫光周期(秒) */
6
+ speed?: number;
7
+ /** 文字底色 */
8
+ color?: string;
9
+ /** 高光色 */
10
+ shineColor?: string;
11
+ /** 字号 */
12
+ fontSize?: number;
13
+ /** 是否暂停动画 */
14
+ disabled?: boolean;
15
+ }
16
+ declare const ShinyText: React.FC<ShinyTextProps>;
17
+ export default ShinyText;
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ export interface TrueFocusProps {
3
+ /** 句子文案 */
4
+ sentence?: string;
5
+ /** 分词分隔符 */
6
+ separator?: string;
7
+ /** 是否仅 hover 聚焦 */
8
+ manualMode?: boolean;
9
+ /** 非聚焦词模糊强度(px) */
10
+ blurAmount?: number;
11
+ /** 焦点框颜色 */
12
+ borderColor?: string;
13
+ /** 焦点光晕颜色 */
14
+ glowColor?: string;
15
+ /** 切换动画时长(秒) */
16
+ animationDuration?: number;
17
+ /** 自动切换间歇(秒) */
18
+ pauseBetweenAnimations?: number;
19
+ /** 字号 */
20
+ fontSize?: number;
21
+ /** 文字颜色 */
22
+ color?: string;
23
+ }
24
+ declare const TrueFocus: React.FC<TrueFocusProps>;
25
+ export default TrueFocus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cos-design",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "A React component library built with Vite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",