@yh-ui/yh-ui 1.0.25 → 1.0.30

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/index.cjs CHANGED
@@ -6,13 +6,15 @@ const components = require('@yh-ui/components');
6
6
  const hooks = require('@yh-ui/hooks');
7
7
  const utils = require('@yh-ui/utils');
8
8
  const theme = require('@yh-ui/theme');
9
+ const icons = require('@yh-ui/icons');
10
+ const components$1 = require('@yh-ui/icons/components');
9
11
  const locale = require('@yh-ui/locale');
10
12
 
11
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
12
14
 
13
15
  const components__default = /*#__PURE__*/_interopDefaultCompat(components);
14
16
 
15
- const version$1 = "1.0.25";
17
+ const version$1 = "1.0.30";
16
18
  const packageJson = {
17
19
  version: version$1};
18
20
 
@@ -33,8 +35,29 @@ const index = {
33
35
  };
34
36
  const version = packageJson.version;
35
37
 
38
+ exports.Loading = components.Loading;
39
+ exports.YhIcon = components.YhIcon;
40
+ exports.createIconComponent = components.createIconComponent;
36
41
  exports.hexToRgb = utils.hexToRgb;
37
42
  exports.rgbToHex = utils.rgbToHex;
43
+ exports.AVAILABLE_COLLECTIONS = icons.AVAILABLE_COLLECTIONS;
44
+ exports.COMMON_ICONS = icons.COMMON_ICONS;
45
+ exports.DEFAULT_ENABLED_PRESETS = icons.DEFAULT_ENABLED_PRESETS;
46
+ exports.ICON_COLLECTIONS = icons.ICON_COLLECTIONS;
47
+ exports.IconifyIcon = icons.Icon;
48
+ exports.IconifyYhIcon = icons.YhIcon;
49
+ exports.PREFIX_ALIAS = icons.PREFIX_ALIAS;
50
+ exports.PRESETS = icons.PRESETS;
51
+ exports.RECOMMENDED_COLLECTIONS = icons.RECOMMENDED_COLLECTIONS;
52
+ exports.createIconifyComponent = icons.createIconifyComponent;
53
+ exports.getAllPrefixes = icons.getAllPrefixes;
54
+ exports.getCollection = icons.getCollection;
55
+ exports.getIconData = icons.getIconData;
56
+ exports.getPreset = icons.getPreset;
57
+ exports.iconExists = icons.iconExists;
58
+ exports.parseIconName = icons.parseIconName;
59
+ exports.LoadingIcon = components$1.Loading;
60
+ exports.createPresetIconComponent = components$1.createIconComponent;
38
61
  exports.en = locale.en;
39
62
  exports.zhCn = locale.zhCn;
40
63
  exports.createYhUI = createYhUI;
@@ -81,6 +104,16 @@ Object.prototype.hasOwnProperty.call(theme, '__proto__') &&
81
104
  Object.keys(theme).forEach(function (k) {
82
105
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = theme[k];
83
106
  });
107
+ Object.prototype.hasOwnProperty.call(components$1, '__proto__') &&
108
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
109
+ Object.defineProperty(exports, '__proto__', {
110
+ enumerable: true,
111
+ value: components$1['__proto__']
112
+ });
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
+ });
84
117
  Object.prototype.hasOwnProperty.call(locale, '__proto__') &&
85
118
  !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
86
119
  Object.defineProperty(exports, '__proto__', {
package/dist/index.d.cts CHANGED
@@ -3,10 +3,15 @@ import { Language } from '@yh-ui/locale';
3
3
  export * from '@yh-ui/locale';
4
4
  export { Language, en, zhCn } from '@yh-ui/locale';
5
5
  export * from '@yh-ui/components';
6
+ export { AiChatMessage, IconProps, Loading, SkuItem, SkuSpec, SkuSpecValue, YhIcon, YhIconProps, createIconComponent } from '@yh-ui/components';
6
7
  export * from '@yh-ui/hooks';
8
+ export { AiChatMessage as HookAiChatMessage, SkuItem as HookSkuItem, SkuSpec as HookSkuSpec, SkuSpecValue as HookSkuSpecValue } from '@yh-ui/hooks';
7
9
  export * from '@yh-ui/utils';
8
10
  export { ComponentSize, hexToRgb, rgbToHex } from '@yh-ui/utils';
9
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';
10
15
 
11
16
  /**
12
17
  * YH-UI - Vue 3 Component Library
package/dist/index.d.mts CHANGED
@@ -3,10 +3,15 @@ import { Language } from '@yh-ui/locale';
3
3
  export * from '@yh-ui/locale';
4
4
  export { Language, en, zhCn } from '@yh-ui/locale';
5
5
  export * from '@yh-ui/components';
6
+ export { AiChatMessage, IconProps, Loading, SkuItem, SkuSpec, SkuSpecValue, YhIcon, YhIconProps, createIconComponent } from '@yh-ui/components';
6
7
  export * from '@yh-ui/hooks';
8
+ export { AiChatMessage as HookAiChatMessage, SkuItem as HookSkuItem, SkuSpec as HookSkuSpec, SkuSpecValue as HookSkuSpecValue } from '@yh-ui/hooks';
7
9
  export * from '@yh-ui/utils';
8
10
  export { ComponentSize, hexToRgb, rgbToHex } from '@yh-ui/utils';
9
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';
10
15
 
11
16
  /**
12
17
  * YH-UI - Vue 3 Component Library
package/dist/index.d.ts CHANGED
@@ -3,10 +3,15 @@ import { Language } from '@yh-ui/locale';
3
3
  export * from '@yh-ui/locale';
4
4
  export { Language, en, zhCn } from '@yh-ui/locale';
5
5
  export * from '@yh-ui/components';
6
+ export { AiChatMessage, IconProps, Loading, SkuItem, SkuSpec, SkuSpecValue, YhIcon, YhIconProps, createIconComponent } from '@yh-ui/components';
6
7
  export * from '@yh-ui/hooks';
8
+ export { AiChatMessage as HookAiChatMessage, SkuItem as HookSkuItem, SkuSpec as HookSkuSpec, SkuSpecValue as HookSkuSpecValue } from '@yh-ui/hooks';
7
9
  export * from '@yh-ui/utils';
8
10
  export { ComponentSize, hexToRgb, rgbToHex } from '@yh-ui/utils';
9
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';
10
15
 
11
16
  /**
12
17
  * YH-UI - Vue 3 Component Library
package/dist/index.mjs CHANGED
@@ -1,13 +1,17 @@
1
1
  import components__default from '@yh-ui/components';
2
2
  export * from '@yh-ui/components';
3
+ export { Loading, YhIcon, createIconComponent } from '@yh-ui/components';
3
4
  export * from '@yh-ui/hooks';
4
5
  export * from '@yh-ui/utils';
5
6
  export { hexToRgb, rgbToHex } from '@yh-ui/utils';
6
7
  export * from '@yh-ui/theme';
8
+ export { AVAILABLE_COLLECTIONS, COMMON_ICONS, DEFAULT_ENABLED_PRESETS, ICON_COLLECTIONS, Icon as IconifyIcon, YhIcon as IconifyYhIcon, PREFIX_ALIAS, PRESETS, RECOMMENDED_COLLECTIONS, createIconifyComponent, getAllPrefixes, getCollection, getIconData, getPreset, iconExists, parseIconName } from '@yh-ui/icons';
9
+ export * from '@yh-ui/icons/components';
10
+ export { Loading as LoadingIcon, createIconComponent as createPresetIconComponent } from '@yh-ui/icons/components';
7
11
  export * from '@yh-ui/locale';
8
12
  export { en, zhCn } from '@yh-ui/locale';
9
13
 
10
- const version$1 = "1.0.25";
14
+ const version$1 = "1.0.30";
11
15
  const packageJson = {
12
16
  version: version$1};
13
17
 
package/dist/style.css CHANGED
@@ -4,6 +4,10 @@
4
4
  * 主入口文件 —— 仅包含基础主题层
5
5
  * 组件样式由各组件的 Vue SFC <style> 块自行携带
6
6
  */
7
+ /**
8
+ * YH-UI Sass Variables
9
+ * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss,以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
10
+ */
7
11
  /**
8
12
  * YH-UI CSS Variables
9
13
  * 全局 CSS 变量定义 - 业内最佳主题系统
@@ -234,6 +238,7 @@
234
238
  --yh-calendar-cell-radius-small: 6px;
235
239
  --yh-calendar-cell-radius-large: 12px;
236
240
  /* Calendar 颜色 */
241
+ --yh-calendar-day-bg: var(--yh-bg-color);
237
242
  --yh-calendar-primary: var(--yh-color-primary);
238
243
  --yh-calendar-primary-light: rgba(59, 130, 246, 0.1);
239
244
  --yh-calendar-selected-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
@@ -377,6 +382,7 @@ html.dark {
377
382
  --yh-calendar-border-color: rgba(255, 255, 255, 0.08);
378
383
  --yh-calendar-header-bg: rgba(30, 30, 30, 0.95);
379
384
  --yh-calendar-header-border: rgba(255, 255, 255, 0.06);
385
+ --yh-calendar-day-bg: rgba(255, 255, 255, 0.04);
380
386
  --yh-calendar-day-color: var(--yh-text-color-primary);
381
387
  --yh-calendar-weekday-color: var(--yh-text-color-secondary);
382
388
  --yh-calendar-selected-bg: linear-gradient(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yh-ui/yh-ui",
3
- "version": "1.0.25",
3
+ "version": "1.0.30",
4
4
  "description": "YH-UI - A Modern Vue 3 Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -26,11 +26,34 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
+ "scripts": {
30
+ "build": "node ../../scripts/prepare-build-artifacts.mjs yh-ui && unbuild && node ../../scripts/post-build-styles.mjs yh-ui",
31
+ "dev": "unbuild --stub",
32
+ "prepack": "node ../../scripts/prepare-package-manifest.mjs prepare",
33
+ "postpack": "node ../../scripts/prepare-package-manifest.mjs restore"
34
+ },
35
+ "buildArtifacts": {
36
+ "clean": [
37
+ "dist"
38
+ ],
39
+ "placeholders": [
40
+ {
41
+ "path": "dist/full.mjs",
42
+ "contents": "export {}\n"
43
+ },
44
+ {
45
+ "path": "dist/style.css",
46
+ "contents": "/* build placeholder */\n"
47
+ }
48
+ ]
49
+ },
29
50
  "dependencies": {
30
- "@yh-ui/components": "^1.0.25",
31
- "@yh-ui/hooks": "^1.0.25",
32
- "@yh-ui/theme": "^1.0.25",
33
- "@yh-ui/utils": "^1.0.25"
51
+ "@yh-ui/components": "^1.0.30",
52
+ "@yh-ui/hooks": "^1.0.30",
53
+ "@yh-ui/icons": "^1.0.30",
54
+ "@yh-ui/locale": "^1.0.30",
55
+ "@yh-ui/theme": "^1.0.30",
56
+ "@yh-ui/utils": "^1.0.30"
34
57
  },
35
58
  "peerDependencies": {
36
59
  "vue": "^3.5.27"
@@ -52,9 +75,5 @@
52
75
  ],
53
76
  "homepage": "https://1079161148.github.io/yh-ui/",
54
77
  "author": "YH-UI Team",
55
- "license": "MIT",
56
- "scripts": {
57
- "build": "unbuild && node ../../scripts/post-build-styles.mjs yh-ui",
58
- "dev": "unbuild --stub"
59
- }
60
- }
78
+ "license": "MIT"
79
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 YH-UI Team
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.