@yeepay/yee-boss-ui 0.1.13 → 0.1.15

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.
Files changed (39) hide show
  1. package/README.md +245 -17
  2. package/dist/components/PlatformConfigProvider.vue.d.ts +4 -9
  3. package/dist/components/descriptions/YeeDescriptions.vue.d.ts +5 -7
  4. package/dist/components/descriptions/index.d.ts +1 -1
  5. package/dist/components/descriptions/types.d.ts +25 -1
  6. package/dist/components/ellipsis-text/YeeEllipsisText.vue.d.ts +2 -8
  7. package/dist/components/ellipsis-text/index.d.ts +1 -1
  8. package/dist/components/ellipsis-text/types.d.ts +12 -1
  9. package/dist/components/file-preview/YeeFilePreview.vue.d.ts +3 -3
  10. package/dist/components/file-preview/index.d.ts +1 -1
  11. package/dist/components/file-preview/types.d.ts +38 -0
  12. package/dist/components/file-upload/YeeFileUpload.vue.d.ts +5 -14
  13. package/dist/components/file-upload/index.d.ts +1 -1
  14. package/dist/components/file-upload/types.d.ts +51 -0
  15. package/dist/components/form/YeeForm.vue.d.ts +2 -2
  16. package/dist/components/form/component-map.d.ts +9 -0
  17. package/dist/components/form/form-api.d.ts +10 -4
  18. package/dist/components/form/index.d.ts +1 -1
  19. package/dist/components/form/types.d.ts +114 -5
  20. package/dist/components/grid/YeeGrid.vue.d.ts +4 -110
  21. package/dist/components/grid/index.d.ts +2 -2
  22. package/dist/components/grid/types.d.ts +40 -3
  23. package/dist/components/grid/use-yee-grid.d.ts +6 -3
  24. package/dist/components/grid/yee-grid-api.d.ts +11 -3
  25. package/dist/components/modal/YeeModal.vue.d.ts +3 -14
  26. package/dist/components/modal/index.d.ts +3 -2
  27. package/dist/components/modal/types.d.ts +64 -2
  28. package/dist/components/page/YeePage.vue.d.ts +2 -8
  29. package/dist/components/page/index.d.ts +1 -1
  30. package/dist/components/page/types.d.ts +22 -0
  31. package/dist/components/platform-config-provider/types.d.ts +12 -0
  32. package/dist/components/select/YeeSelect.vue.d.ts +15 -13
  33. package/dist/components/select/index.d.ts +3 -2
  34. package/dist/components/select/types.d.ts +115 -13
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +1104 -1032
  37. package/dist/style.css +1 -1
  38. package/dist/theme/types.d.ts +65 -0
  39. package/package.json +4 -3
@@ -1,68 +1,133 @@
1
+ /** 平台支持的主题模式。 */
1
2
  export type PlatformThemeMode = 'light' | 'dark';
3
+ /** 平台完整主题 Token;颜色值支持任意合法 CSS 颜色。 */
2
4
  export interface PlatformThemeTokens {
5
+ /** 强调区域背景色。 */
3
6
  accent: string;
7
+ /** 较深的强调区域背景色。 */
4
8
  accentDark: string;
9
+ /** 最深的强调区域背景色。 */
5
10
  accentDarker: string;
11
+ /** 强调区域前景色。 */
6
12
  accentForeground: string;
13
+ /** 强调区域悬浮背景色。 */
7
14
  accentHover: string;
15
+ /** 较浅的强调区域背景色。 */
8
16
  accentLighter: string;
17
+ /** 页面基础背景色。 */
9
18
  background: string;
19
+ /** 页面深层背景色。 */
10
20
  backgroundDeep: string;
21
+ /** 默认边框颜色。 */
11
22
  border: string;
23
+ /** 次级边框颜色。 */
12
24
  borderSecondary: string;
25
+ /** 卡片背景色。 */
13
26
  card: string;
27
+ /** 卡片前景色。 */
14
28
  cardForeground: string;
29
+ /** 表单控件基础高度,单位 px。 */
15
30
  controlHeight: number;
31
+ /** 危险操作主色。 */
16
32
  destructive: string;
33
+ /** 危险状态背景色。 */
17
34
  destructiveBackground: string;
35
+ /** 危险状态前景色。 */
18
36
  destructiveForeground: string;
37
+ /** 全局字体族。 */
19
38
  fontFamily: string;
39
+ /** 默认字号,单位 px。 */
20
40
  fontSize: number;
41
+ /** 大号字号,单位 px。 */
21
42
  fontSizeLG: number;
43
+ /** 根节点字号,单位 px。 */
22
44
  fontSizeRoot: number;
45
+ /** 小号字号,单位 px。 */
23
46
  fontSizeSM: number;
47
+ /** 默认前景色。 */
24
48
  foreground: string;
49
+ /** 禁用状态前景色。 */
25
50
  foregroundDisabled: string;
51
+ /** 页头背景色。 */
26
52
  header: string;
53
+ /** 强调层级较高的中性背景色。 */
27
54
  heavy: string;
55
+ /** 强调层级较高区域的前景色。 */
28
56
  heavyForeground: string;
57
+ /** 信息提示背景色。 */
29
58
  info: string;
59
+ /** 信息提示前景色。 */
30
60
  infoForeground: string;
61
+ /** 输入控件边框色。 */
31
62
  input: string;
63
+ /** 输入控件背景色。 */
32
64
  inputBackground: string;
65
+ /** 输入控件占位文字颜色。 */
33
66
  inputPlaceholder: string;
67
+ /** 默认行高,无单位。 */
34
68
  lineHeight: number;
69
+ /** 弱化区域背景色。 */
35
70
  muted: string;
71
+ /** 弱化区域前景色。 */
36
72
  mutedForeground: string;
73
+ /** 弹层遮罩背景色。 */
37
74
  overlay: string;
75
+ /** 弹层遮罩内容色。 */
38
76
  overlayContent: string;
77
+ /** 浮层背景色。 */
39
78
  popover: string;
79
+ /** 浮层前景色。 */
40
80
  popoverForeground: string;
81
+ /** 通用浮层 z-index 层级。 */
41
82
  popupZIndex: number;
83
+ /** 品牌主色。 */
42
84
  primary: string;
85
+ /** 主色按下状态。 */
43
86
  primaryActive: string;
87
+ /** 主色区域前景色。 */
44
88
  primaryForeground: string;
89
+ /** 主色悬浮状态。 */
45
90
  primaryHover: string;
91
+ /** 默认圆角,单位 px。 */
46
92
  radius: number;
93
+ /** 大号圆角,单位 px。 */
47
94
  radiusLG: number;
95
+ /** 小号圆角,单位 px。 */
48
96
  radiusSM: number;
97
+ /** 聚焦轮廓颜色。 */
49
98
  ring: string;
99
+ /** 次级区域背景色。 */
50
100
  secondary: string;
101
+ /** 次级区域前景色。 */
51
102
  secondaryForeground: string;
103
+ /** 默认 CSS 阴影值。 */
52
104
  shadow: string;
105
+ /** 次级 CSS 阴影值。 */
53
106
  shadowSecondary: string;
107
+ /** 侧边栏背景色。 */
54
108
  sidebar: string;
109
+ /** 侧边栏深层背景色。 */
55
110
  sidebarDeep: string;
111
+ /** 成功状态主色。 */
56
112
  success: string;
113
+ /** 成功状态前景色。 */
57
114
  successForeground: string;
115
+ /** 警告状态主色。 */
58
116
  warning: string;
117
+ /** 警告状态前景色。 */
59
118
  warningForeground: string;
60
119
  }
120
+ /** 平台主题输入,可覆盖指定模式下的部分 Token。 */
61
121
  export interface PlatformTheme {
122
+ /** 主题模式,默认 light。 */
62
123
  mode?: PlatformThemeMode;
124
+ /** 需要覆盖的主题 Token。 */
63
125
  tokens?: Partial<PlatformThemeTokens>;
64
126
  }
127
+ /** 解析默认值和自定义覆盖后的只读主题。 */
65
128
  export interface ResolvedPlatformTheme {
129
+ /** 最终生效的主题模式。 */
66
130
  readonly mode: PlatformThemeMode;
131
+ /** 最终生效的完整只读 Token。 */
67
132
  readonly tokens: Readonly<PlatformThemeTokens>;
68
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeepay/yee-boss-ui",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "运营后台平台公共 UI 与主题基础能力",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -71,10 +71,11 @@
71
71
  "scripts": {
72
72
  "build": "vite build",
73
73
  "build:example": "vite build --config examples/vite.config.ts",
74
- "check": "pnpm typecheck && pnpm test && pnpm build && pnpm publint",
74
+ "check": "pnpm typecheck && pnpm test && pnpm build && pnpm typecheck:public && pnpm publint",
75
75
  "example": "vite --config examples/vite.config.ts",
76
76
  "publint": "publint",
77
77
  "test": "vitest run",
78
- "typecheck": "vue-tsc --noEmit"
78
+ "typecheck": "vue-tsc --noEmit",
79
+ "typecheck:public": "vue-tsc --noEmit -p tsconfig.public.json"
79
80
  }
80
81
  }