jky-component-lib 0.0.6 → 0.0.9
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 +4 -0
- package/dist/es/button/Button.vue.d.ts +27 -0
- package/dist/es/button/Button.vue.js +90 -0
- package/dist/es/button/Button.vue3.js +5 -0
- package/dist/es/button/index.d.ts +4 -0
- package/dist/es/button/index.js +8 -0
- package/dist/es/button/style.css +113 -0
- package/dist/es/components.d.ts +1 -0
- package/dist/es/components.js +8 -6
- package/dist/es/index.d.ts +4 -5
- package/dist/es/index.js +15 -11
- package/dist/es/package.json.js +2 -2
- package/dist/es/resolver.js +7 -7
- package/dist/es/say-hello/SayHello.vue.d.ts +5 -0
- package/dist/es/say-hello/SayHello.vue.js +34 -12
- package/dist/es/say-hello/SayHello.vue3.js +2 -2
- package/dist/es/say-hello/index.d.ts +2 -2
- package/dist/es/say-hello/index.js +5 -5
- package/dist/es/say-hello/style.css +13 -1
- package/dist/es/styles.css +1 -1
- package/dist/es/utils/index.d.ts +1 -0
- package/dist/es/utils/installer.d.ts +5 -3
- package/dist/es/utils/installer.js +15 -9
- package/dist/es/utils/string.d.ts +18 -0
- package/dist/es/utils/types.d.ts +10 -0
- package/dist/es/utils/with-install.js +11 -6
- package/dist/lib/button/Button.vue.d.ts +27 -0
- package/dist/lib/button/Button.vue.js +90 -0
- package/dist/lib/button/Button.vue3.js +5 -0
- package/dist/lib/button/index.d.ts +4 -0
- package/dist/lib/button/index.js +8 -0
- package/dist/lib/button/style.css +113 -0
- package/dist/lib/components.d.ts +1 -0
- package/dist/lib/components.js +11 -1
- package/dist/lib/index.d.ts +4 -5
- package/dist/lib/index.js +17 -1
- package/dist/lib/package.json.js +4 -1
- package/dist/lib/resolver.js +19 -1
- package/dist/lib/say-hello/SayHello.vue.d.ts +5 -0
- package/dist/lib/say-hello/SayHello.vue.js +42 -1
- package/dist/lib/say-hello/SayHello.vue3.js +5 -1
- package/dist/lib/say-hello/index.d.ts +2 -2
- package/dist/lib/say-hello/index.js +8 -1
- package/dist/lib/say-hello/style.css +13 -1
- package/dist/lib/styles.css +1 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/installer.d.ts +5 -3
- package/dist/lib/utils/installer.js +20 -1
- package/dist/lib/utils/string.d.ts +18 -0
- package/dist/lib/utils/types.d.ts +10 -0
- package/dist/lib/utils/with-install.js +14 -1
- package/dist/umd/index.js +172 -2
- package/dist/umd/styles.css +1 -1
- package/dist/volar.d.ts +9 -1
- package/package.json +7 -4
- package/dist/es/node_modules/@kieranwv/utils/dist/index.js +0 -6
- package/dist/lib/node_modules/@kieranwv/utils/dist/index.js +0 -1
package/dist/umd/index.js
CHANGED
|
@@ -1,2 +1,172 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
|
|
1
|
+
(function(global, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("element-plus")) : typeof define === "function" && define.amd ? define(["exports", "vue", "element-plus"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.JkyComponentLib = {}, global.Vue, global.ElementPlus));
|
|
3
|
+
})(this, (function(exports2, vue, ElementPlus) {
|
|
4
|
+
"use strict";var __defProp = Object.defineProperty;
|
|
5
|
+
var __defProps = Object.defineProperties;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
|
|
24
|
+
var __vite_style__ = document.createElement("style");
|
|
25
|
+
__vite_style__.textContent = "/* Button 组件样式 - 使用 TailwindCSS 4.x */\n@reference '../styles.css';\n.jky-button {\n /* 使用 TailwindCSS 工具类 */\n@apply inline-flex items-center justify-center font-medium rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50;\n \n /* 使用 CSS 变量 */\n background-color: var(--color-primary);\n color: var(--color-primary-foreground);\n border: 1px solid transparent;\n cursor: pointer;\n \n /* 默认尺寸 */\n --button-height: 40px;\n --button-padding: 0 16px;\n --button-font-size: 14px;\n \n height: var(--button-height);\n padding: var(--button-padding);\n font-size: var(--button-font-size);\n}\n\n/* 按钮类型 */\n.jky-button--primary {\n background-color: var(--color-primary);\n color: var(--color-primary-foreground);\n}\n.jky-button--primary:hover {\n background-color: color-mix(in srgb, var(--color-primary), black 10%);\n}\n.jky-button--success {\n background-color: var(--color-success);\n color: var(--color-success-foreground);\n}\n.jky-button--success:hover {\n background-color: color-mix(in srgb, var(--color-success), black 10%);\n}\n.jky-button--warning {\n background-color: var(--color-warning);\n color: var(--color-warning-foreground);\n}\n.jky-button--warning:hover {\n background-color: color-mix(in srgb, var(--color-warning), black 10%);\n}\n.jky-button--danger {\n background-color: var(--color-destructive);\n color: var(--color-destructive-foreground);\n}\n.jky-button--danger:hover {\n background-color: color-mix(in srgb, var(--color-destructive), black 10%);\n}\n.jky-button--info {\n background-color: var(--color-muted);\n color: var(--color-muted-foreground);\n}\n.jky-button--info:hover {\n background-color: color-mix(in srgb, var(--color-muted), black 10%);\n}\n\n/* 按钮尺寸 */\n.jky-button--large {\n --button-height: 48px;\n --button-padding: 0 24px;\n --button-font-size: 16px;\n}\n.jky-button--default {\n --button-height: 40px;\n --button-padding: 0 16px;\n --button-font-size: 14px;\n}\n.jky-button--small {\n --button-height: 32px;\n --button-padding: 0 12px;\n --button-font-size: 12px;\n}\n\n/* 禁用状态 */\n.jky-button.is-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* 加载状态 */\n.jky-button.is-loading {\n position: relative;\n pointer-events: none;\n}\n.jky-button__loading {\n@apply absolute inset-0 flex items-center justify-center;\n}\n.loading-spinner {\n@apply w-5 h-5 animate-spin;\n}\n\n/* 边框按钮样式 */\n.jky-button--primary.is-border {\n background-color: transparent;\n border-color: var(--color-primary);\n color: var(--color-primary);\n}\n.jky-button--primary.is-border:hover {\n background-color: color-mix(in srgb, var(--color-primary), transparent 90%);\n}\n\n/* 文字按钮样式 */\n.jky-button--text {\n background-color: transparent;\n color: var(--color-primary);\n border-color: transparent;\n}\n.jky-button--text:hover {\n background-color: color-mix(in srgb, var(--color-primary), transparent 90%);\n}\n@reference '../styles.css';\n.jky-component-lib-say-hello{\n background: #42b883;\n color: white;\n padding: 8px 20px;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n border-radius: 6px;\n}\n/*$vite$:1*/";
|
|
26
|
+
document.head.appendChild(__vite_style__);
|
|
27
|
+
const version$1 = "0.0.9";
|
|
28
|
+
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
29
|
+
function createInstaller(components2 = []) {
|
|
30
|
+
const install2 = (app, options) => {
|
|
31
|
+
if (app[INSTALLED_KEY])
|
|
32
|
+
return;
|
|
33
|
+
app[INSTALLED_KEY] = true;
|
|
34
|
+
app.use(ElementPlus, options == null ? void 0 : options.elementPlusOptions);
|
|
35
|
+
components2.forEach((c) => app.use(c));
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
install: install2,
|
|
39
|
+
version: version$1
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function installWithSFC(main, extra) {
|
|
43
|
+
main.install = ((app, ..._options) => {
|
|
44
|
+
for (const comp of [main, ...Object.values({})]) {
|
|
45
|
+
if (comp && comp.name) {
|
|
46
|
+
app.component(comp.name, comp);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return app;
|
|
50
|
+
});
|
|
51
|
+
return main;
|
|
52
|
+
}
|
|
53
|
+
const _hoisted_1 = ["disabled"];
|
|
54
|
+
const _hoisted_2 = {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "jky-button__loading"
|
|
57
|
+
};
|
|
58
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
59
|
+
name: "JkyButton"
|
|
60
|
+
}), {
|
|
61
|
+
__name: "Button",
|
|
62
|
+
props: {
|
|
63
|
+
type: { default: "primary" },
|
|
64
|
+
size: { default: "default" },
|
|
65
|
+
disabled: { type: Boolean, default: false },
|
|
66
|
+
loading: { type: Boolean, default: false }
|
|
67
|
+
},
|
|
68
|
+
emits: ["click"],
|
|
69
|
+
setup(__props, { emit: __emit }) {
|
|
70
|
+
const emit = __emit;
|
|
71
|
+
function handleClick() {
|
|
72
|
+
if (!__props.disabled && !__props.loading) {
|
|
73
|
+
emit("click");
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return (_ctx, _cache) => {
|
|
77
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
78
|
+
class: vue.normalizeClass(["jky-button", [
|
|
79
|
+
`jky-button--${__props.type}`,
|
|
80
|
+
`jky-button--${__props.size}`,
|
|
81
|
+
{
|
|
82
|
+
"is-disabled": __props.disabled,
|
|
83
|
+
"is-loading": __props.loading
|
|
84
|
+
}
|
|
85
|
+
]]),
|
|
86
|
+
disabled: __props.disabled || __props.loading,
|
|
87
|
+
onClick: handleClick
|
|
88
|
+
}, [
|
|
89
|
+
__props.loading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, [..._cache[0] || (_cache[0] = [
|
|
90
|
+
vue.createElementVNode("svg", {
|
|
91
|
+
class: "loading-spinner",
|
|
92
|
+
viewBox: "0 0 50 50"
|
|
93
|
+
}, [
|
|
94
|
+
vue.createElementVNode("circle", {
|
|
95
|
+
cx: "25",
|
|
96
|
+
cy: "25",
|
|
97
|
+
r: "20",
|
|
98
|
+
fill: "none",
|
|
99
|
+
stroke: "currentColor",
|
|
100
|
+
"stroke-width": "4",
|
|
101
|
+
"stroke-dasharray": "80",
|
|
102
|
+
"stroke-dashoffset": "0"
|
|
103
|
+
}, [
|
|
104
|
+
vue.createElementVNode("animateTransform", {
|
|
105
|
+
attributeName: "transform",
|
|
106
|
+
type: "rotate",
|
|
107
|
+
from: "0 25 25",
|
|
108
|
+
to: "360 25 25",
|
|
109
|
+
dur: "1s",
|
|
110
|
+
repeatCount: "indefinite"
|
|
111
|
+
})
|
|
112
|
+
])
|
|
113
|
+
], -1)
|
|
114
|
+
])])) : vue.createCommentVNode("", true),
|
|
115
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
116
|
+
], 10, _hoisted_1);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}));
|
|
120
|
+
const JkyButton = installWithSFC(_sfc_main$1);
|
|
121
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
122
|
+
name: "JkySayHello"
|
|
123
|
+
}), {
|
|
124
|
+
__name: "SayHello",
|
|
125
|
+
props: {
|
|
126
|
+
name: {}
|
|
127
|
+
},
|
|
128
|
+
setup(__props) {
|
|
129
|
+
function sayHello() {
|
|
130
|
+
alert(`Hello, ${__props.name}!`);
|
|
131
|
+
}
|
|
132
|
+
return (_ctx, _cache) => {
|
|
133
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
134
|
+
class: "jky-component-lib-say-hello",
|
|
135
|
+
onClick: _cache[0] || (_cache[0] = ($event) => sayHello())
|
|
136
|
+
}, " Say, hi! ");
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}));
|
|
140
|
+
const JkySayHello = installWithSFC(_sfc_main);
|
|
141
|
+
const components = [
|
|
142
|
+
JkySayHello,
|
|
143
|
+
JkyButton
|
|
144
|
+
];
|
|
145
|
+
function StarterLibVue3Resolver() {
|
|
146
|
+
return {
|
|
147
|
+
type: "component",
|
|
148
|
+
resolve: (name) => {
|
|
149
|
+
if (name.match(/^Jky[A-Z]/)) {
|
|
150
|
+
return {
|
|
151
|
+
name,
|
|
152
|
+
from: "jky-component-lib",
|
|
153
|
+
sideEffects: [
|
|
154
|
+
`jky-component-lib/dist/es/${name.replace("Jky", "").toLowerCase()}/style.css`
|
|
155
|
+
]
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
const installer = createInstaller(components);
|
|
162
|
+
const install = installer.install;
|
|
163
|
+
const version = installer.version;
|
|
164
|
+
exports2.JkyButton = JkyButton;
|
|
165
|
+
exports2.JkySayHello = JkySayHello;
|
|
166
|
+
exports2.StarterLibVue3Resolver = StarterLibVue3Resolver;
|
|
167
|
+
exports2.components = components;
|
|
168
|
+
exports2.default = installer;
|
|
169
|
+
exports2.install = install;
|
|
170
|
+
exports2.version = version;
|
|
171
|
+
Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
172
|
+
}));
|
package/dist/umd/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.jky-component-lib-say-hello{background:#42b883;border-radius:6px;color:#fff;cursor:pointer;display:inline-block;font-size:16px;margin:4px 2px;padding:8px 20px;text-align:center;text-decoration:none}
|
|
1
|
+
.jky-button{@apply inline-flex items-center justify-center font-medium rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50;background-color:var(--color-primary);border:1px solid transparent;color:var(--color-primary-foreground);cursor:pointer;--button-height:40px;--button-padding:0 16px;--button-font-size:14px;font-size:var(--button-font-size);height:var(--button-height);padding:var(--button-padding)}.jky-button--primary{background-color:var(--color-primary);color:var(--color-primary-foreground)}.jky-button--primary:hover{background-color:color-mix(in srgb,var(--color-primary),#000 10%)}.jky-button--success{background-color:var(--color-success);color:var(--color-success-foreground)}.jky-button--success:hover{background-color:color-mix(in srgb,var(--color-success),#000 10%)}.jky-button--warning{background-color:var(--color-warning);color:var(--color-warning-foreground)}.jky-button--warning:hover{background-color:color-mix(in srgb,var(--color-warning),#000 10%)}.jky-button--danger{background-color:var(--color-destructive);color:var(--color-destructive-foreground)}.jky-button--danger:hover{background-color:color-mix(in srgb,var(--color-destructive),#000 10%)}.jky-button--info{background-color:var(--color-muted);color:var(--color-muted-foreground)}.jky-button--info:hover{background-color:color-mix(in srgb,var(--color-muted),#000 10%)}.jky-button--large{--button-height:48px;--button-padding:0 24px;--button-font-size:16px}.jky-button--default{--button-height:40px;--button-padding:0 16px;--button-font-size:14px}.jky-button--small{--button-height:32px;--button-padding:0 12px;--button-font-size:12px}.jky-button.is-disabled{cursor:not-allowed;opacity:.5}.jky-button.is-loading{pointer-events:none;position:relative}.jky-button__loading{@apply absolute inset-0 flex items-center justify-center}.loading-spinner{@apply w-5 h-5 animate-spin}.jky-button--primary.is-border{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.jky-button--primary.is-border:hover{background-color:color-mix(in srgb,var(--color-primary),transparent 90%)}.jky-button--text{background-color:transparent;border-color:transparent;color:var(--color-primary)}.jky-button--text:hover{background-color:color-mix(in srgb,var(--color-primary),transparent 90%)}@reference "../styles.css";.jky-component-lib-say-hello{background:#42b883;border-radius:6px;color:#fff;cursor:pointer;display:inline-block;font-size:16px;margin:4px 2px;padding:8px 20px;text-align:center;text-decoration:none}@import "tailwindcss";@import "@fontsource-variable/geist";@custom-variant dark (&:is(.dark *));@theme inline{--font-heading:var(--font-sans);--font-sans:"Geist Variable",sans-serif;--color-sidebar-ring:var(--sidebar-ring);--color-sidebar-border:var(--sidebar-border);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--color-sidebar-primary:var(--sidebar-primary);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar:var(--sidebar);--color-chart-5:var(--chart-5);--color-chart-4:var(--chart-4);--color-chart-3:var(--chart-3);--color-chart-2:var(--chart-2);--color-chart-1:var(--chart-1);--color-ring:var(--ring);--color-input:var(--input);--color-border:var(--border);--color-destructive:var(--destructive);--color-accent-foreground:var(--accent-foreground);--color-accent:var(--accent);--color-muted-foreground:var(--muted-foreground);--color-muted:var(--muted);--color-secondary-foreground:var(--secondary-foreground);--color-secondary:var(--secondary);--color-primary-foreground:var(--primary-foreground);--color-primary:var(--primary);--color-popover-foreground:var(--popover-foreground);--color-popover:var(--popover);--color-card-foreground:var(--card-foreground);--color-card:var(--card);--color-foreground:var(--foreground);--color-background:var(--background);--radius-sm:calc(var(--radius)*0.6);--radius-md:calc(var(--radius)*0.8);--radius-lg:var(--radius);--radius-xl:calc(var(--radius)*1.4);--radius-2xl:calc(var(--radius)*1.8);--radius-3xl:calc(var(--radius)*2.2);--radius-4xl:calc(var(--radius)*2.6)}:root{--background:oklch(1 0 0);--foreground:oklch(0.145 0 0);--card:oklch(1 0 0);--card-foreground:oklch(0.145 0 0);--popover:oklch(1 0 0);--popover-foreground:oklch(0.145 0 0);--primary:oklch(0.205 0 0);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(0.97 0 0);--secondary-foreground:oklch(0.205 0 0);--muted:oklch(0.97 0 0);--muted-foreground:oklch(0.556 0 0);--accent:oklch(0.97 0 0);--accent-foreground:oklch(0.205 0 0);--destructive:oklch(0.577 0.245 27.325);--border:oklch(0.922 0 0);--input:oklch(0.922 0 0);--ring:oklch(0.708 0 0);--chart-1:oklch(0.646 0.222 41.116);--chart-2:oklch(0.6 0.118 184.704);--chart-3:oklch(0.398 0.07 227.392);--chart-4:oklch(0.828 0.189 84.429);--chart-5:oklch(0.769 0.188 70.08);--radius:0.625rem;--sidebar:oklch(0.985 0 0);--sidebar-foreground:oklch(0.145 0 0);--sidebar-primary:oklch(0.205 0 0);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.97 0 0);--sidebar-accent-foreground:oklch(0.205 0 0);--sidebar-border:oklch(0.922 0 0);--sidebar-ring:oklch(0.708 0 0)}.dark{--background:oklch(0.145 0 0);--foreground:oklch(0.985 0 0);--card:oklch(0.205 0 0);--card-foreground:oklch(0.985 0 0);--popover:oklch(0.205 0 0);--popover-foreground:oklch(0.985 0 0);--primary:oklch(0.922 0 0);--primary-foreground:oklch(0.205 0 0);--secondary:oklch(0.269 0 0);--secondary-foreground:oklch(0.985 0 0);--muted:oklch(0.269 0 0);--muted-foreground:oklch(0.708 0 0);--accent:oklch(0.269 0 0);--accent-foreground:oklch(0.985 0 0);--destructive:oklch(0.704 0.191 22.216);--border:oklch(1 0 0/10%);--input:oklch(1 0 0/15%);--ring:oklch(0.556 0 0);--chart-1:oklch(0.488 0.243 264.376);--chart-2:oklch(0.696 0.17 162.48);--chart-3:oklch(0.769 0.188 70.08);--chart-4:oklch(0.627 0.265 303.9);--chart-5:oklch(0.645 0.246 16.439);--sidebar:oklch(0.205 0 0);--sidebar-foreground:oklch(0.985 0 0);--sidebar-primary:oklch(0.488 0.243 264.376);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.269 0 0);--sidebar-accent-foreground:oklch(0.985 0 0);--sidebar-border:oklch(1 0 0/10%);--sidebar-ring:oklch(0.556 0 0)}@layer base{*{@apply border-border outline-ring/50}body{@apply bg-background text-foreground}html{@apply font-sans}}
|
package/dist/volar.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
declare module 'vue' {
|
|
2
2
|
export interface GlobalComponents {
|
|
3
|
-
|
|
3
|
+
JkySayHello: typeof import('jky-component-lib')['JkySayHello']
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
declare module '@vue/runtime-core' {
|
|
8
|
+
export interface App {
|
|
9
|
+
use: {
|
|
10
|
+
(plugin: typeof import('jky-component-lib'), options?: import('jky-component-lib').InstallerOptions): this
|
|
11
|
+
}
|
|
4
12
|
}
|
|
5
13
|
}
|
|
6
14
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jky-component-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"packageManager": "bun@1.3.5",
|
|
6
6
|
"description": "Vue 3 component library starter template, provides VitePress documentation, supports building ESM, CJS and UMD formats. ",
|
|
7
7
|
"author": "Kieran Wang <kieranwme@gmail.com> (https://github.com/kieranwv/)",
|
|
@@ -65,16 +65,17 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@antfu/eslint-config": "^4.13.0",
|
|
68
|
-
"@
|
|
68
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
69
69
|
"@types/jsdom": "^21.1.7",
|
|
70
70
|
"@types/markdown-it": "^14.1.2",
|
|
71
71
|
"@types/node": "^22.15.14",
|
|
72
72
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
73
73
|
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
|
74
74
|
"@vue/test-utils": "^2.4.6",
|
|
75
|
-
"@vueuse/core": "^
|
|
75
|
+
"@vueuse/core": "^14.2.1",
|
|
76
76
|
"bumpp": "^10.1.0",
|
|
77
77
|
"cssnano": "^7.0.7",
|
|
78
|
+
"element-plus": "^2.13.6",
|
|
78
79
|
"eslint": "^9.26.0",
|
|
79
80
|
"jsdom": "^26.1.0",
|
|
80
81
|
"lint-staged": "^15.5.2",
|
|
@@ -84,8 +85,10 @@
|
|
|
84
85
|
"rimraf": "^6.0.1",
|
|
85
86
|
"shiki": "^3.4.0",
|
|
86
87
|
"simple-git-hooks": "^2.13.0",
|
|
88
|
+
"tailwindcss": "^4.2.2",
|
|
87
89
|
"typescript": "^5.8.3",
|
|
88
|
-
"unplugin-
|
|
90
|
+
"unplugin-auto-import": "^21.0.0",
|
|
91
|
+
"unplugin-vue-components": "^32.0.0",
|
|
89
92
|
"vite": "^6.3.5",
|
|
90
93
|
"vite-plugin-bundle-styles": "^0.1.0",
|
|
91
94
|
"vite-plugin-dts": "^4.5.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().replace(/\s+/g,"-")}exports.toLowerCase=r;
|