@particle-network/ui-react 0.5.1-beta.3 → 0.5.1-beta.5
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.
- package/dist/components/ProgressWrapper/index.d.ts +2 -2
- package/dist/components/UXChip/chip.extend.d.ts +2 -1
- package/dist/components/UXChip/index.d.ts +1 -1
- package/dist/components/UXColorPicker/color-picker.js +13 -7
- package/dist/components/UXColorPicker/types.d.ts +11 -0
- package/dist/components/UXThemeSwitch/constants.d.ts +9 -0
- package/dist/components/UXThemeSwitch/constants.js +3 -0
- package/dist/components/UXThemeSwitch/custom-theme-config.d.ts +2 -0
- package/dist/components/UXThemeSwitch/custom-theme-config.js +169 -0
- package/dist/components/UXThemeSwitch/theme-item.js +93 -14
- package/dist/components/UXThemeSwitch/theme-switch.js +24 -3
- package/dist/components/UXThemeSwitch/use-theme-color.d.ts +1 -22
- package/dist/components/UXThemeSwitch/use-theme-color.js +1 -9
- package/dist/components/UXThemeSwitch/use-theme-store.d.ts +5 -0
- package/dist/components/UXThemeSwitch/use-theme-store.js +9 -4
- package/dist/components/UXThemeSwitch/use-theme.d.ts +2 -0
- package/dist/components/UXThemeSwitch/use-theme.js +10 -53
- package/dist/components/UXThemeSwitch/utils.d.ts +28 -0
- package/dist/components/UXThemeSwitch/utils.js +202 -0
- package/dist/components/typography/Text.type.d.ts +2 -2
- package/dist/components/typography/Text.type.js +0 -1
- package/dist/heroui/constants.d.ts +18 -0
- package/dist/heroui/constants.js +98 -0
- package/dist/heroui/types.d.ts +91 -0
- package/dist/heroui/types.js +0 -0
- package/dist/heroui/utils/colors.d.ts +34 -0
- package/dist/heroui/utils/colors.js +121 -0
- package/dist/heroui/utils/object.d.ts +1 -0
- package/dist/heroui/utils/object.js +17 -0
- package/dist/hooks/useI18n.d.ts +129 -25
- package/dist/hooks/useI18n.js +80 -2
- package/dist/hooks/useLang.d.ts +5 -1
- package/dist/hooks/useLang.js +13 -1
- package/package.json +5 -3
- package/tailwind-preset.js +22 -148
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { readableColor } from "color2k";
|
|
2
|
+
import { colorWeight as external_constants_js_colorWeight, defaultDarkColorWeight, defaultLightColorWeight } from "../constants.js";
|
|
3
|
+
import { swapColorValues } from "./object.js";
|
|
4
|
+
import values_0 from "values.js";
|
|
5
|
+
function colorValuesToRgb(value) {
|
|
6
|
+
return `rgba(${value.rgb.join(', ')}, ${value.alpha})`;
|
|
7
|
+
}
|
|
8
|
+
function hexToRgb(hex) {
|
|
9
|
+
let r = 0, g = 0, b = 0;
|
|
10
|
+
if (4 === hex.length || 5 === hex.length) {
|
|
11
|
+
r = parseInt(hex[1] + hex[1], 16);
|
|
12
|
+
g = parseInt(hex[2] + hex[2], 16);
|
|
13
|
+
b = parseInt(hex[3] + hex[3], 16);
|
|
14
|
+
} else if (7 === hex.length || 9 === hex.length) {
|
|
15
|
+
r = parseInt(hex.slice(1, 3), 16);
|
|
16
|
+
g = parseInt(hex.slice(3, 5), 16);
|
|
17
|
+
b = parseInt(hex.slice(5, 7), 16);
|
|
18
|
+
} else throw new Error('Invalid hex color format');
|
|
19
|
+
return [
|
|
20
|
+
r,
|
|
21
|
+
g,
|
|
22
|
+
b
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
function hexToHsl(hex) {
|
|
26
|
+
const [r, g, b] = hexToRgb(hex);
|
|
27
|
+
const normalizedR = r / 255;
|
|
28
|
+
const normalizedG = g / 255;
|
|
29
|
+
const normalizedB = b / 255;
|
|
30
|
+
const max = Math.max(normalizedR, normalizedG, normalizedB);
|
|
31
|
+
const min = Math.min(normalizedR, normalizedG, normalizedB);
|
|
32
|
+
const lightness = (max + min) / 2;
|
|
33
|
+
if (max === min) return `0 0% ${100 * lightness}%`;
|
|
34
|
+
let saturation = 0;
|
|
35
|
+
saturation = lightness < 0.5 ? (max - min) / (max + min) : (max - min) / (2 - max - min);
|
|
36
|
+
let hue;
|
|
37
|
+
hue = max === normalizedR ? (normalizedG - normalizedB) / (max - min) : max === normalizedG ? 2 + (normalizedB - normalizedR) / (max - min) : 4 + (normalizedR - normalizedG) / (max - min);
|
|
38
|
+
hue *= 60;
|
|
39
|
+
if (hue < 0) hue += 360;
|
|
40
|
+
return `${hue.toFixed(2)} ${(100 * saturation).toFixed(2)}% ${(100 * lightness).toFixed(2)}%`;
|
|
41
|
+
}
|
|
42
|
+
function getColorWeight(colorType, theme) {
|
|
43
|
+
if ('default' === colorType) return 'dark' === theme ? defaultDarkColorWeight : defaultLightColorWeight;
|
|
44
|
+
return external_constants_js_colorWeight;
|
|
45
|
+
}
|
|
46
|
+
function rgbValueToHex(c) {
|
|
47
|
+
const hex = c.toString(16);
|
|
48
|
+
return 1 === hex.length ? `0${hex}` : hex;
|
|
49
|
+
}
|
|
50
|
+
function rgbToHex([r, g, b]) {
|
|
51
|
+
return `#${rgbValueToHex(r)}${rgbValueToHex(g)}${rgbValueToHex(b)}`;
|
|
52
|
+
}
|
|
53
|
+
function generateThemeColor(color, type, theme) {
|
|
54
|
+
const values = new values_0(color);
|
|
55
|
+
const colorWeight = getColorWeight(type, theme);
|
|
56
|
+
const colorValues = values.all(colorWeight);
|
|
57
|
+
const shades = colorValues.slice(0, colorValues.length - 1).reduce((acc, shadeValue, index)=>{
|
|
58
|
+
acc[0 === index ? 50 : 100 * index] = rgbToHex(shadeValue.rgb);
|
|
59
|
+
return acc;
|
|
60
|
+
}, {});
|
|
61
|
+
const twTheme = {
|
|
62
|
+
...'light' === theme ? shades : swapColorValues(shades),
|
|
63
|
+
foreground: readableColor(shades[500]),
|
|
64
|
+
DEFAULT: shades[500]
|
|
65
|
+
};
|
|
66
|
+
const cssVariables = [
|
|
67
|
+
[
|
|
68
|
+
`--heroui-${type}-50`,
|
|
69
|
+
twTheme[50]
|
|
70
|
+
],
|
|
71
|
+
[
|
|
72
|
+
`--heroui-${type}-100`,
|
|
73
|
+
twTheme[100]
|
|
74
|
+
],
|
|
75
|
+
[
|
|
76
|
+
`--heroui-${type}-200`,
|
|
77
|
+
twTheme[200]
|
|
78
|
+
],
|
|
79
|
+
[
|
|
80
|
+
`--heroui-${type}-300`,
|
|
81
|
+
twTheme[300]
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
`--heroui-${type}-400`,
|
|
85
|
+
twTheme[400]
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
`--heroui-${type}-500`,
|
|
89
|
+
twTheme[500]
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
`--heroui-${type}-600`,
|
|
93
|
+
twTheme[600]
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
`--heroui-${type}-700`,
|
|
97
|
+
twTheme[700]
|
|
98
|
+
],
|
|
99
|
+
[
|
|
100
|
+
`--heroui-${type}-800`,
|
|
101
|
+
twTheme[800]
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
`--heroui-${type}-900`,
|
|
105
|
+
twTheme[900]
|
|
106
|
+
],
|
|
107
|
+
[
|
|
108
|
+
`--heroui-${type}-foreground`,
|
|
109
|
+
twTheme.foreground
|
|
110
|
+
],
|
|
111
|
+
[
|
|
112
|
+
`--heroui-${type}`,
|
|
113
|
+
twTheme.DEFAULT
|
|
114
|
+
]
|
|
115
|
+
];
|
|
116
|
+
return {
|
|
117
|
+
twTheme,
|
|
118
|
+
cssVariables
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export { colorValuesToRgb, generateThemeColor, getColorWeight, hexToHsl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function swapColorValues<T extends Object>(colors: T): {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function swapColorValues(colors) {
|
|
2
|
+
const swappedColors = {};
|
|
3
|
+
const keys = Object.keys(colors);
|
|
4
|
+
const { length } = keys;
|
|
5
|
+
for(let i = 0; i < length / 2; i++){
|
|
6
|
+
const key1 = keys[i];
|
|
7
|
+
const key2 = keys[length - 1 - i];
|
|
8
|
+
swappedColors[key1] = colors[key2];
|
|
9
|
+
swappedColors[key2] = colors[key1];
|
|
10
|
+
}
|
|
11
|
+
if (length % 2 !== 0) {
|
|
12
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
13
|
+
swappedColors[middleKey] = colors[middleKey];
|
|
14
|
+
}
|
|
15
|
+
return swappedColors;
|
|
16
|
+
}
|
|
17
|
+
export { swapColorValues };
|
package/dist/hooks/useI18n.d.ts
CHANGED
|
@@ -1,31 +1,135 @@
|
|
|
1
1
|
export declare const useI18n: () => {
|
|
2
|
-
table: {
|
|
3
|
-
emptyContent:
|
|
4
|
-
};
|
|
5
|
-
copy: {
|
|
6
|
-
copy:
|
|
7
|
-
success:
|
|
8
|
-
error:
|
|
9
|
-
address:
|
|
10
|
-
};
|
|
11
|
-
theme: {
|
|
12
|
-
title:
|
|
13
|
-
done:
|
|
14
|
-
font: {
|
|
15
|
-
title:
|
|
16
|
-
placeholder:
|
|
17
|
-
loading:
|
|
18
|
-
success:
|
|
19
|
-
error:
|
|
20
|
-
hint:
|
|
21
|
-
example: {
|
|
22
|
-
show:
|
|
23
|
-
hide:
|
|
2
|
+
readonly table: {
|
|
3
|
+
readonly emptyContent: "No data";
|
|
4
|
+
};
|
|
5
|
+
readonly copy: {
|
|
6
|
+
readonly copy: "Copy";
|
|
7
|
+
readonly success: "Copied successfully!";
|
|
8
|
+
readonly error: "Copy failed: ";
|
|
9
|
+
readonly address: "Address copied: ";
|
|
10
|
+
};
|
|
11
|
+
readonly theme: {
|
|
12
|
+
readonly title: "Theme";
|
|
13
|
+
readonly done: "Finish";
|
|
14
|
+
readonly font: {
|
|
15
|
+
readonly title: "Custom Font";
|
|
16
|
+
readonly placeholder: "Enter Google Fonts URL or custom font URL";
|
|
17
|
+
readonly loading: "Loading font...";
|
|
18
|
+
readonly success: "Font loaded: ";
|
|
19
|
+
readonly error: "Failed to load font";
|
|
20
|
+
readonly hint: "Try Google Fonts: ";
|
|
21
|
+
readonly example: {
|
|
22
|
+
readonly show: "Show example";
|
|
23
|
+
readonly hide: "Hide example";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly custom: {
|
|
27
|
+
readonly title: "Custom Theme";
|
|
28
|
+
readonly preset: "Theme Preset";
|
|
29
|
+
readonly swapUpDown: "Swap Up/Down Color";
|
|
30
|
+
readonly categories: {
|
|
31
|
+
readonly basic: "Basic";
|
|
32
|
+
readonly background: "Background";
|
|
33
|
+
readonly text: "Text";
|
|
34
|
+
readonly candle: "Candle";
|
|
35
|
+
readonly signal: "Signal";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
readonly colors: {
|
|
40
|
+
readonly primary: "Primary";
|
|
41
|
+
readonly bullish: "Positive";
|
|
42
|
+
readonly bearish: "Negative";
|
|
43
|
+
readonly 'bg-default': "Background";
|
|
44
|
+
readonly 'bg-200': "Background Quaternary";
|
|
45
|
+
readonly 'bg-300': "Background Tertiary";
|
|
46
|
+
readonly 'bg-400': "Background Secondary";
|
|
47
|
+
readonly overlay: "Overlay";
|
|
48
|
+
readonly default: "Default";
|
|
49
|
+
readonly foreground: "Text Primary";
|
|
50
|
+
readonly secondary: "Text Secondary";
|
|
51
|
+
readonly tertiary: "Text Tertiary";
|
|
52
|
+
readonly divider: "Divider";
|
|
53
|
+
readonly success: "Signal Green";
|
|
54
|
+
readonly danger: "Signal Red";
|
|
55
|
+
readonly warning: "Signal Yellow";
|
|
56
|
+
readonly alert: "Signal Orange";
|
|
57
|
+
readonly candleUp: "Body (up)";
|
|
58
|
+
readonly candleDown: "Body (down)";
|
|
59
|
+
readonly candleWickUp: "Wick (up)";
|
|
60
|
+
readonly candleWickDown: "Wick (down)";
|
|
61
|
+
readonly candleBorderUp: "Border (up)";
|
|
62
|
+
readonly candleBorderDown: "Border (down)";
|
|
63
|
+
};
|
|
64
|
+
readonly switch: {
|
|
65
|
+
readonly on: "On";
|
|
66
|
+
readonly off: "Off";
|
|
67
|
+
};
|
|
68
|
+
} | {
|
|
69
|
+
readonly table: {
|
|
70
|
+
readonly emptyContent: "暂无数据";
|
|
71
|
+
};
|
|
72
|
+
readonly copy: {
|
|
73
|
+
readonly copy: "复制";
|
|
74
|
+
readonly success: "复制成功!";
|
|
75
|
+
readonly error: "复制失败:";
|
|
76
|
+
readonly address: "地址已复制:";
|
|
77
|
+
};
|
|
78
|
+
readonly theme: {
|
|
79
|
+
readonly title: "主题";
|
|
80
|
+
readonly done: "完成";
|
|
81
|
+
readonly font: {
|
|
82
|
+
readonly title: "自定义字体";
|
|
83
|
+
readonly placeholder: "输入 Google Fonts 或自定义字体链接";
|
|
84
|
+
readonly loading: "正在加载字体...";
|
|
85
|
+
readonly success: "已加载字体:";
|
|
86
|
+
readonly error: "字体加载失败";
|
|
87
|
+
readonly hint: "参考 Google Fonts: ";
|
|
88
|
+
readonly example: {
|
|
89
|
+
readonly show: "显示示例";
|
|
90
|
+
readonly hide: "隐藏示例";
|
|
24
91
|
};
|
|
25
92
|
};
|
|
93
|
+
readonly custom: {
|
|
94
|
+
readonly title: "自定义主题";
|
|
95
|
+
readonly preset: "主题预设";
|
|
96
|
+
readonly swapUpDown: "涨跌色互换";
|
|
97
|
+
readonly categories: {
|
|
98
|
+
readonly basic: "基础";
|
|
99
|
+
readonly background: "背景";
|
|
100
|
+
readonly text: "文字";
|
|
101
|
+
readonly candle: "K线";
|
|
102
|
+
readonly signal: "信号";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly colors: {
|
|
107
|
+
readonly primary: "主要色";
|
|
108
|
+
readonly bullish: "上涨色";
|
|
109
|
+
readonly bearish: "下跌色";
|
|
110
|
+
readonly 'bg-default': "一级背景色";
|
|
111
|
+
readonly 'bg-200': "四级背景色";
|
|
112
|
+
readonly 'bg-300': "三级背景色";
|
|
113
|
+
readonly 'bg-400': "二级背景色";
|
|
114
|
+
readonly overlay: "浮窗色";
|
|
115
|
+
readonly default: "默认";
|
|
116
|
+
readonly foreground: "一级文字色";
|
|
117
|
+
readonly secondary: "二级文字色";
|
|
118
|
+
readonly tertiary: "三级文字色";
|
|
119
|
+
readonly divider: "分割线";
|
|
120
|
+
readonly success: "绿色信号";
|
|
121
|
+
readonly danger: "红色信号";
|
|
122
|
+
readonly warning: "黄色信号";
|
|
123
|
+
readonly alert: "橙色信号";
|
|
124
|
+
readonly candleUp: "主体色 (上涨)";
|
|
125
|
+
readonly candleDown: "主体色 (下跌)";
|
|
126
|
+
readonly candleWickUp: "影线 (上涨)";
|
|
127
|
+
readonly candleWickDown: "影线 (下跌)";
|
|
128
|
+
readonly candleBorderUp: "边框 (上涨)";
|
|
129
|
+
readonly candleBorderDown: "边框 (下跌)";
|
|
26
130
|
};
|
|
27
|
-
switch: {
|
|
28
|
-
on:
|
|
29
|
-
off:
|
|
131
|
+
readonly switch: {
|
|
132
|
+
readonly on: "开";
|
|
133
|
+
readonly off: "关";
|
|
30
134
|
};
|
|
31
135
|
};
|
package/dist/hooks/useI18n.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
1
2
|
import { useLang } from "./useLang.js";
|
|
2
3
|
const en = {
|
|
3
4
|
table: {
|
|
@@ -23,8 +24,45 @@ const en = {
|
|
|
23
24
|
show: 'Show example',
|
|
24
25
|
hide: 'Hide example'
|
|
25
26
|
}
|
|
27
|
+
},
|
|
28
|
+
custom: {
|
|
29
|
+
title: 'Custom Theme',
|
|
30
|
+
preset: 'Theme Preset',
|
|
31
|
+
swapUpDown: 'Swap Up/Down Color',
|
|
32
|
+
categories: {
|
|
33
|
+
basic: 'Basic',
|
|
34
|
+
background: 'Background',
|
|
35
|
+
text: 'Text',
|
|
36
|
+
candle: 'Candle',
|
|
37
|
+
signal: 'Signal'
|
|
38
|
+
}
|
|
26
39
|
}
|
|
27
40
|
},
|
|
41
|
+
colors: {
|
|
42
|
+
primary: 'Primary',
|
|
43
|
+
bullish: 'Positive',
|
|
44
|
+
bearish: 'Negative',
|
|
45
|
+
'bg-default': 'Background',
|
|
46
|
+
'bg-200': 'Background Quaternary',
|
|
47
|
+
'bg-300': 'Background Tertiary',
|
|
48
|
+
'bg-400': 'Background Secondary',
|
|
49
|
+
overlay: 'Overlay',
|
|
50
|
+
default: 'Default',
|
|
51
|
+
foreground: 'Text Primary',
|
|
52
|
+
secondary: 'Text Secondary',
|
|
53
|
+
tertiary: 'Text Tertiary',
|
|
54
|
+
divider: 'Divider',
|
|
55
|
+
success: 'Signal Green',
|
|
56
|
+
danger: 'Signal Red',
|
|
57
|
+
warning: 'Signal Yellow',
|
|
58
|
+
alert: 'Signal Orange',
|
|
59
|
+
candleUp: 'Body (up)',
|
|
60
|
+
candleDown: 'Body (down)',
|
|
61
|
+
candleWickUp: 'Wick (up)',
|
|
62
|
+
candleWickDown: 'Wick (down)',
|
|
63
|
+
candleBorderUp: 'Border (up)',
|
|
64
|
+
candleBorderDown: 'Border (down)'
|
|
65
|
+
},
|
|
28
66
|
switch: {
|
|
29
67
|
on: 'On',
|
|
30
68
|
off: 'Off'
|
|
@@ -54,15 +92,55 @@ const zh = {
|
|
|
54
92
|
show: '显示示例',
|
|
55
93
|
hide: '隐藏示例'
|
|
56
94
|
}
|
|
95
|
+
},
|
|
96
|
+
custom: {
|
|
97
|
+
title: '自定义主题',
|
|
98
|
+
preset: '主题预设',
|
|
99
|
+
swapUpDown: '涨跌色互换',
|
|
100
|
+
categories: {
|
|
101
|
+
basic: '基础',
|
|
102
|
+
background: '背景',
|
|
103
|
+
text: '文字',
|
|
104
|
+
candle: 'K线',
|
|
105
|
+
signal: '信号'
|
|
106
|
+
}
|
|
57
107
|
}
|
|
58
108
|
},
|
|
109
|
+
colors: {
|
|
110
|
+
primary: '主要色',
|
|
111
|
+
bullish: '上涨色',
|
|
112
|
+
bearish: '下跌色',
|
|
113
|
+
'bg-default': '一级背景色',
|
|
114
|
+
'bg-200': '四级背景色',
|
|
115
|
+
'bg-300': '三级背景色',
|
|
116
|
+
'bg-400': '二级背景色',
|
|
117
|
+
overlay: '浮窗色',
|
|
118
|
+
default: '默认',
|
|
119
|
+
foreground: '一级文字色',
|
|
120
|
+
secondary: '二级文字色',
|
|
121
|
+
tertiary: '三级文字色',
|
|
122
|
+
divider: '分割线',
|
|
123
|
+
success: '绿色信号',
|
|
124
|
+
danger: '红色信号',
|
|
125
|
+
warning: '黄色信号',
|
|
126
|
+
alert: '橙色信号',
|
|
127
|
+
candleUp: '主体色 (上涨)',
|
|
128
|
+
candleDown: '主体色 (下跌)',
|
|
129
|
+
candleWickUp: '影线 (上涨)',
|
|
130
|
+
candleWickDown: '影线 (下跌)',
|
|
131
|
+
candleBorderUp: '边框 (上涨)',
|
|
132
|
+
candleBorderDown: '边框 (下跌)'
|
|
133
|
+
},
|
|
59
134
|
switch: {
|
|
60
135
|
on: '开',
|
|
61
136
|
off: '关'
|
|
62
137
|
}
|
|
63
138
|
};
|
|
64
139
|
const useI18n = ()=>{
|
|
65
|
-
const lang = useLang();
|
|
66
|
-
|
|
140
|
+
const { lang } = useLang();
|
|
141
|
+
const i18n = useMemo(()=>'zh' === lang ? zh : en, [
|
|
142
|
+
lang
|
|
143
|
+
]);
|
|
144
|
+
return i18n;
|
|
67
145
|
};
|
|
68
146
|
export { useI18n };
|
package/dist/hooks/useLang.d.ts
CHANGED
package/dist/hooks/useLang.js
CHANGED
|
@@ -23,6 +23,18 @@ function useLang() {
|
|
|
23
23
|
observer.disconnect();
|
|
24
24
|
};
|
|
25
25
|
}, []);
|
|
26
|
-
|
|
26
|
+
const handleSetLang = (lang)=>{
|
|
27
|
+
setLang(lang);
|
|
28
|
+
document.documentElement.lang = lang;
|
|
29
|
+
};
|
|
30
|
+
const toggleLang = ()=>{
|
|
31
|
+
const newLang = 'zh' === lang ? 'en' : 'zh';
|
|
32
|
+
handleSetLang(newLang);
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
lang,
|
|
36
|
+
setLang: handleSetLang,
|
|
37
|
+
toggleLang
|
|
38
|
+
};
|
|
27
39
|
}
|
|
28
40
|
export { useLang };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.5.1-beta.
|
|
3
|
+
"version": "0.5.1-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -48,10 +48,12 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"ahooks": "^3.9.4",
|
|
50
50
|
"copy-to-clipboard": "^3.3.3",
|
|
51
|
+
"immer": "^11.1.3",
|
|
51
52
|
"react-aria-components": "^1.14.0",
|
|
53
|
+
"values.js": "^2.1.1",
|
|
52
54
|
"zustand": "^5.0.8",
|
|
53
|
-
"@particle-network/icons": "0.5.1-beta.
|
|
54
|
-
"@particle-network/ui-shared": "0.4.
|
|
55
|
+
"@particle-network/icons": "0.5.1-beta.2",
|
|
56
|
+
"@particle-network/ui-shared": "0.4.1-beta.1"
|
|
55
57
|
},
|
|
56
58
|
"scripts": {
|
|
57
59
|
"build": "rslib build",
|