@unicom-cloud/ui 0.8.97 → 0.8.98

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.
@@ -63,6 +63,9 @@ import { TreeProps } from '../tree/interface';
63
63
  import { TriggerProps } from '../trigger/interface';
64
64
  import { Omit } from '../utils/type';
65
65
  import { ColorPickerProps } from '../color-picker';
66
+ import { LiquidFillProps } from '../liquid-fill/LiquidFill';
67
+ import { QRCodeProps } from '../qr-code';
68
+ import { TourProps } from '../tour';
66
69
  import { TypographyEllipsisProps } from '../typography';
67
70
  import { UploadProps } from '../upload/interface';
68
71
  import { VerificationCodeProps } from '../verification-code/interface';
@@ -146,6 +149,9 @@ export type ComponentConfig = {
146
149
  TreeSelect?: TreeSelectProps;
147
150
  Trigger?: TriggerProps;
148
151
  Upload?: UploadProps;
152
+ QRCode?: QRCodeProps;
153
+ LiquidFill?: LiquidFillProps;
154
+ Tour?: TourProps;
149
155
  };
150
156
  /**
151
157
  * @title ConfigProvider
@@ -1,30 +1,115 @@
1
1
  import React, { type CSSProperties } from 'react';
2
- interface LiquidFillProps {
2
+ /**
3
+ * 颜色配置类型,支持纯色和渐变色
4
+ */
5
+ type ColorType = string | {
6
+ /** 渐变起始颜色 */
7
+ from: string;
8
+ /** 渐变结束颜色 */
9
+ to: string;
10
+ /**
11
+ * 渐变方向
12
+ * @default 'vertical' 垂直渐变
13
+ */
14
+ direction?: 'horizontal' | 'vertical';
15
+ };
16
+ /**
17
+ * 水球填充组件的属性接口
18
+ */
19
+ export interface LiquidFillProps {
20
+ /** 自定义容器样式 */
3
21
  style?: CSSProperties;
4
22
  /** 自定义类名 */
5
23
  className?: string | string[];
6
- /** 当前填充比例 (0-1) */
24
+ /**
25
+ * 当前填充比例 (0-1)
26
+ * @default 0.5
27
+ */
7
28
  value: number;
8
- /** 组件尺寸 (像素) 默认200 */
29
+ /**
30
+ * 组件尺寸 (像素)
31
+ * @default 200
32
+ */
9
33
  size?: number;
10
- /** 波浪颜色 默认'rgb(var(--pqb-data-3))' */
11
- waveColor?: string | string[];
12
- /** 背景颜色 默认'var(--pqb-color-neutral-1)' */
13
- backgroundColor?: string;
14
- /** 文字颜色 默认'var(--pqb-color-neutral-8)' */
34
+ /**
35
+ * 字体大小
36
+ * @default size * 0.15
37
+ */
38
+ fontSize?: number | string;
39
+ /**
40
+ * 波浪颜色,支持纯色或渐变色
41
+ * @default 'rgb(var(--pqb-blue-6))'
42
+ */
43
+ waveColor?: ColorType;
44
+ /**
45
+ * 背景颜色,支持纯色或渐变色
46
+ * @default 'var(--pqb-color-neutral-1)'
47
+ */
48
+ backgroundColor?: ColorType;
49
+ /**
50
+ * 文字颜色
51
+ * @default 'var(--pqb-color-neutral-8)'
52
+ */
15
53
  textColor?: string;
16
- /** 是否显示百分比 默认true */
54
+ /**
55
+ * 是否显示百分比
56
+ * @default true
57
+ */
17
58
  showPercent?: boolean;
18
- /** 动画持续时间(毫秒) 默认2000 */
59
+ /**
60
+ * 动画持续时间(毫秒)
61
+ * @default 2000
62
+ */
19
63
  duration?: number;
20
- /** 波浪数量 默认3 */
64
+ /**
65
+ * 波浪数量
66
+ * @default 3
67
+ */
21
68
  waveCount?: number;
22
- /** 波浪振幅 默认10 */
69
+ /**
70
+ * 波浪振幅
71
+ * @default 10
72
+ */
23
73
  waveAmplitude?: number;
24
- /** 边框颜色 默认'var(--pqb-color-neutral-4)' */
74
+ /**
75
+ * 内层边框颜色
76
+ * @default 'var(--pqb-color-neutral-4)'
77
+ */
25
78
  borderColor?: string;
26
- /** 边框宽度 默认2 */
79
+ /**
80
+ * 内层边框宽度
81
+ * @default 2
82
+ */
27
83
  borderWidth?: number;
84
+ /**
85
+ * 外层边框颜色(默认使用内层边框颜色但透明度30%)
86
+ */
87
+ outerBorderColor?: string;
88
+ /**
89
+ * 外层边框宽度
90
+ * @default 0(不显示)
91
+ */
92
+ outerBorderWidth?: number;
93
+ /**
94
+ * 内外层边框间距
95
+ * @default 2
96
+ */
97
+ borderGap?: number;
98
+ /**
99
+ * 百分比显示的小数位数
100
+ * @default 0(整数)
101
+ */
102
+ decimalPlaces?: number;
103
+ /**
104
+ * 百分号相对于数字的缩放比例
105
+ * @default 0.7
106
+ */
107
+ percentFontScale?: number;
108
+ /**
109
+ * 波浪速度变化系数(值越大速度差异越大)
110
+ * @default 0.5
111
+ */
112
+ waveSpeedVariation?: number;
28
113
  }
29
114
  declare const LiquidFill: React.FC<LiquidFillProps>;
30
115
  export default LiquidFill;
@@ -1,4 +1,2 @@
1
- import { LiquidFillProps } from './interface';
2
1
  import LiquidFill from './LiquidFill';
3
- export type { LiquidFillProps };
4
2
  export default LiquidFill;
@@ -1,6 +1,6 @@
1
1
  type Placement = 'top' | 'bottom' | 'left' | 'right';
2
2
  type TourType = 'default' | 'primary';
3
- interface TourStep {
3
+ export interface TourStep {
4
4
  /** 目标元素 (选择器字符串或DOM元素) */
5
5
  target: string | HTMLElement;
6
6
  /** 标题内容 */
@@ -10,7 +10,7 @@ interface TourStep {
10
10
  /** 初始弹出位置 (会自动调整) */
11
11
  placement?: Placement;
12
12
  }
13
- interface TourProps {
13
+ export interface TourProps {
14
14
  /** 引导步骤数组 */
15
15
  steps: TourStep[];
16
16
  /** 是否显示引导 */
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const I = "2025-06-26 18:17:56", t = "1750933076778", E = "2.66.0";
1
+ const I = "2025-06-27 09:46:36", t = "1750988796414", E = "2.66.0";
2
2
  export {
3
3
  E as VERSION,
4
4
  I as VERSION_BUILD_DATE,
@@ -1 +0,0 @@
1
-
File without changes