ai-front-base 0.1.11 → 0.2.0

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 (75) hide show
  1. package/dist/components/AiAside/index.mjs +4 -0
  2. package/dist/components/AiAside/index.vue.mjs +20 -0
  3. package/dist/components/AiAside/types.ts +6 -0
  4. package/dist/components/AiBadge/index.mjs +4 -0
  5. package/dist/components/AiBadge/index.vue.mjs +20 -0
  6. package/dist/components/AiBadge/types.ts +10 -0
  7. package/dist/components/AiBreadcrumb/index.mjs +4 -0
  8. package/dist/components/AiBreadcrumb/index.vue.mjs +20 -0
  9. package/dist/components/AiBreadcrumb/types.ts +7 -0
  10. package/dist/components/AiCheckbox/index.mjs +4 -0
  11. package/dist/components/AiCheckbox/index.vue.mjs +20 -0
  12. package/dist/components/AiCheckbox/types.ts +14 -0
  13. package/dist/components/AiContainer/index.mjs +4 -0
  14. package/dist/components/AiContainer/index.vue.mjs +20 -0
  15. package/dist/components/AiContainer/types.ts +6 -0
  16. package/dist/components/AiDatePicker/index.mjs +4 -0
  17. package/dist/components/AiDatePicker/index.vue.mjs +15 -0
  18. package/dist/components/AiDatePicker/types.ts +17 -0
  19. package/dist/components/AiDialog/index.mjs +4 -0
  20. package/dist/components/AiDialog/index.vue.mjs +20 -0
  21. package/dist/components/AiDialog/types.ts +11 -0
  22. package/dist/components/AiFooter/index.mjs +4 -0
  23. package/dist/components/AiFooter/index.vue.mjs +20 -0
  24. package/dist/components/AiFooter/types.ts +6 -0
  25. package/dist/components/AiHeader/index.mjs +4 -0
  26. package/dist/components/AiHeader/index.vue.mjs +20 -0
  27. package/dist/components/AiHeader/types.ts +6 -0
  28. package/dist/components/AiLoading/index.mjs +5 -0
  29. package/dist/components/AiLoading/types.ts +7 -0
  30. package/dist/components/AiMain/index.mjs +4 -0
  31. package/dist/components/AiMain/index.vue.mjs +20 -0
  32. package/dist/components/AiMain/types.ts +4 -0
  33. package/dist/components/AiMenu/index.mjs +4 -0
  34. package/dist/components/AiMenu/index.vue.mjs +20 -0
  35. package/dist/components/AiMenu/types.ts +9 -0
  36. package/dist/components/AiMessage/index.mjs +5 -0
  37. package/dist/components/AiMessage/types.ts +9 -0
  38. package/dist/components/AiNotification/index.mjs +5 -0
  39. package/dist/components/AiNotification/types.ts +10 -0
  40. package/dist/components/AiPagination/index.mjs +4 -0
  41. package/dist/components/AiPagination/index.vue.mjs +15 -0
  42. package/dist/components/AiPagination/types.ts +9 -0
  43. package/dist/components/AiProgress/index.mjs +4 -0
  44. package/dist/components/AiProgress/index.vue.mjs +15 -0
  45. package/dist/components/AiProgress/types.ts +10 -0
  46. package/dist/components/AiRadio/index.mjs +4 -0
  47. package/dist/components/AiRadio/index.vue.mjs +20 -0
  48. package/dist/components/AiRadio/types.ts +8 -0
  49. package/dist/components/AiSwitch/index.mjs +4 -0
  50. package/dist/components/AiSwitch/index.vue.mjs +15 -0
  51. package/dist/components/AiSwitch/types.ts +9 -0
  52. package/dist/components/AiTabs/index.mjs +4 -0
  53. package/dist/components/AiTabs/index.vue.mjs +20 -0
  54. package/dist/components/AiTabs/types.ts +9 -0
  55. package/dist/components/AiTag/index.mjs +4 -0
  56. package/dist/components/AiTag/index.vue.mjs +20 -0
  57. package/dist/components/AiTag/types.ts +9 -0
  58. package/dist/components/AiTimePicker/index.mjs +4 -0
  59. package/dist/components/AiTimePicker/index.vue.mjs +15 -0
  60. package/dist/components/AiTimePicker/types.ts +16 -0
  61. package/dist/components/AiUpload/index.mjs +4 -0
  62. package/dist/components/AiUpload/index.vue.mjs +20 -0
  63. package/dist/components/AiUpload/types.ts +11 -0
  64. package/dist/components/README.md +36 -28
  65. package/dist/index.mjs +52 -8
  66. package/dist/layouts/government.md +203 -58
  67. package/dist/layouts/union.md +208 -57
  68. package/dist/standards/README.md +45 -0
  69. package/dist/styles/README.md +155 -17
  70. package/dist/styles/blue.scss +68 -4
  71. package/dist/styles/dark.scss +69 -5
  72. package/dist/styles/element-plus-theme.css +52 -0
  73. package/dist/styles/index.css +70 -0
  74. package/dist/styles/light-blue.scss +68 -4
  75. package/package.json +1 -1
@@ -0,0 +1,52 @@
1
+ /* Element Plus 主题覆盖 - 使用ai-front-base主题变量 */
2
+
3
+ :root {
4
+ /* 主色 */
5
+ --el-color-primary: var(--ai-primary);
6
+ --el-color-success: var(--ai-success);
7
+ --el-color-warning: var(--ai-warning);
8
+ --el-color-danger: var(--ai-danger);
9
+ --el-color-info: var(--ai-info);
10
+
11
+ /* 背景色 */
12
+ --el-bg-color: var(--ai-bg-base);
13
+ --el-bg-color-page: var(--ai-bg-light);
14
+ --el-bg-color-overlay: var(--ai-bg-overlay);
15
+
16
+ /* 文字色 */
17
+ --el-text-color-primary: var(--ai-text-primary);
18
+ --el-text-color-regular: var(--ai-text-regular);
19
+ --el-text-color-secondary: var(--ai-text-secondary);
20
+ --el-text-color-placeholder: var(--ai-text-placeholder);
21
+ --el-text-color-disabled: var(--ai-text-disabled);
22
+
23
+ /* 边框色 */
24
+ --el-border-color: var(--ai-border-base);
25
+ --el-border-color-light: var(--ai-border-light);
26
+ --el-border-color-lighter: var(--ai-border-light);
27
+ --el-border-color-extra-light: var(--ai-border-light);
28
+ --el-border-color-dark: var(--ai-border-dark);
29
+ --el-border-color-darker: var(--ai-border-dark);
30
+
31
+ /* 圆角 */
32
+ --el-border-radius-base: var(--ai-radius-base);
33
+ --el-border-radius-small: var(--ai-radius-sm);
34
+ --el-border-radius-round: var(--ai-radius-xl);
35
+
36
+ /* 字号 */
37
+ --el-font-size-extra-small: var(--ai-font-xs);
38
+ --el-font-size-small: var(--ai-font-sm);
39
+ --el-font-size-base: var(--ai-font-base);
40
+ --el-font-size-medium: var(--ai-font-base);
41
+ --el-font-size-large: var(--ai-font-lg);
42
+ --el-font-size-extra-large: var(--ai-font-xl);
43
+
44
+ /* 阴影 */
45
+ --el-box-shadow-light: var(--ai-shadow-sm);
46
+ --el-box-shadow: var(--ai-shadow-base);
47
+ --el-box-shadow-dark: var(--ai-shadow-lg);
48
+
49
+ /* 过渡 */
50
+ --el-transition-duration: var(--ai-transition-base);
51
+ --el-transition-duration-fast: var(--ai-transition-fast);
52
+ }
@@ -1,7 +1,77 @@
1
1
  @import './blue.scss';
2
2
  @import './light-blue.scss';
3
3
  @import './dark.scss';
4
+ @import './element-plus-theme.css';
4
5
 
5
6
  * {
6
7
  box-sizing: border-box;
8
+ }
9
+
10
+ /* 默认主题:如果body未设置data-theme,使用blue主题 */
11
+ body:not([data-theme]) {
12
+ --ai-primary: #1890ff;
13
+ --ai-success: #52c41a;
14
+ --ai-warning: #faad14;
15
+ --ai-danger: #ff4d4f;
16
+ --ai-info: #1890ff;
17
+ --ai-bg-base: #ffffff;
18
+ --ai-bg-light: #fafafa;
19
+ --ai-bg-dark: #f5f5f5;
20
+ --ai-bg-overlay: rgba(0, 0, 0, 0.45);
21
+ --ai-text-primary: #262626;
22
+ --ai-text-regular: #595959;
23
+ --ai-text-secondary: #8c8c8c;
24
+ --ai-text-placeholder: #bfbfbf;
25
+ --ai-text-disabled: #d9d9d9;
26
+ --ai-border-base: #d9d9d9;
27
+ --ai-border-light: #e8e8e8;
28
+ --ai-border-dark: #bfbfbf;
29
+ --ai-link: #1890ff;
30
+ --ai-hover: #40a9ff;
31
+ --ai-active: #096dd9;
32
+ --ai-disabled: #f5f5f5;
33
+ --ai-spacing-xs: 4px;
34
+ --ai-spacing-sm: 8px;
35
+ --ai-spacing-md: 16px;
36
+ --ai-spacing-lg: 24px;
37
+ --ai-spacing-xl: 32px;
38
+ --ai-padding-xs: 4px;
39
+ --ai-padding-sm: 8px;
40
+ --ai-padding-md: 16px;
41
+ --ai-padding-lg: 24px;
42
+ --ai-padding-xl: 32px;
43
+ --ai-margin-xs: 4px;
44
+ --ai-margin-sm: 8px;
45
+ --ai-margin-md: 16px;
46
+ --ai-margin-lg: 24px;
47
+ --ai-margin-xl: 32px;
48
+ --ai-radius-sm: 2px;
49
+ --ai-radius-base: 4px;
50
+ --ai-radius-lg: 8px;
51
+ --ai-radius-xl: 12px;
52
+ --ai-font-xs: 12px;
53
+ --ai-font-sm: 14px;
54
+ --ai-font-base: 16px;
55
+ --ai-font-lg: 18px;
56
+ --ai-font-xl: 20px;
57
+ --ai-line-height-sm: 1.2;
58
+ --ai-line-height-base: 1.5;
59
+ --ai-line-height-lg: 1.8;
60
+ --ai-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
61
+ --ai-shadow-base: 0 4px 8px rgba(0, 0, 0, 0.12);
62
+ --ai-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
63
+ --ai-transition-fast: 0.1s;
64
+ --ai-transition-base: 0.3s;
65
+ --ai-transition-slow: 0.5s;
66
+ }
67
+
68
+ /* 全局基础样式 */
69
+ body {
70
+ margin: 0;
71
+ padding: 0;
72
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
73
+ font-size: var(--ai-font-base);
74
+ line-height: var(--ai-line-height-base);
75
+ color: var(--ai-text-primary);
76
+ background-color: var(--ai-bg-light);
7
77
  }
@@ -1,7 +1,71 @@
1
1
  body[data-theme="light-blue"] {
2
+ // 主色系
2
3
  --ai-primary: #40a9ff;
3
- --ai-bg: #f0f8ff;
4
- --ai-text: #595959;
5
- --ai-border: #d9e9f7;
6
- --ai-radius: 8px;
4
+ --ai-success: #73d13d;
5
+ --ai-warning: #ffc53d;
6
+ --ai-danger: #ff7875;
7
+ --ai-info: #69c0ff;
8
+
9
+ // 背景色 - 以白色为主
10
+ --ai-bg-base: #ffffff;
11
+ --ai-bg-light: #f0f8ff;
12
+ --ai-bg-dark: #e6f4ff;
13
+ --ai-bg-overlay: rgba(0, 0, 0, 0.35);
14
+
15
+ // 文字色
16
+ --ai-text-primary: #262626;
17
+ --ai-text-regular: #595959;
18
+ --ai-text-secondary: #8c8c8c;
19
+ --ai-text-placeholder: #bfbfbf;
20
+ --ai-text-disabled: #d9d9d9;
21
+
22
+ // 边框色
23
+ --ai-border-base: #d9e9f7;
24
+ --ai-border-light: #e6f4ff;
25
+ --ai-border-dark: #bae0ff;
26
+
27
+ // 功能色
28
+ --ai-link: #40a9ff;
29
+ --ai-hover: #69c0ff;
30
+ --ai-active: #1890ff;
31
+ --ai-disabled: #f5f5f5;
32
+
33
+ // 间距
34
+ --ai-spacing-xs: 4px;
35
+ --ai-spacing-sm: 8px;
36
+ --ai-spacing-md: 16px;
37
+ --ai-spacing-lg: 24px;
38
+ --ai-spacing-xl: 32px;
39
+ --ai-padding-xs: 4px;
40
+ --ai-padding-sm: 8px;
41
+ --ai-padding-md: 16px;
42
+ --ai-padding-lg: 24px;
43
+ --ai-padding-xl: 32px;
44
+ --ai-margin-xs: 4px;
45
+ --ai-margin-sm: 8px;
46
+ --ai-margin-md: 16px;
47
+ --ai-margin-lg: 24px;
48
+ --ai-margin-xl: 32px;
49
+
50
+ // 尺寸
51
+ --ai-radius-sm: 4px;
52
+ --ai-radius-base: 8px;
53
+ --ai-radius-lg: 12px;
54
+ --ai-radius-xl: 16px;
55
+ --ai-font-xs: 12px;
56
+ --ai-font-sm: 14px;
57
+ --ai-font-base: 16px;
58
+ --ai-font-lg: 18px;
59
+ --ai-font-xl: 20px;
60
+ --ai-line-height-sm: 1.2;
61
+ --ai-line-height-base: 1.5;
62
+ --ai-line-height-lg: 1.8;
63
+ --ai-shadow-sm: 0 2px 4px rgba(24, 144, 255, 0.08);
64
+ --ai-shadow-base: 0 4px 8px rgba(24, 144, 255, 0.12);
65
+ --ai-shadow-lg: 0 8px 16px rgba(24, 144, 255, 0.16);
66
+
67
+ // 动画
68
+ --ai-transition-fast: 0.1s;
69
+ --ai-transition-base: 0.3s;
70
+ --ai-transition-slow: 0.5s;
7
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-front-base",
3
- "version": "0.1.11",
3
+ "version": "0.2.0",
4
4
  "description": "企业级PC端AI组件库 - 基于Vue3和Element Plus",
5
5
  "license": "ISC",
6
6
  "type": "module",