@yeepay/yee-boss-ui 0.1.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.
- package/README.md +155 -0
- package/dist/components/PlatformConfigProvider.vue.d.ts +23 -0
- package/dist/components/form/YeeForm.vue.d.ts +14 -0
- package/dist/components/form/form-api.d.ts +14 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/types.d.ts +28 -0
- package/dist/components/grid/YeeGrid.vue.d.ts +134 -0
- package/dist/components/grid/index.d.ts +4 -0
- package/dist/components/grid/types.d.ts +42 -0
- package/dist/components/grid/use-yee-grid.d.ts +5 -0
- package/dist/components/grid/vxe-init.d.ts +1 -0
- package/dist/components/grid/yee-grid-api.d.ts +18 -0
- package/dist/components/page/YeePage.vue.d.ts +25 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/types.d.ts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +479 -0
- package/dist/style.css +1 -0
- package/dist/tailwind-preset.d.ts +198 -0
- package/dist/tailwind-preset.js +155 -0
- package/dist/theme/ant-theme.d.ts +3 -0
- package/dist/theme/context.d.ts +4 -0
- package/dist/theme/css-variables.d.ts +3 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/tokens.d.ts +4 -0
- package/dist/theme/types.d.ts +68 -0
- package/dist/theme.css +126 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +8 -0
- package/dist/tokens-Dj_CxJpe.js +235 -0
- package/package.json +77 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { theme as o } from "ant-design-vue";
|
|
2
|
+
function t(r) {
|
|
3
|
+
const { tokens: e } = r;
|
|
4
|
+
return {
|
|
5
|
+
algorithm: r.mode === "dark" ? o.darkAlgorithm : o.defaultAlgorithm,
|
|
6
|
+
token: {
|
|
7
|
+
borderRadius: e.radius,
|
|
8
|
+
borderRadiusLG: e.radiusLG,
|
|
9
|
+
borderRadiusSM: e.radiusSM,
|
|
10
|
+
boxShadow: e.shadow,
|
|
11
|
+
boxShadowSecondary: e.shadowSecondary,
|
|
12
|
+
colorBgBase: e.background,
|
|
13
|
+
colorBgContainer: e.card,
|
|
14
|
+
colorBgElevated: e.popover,
|
|
15
|
+
colorBgLayout: e.backgroundDeep,
|
|
16
|
+
colorBgMask: e.overlay,
|
|
17
|
+
colorBorder: e.border,
|
|
18
|
+
colorBorderSecondary: e.borderSecondary,
|
|
19
|
+
colorError: e.destructive,
|
|
20
|
+
colorErrorBg: e.destructiveBackground,
|
|
21
|
+
colorFill: e.accent,
|
|
22
|
+
colorFillSecondary: e.accentHover,
|
|
23
|
+
colorInfo: e.primary,
|
|
24
|
+
colorPrimary: e.primary,
|
|
25
|
+
colorPrimaryActive: e.primaryActive,
|
|
26
|
+
colorPrimaryHover: e.primaryHover,
|
|
27
|
+
colorSuccess: e.success,
|
|
28
|
+
colorText: e.foreground,
|
|
29
|
+
colorTextBase: e.foreground,
|
|
30
|
+
colorTextDisabled: e.foregroundDisabled,
|
|
31
|
+
colorTextPlaceholder: e.inputPlaceholder,
|
|
32
|
+
colorTextSecondary: e.mutedForeground,
|
|
33
|
+
colorWarning: e.warning,
|
|
34
|
+
controlHeight: e.controlHeight,
|
|
35
|
+
fontFamily: e.fontFamily,
|
|
36
|
+
fontSize: e.fontSize,
|
|
37
|
+
fontSizeLG: e.fontSizeLG,
|
|
38
|
+
fontSizeSM: e.fontSizeSM,
|
|
39
|
+
lineHeight: e.lineHeight,
|
|
40
|
+
zIndexPopupBase: e.popupZIndex
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function l(r) {
|
|
45
|
+
const { tokens: e } = r;
|
|
46
|
+
return {
|
|
47
|
+
"--yee-accent": e.accent,
|
|
48
|
+
"--yee-accent-dark": e.accentDark,
|
|
49
|
+
"--yee-accent-darker": e.accentDarker,
|
|
50
|
+
"--yee-accent-foreground": e.accentForeground,
|
|
51
|
+
"--yee-accent-hover": e.accentHover,
|
|
52
|
+
"--yee-accent-lighter": e.accentLighter,
|
|
53
|
+
"--yee-background": e.background,
|
|
54
|
+
"--yee-background-deep": e.backgroundDeep,
|
|
55
|
+
"--yee-border": e.border,
|
|
56
|
+
"--yee-border-secondary": e.borderSecondary,
|
|
57
|
+
"--yee-card": e.card,
|
|
58
|
+
"--yee-card-foreground": e.cardForeground,
|
|
59
|
+
"--yee-control-height": `${e.controlHeight}px`,
|
|
60
|
+
"--yee-destructive": e.destructive,
|
|
61
|
+
"--yee-destructive-background": e.destructiveBackground,
|
|
62
|
+
"--yee-destructive-foreground": e.destructiveForeground,
|
|
63
|
+
"--yee-font-family": e.fontFamily,
|
|
64
|
+
"--yee-font-size": `${e.fontSize}px`,
|
|
65
|
+
"--yee-font-size-lg": `${e.fontSizeLG}px`,
|
|
66
|
+
"--yee-font-size-root": `${e.fontSizeRoot}px`,
|
|
67
|
+
"--yee-font-size-sm": `${e.fontSizeSM}px`,
|
|
68
|
+
"--yee-foreground": e.foreground,
|
|
69
|
+
"--yee-foreground-disabled": e.foregroundDisabled,
|
|
70
|
+
"--yee-header": e.header,
|
|
71
|
+
"--yee-heavy": e.heavy,
|
|
72
|
+
"--yee-heavy-foreground": e.heavyForeground,
|
|
73
|
+
"--yee-info": e.info,
|
|
74
|
+
"--yee-info-foreground": e.infoForeground,
|
|
75
|
+
"--yee-input": e.input,
|
|
76
|
+
"--yee-input-background": e.inputBackground,
|
|
77
|
+
"--yee-input-placeholder": e.inputPlaceholder,
|
|
78
|
+
"--yee-line-height": String(e.lineHeight),
|
|
79
|
+
"--yee-muted": e.muted,
|
|
80
|
+
"--yee-muted-foreground": e.mutedForeground,
|
|
81
|
+
"--yee-overlay": e.overlay,
|
|
82
|
+
"--yee-overlay-content": e.overlayContent,
|
|
83
|
+
"--yee-popover": e.popover,
|
|
84
|
+
"--yee-popover-foreground": e.popoverForeground,
|
|
85
|
+
"--yee-popup-z-index": String(e.popupZIndex),
|
|
86
|
+
"--yee-primary": e.primary,
|
|
87
|
+
"--yee-primary-active": e.primaryActive,
|
|
88
|
+
"--yee-primary-foreground": e.primaryForeground,
|
|
89
|
+
"--yee-primary-hover": e.primaryHover,
|
|
90
|
+
"--yee-radius": `${e.radius}px`,
|
|
91
|
+
"--yee-radius-lg": `${e.radiusLG}px`,
|
|
92
|
+
"--yee-radius-sm": `${e.radiusSM}px`,
|
|
93
|
+
"--yee-ring": e.ring,
|
|
94
|
+
"--yee-secondary": e.secondary,
|
|
95
|
+
"--yee-secondary-foreground": e.secondaryForeground,
|
|
96
|
+
"--yee-shadow": e.shadow,
|
|
97
|
+
"--yee-shadow-secondary": e.shadowSecondary,
|
|
98
|
+
"--yee-sidebar": e.sidebar,
|
|
99
|
+
"--yee-sidebar-deep": e.sidebarDeep,
|
|
100
|
+
"--yee-success": e.success,
|
|
101
|
+
"--yee-success-foreground": e.successForeground,
|
|
102
|
+
"--yee-warning": e.warning,
|
|
103
|
+
"--yee-warning-foreground": e.warningForeground,
|
|
104
|
+
colorScheme: r.mode
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const n = {
|
|
108
|
+
controlHeight: 32,
|
|
109
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
110
|
+
fontSize: 14,
|
|
111
|
+
fontSizeLG: 16,
|
|
112
|
+
fontSizeRoot: 16,
|
|
113
|
+
fontSizeSM: 12,
|
|
114
|
+
lineHeight: 1.5715,
|
|
115
|
+
popupZIndex: 999,
|
|
116
|
+
radius: 8,
|
|
117
|
+
radiusLG: 12,
|
|
118
|
+
radiusSM: 4
|
|
119
|
+
}, s = Object.freeze({
|
|
120
|
+
...n,
|
|
121
|
+
accent: "hsl(240 5% 96%)",
|
|
122
|
+
accentDark: "hsl(216 14% 93%)",
|
|
123
|
+
accentDarker: "hsl(216 11% 91%)",
|
|
124
|
+
accentForeground: "hsl(240 6% 10%)",
|
|
125
|
+
accentHover: "hsl(200 10% 90%)",
|
|
126
|
+
accentLighter: "hsl(240 0% 98%)",
|
|
127
|
+
background: "hsl(0 0% 100%)",
|
|
128
|
+
backgroundDeep: "hsl(216 20.11% 95.47%)",
|
|
129
|
+
border: "hsl(240 5.9% 90%)",
|
|
130
|
+
borderSecondary: "hsl(240 5% 94%)",
|
|
131
|
+
card: "hsl(0 0% 100%)",
|
|
132
|
+
cardForeground: "hsl(222.2 84% 4.9%)",
|
|
133
|
+
destructive: "hsl(359.33 100% 65.1%)",
|
|
134
|
+
destructiveBackground: "hsl(4 100% 97%)",
|
|
135
|
+
destructiveForeground: "hsl(0 0% 98%)",
|
|
136
|
+
foreground: "hsl(210 6% 21%)",
|
|
137
|
+
foregroundDisabled: "hsl(210 6% 21% / 35%)",
|
|
138
|
+
header: "hsl(0 0% 100%)",
|
|
139
|
+
heavy: "hsl(192 9.43% 89.61%)",
|
|
140
|
+
heavyForeground: "hsl(240 6% 10%)",
|
|
141
|
+
info: "hsl(240 5% 96%)",
|
|
142
|
+
infoForeground: "hsl(220 4% 58%)",
|
|
143
|
+
input: "hsl(240 5.88% 90%)",
|
|
144
|
+
inputBackground: "hsl(0 0% 100%)",
|
|
145
|
+
inputPlaceholder: "hsl(217 10.6% 65%)",
|
|
146
|
+
muted: "hsl(240 4.8% 95.9%)",
|
|
147
|
+
mutedForeground: "hsl(240 3.8% 46.1%)",
|
|
148
|
+
overlay: "hsl(0 0% 0% / 45%)",
|
|
149
|
+
overlayContent: "hsl(0 0% 95% / 45%)",
|
|
150
|
+
popover: "hsl(0 0% 100%)",
|
|
151
|
+
popoverForeground: "hsl(222.2 84% 4.9%)",
|
|
152
|
+
primary: "hsl(212 100% 45%)",
|
|
153
|
+
primaryActive: "hsl(212 100% 36%)",
|
|
154
|
+
primaryForeground: "hsl(0 0% 98%)",
|
|
155
|
+
primaryHover: "hsl(212 100% 55%)",
|
|
156
|
+
ring: "hsl(212 100% 45%)",
|
|
157
|
+
secondary: "hsl(240 5% 96%)",
|
|
158
|
+
secondaryForeground: "hsl(240 6% 10%)",
|
|
159
|
+
shadow: "0 6px 16px 0 rgb(0 0 0 / 8%)",
|
|
160
|
+
shadowSecondary: "0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%)",
|
|
161
|
+
sidebar: "hsl(0 0% 100%)",
|
|
162
|
+
sidebarDeep: "hsl(0 0% 100%)",
|
|
163
|
+
success: "hsl(144 57% 58%)",
|
|
164
|
+
successForeground: "hsl(0 0% 98%)",
|
|
165
|
+
warning: "hsl(42 84% 61%)",
|
|
166
|
+
warningForeground: "hsl(0 0% 98%)"
|
|
167
|
+
}), a = Object.freeze({
|
|
168
|
+
...n,
|
|
169
|
+
accent: "hsl(216 5% 19%)",
|
|
170
|
+
accentDark: "hsl(240 0% 22%)",
|
|
171
|
+
accentDarker: "hsl(240 0% 26%)",
|
|
172
|
+
accentForeground: "hsl(0 0% 98%)",
|
|
173
|
+
accentHover: "hsl(216 5% 24%)",
|
|
174
|
+
accentLighter: "hsl(216 5% 12%)",
|
|
175
|
+
background: "hsl(222.34 10.43% 12.27%)",
|
|
176
|
+
backgroundDeep: "hsl(220 13.06% 9%)",
|
|
177
|
+
border: "hsl(240 3.7% 22%)",
|
|
178
|
+
borderSecondary: "hsl(240 3.7% 18%)",
|
|
179
|
+
card: "hsl(222.34 10.43% 12.27%)",
|
|
180
|
+
cardForeground: "hsl(210 40% 98%)",
|
|
181
|
+
destructive: "hsl(359.21 68.47% 56.47%)",
|
|
182
|
+
destructiveBackground: "hsl(353 41% 12%)",
|
|
183
|
+
destructiveForeground: "hsl(0 0% 98%)",
|
|
184
|
+
foreground: "hsl(0 0% 95%)",
|
|
185
|
+
foregroundDisabled: "hsl(0 0% 95% / 30%)",
|
|
186
|
+
header: "hsl(222.34 10.43% 12.27%)",
|
|
187
|
+
heavy: "hsl(216 5% 24%)",
|
|
188
|
+
heavyForeground: "hsl(0 0% 98%)",
|
|
189
|
+
info: "hsl(180 1.54% 12.75%)",
|
|
190
|
+
infoForeground: "hsl(220 4% 58%)",
|
|
191
|
+
input: "hsl(0 0% 100% / 10%)",
|
|
192
|
+
inputBackground: "hsl(0 0% 100% / 5%)",
|
|
193
|
+
inputPlaceholder: "hsl(218 11% 65%)",
|
|
194
|
+
muted: "hsl(240 3.7% 15.9%)",
|
|
195
|
+
mutedForeground: "hsl(240 5% 64.9%)",
|
|
196
|
+
overlay: "hsl(0 0% 0% / 40%)",
|
|
197
|
+
overlayContent: "hsl(0 0% 0% / 40%)",
|
|
198
|
+
popover: "hsl(0 0% 14.2%)",
|
|
199
|
+
popoverForeground: "hsl(210 40% 98%)",
|
|
200
|
+
primary: "hsl(212 100% 45%)",
|
|
201
|
+
primaryActive: "hsl(212 100% 65%)",
|
|
202
|
+
primaryForeground: "hsl(0 0% 98%)",
|
|
203
|
+
primaryHover: "hsl(212 100% 55%)",
|
|
204
|
+
ring: "hsl(212 100% 55%)",
|
|
205
|
+
secondary: "hsl(240 5% 17%)",
|
|
206
|
+
secondaryForeground: "hsl(0 0% 98%)",
|
|
207
|
+
shadow: "0 6px 16px 0 rgb(0 0 0 / 32%)",
|
|
208
|
+
shadowSecondary: "0 3px 6px -4px rgb(0 0 0 / 48%), 0 6px 16px 0 rgb(0 0 0 / 32%)",
|
|
209
|
+
sidebar: "hsl(222.34 10.43% 12.27%)",
|
|
210
|
+
sidebarDeep: "hsl(220 13.06% 9%)",
|
|
211
|
+
success: "hsl(144 57% 58%)",
|
|
212
|
+
successForeground: "hsl(0 0% 98%)",
|
|
213
|
+
warning: "hsl(42 84% 61%)",
|
|
214
|
+
warningForeground: "hsl(0 0% 98%)"
|
|
215
|
+
}), d = {
|
|
216
|
+
dark: a,
|
|
217
|
+
light: s
|
|
218
|
+
};
|
|
219
|
+
function i(r = {}) {
|
|
220
|
+
const e = r.mode ?? "light";
|
|
221
|
+
return Object.freeze({
|
|
222
|
+
mode: e,
|
|
223
|
+
tokens: Object.freeze({
|
|
224
|
+
...d[e],
|
|
225
|
+
...r.tokens
|
|
226
|
+
})
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
export {
|
|
230
|
+
l as a,
|
|
231
|
+
a as d,
|
|
232
|
+
s as l,
|
|
233
|
+
i as r,
|
|
234
|
+
t
|
|
235
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yeepay/yee-boss-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "运营后台平台公共 UI 与主题基础能力",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"module": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./tailwind-preset": {
|
|
19
|
+
"types": "./dist/tailwind-preset.d.ts",
|
|
20
|
+
"import": "./dist/tailwind-preset.js"
|
|
21
|
+
},
|
|
22
|
+
"./theme.css": "./dist/theme.css",
|
|
23
|
+
"./theme": {
|
|
24
|
+
"types": "./dist/theme.d.ts",
|
|
25
|
+
"import": "./dist/theme.js"
|
|
26
|
+
},
|
|
27
|
+
"./style.css": "./dist/style.css"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"**/*.css"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "vite build",
|
|
34
|
+
"check": "pnpm typecheck && pnpm test && pnpm build && pnpm publint",
|
|
35
|
+
"prepack": "pnpm check",
|
|
36
|
+
"publint": "publint",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"typecheck": "vue-tsc --noEmit"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"ant-design-vue": "^4.2.0",
|
|
42
|
+
"vue": "^3.5.0",
|
|
43
|
+
"vxe-pc-ui": "^4.12.0",
|
|
44
|
+
"vxe-table": "^4.17.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/node": "^24.10.9",
|
|
48
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
49
|
+
"@vue/test-utils": "^2.4.6",
|
|
50
|
+
"ant-design-vue": "^4.2.6",
|
|
51
|
+
"happy-dom": "^17.6.3",
|
|
52
|
+
"publint": "^0.3.17",
|
|
53
|
+
"sass": "^1.83.0",
|
|
54
|
+
"typescript": "~5.9.3",
|
|
55
|
+
"vite": "^7.3.1",
|
|
56
|
+
"vite-plugin-dts": "^4.5.4",
|
|
57
|
+
"vitest": "^3.2.4",
|
|
58
|
+
"vue": "3.5.27",
|
|
59
|
+
"vue-tsc": "^3.2.3",
|
|
60
|
+
"vxe-pc-ui": "4.12.12",
|
|
61
|
+
"vxe-table": "4.17.46"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=20.19.0",
|
|
65
|
+
"pnpm": ">=10.0.0"
|
|
66
|
+
},
|
|
67
|
+
"packageManager": "pnpm@10.28.1",
|
|
68
|
+
"pnpm": {
|
|
69
|
+
"overrides": {
|
|
70
|
+
"@vxe-ui/core": "4.3.1"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"publishConfig": {
|
|
74
|
+
"access": "public",
|
|
75
|
+
"registry": "https://registry.npmjs.org/"
|
|
76
|
+
}
|
|
77
|
+
}
|