benz-ui 1.0.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 ADDED
@@ -0,0 +1,25 @@
1
+ # BZ-UI
2
+
3
+ This template should help get you started developing with Vue 3 in Vite.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ [VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8
+
9
+ # 全局
10
+ ```sh
11
+ import BZUI from '@/bz-ui/dist/bz-ui.es.js'
12
+
13
+ const app = createApp(App)
14
+
15
+ app.use(BZUI)
16
+ ```
17
+
18
+
19
+ # 局部
20
+
21
+ ```sh
22
+ import { Zxxx } from '../../../packages/z-ui/dist/z-ui.es.js'
23
+ <Zxxx/>
24
+ ```
25
+
@@ -0,0 +1,45 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ let vue = require("vue");
6
+ //#endregion
7
+ //#region src/components/button.vue
8
+ var button_default = /* @__PURE__ */ (0, vue.defineComponent)({
9
+ name: "demo-component",
10
+ __name: "button",
11
+ setup(__props) {
12
+ return (_ctx, _cache) => {
13
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", null, "component-button");
14
+ };
15
+ }
16
+ });
17
+ //#endregion
18
+ //#region src/components/main.vue
19
+ var main_default = /* @__PURE__ */ (0, vue.defineComponent)({
20
+ name: "demo-component",
21
+ __name: "main",
22
+ setup(__props) {
23
+ return (_ctx, _cache) => {
24
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", null, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("h1", null, "demo-component", -1)])]);
25
+ };
26
+ }
27
+ });
28
+ //#endregion
29
+ //#region src/index.ts
30
+ var components = {
31
+ ZButton: button_default,
32
+ ZDemo: main_default
33
+ };
34
+ var install = (app) => {
35
+ for (const [name, component] of Object.entries(components)) app.component(name, component);
36
+ };
37
+ var plugin = { install };
38
+ //#endregion
39
+ exports.ZButton = button_default;
40
+ exports.ZDemo = main_default;
41
+ exports.components = components;
42
+ exports.default = plugin;
43
+ exports.install = install;
44
+
45
+ //# sourceMappingURL=bz-ui.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bz-ui.cjs.js","names":[],"sources":["../src/components/button.vue","../src/components/button.vue","../src/components/main.vue","../src/components/main.vue","../src/index.ts"],"sourcesContent":["<template>\n <div>component-button</div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n<style lang=\"less\" scoped></style>\n","<template>\n <div>component-button</div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n<style lang=\"less\" scoped></style>\n","<template>\n <div>\n <h1>demo-component</h1>\n </div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n","<template>\n <div>\n <h1>demo-component</h1>\n </div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n","import type { App, Plugin } from 'vue'\nimport { ZButton, ZDemo } from './components'\n\n// 组件对象集合\nexport const components = {\n ZButton,\n ZDemo\n}\n\n// 插件安装函数\nexport const install: Plugin['install'] = (app: App) => {\n for (const [name, component] of Object.entries(components)) {\n app.component(name, component)\n }\n}\n\n// 按需导出单个组件\nexport { ZButton, ZDemo }\n\n// 默认导出(用于app.use())\nconst plugin: Plugin = { install }\nexport default plugin "],"mappings":";;;;;;;;;;;;4DAC6B,OAAA,MAAtB,mBAAgB;;;;;;;;;;;4DEEf,OAAA,MAAA,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,EAAA,GAAA,IAAA,oBADmB,MAAA,MAAnB,kBAAc,GAAA,CAAA,EAAA,CAAA;;;;;;AEEtB,IAAa,aAAa;CACxB,SAAA;CACA,OAAA;CACD;AAGD,IAAa,WAA8B,QAAa;AACtD,MAAK,MAAM,CAAC,MAAM,cAAc,OAAO,QAAQ,WAAW,CACxD,KAAI,UAAU,MAAM,UAAU;;AAQlC,IAAM,SAAiB,EAAE,SAAS"}
@@ -0,0 +1,37 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, openBlock } from "vue";
2
+ //#endregion
3
+ //#region src/components/button.vue
4
+ var button_default = /* @__PURE__ */ defineComponent({
5
+ name: "demo-component",
6
+ __name: "button",
7
+ setup(__props) {
8
+ return (_ctx, _cache) => {
9
+ return openBlock(), createElementBlock("div", null, "component-button");
10
+ };
11
+ }
12
+ });
13
+ //#endregion
14
+ //#region src/components/main.vue
15
+ var main_default = /* @__PURE__ */ defineComponent({
16
+ name: "demo-component",
17
+ __name: "main",
18
+ setup(__props) {
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createElementBlock("div", null, [..._cache[0] || (_cache[0] = [createElementVNode("h1", null, "demo-component", -1)])]);
21
+ };
22
+ }
23
+ });
24
+ //#endregion
25
+ //#region src/index.ts
26
+ var components = {
27
+ ZButton: button_default,
28
+ ZDemo: main_default
29
+ };
30
+ var install = (app) => {
31
+ for (const [name, component] of Object.entries(components)) app.component(name, component);
32
+ };
33
+ var plugin = { install };
34
+ //#endregion
35
+ export { button_default as ZButton, main_default as ZDemo, components, plugin as default, install };
36
+
37
+ //# sourceMappingURL=bz-ui.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bz-ui.es.js","names":[],"sources":["../src/components/button.vue","../src/components/button.vue","../src/components/main.vue","../src/components/main.vue","../src/index.ts"],"sourcesContent":["<template>\n <div>component-button</div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n<style lang=\"less\" scoped></style>\n","<template>\n <div>component-button</div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n<style lang=\"less\" scoped></style>\n","<template>\n <div>\n <h1>demo-component</h1>\n </div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n","<template>\n <div>\n <h1>demo-component</h1>\n </div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n","import type { App, Plugin } from 'vue'\nimport { ZButton, ZDemo } from './components'\n\n// 组件对象集合\nexport const components = {\n ZButton,\n ZDemo\n}\n\n// 插件安装函数\nexport const install: Plugin['install'] = (app: App) => {\n for (const [name, component] of Object.entries(components)) {\n app.component(name, component)\n }\n}\n\n// 按需导出单个组件\nexport { ZButton, ZDemo }\n\n// 默认导出(用于app.use())\nconst plugin: Plugin = { install }\nexport default plugin "],"mappings":";;;;;;;;uBACE,mBAA2B,OAAA,MAAtB,mBAAgB;;;;;;;;;;;uBEArB,mBAEM,OAAA,MAAA,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CADJ,mBAAuB,MAAA,MAAnB,kBAAc,GAAA,CAAA,EAAA,CAAA;;;;;;AEEtB,IAAa,aAAa;CACxB,SAAA;CACA,OAAA;CACD;AAGD,IAAa,WAA8B,QAAa;AACtD,MAAK,MAAM,CAAC,MAAM,cAAc,OAAO,QAAQ,WAAW,CACxD,KAAI,UAAU,MAAM,UAAU;;AAQlC,IAAM,SAAiB,EAAE,SAAS"}
@@ -0,0 +1,48 @@
1
+ (function(global, factory) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.ZUI = {}, global.Vue));
3
+ })(this, function(exports, vue) {
4
+ Object.defineProperties(exports, {
5
+ __esModule: { value: true },
6
+ [Symbol.toStringTag]: { value: "Module" }
7
+ });
8
+ //#endregion
9
+ //#region src/components/button.vue
10
+ var button_default = /* @__PURE__ */ (0, vue.defineComponent)({
11
+ name: "demo-component",
12
+ __name: "button",
13
+ setup(__props) {
14
+ return (_ctx, _cache) => {
15
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", null, "component-button");
16
+ };
17
+ }
18
+ });
19
+ //#endregion
20
+ //#region src/components/main.vue
21
+ var main_default = /* @__PURE__ */ (0, vue.defineComponent)({
22
+ name: "demo-component",
23
+ __name: "main",
24
+ setup(__props) {
25
+ return (_ctx, _cache) => {
26
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", null, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("h1", null, "demo-component", -1)])]);
27
+ };
28
+ }
29
+ });
30
+ //#endregion
31
+ //#region src/index.ts
32
+ var components = {
33
+ ZButton: button_default,
34
+ ZDemo: main_default
35
+ };
36
+ var install = (app) => {
37
+ for (const [name, component] of Object.entries(components)) app.component(name, component);
38
+ };
39
+ var plugin = { install };
40
+ //#endregion
41
+ exports.ZButton = button_default;
42
+ exports.ZDemo = main_default;
43
+ exports.components = components;
44
+ exports.default = plugin;
45
+ exports.install = install;
46
+ });
47
+
48
+ //# sourceMappingURL=bz-ui.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bz-ui.umd.js","names":[],"sources":["../src/components/button.vue","../src/components/button.vue","../src/components/main.vue","../src/components/main.vue","../src/index.ts"],"sourcesContent":["<template>\n <div>component-button</div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n<style lang=\"less\" scoped></style>\n","<template>\n <div>component-button</div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n<style lang=\"less\" scoped></style>\n","<template>\n <div>\n <h1>demo-component</h1>\n </div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n","<template>\n <div>\n <h1>demo-component</h1>\n </div>\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n name: 'demo-component'\n});\n</script>\n","import type { App, Plugin } from 'vue'\nimport { ZButton, ZDemo } from './components'\n\n// 组件对象集合\nexport const components = {\n ZButton,\n ZDemo\n}\n\n// 插件安装函数\nexport const install: Plugin['install'] = (app: App) => {\n for (const [name, component] of Object.entries(components)) {\n app.component(name, component)\n }\n}\n\n// 按需导出单个组件\nexport { ZButton, ZDemo }\n\n// 默认导出(用于app.use())\nconst plugin: Plugin = { install }\nexport default plugin "],"mappings":";;;;;;;;;;;;;;6DAC6B,OAAA,MAAtB,mBAAgB;;;;;;;;;;;6DEEf,OAAA,MAAA,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,EAAA,GAAA,IAAA,oBADmB,MAAA,MAAnB,kBAAc,GAAA,CAAA,EAAA,CAAA;;;;;;CEEtB,IAAa,aAAa;EACxB,SAAA;EACA,OAAA;EACD;CAGD,IAAa,WAA8B,QAAa;AACtD,OAAK,MAAM,CAAC,MAAM,cAAc,OAAO,QAAQ,WAAW,CACxD,KAAI,UAAU,MAAM,UAAU;;CAQlC,IAAM,SAAiB,EAAE,SAAS"}
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "benz-ui",
3
+ "version": "1.0.0",
4
+ "description": "Enterprise UI component library for z-Proj",
5
+ "keywords": [
6
+ "vue",
7
+ "components",
8
+ "ui",
9
+ "design-system"
10
+ ],
11
+ "author": "z-Proj Team",
12
+ "license": "MIT",
13
+ "main": "./dist/bz-ui.umd.js",
14
+ "module": "./dist/bz-ui.es.js",
15
+ "types": "./dist/types/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "import": {
19
+ "types": "./dist/types/index.d.ts",
20
+ "default": "./dist/bz-ui.es.js"
21
+ },
22
+ "require": {
23
+ "types": "./dist/types/index.d.ts",
24
+ "default": "./dist/bz-ui.cjs.js"
25
+ }
26
+ },
27
+ "./components/*": {
28
+ "import": "./dist/components/*.js",
29
+ "types": "./dist/types/components/*.d.ts"
30
+ },
31
+ "./dist/style.css": "./dist/style.css",
32
+ "./dist/*": "./dist/*"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "README.md",
37
+ "LICENSE"
38
+ ],
39
+ "dependencies": {},
40
+ "peerDependencies": {
41
+ "vue": "^3.5.31"
42
+ },
43
+ "devDependencies": {
44
+ "@tsconfig/node24": "^24.0.4",
45
+ "@types/jsdom": "^28.0.1",
46
+ "@types/node": "^24.12.0",
47
+ "@vitejs/plugin-vue": "^6.0.5",
48
+ "@vitest/eslint-plugin": "^1.6.13",
49
+ "@vue/eslint-config-typescript": "^14.7.0",
50
+ "@vue/test-utils": "^2.4.6",
51
+ "@vue/tsconfig": "^0.9.1",
52
+ "eslint": "^10.1.0",
53
+ "eslint-config-prettier": "^10.1.8",
54
+ "eslint-plugin-oxlint": "~1.57.0",
55
+ "eslint-plugin-vue": "~10.8.0",
56
+ "jsdom": "^29.0.1",
57
+ "npm-run-all2": "^8.0.4",
58
+ "oxfmt": "^0.42.0",
59
+ "oxlint": "~1.57.0",
60
+ "vite": "^8.0.3",
61
+ "vite-plugin-dts": "^4.5.4",
62
+ "vitest": "^4.1.2",
63
+ "vue-tsc": "^3.2.6"
64
+ },
65
+ "engines": {
66
+ "node": "^20.19.0 || >=22.12.0"
67
+ },
68
+ "scripts": {
69
+ "dev": "vite",
70
+ "build": "pnpm -w run clean && pnpm run build:lib && pnpm run build:types",
71
+ "build:lib": "vite build",
72
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
73
+ "preview": "vite preview",
74
+ "test:unit": "vitest",
75
+ "test:coverage": "vitest run --coverage",
76
+ "type-check": "vue-tsc --noEmit",
77
+ "lint": "run-s lint:oxlint lint:eslint",
78
+ "lint:oxlint": "oxlint . --fix",
79
+ "lint:eslint": "eslint . --fix --cache",
80
+ "format": "oxfmt \"src/**/*.{ts,vue}\""
81
+ }
82
+ }