@yh-ui/yh-ui 1.0.51 → 1.0.53
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/full.mjs +1 -1
- package/dist/index.cjs +263 -106
- package/dist/index.d.ts +24 -24
- package/dist/index.mjs +37 -24
- package/dist/resolver.cjs +19 -13
- package/dist/resolver.d.ts +2 -4
- package/dist/resolver.mjs +2 -1
- package/package.json +54 -8
- package/dist/index.d.cts +0 -63
- package/dist/index.d.mts +0 -61
- package/dist/resolver.d.cts +0 -4
- package/dist/resolver.d.mts +0 -1
package/dist/full.mjs
CHANGED
|
@@ -11,7 +11,7 @@ export { Loading as LoadingIcon, createIconComponent as createPresetIconComponen
|
|
|
11
11
|
export * from '@yh-ui/locale';
|
|
12
12
|
export { en, zhCn } from '@yh-ui/locale';
|
|
13
13
|
|
|
14
|
-
const version$1 = "1.0.
|
|
14
|
+
const version$1 = "1.0.53";
|
|
15
15
|
const packageJson = {
|
|
16
16
|
version: version$1};
|
|
17
17
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,126 +1,283 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
createYhUI: true,
|
|
8
|
+
install: true,
|
|
9
|
+
version: true,
|
|
10
|
+
Loading: true,
|
|
11
|
+
YhIcon: true,
|
|
12
|
+
createIconComponent: true,
|
|
13
|
+
hexToRgb: true,
|
|
14
|
+
rgbToHex: true,
|
|
15
|
+
AVAILABLE_COLLECTIONS: true,
|
|
16
|
+
RECOMMENDED_COLLECTIONS: true,
|
|
17
|
+
PRESETS: true,
|
|
18
|
+
DEFAULT_ENABLED_PRESETS: true,
|
|
19
|
+
PREFIX_ALIAS: true,
|
|
20
|
+
COMMON_ICONS: true,
|
|
21
|
+
ICON_COLLECTIONS: true,
|
|
22
|
+
getPreset: true,
|
|
23
|
+
getCollection: true,
|
|
24
|
+
getAllPrefixes: true,
|
|
25
|
+
createIconifyComponent: true,
|
|
26
|
+
parseIconName: true,
|
|
27
|
+
iconExists: true,
|
|
28
|
+
getIconData: true,
|
|
29
|
+
IconifyIcon: true,
|
|
30
|
+
IconifyYhIcon: true,
|
|
31
|
+
LoadingIcon: true,
|
|
32
|
+
createPresetIconComponent: true,
|
|
33
|
+
zhCn: true,
|
|
34
|
+
en: true
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
exports
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
exports
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
exports
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
exports
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
exports
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
36
|
+
Object.defineProperty(exports, "AVAILABLE_COLLECTIONS", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _icons.AVAILABLE_COLLECTIONS;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "COMMON_ICONS", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _icons.COMMON_ICONS;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "DEFAULT_ENABLED_PRESETS", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _icons.DEFAULT_ENABLED_PRESETS;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ICON_COLLECTIONS", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _icons.ICON_COLLECTIONS;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "IconifyIcon", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _icons.Icon;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "IconifyYhIcon", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _icons.YhIcon;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "Loading", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _components.Loading;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "LoadingIcon", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _components2.Loading;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "PREFIX_ALIAS", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _icons.PREFIX_ALIAS;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "PRESETS", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _icons.PRESETS;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "RECOMMENDED_COLLECTIONS", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _icons.RECOMMENDED_COLLECTIONS;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "YhIcon", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _components.YhIcon;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "createIconComponent", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _components.createIconComponent;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "createIconifyComponent", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _icons.createIconifyComponent;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "createPresetIconComponent", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _components2.createIconComponent;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
module.exports = exports.createYhUI = void 0;
|
|
127
|
+
Object.defineProperty(exports, "en", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () {
|
|
130
|
+
return _locale.en;
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(exports, "getAllPrefixes", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () {
|
|
136
|
+
return _icons.getAllPrefixes;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "getCollection", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () {
|
|
142
|
+
return _icons.getCollection;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(exports, "getIconData", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function () {
|
|
148
|
+
return _icons.getIconData;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "getPreset", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () {
|
|
154
|
+
return _icons.getPreset;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, "hexToRgb", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () {
|
|
160
|
+
return _utils.hexToRgb;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "iconExists", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () {
|
|
166
|
+
return _icons.iconExists;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
exports.install = void 0;
|
|
170
|
+
Object.defineProperty(exports, "parseIconName", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () {
|
|
173
|
+
return _icons.parseIconName;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(exports, "rgbToHex", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () {
|
|
179
|
+
return _utils.rgbToHex;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
exports.version = void 0;
|
|
183
|
+
Object.defineProperty(exports, "zhCn", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () {
|
|
186
|
+
return _locale.zhCn;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
var _package = _interopRequireDefault(require("../package.json"));
|
|
190
|
+
var _components = _interopRequireWildcard(require("@yh-ui/components"));
|
|
191
|
+
Object.keys(_components).forEach(function (key) {
|
|
192
|
+
if (key === "default" || key === "__esModule") return;
|
|
193
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
194
|
+
if (key in exports && exports[key] === _components[key]) return;
|
|
195
|
+
Object.defineProperty(exports, key, {
|
|
70
196
|
enumerable: true,
|
|
71
|
-
|
|
197
|
+
get: function () {
|
|
198
|
+
return _components[key];
|
|
199
|
+
}
|
|
72
200
|
});
|
|
73
|
-
|
|
74
|
-
Object.keys(components).forEach(function (k) {
|
|
75
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = components[k];
|
|
76
201
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
202
|
+
var _hooks = require("@yh-ui/hooks");
|
|
203
|
+
Object.keys(_hooks).forEach(function (key) {
|
|
204
|
+
if (key === "default" || key === "__esModule") return;
|
|
205
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
206
|
+
if (key in exports && exports[key] === _hooks[key]) return;
|
|
207
|
+
Object.defineProperty(exports, key, {
|
|
80
208
|
enumerable: true,
|
|
81
|
-
|
|
209
|
+
get: function () {
|
|
210
|
+
return _hooks[key];
|
|
211
|
+
}
|
|
82
212
|
});
|
|
83
|
-
|
|
84
|
-
Object.keys(hooks).forEach(function (k) {
|
|
85
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = hooks[k];
|
|
86
213
|
});
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
214
|
+
var _utils = require("@yh-ui/utils");
|
|
215
|
+
Object.keys(_utils).forEach(function (key) {
|
|
216
|
+
if (key === "default" || key === "__esModule") return;
|
|
217
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
218
|
+
if (key in exports && exports[key] === _utils[key]) return;
|
|
219
|
+
Object.defineProperty(exports, key, {
|
|
90
220
|
enumerable: true,
|
|
91
|
-
|
|
221
|
+
get: function () {
|
|
222
|
+
return _utils[key];
|
|
223
|
+
}
|
|
92
224
|
});
|
|
93
|
-
|
|
94
|
-
Object.keys(utils).forEach(function (k) {
|
|
95
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utils[k];
|
|
96
225
|
});
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
226
|
+
var _theme = require("@yh-ui/theme");
|
|
227
|
+
Object.keys(_theme).forEach(function (key) {
|
|
228
|
+
if (key === "default" || key === "__esModule") return;
|
|
229
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
230
|
+
if (key in exports && exports[key] === _theme[key]) return;
|
|
231
|
+
Object.defineProperty(exports, key, {
|
|
100
232
|
enumerable: true,
|
|
101
|
-
|
|
233
|
+
get: function () {
|
|
234
|
+
return _theme[key];
|
|
235
|
+
}
|
|
102
236
|
});
|
|
103
|
-
|
|
104
|
-
Object.keys(theme).forEach(function (k) {
|
|
105
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = theme[k];
|
|
106
237
|
});
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
238
|
+
var _icons = require("@yh-ui/icons");
|
|
239
|
+
var _components2 = require("@yh-ui/icons/components");
|
|
240
|
+
Object.keys(_components2).forEach(function (key) {
|
|
241
|
+
if (key === "default" || key === "__esModule") return;
|
|
242
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
243
|
+
if (key in exports && exports[key] === _components2[key]) return;
|
|
244
|
+
Object.defineProperty(exports, key, {
|
|
110
245
|
enumerable: true,
|
|
111
|
-
|
|
246
|
+
get: function () {
|
|
247
|
+
return _components2[key];
|
|
248
|
+
}
|
|
112
249
|
});
|
|
113
|
-
|
|
114
|
-
Object.keys(components$1).forEach(function (k) {
|
|
115
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = components$1[k];
|
|
116
250
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
251
|
+
var _locale = require("@yh-ui/locale");
|
|
252
|
+
Object.keys(_locale).forEach(function (key) {
|
|
253
|
+
if (key === "default" || key === "__esModule") return;
|
|
254
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
255
|
+
if (key in exports && exports[key] === _locale[key]) return;
|
|
256
|
+
Object.defineProperty(exports, key, {
|
|
120
257
|
enumerable: true,
|
|
121
|
-
|
|
258
|
+
get: function () {
|
|
259
|
+
return _locale[key];
|
|
260
|
+
}
|
|
122
261
|
});
|
|
123
|
-
|
|
124
|
-
Object.keys(locale).forEach(function (k) {
|
|
125
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = locale[k];
|
|
126
262
|
});
|
|
263
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
264
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
265
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
266
|
+
const createYhUI = (options = {}) => {
|
|
267
|
+
return {
|
|
268
|
+
install(app) {
|
|
269
|
+
app.use(_components.default);
|
|
270
|
+
app.provide("yh-ui-options", options);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
exports.createYhUI = createYhUI;
|
|
275
|
+
const install = (app, options) => {
|
|
276
|
+
app.use(createYhUI(options));
|
|
277
|
+
};
|
|
278
|
+
exports.install = install;
|
|
279
|
+
module.exports = {
|
|
280
|
+
install,
|
|
281
|
+
createYhUI
|
|
282
|
+
};
|
|
283
|
+
const version = exports.version = _package.default.version;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* YH-UI - Vue 3 Component Library
|
|
3
|
+
* @description 集众家之长的高性能 Vue 3 组件库
|
|
4
|
+
*/
|
|
5
|
+
import type { App, Plugin } from 'vue';
|
|
6
|
+
import type { Language } from '@yh-ui/locale';
|
|
5
7
|
export * from '@yh-ui/components';
|
|
6
|
-
export { AiChatMessage, IconProps, Loading, SkuItem, SkuSpec, SkuSpecValue, YhIcon, YhIconProps, createIconComponent } from '@yh-ui/components';
|
|
7
8
|
export * from '@yh-ui/hooks';
|
|
8
|
-
export { AiChatMessage
|
|
9
|
+
export type { AiChatMessage, SkuItem, SkuSpec, SkuSpecValue } from '@yh-ui/components';
|
|
10
|
+
export type { AiChatMessage as HookAiChatMessage, SkuItem as HookSkuItem, SkuSpec as HookSkuSpec, SkuSpecValue as HookSkuSpecValue } from '@yh-ui/hooks';
|
|
9
11
|
export * from '@yh-ui/utils';
|
|
10
|
-
export { ComponentSize, hexToRgb, rgbToHex } from '@yh-ui/utils';
|
|
11
12
|
export * from '@yh-ui/theme';
|
|
12
|
-
export {
|
|
13
|
+
export type { IconName, IconSize, IconColor, IconRotate, IconPreset, IconOptions, IconCollection, IconSearchResult, RecommendedCollection } from '@yh-ui/icons';
|
|
14
|
+
export { AVAILABLE_COLLECTIONS, RECOMMENDED_COLLECTIONS, PRESETS, DEFAULT_ENABLED_PRESETS, PREFIX_ALIAS, COMMON_ICONS, ICON_COLLECTIONS, getPreset, getCollection, getAllPrefixes, createIconifyComponent, parseIconName, iconExists, getIconData } from '@yh-ui/icons';
|
|
13
15
|
export * from '@yh-ui/icons/components';
|
|
16
|
+
export { Loading, YhIcon, createIconComponent } from '@yh-ui/components';
|
|
17
|
+
export type { IconProps, YhIconProps } from '@yh-ui/components';
|
|
14
18
|
export { Loading as LoadingIcon, createIconComponent as createPresetIconComponent } from '@yh-ui/icons/components';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
export { Icon as IconifyIcon, YhIcon as IconifyYhIcon } from '@yh-ui/icons';
|
|
20
|
+
export type { IconProps as IconifyIconProps, YhIconProps as IconifyYhIconProps } from '@yh-ui/icons';
|
|
21
|
+
export * from '@yh-ui/locale';
|
|
22
|
+
export { zhCn, en } from '@yh-ui/locale';
|
|
23
|
+
export type { Language } from '@yh-ui/locale';
|
|
24
|
+
export { hexToRgb, rgbToHex } from '@yh-ui/utils';
|
|
25
|
+
export type { ComponentSize } from '@yh-ui/utils';
|
|
21
26
|
/**
|
|
22
27
|
* 创建 YH-UI 实例
|
|
23
28
|
*/
|
|
24
|
-
interface YhUIOptions {
|
|
29
|
+
export interface YhUIOptions {
|
|
25
30
|
/**
|
|
26
31
|
* 组件尺寸
|
|
27
32
|
*/
|
|
@@ -42,11 +47,11 @@ interface YhUIOptions {
|
|
|
42
47
|
/**
|
|
43
48
|
* 创建 YH-UI 插件
|
|
44
49
|
*/
|
|
45
|
-
declare const createYhUI: (options?: YhUIOptions) => Plugin;
|
|
50
|
+
export declare const createYhUI: (options?: YhUIOptions) => Plugin;
|
|
46
51
|
/**
|
|
47
52
|
* 默认安装函数
|
|
48
53
|
*/
|
|
49
|
-
declare const install: (app: App, options?: YhUIOptions) => void;
|
|
54
|
+
export declare const install: (app: App, options?: YhUIOptions) => void;
|
|
50
55
|
/**
|
|
51
56
|
* 默认导出
|
|
52
57
|
*/
|
|
@@ -54,10 +59,5 @@ declare const _default: {
|
|
|
54
59
|
install: (app: App, options?: YhUIOptions) => void;
|
|
55
60
|
createYhUI: (options?: YhUIOptions) => Plugin;
|
|
56
61
|
};
|
|
57
|
-
|
|
58
|
-
declare const version:
|
|
59
|
-
|
|
60
|
-
// @ts-ignore
|
|
61
|
-
export = _default;
|
|
62
|
-
export { createYhUI, install, version };
|
|
63
|
-
export type { YhUIOptions };
|
|
62
|
+
export default _default;
|
|
63
|
+
export declare const version: any;
|
package/dist/index.mjs
CHANGED
|
@@ -1,35 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
export * from
|
|
3
|
-
export
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import packageJson from "../package.json";
|
|
2
|
+
export * from "@yh-ui/components";
|
|
3
|
+
export * from "@yh-ui/hooks";
|
|
4
|
+
export * from "@yh-ui/utils";
|
|
5
|
+
export * from "@yh-ui/theme";
|
|
6
|
+
export {
|
|
7
|
+
AVAILABLE_COLLECTIONS,
|
|
8
|
+
RECOMMENDED_COLLECTIONS,
|
|
9
|
+
PRESETS,
|
|
10
|
+
DEFAULT_ENABLED_PRESETS,
|
|
11
|
+
PREFIX_ALIAS,
|
|
12
|
+
COMMON_ICONS,
|
|
13
|
+
ICON_COLLECTIONS,
|
|
14
|
+
getPreset,
|
|
15
|
+
getCollection,
|
|
16
|
+
getAllPrefixes,
|
|
17
|
+
createIconifyComponent,
|
|
18
|
+
parseIconName,
|
|
19
|
+
iconExists,
|
|
20
|
+
getIconData
|
|
21
|
+
} from "@yh-ui/icons";
|
|
22
|
+
export * from "@yh-ui/icons/components";
|
|
23
|
+
export { Loading, YhIcon, createIconComponent } from "@yh-ui/components";
|
|
24
|
+
export {
|
|
25
|
+
Loading as LoadingIcon,
|
|
26
|
+
createIconComponent as createPresetIconComponent
|
|
27
|
+
} from "@yh-ui/icons/components";
|
|
28
|
+
export { Icon as IconifyIcon, YhIcon as IconifyYhIcon } from "@yh-ui/icons";
|
|
29
|
+
export * from "@yh-ui/locale";
|
|
30
|
+
export { zhCn, en } from "@yh-ui/locale";
|
|
31
|
+
export { hexToRgb, rgbToHex } from "@yh-ui/utils";
|
|
32
|
+
import components from "@yh-ui/components";
|
|
33
|
+
export const createYhUI = (options = {}) => {
|
|
19
34
|
return {
|
|
20
35
|
install(app) {
|
|
21
|
-
app.use(
|
|
36
|
+
app.use(components);
|
|
22
37
|
app.provide("yh-ui-options", options);
|
|
23
38
|
}
|
|
24
39
|
};
|
|
25
40
|
};
|
|
26
|
-
const install = (app, options) => {
|
|
41
|
+
export const install = (app, options) => {
|
|
27
42
|
app.use(createYhUI(options));
|
|
28
43
|
};
|
|
29
|
-
|
|
44
|
+
export default {
|
|
30
45
|
install,
|
|
31
46
|
createYhUI
|
|
32
47
|
};
|
|
33
|
-
const version = packageJson.version;
|
|
34
|
-
|
|
35
|
-
export { createYhUI, index as default, install, version };
|
|
48
|
+
export const version = packageJson.version;
|
package/dist/resolver.cjs
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "YhUIResolver", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _resolver.YhUIResolver;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "default", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _resolver.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _resolver = _interopRequireWildcard(require("@yh-ui/components/resolver"));
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/dist/resolver.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export = _default;
|
|
4
|
-
export { YhUIResolver, YhUIResolverOptions } from '@yh-ui/components/resolver';
|
|
1
|
+
export { YhUIResolver, type YhUIResolverOptions } from '@yh-ui/components/resolver';
|
|
2
|
+
export { default } from '@yh-ui/components/resolver';
|
package/dist/resolver.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { YhUIResolver
|
|
1
|
+
export { YhUIResolver } from "@yh-ui/components/resolver";
|
|
2
|
+
export { default } from "@yh-ui/components/resolver";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yh-ui/yh-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"description": "YH-UI - A Modern Vue 3 Component Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -49,15 +49,61 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@yh-ui/components": "^1.0.
|
|
53
|
-
"@yh-ui/hooks": "^1.0.
|
|
54
|
-
"@yh-ui/icons": "^1.0.
|
|
55
|
-
"@yh-ui/locale": "^1.0.
|
|
56
|
-
"@yh-ui/theme": "^1.0.
|
|
57
|
-
"@yh-ui/utils": "^1.0.
|
|
52
|
+
"@yh-ui/components": "^1.0.53",
|
|
53
|
+
"@yh-ui/hooks": "^1.0.53",
|
|
54
|
+
"@yh-ui/icons": "^1.0.53",
|
|
55
|
+
"@yh-ui/locale": "^1.0.53",
|
|
56
|
+
"@yh-ui/theme": "^1.0.53",
|
|
57
|
+
"@yh-ui/utils": "^1.0.53"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"vue": "^3.5.35"
|
|
60
|
+
"vue": "^3.5.35",
|
|
61
|
+
"monaco-editor": "^0.55.1",
|
|
62
|
+
"xlsx": "^0.18.5",
|
|
63
|
+
"viewerjs": "^1.11.7",
|
|
64
|
+
"markdown-it": "^14.1.1",
|
|
65
|
+
"dagre": ">=0.8.5",
|
|
66
|
+
"elkjs": ">=0.9.0",
|
|
67
|
+
"d3-force": ">=3.0.0",
|
|
68
|
+
"echarts": ">=5.0.0",
|
|
69
|
+
"highlight.js": ">=11.0.0",
|
|
70
|
+
"mermaid": ">=11.0.0",
|
|
71
|
+
"@langchain/core": ">=0.3.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"monaco-editor": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"xlsx": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"viewerjs": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"markdown-it": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"dagre": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"elkjs": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"d3-force": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"echarts": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"highlight.js": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"mermaid": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"@langchain/core": {
|
|
105
|
+
"optional": true
|
|
106
|
+
}
|
|
61
107
|
},
|
|
62
108
|
"publishConfig": {
|
|
63
109
|
"access": "public"
|
package/dist/index.d.cts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Plugin, App } from 'vue';
|
|
2
|
-
import { Language } from '@yh-ui/locale';
|
|
3
|
-
export * from '@yh-ui/locale';
|
|
4
|
-
export { Language, en, zhCn } from '@yh-ui/locale';
|
|
5
|
-
export * from '@yh-ui/components';
|
|
6
|
-
export { AiChatMessage, IconProps, Loading, SkuItem, SkuSpec, SkuSpecValue, YhIcon, YhIconProps, createIconComponent } from '@yh-ui/components';
|
|
7
|
-
export * from '@yh-ui/hooks';
|
|
8
|
-
export { AiChatMessage as HookAiChatMessage, SkuItem as HookSkuItem, SkuSpec as HookSkuSpec, SkuSpecValue as HookSkuSpecValue } from '@yh-ui/hooks';
|
|
9
|
-
export * from '@yh-ui/utils';
|
|
10
|
-
export { ComponentSize, hexToRgb, rgbToHex } from '@yh-ui/utils';
|
|
11
|
-
export * from '@yh-ui/theme';
|
|
12
|
-
export { AVAILABLE_COLLECTIONS, COMMON_ICONS, DEFAULT_ENABLED_PRESETS, ICON_COLLECTIONS, IconCollection, IconColor, IconName, IconOptions, IconPreset, IconRotate, IconSearchResult, IconSize, Icon as IconifyIcon, IconProps as IconifyIconProps, YhIcon as IconifyYhIcon, YhIconProps as IconifyYhIconProps, PREFIX_ALIAS, PRESETS, RECOMMENDED_COLLECTIONS, RecommendedCollection, createIconifyComponent, getAllPrefixes, getCollection, getIconData, getPreset, iconExists, parseIconName } from '@yh-ui/icons';
|
|
13
|
-
export * from '@yh-ui/icons/components';
|
|
14
|
-
export { Loading as LoadingIcon, createIconComponent as createPresetIconComponent } from '@yh-ui/icons/components';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* YH-UI - Vue 3 Component Library
|
|
18
|
-
* @description 集众家之长的高性能 Vue 3 组件库
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 创建 YH-UI 实例
|
|
23
|
-
*/
|
|
24
|
-
interface YhUIOptions {
|
|
25
|
-
/**
|
|
26
|
-
* 组件尺寸
|
|
27
|
-
*/
|
|
28
|
-
size?: 'large' | 'default' | 'small';
|
|
29
|
-
/**
|
|
30
|
-
* 层级基数
|
|
31
|
-
*/
|
|
32
|
-
zIndex?: number;
|
|
33
|
-
/**
|
|
34
|
-
* 命名空间
|
|
35
|
-
*/
|
|
36
|
-
namespace?: string;
|
|
37
|
-
/**
|
|
38
|
-
* 国际化配置
|
|
39
|
-
*/
|
|
40
|
-
locale?: Language;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 创建 YH-UI 插件
|
|
44
|
-
*/
|
|
45
|
-
declare const createYhUI: (options?: YhUIOptions) => Plugin;
|
|
46
|
-
/**
|
|
47
|
-
* 默认安装函数
|
|
48
|
-
*/
|
|
49
|
-
declare const install: (app: App, options?: YhUIOptions) => void;
|
|
50
|
-
/**
|
|
51
|
-
* 默认导出
|
|
52
|
-
*/
|
|
53
|
-
declare const _default: {
|
|
54
|
-
install: (app: App, options?: YhUIOptions) => void;
|
|
55
|
-
createYhUI: (options?: YhUIOptions) => Plugin;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
declare const version: string;
|
|
59
|
-
|
|
60
|
-
// @ts-ignore
|
|
61
|
-
export = _default;
|
|
62
|
-
export { createYhUI, install, version };
|
|
63
|
-
export type { YhUIOptions };
|
package/dist/index.d.mts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Plugin, App } from 'vue';
|
|
2
|
-
import { Language } from '@yh-ui/locale';
|
|
3
|
-
export * from '@yh-ui/locale';
|
|
4
|
-
export { Language, en, zhCn } from '@yh-ui/locale';
|
|
5
|
-
export * from '@yh-ui/components';
|
|
6
|
-
export { AiChatMessage, IconProps, Loading, SkuItem, SkuSpec, SkuSpecValue, YhIcon, YhIconProps, createIconComponent } from '@yh-ui/components';
|
|
7
|
-
export * from '@yh-ui/hooks';
|
|
8
|
-
export { AiChatMessage as HookAiChatMessage, SkuItem as HookSkuItem, SkuSpec as HookSkuSpec, SkuSpecValue as HookSkuSpecValue } from '@yh-ui/hooks';
|
|
9
|
-
export * from '@yh-ui/utils';
|
|
10
|
-
export { ComponentSize, hexToRgb, rgbToHex } from '@yh-ui/utils';
|
|
11
|
-
export * from '@yh-ui/theme';
|
|
12
|
-
export { AVAILABLE_COLLECTIONS, COMMON_ICONS, DEFAULT_ENABLED_PRESETS, ICON_COLLECTIONS, IconCollection, IconColor, IconName, IconOptions, IconPreset, IconRotate, IconSearchResult, IconSize, Icon as IconifyIcon, IconProps as IconifyIconProps, YhIcon as IconifyYhIcon, YhIconProps as IconifyYhIconProps, PREFIX_ALIAS, PRESETS, RECOMMENDED_COLLECTIONS, RecommendedCollection, createIconifyComponent, getAllPrefixes, getCollection, getIconData, getPreset, iconExists, parseIconName } from '@yh-ui/icons';
|
|
13
|
-
export * from '@yh-ui/icons/components';
|
|
14
|
-
export { Loading as LoadingIcon, createIconComponent as createPresetIconComponent } from '@yh-ui/icons/components';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* YH-UI - Vue 3 Component Library
|
|
18
|
-
* @description 集众家之长的高性能 Vue 3 组件库
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 创建 YH-UI 实例
|
|
23
|
-
*/
|
|
24
|
-
interface YhUIOptions {
|
|
25
|
-
/**
|
|
26
|
-
* 组件尺寸
|
|
27
|
-
*/
|
|
28
|
-
size?: 'large' | 'default' | 'small';
|
|
29
|
-
/**
|
|
30
|
-
* 层级基数
|
|
31
|
-
*/
|
|
32
|
-
zIndex?: number;
|
|
33
|
-
/**
|
|
34
|
-
* 命名空间
|
|
35
|
-
*/
|
|
36
|
-
namespace?: string;
|
|
37
|
-
/**
|
|
38
|
-
* 国际化配置
|
|
39
|
-
*/
|
|
40
|
-
locale?: Language;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 创建 YH-UI 插件
|
|
44
|
-
*/
|
|
45
|
-
declare const createYhUI: (options?: YhUIOptions) => Plugin;
|
|
46
|
-
/**
|
|
47
|
-
* 默认安装函数
|
|
48
|
-
*/
|
|
49
|
-
declare const install: (app: App, options?: YhUIOptions) => void;
|
|
50
|
-
/**
|
|
51
|
-
* 默认导出
|
|
52
|
-
*/
|
|
53
|
-
declare const _default: {
|
|
54
|
-
install: (app: App, options?: YhUIOptions) => void;
|
|
55
|
-
createYhUI: (options?: YhUIOptions) => Plugin;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
declare const version: string;
|
|
59
|
-
|
|
60
|
-
export { createYhUI, _default as default, install, version };
|
|
61
|
-
export type { YhUIOptions };
|
package/dist/resolver.d.cts
DELETED
package/dist/resolver.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { YhUIResolver, YhUIResolverOptions, default } from '@yh-ui/components/resolver';
|