mc-plus 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/dist/es/index.js +9 -0
- package/dist/es/main-CHgC5LLL.js +9 -0
- package/dist/es/mc-button-IwUjn1kw.js +72 -0
- package/dist/es/mc-icon-BcK4wdKY.js +28 -0
- package/dist/es/utils-Dc6nLpLE.js +8 -0
- package/dist/es/vendor-BqH-LPpl.js +247 -0
- package/dist/index.css +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/mc-button/index.d.ts +54 -0
- package/dist/types/components/mc-button/types.d.ts +25 -0
- package/dist/types/components/mc-icon/index.d.ts +32 -0
- package/dist/types/components/mc-icon/types.d.ts +11 -0
- package/dist/types/core/index.d.ts +3 -0
- package/dist/types/utils/build.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/install.d.ts +9 -0
- package/dist/umd/index.css +1 -0
- package/dist/umd/index.umd.cjs +1 -0
- package/package.json +44 -0
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as w, toRefs as p, ref as z, useAttrs as M, computed as T, toValue as V, createElementBlock as f, openBlock as n, unref as t, normalizeClass as $, normalizeStyle as D, createBlock as h, createCommentVNode as a, renderSlot as N, createVNode as S } from "vue";
|
|
2
|
+
import { _ as r } from "./mc-icon-BcK4wdKY.js";
|
|
3
|
+
import { t as A } from "./vendor-BqH-LPpl.js";
|
|
4
|
+
import { _ as E } from "./main-CHgC5LLL.js";
|
|
5
|
+
import { w as R } from "./utils-Dc6nLpLE.js";
|
|
6
|
+
const j = ["type", "disabled"], q = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "loading-icon"
|
|
9
|
+
}, F = /* @__PURE__ */ w({
|
|
10
|
+
name: "McButton",
|
|
11
|
+
__name: "mc-button",
|
|
12
|
+
props: {
|
|
13
|
+
type: { default: "primary" },
|
|
14
|
+
nativeType: { default: "button" },
|
|
15
|
+
size: { default: "medium" },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
loading: { type: Boolean },
|
|
18
|
+
useThrottle: { type: Boolean, default: !0 },
|
|
19
|
+
throttleDuration: { default: 500 },
|
|
20
|
+
leftIcon: {},
|
|
21
|
+
rightIcon: {},
|
|
22
|
+
content: {},
|
|
23
|
+
height: {},
|
|
24
|
+
width: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["click"],
|
|
27
|
+
setup(y, { expose: v, emit: b }) {
|
|
28
|
+
const g = y, { loading: o, disabled: l, throttleDuration: k, height: i, width: s } = p(g), B = b, u = z(), I = p(M()), _ = T(() => ({
|
|
29
|
+
...V(I).style,
|
|
30
|
+
width: s.value ? s.value : void 0,
|
|
31
|
+
height: i.value ? i.value : void 0
|
|
32
|
+
})), d = (e) => {
|
|
33
|
+
o.value || l.value || B("click", e);
|
|
34
|
+
}, C = A(
|
|
35
|
+
d,
|
|
36
|
+
k.value,
|
|
37
|
+
{ trailing: !1 }
|
|
38
|
+
);
|
|
39
|
+
return v({
|
|
40
|
+
ref: u
|
|
41
|
+
}), (e, c) => (n(), f("button", {
|
|
42
|
+
ref_key: "_ref",
|
|
43
|
+
ref: u,
|
|
44
|
+
style: D(_.value),
|
|
45
|
+
class: $(["mc-button", {
|
|
46
|
+
[`mc-button--${e.type}`]: e.type,
|
|
47
|
+
[`mc-button--${e.size}`]: e.size,
|
|
48
|
+
"is-loading": t(o),
|
|
49
|
+
"is-disabled": t(l)
|
|
50
|
+
}]),
|
|
51
|
+
type: e.nativeType,
|
|
52
|
+
disabled: t(l) || t(o) ? !0 : void 0,
|
|
53
|
+
onClick: c[0] || (c[0] = (m) => e.useThrottle ? t(C)(m) : d(m))
|
|
54
|
+
}, [
|
|
55
|
+
e.leftIcon && !t(o) ? (n(), h(r, {
|
|
56
|
+
key: 0,
|
|
57
|
+
name: e.leftIcon
|
|
58
|
+
}, null, 8, ["name"])) : a("", !0),
|
|
59
|
+
t(o) ? (n(), f("span", q, [
|
|
60
|
+
S(r, { name: "loading-dot" })
|
|
61
|
+
])) : a("", !0),
|
|
62
|
+
N(e.$slots, "default", {}, void 0, !0),
|
|
63
|
+
e.rightIcon ? (n(), h(r, {
|
|
64
|
+
key: 2,
|
|
65
|
+
name: e.rightIcon
|
|
66
|
+
}, null, 8, ["name"])) : a("", !0)
|
|
67
|
+
], 14, j));
|
|
68
|
+
}
|
|
69
|
+
}), G = /* @__PURE__ */ E(F, [["__scopeId", "data-v-7393566b"]]), P = R(G);
|
|
70
|
+
export {
|
|
71
|
+
P as M
|
|
72
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as i, ref as a, createElementBlock as l, openBlock as _, normalizeClass as f } from "vue";
|
|
2
|
+
import { _ as p } from "./main-CHgC5LLL.js";
|
|
3
|
+
import { w as k } from "./utils-Dc6nLpLE.js";
|
|
4
|
+
const I = /* @__PURE__ */ i({
|
|
5
|
+
name: "McIcon",
|
|
6
|
+
__name: "mc-icon",
|
|
7
|
+
props: {
|
|
8
|
+
name: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["click"],
|
|
11
|
+
setup(u, { expose: n, emit: t }) {
|
|
12
|
+
const s = t, c = a(), r = (o) => {
|
|
13
|
+
s("click", o);
|
|
14
|
+
};
|
|
15
|
+
return n({
|
|
16
|
+
ref: c
|
|
17
|
+
}), (o, e) => (_(), l("i", {
|
|
18
|
+
ref_key: "_ref",
|
|
19
|
+
ref: c,
|
|
20
|
+
class: f(["mc-iconfont", `mc-icon--${o.name}`]),
|
|
21
|
+
onClick: e[0] || (e[0] = (m) => r(m))
|
|
22
|
+
}, null, 2));
|
|
23
|
+
}
|
|
24
|
+
}), d = /* @__PURE__ */ p(I, [["__scopeId", "data-v-a5185fc9"]]), w = k(d);
|
|
25
|
+
export {
|
|
26
|
+
w as M,
|
|
27
|
+
d as _
|
|
28
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
var _ = typeof global == "object" && global && global.Object === Object && global, Y = typeof self == "object" && self && self.Object === Object && self, S = _ || Y || Function("return this")(), j = S.Symbol, k = Object.prototype, Z = k.hasOwnProperty, rr = k.toString, y = j ? j.toStringTag : void 0;
|
|
2
|
+
function er(r) {
|
|
3
|
+
var e = Z.call(r, y), t = r[y];
|
|
4
|
+
try {
|
|
5
|
+
r[y] = void 0;
|
|
6
|
+
var n = !0;
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
var a = rr.call(r);
|
|
10
|
+
return n && (e ? r[y] = t : delete r[y]), a;
|
|
11
|
+
}
|
|
12
|
+
var tr = Object.prototype, nr = tr.toString;
|
|
13
|
+
function ir(r) {
|
|
14
|
+
return nr.call(r);
|
|
15
|
+
}
|
|
16
|
+
var ar = "[object Null]", or = "[object Undefined]", B = j ? j.toStringTag : void 0;
|
|
17
|
+
function h(r) {
|
|
18
|
+
return r == null ? r === void 0 ? or : ar : B && B in Object(r) ? er(r) : ir(r);
|
|
19
|
+
}
|
|
20
|
+
function v(r) {
|
|
21
|
+
return r != null && typeof r == "object";
|
|
22
|
+
}
|
|
23
|
+
var fr = "[object Symbol]";
|
|
24
|
+
function ur(r) {
|
|
25
|
+
return typeof r == "symbol" || v(r) && h(r) == fr;
|
|
26
|
+
}
|
|
27
|
+
var G = Array.isArray, cr = /\s/;
|
|
28
|
+
function sr(r) {
|
|
29
|
+
for (var e = r.length; e-- && cr.test(r.charAt(e)); )
|
|
30
|
+
;
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
var br = /^\s+/;
|
|
34
|
+
function gr(r) {
|
|
35
|
+
return r && r.slice(0, sr(r) + 1).replace(br, "");
|
|
36
|
+
}
|
|
37
|
+
function T(r) {
|
|
38
|
+
var e = typeof r;
|
|
39
|
+
return r != null && (e == "object" || e == "function");
|
|
40
|
+
}
|
|
41
|
+
var R = NaN, dr = /^[-+]0x[0-9a-f]+$/i, pr = /^0b[01]+$/i, yr = /^0o[0-7]+$/i, lr = parseInt;
|
|
42
|
+
function M(r) {
|
|
43
|
+
if (typeof r == "number")
|
|
44
|
+
return r;
|
|
45
|
+
if (ur(r))
|
|
46
|
+
return R;
|
|
47
|
+
if (T(r)) {
|
|
48
|
+
var e = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
49
|
+
r = T(e) ? e + "" : e;
|
|
50
|
+
}
|
|
51
|
+
if (typeof r != "string")
|
|
52
|
+
return r === 0 ? r : +r;
|
|
53
|
+
r = gr(r);
|
|
54
|
+
var t = pr.test(r);
|
|
55
|
+
return t || yr.test(r) ? lr(r.slice(2), t ? 2 : 8) : dr.test(r) ? R : +r;
|
|
56
|
+
}
|
|
57
|
+
function Tr(r) {
|
|
58
|
+
return r;
|
|
59
|
+
}
|
|
60
|
+
var mr = "[object AsyncFunction]", jr = "[object Function]", hr = "[object GeneratorFunction]", vr = "[object Proxy]";
|
|
61
|
+
function xr(r) {
|
|
62
|
+
if (!T(r))
|
|
63
|
+
return !1;
|
|
64
|
+
var e = h(r);
|
|
65
|
+
return e == jr || e == hr || e == mr || e == vr;
|
|
66
|
+
}
|
|
67
|
+
function Ar(r, e) {
|
|
68
|
+
for (var t = -1, n = r == null ? 0 : r.length; ++t < n && e(r[t], t, r) !== !1; )
|
|
69
|
+
;
|
|
70
|
+
return r;
|
|
71
|
+
}
|
|
72
|
+
var Or = 9007199254740991, Er = /^(?:0|[1-9]\d*)$/;
|
|
73
|
+
function Ir(r, e) {
|
|
74
|
+
var t = typeof r;
|
|
75
|
+
return e = e ?? Or, !!e && (t == "number" || t != "symbol" && Er.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
76
|
+
}
|
|
77
|
+
var Sr = 9007199254740991;
|
|
78
|
+
function X(r) {
|
|
79
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Sr;
|
|
80
|
+
}
|
|
81
|
+
function D(r) {
|
|
82
|
+
return r != null && X(r.length) && !xr(r);
|
|
83
|
+
}
|
|
84
|
+
var $r = Object.prototype;
|
|
85
|
+
function Fr(r) {
|
|
86
|
+
var e = r && r.constructor, t = typeof e == "function" && e.prototype || $r;
|
|
87
|
+
return r === t;
|
|
88
|
+
}
|
|
89
|
+
function Pr(r, e) {
|
|
90
|
+
for (var t = -1, n = Array(r); ++t < r; )
|
|
91
|
+
n[t] = e(t);
|
|
92
|
+
return n;
|
|
93
|
+
}
|
|
94
|
+
var wr = "[object Arguments]";
|
|
95
|
+
function U(r) {
|
|
96
|
+
return v(r) && h(r) == wr;
|
|
97
|
+
}
|
|
98
|
+
var K = Object.prototype, Br = K.hasOwnProperty, Rr = K.propertyIsEnumerable, Mr = U(/* @__PURE__ */ function() {
|
|
99
|
+
return arguments;
|
|
100
|
+
}()) ? U : function(r) {
|
|
101
|
+
return v(r) && Br.call(r, "callee") && !Rr.call(r, "callee");
|
|
102
|
+
};
|
|
103
|
+
function Ur() {
|
|
104
|
+
return !1;
|
|
105
|
+
}
|
|
106
|
+
var q = typeof exports == "object" && exports && !exports.nodeType && exports, L = q && typeof module == "object" && module && !module.nodeType && module, Lr = L && L.exports === q, N = Lr ? S.Buffer : void 0, Nr = N ? N.isBuffer : void 0, Cr = Nr || Ur, Wr = "[object Arguments]", _r = "[object Array]", kr = "[object Boolean]", Gr = "[object Date]", Xr = "[object Error]", Dr = "[object Function]", Kr = "[object Map]", qr = "[object Number]", Vr = "[object Object]", Hr = "[object RegExp]", zr = "[object Set]", Jr = "[object String]", Qr = "[object WeakMap]", Yr = "[object ArrayBuffer]", Zr = "[object DataView]", re = "[object Float32Array]", ee = "[object Float64Array]", te = "[object Int8Array]", ne = "[object Int16Array]", ie = "[object Int32Array]", ae = "[object Uint8Array]", oe = "[object Uint8ClampedArray]", fe = "[object Uint16Array]", ue = "[object Uint32Array]", i = {};
|
|
107
|
+
i[re] = i[ee] = i[te] = i[ne] = i[ie] = i[ae] = i[oe] = i[fe] = i[ue] = !0;
|
|
108
|
+
i[Wr] = i[_r] = i[Yr] = i[kr] = i[Zr] = i[Gr] = i[Xr] = i[Dr] = i[Kr] = i[qr] = i[Vr] = i[Hr] = i[zr] = i[Jr] = i[Qr] = !1;
|
|
109
|
+
function ce(r) {
|
|
110
|
+
return v(r) && X(r.length) && !!i[h(r)];
|
|
111
|
+
}
|
|
112
|
+
function se(r) {
|
|
113
|
+
return function(e) {
|
|
114
|
+
return r(e);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
var V = typeof exports == "object" && exports && !exports.nodeType && exports, l = V && typeof module == "object" && module && !module.nodeType && module, be = l && l.exports === V, E = be && _.process, C = function() {
|
|
118
|
+
try {
|
|
119
|
+
var r = l && l.require && l.require("util").types;
|
|
120
|
+
return r || E && E.binding && E.binding("util");
|
|
121
|
+
} catch {
|
|
122
|
+
}
|
|
123
|
+
}(), W = C && C.isTypedArray, ge = W ? se(W) : ce, de = Object.prototype, pe = de.hasOwnProperty;
|
|
124
|
+
function ye(r, e) {
|
|
125
|
+
var t = G(r), n = !t && Mr(r), a = !t && !n && Cr(r), u = !t && !n && !a && ge(r), c = t || n || a || u, f = c ? Pr(r.length, String) : [], b = f.length;
|
|
126
|
+
for (var s in r)
|
|
127
|
+
pe.call(r, s) && !(c && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
128
|
+
(s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
129
|
+
a && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
130
|
+
u && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
|
|
131
|
+
Ir(s, b))) && f.push(s);
|
|
132
|
+
return f;
|
|
133
|
+
}
|
|
134
|
+
function le(r, e) {
|
|
135
|
+
return function(t) {
|
|
136
|
+
return r(e(t));
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
var Te = le(Object.keys, Object), me = Object.prototype, je = me.hasOwnProperty;
|
|
140
|
+
function he(r) {
|
|
141
|
+
if (!Fr(r))
|
|
142
|
+
return Te(r);
|
|
143
|
+
var e = [];
|
|
144
|
+
for (var t in Object(r))
|
|
145
|
+
je.call(r, t) && t != "constructor" && e.push(t);
|
|
146
|
+
return e;
|
|
147
|
+
}
|
|
148
|
+
function ve(r) {
|
|
149
|
+
return D(r) ? ye(r) : he(r);
|
|
150
|
+
}
|
|
151
|
+
function xe(r) {
|
|
152
|
+
return function(e, t, n) {
|
|
153
|
+
for (var a = -1, u = Object(e), c = n(e), f = c.length; f--; ) {
|
|
154
|
+
var b = c[++a];
|
|
155
|
+
if (t(u[b], b, u) === !1)
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
return e;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
var Ae = xe();
|
|
162
|
+
function Oe(r, e) {
|
|
163
|
+
return r && Ae(r, e, ve);
|
|
164
|
+
}
|
|
165
|
+
function Ee(r, e) {
|
|
166
|
+
return function(t, n) {
|
|
167
|
+
if (t == null)
|
|
168
|
+
return t;
|
|
169
|
+
if (!D(t))
|
|
170
|
+
return r(t, n);
|
|
171
|
+
for (var a = t.length, u = -1, c = Object(t); ++u < a && n(c[u], u, c) !== !1; )
|
|
172
|
+
;
|
|
173
|
+
return t;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
var Ie = Ee(Oe), I = function() {
|
|
177
|
+
return S.Date.now();
|
|
178
|
+
}, Se = "Expected a function", $e = Math.max, Fe = Math.min;
|
|
179
|
+
function Pe(r, e, t) {
|
|
180
|
+
var n, a, u, c, f, b, s = 0, $ = !1, d = !1, x = !0;
|
|
181
|
+
if (typeof r != "function")
|
|
182
|
+
throw new TypeError(Se);
|
|
183
|
+
e = M(e) || 0, T(t) && ($ = !!t.leading, d = "maxWait" in t, u = d ? $e(M(t.maxWait) || 0, e) : u, x = "trailing" in t ? !!t.trailing : x);
|
|
184
|
+
function A(o) {
|
|
185
|
+
var g = n, p = a;
|
|
186
|
+
return n = a = void 0, s = o, c = r.apply(p, g), c;
|
|
187
|
+
}
|
|
188
|
+
function H(o) {
|
|
189
|
+
return s = o, f = setTimeout(m, e), $ ? A(o) : c;
|
|
190
|
+
}
|
|
191
|
+
function z(o) {
|
|
192
|
+
var g = o - b, p = o - s, w = e - g;
|
|
193
|
+
return d ? Fe(w, u - p) : w;
|
|
194
|
+
}
|
|
195
|
+
function F(o) {
|
|
196
|
+
var g = o - b, p = o - s;
|
|
197
|
+
return b === void 0 || g >= e || g < 0 || d && p >= u;
|
|
198
|
+
}
|
|
199
|
+
function m() {
|
|
200
|
+
var o = I();
|
|
201
|
+
if (F(o))
|
|
202
|
+
return P(o);
|
|
203
|
+
f = setTimeout(m, z(o));
|
|
204
|
+
}
|
|
205
|
+
function P(o) {
|
|
206
|
+
return f = void 0, x && n ? A(o) : (n = a = void 0, c);
|
|
207
|
+
}
|
|
208
|
+
function J() {
|
|
209
|
+
f !== void 0 && clearTimeout(f), s = 0, n = b = a = f = void 0;
|
|
210
|
+
}
|
|
211
|
+
function Q() {
|
|
212
|
+
return f === void 0 ? c : P(I());
|
|
213
|
+
}
|
|
214
|
+
function O() {
|
|
215
|
+
var o = I(), g = F(o);
|
|
216
|
+
if (n = arguments, a = this, b = o, g) {
|
|
217
|
+
if (f === void 0)
|
|
218
|
+
return H(b);
|
|
219
|
+
if (d)
|
|
220
|
+
return clearTimeout(f), f = setTimeout(m, e), A(b);
|
|
221
|
+
}
|
|
222
|
+
return f === void 0 && (f = setTimeout(m, e)), c;
|
|
223
|
+
}
|
|
224
|
+
return O.cancel = J, O.flush = Q, O;
|
|
225
|
+
}
|
|
226
|
+
function we(r) {
|
|
227
|
+
return typeof r == "function" ? r : Tr;
|
|
228
|
+
}
|
|
229
|
+
function Re(r, e) {
|
|
230
|
+
var t = G(r) ? Ar : Ie;
|
|
231
|
+
return t(r, we(e));
|
|
232
|
+
}
|
|
233
|
+
var Be = "Expected a function";
|
|
234
|
+
function Me(r, e, t) {
|
|
235
|
+
var n = !0, a = !0;
|
|
236
|
+
if (typeof r != "function")
|
|
237
|
+
throw new TypeError(Be);
|
|
238
|
+
return T(t) && (n = "leading" in t ? !!t.leading : n, a = "trailing" in t ? !1 : a), Pe(r, e, {
|
|
239
|
+
leading: n,
|
|
240
|
+
maxWait: e,
|
|
241
|
+
trailing: a
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
export {
|
|
245
|
+
Re as f,
|
|
246
|
+
Me as t
|
|
247
|
+
};
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:mc-iconfont;src:url(data:font/woff2;base64,d09GMgABAAAAAA8IAAsAAAAAHEAAAA65AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACGVgqlAJ1iATYCJANsCzgABCAFhGcHgm0bpRcz0nLSii/Zf3VgG9Me+onQssVAsc1sEAIcsiXFwP2LCPXcvWU4AZHWaLToHyatzT52gH4nXoB6MUMp4fnPv3/3mZkLPvlHYCmXRpk6VVKnqcXVCxU8AXCHp23+I8TiiJSj7+glxyoYggGYCEatG1fIGrexwBU/HWuWob+Y/gBcVX9vUlcpnR+lw3nDQ4tYBqp0d2w44F8IsgNS+VJL69uEFwxPAAtdqtQpyoR5BgDUX041c9N0CBA7l8Bc2dho8o/8kuWh160sWsALeBEqgGWlJaj/u1ZaKACoo3IK5Cv0OZVkjv7Adv9xyruc3aOUpwCo6PlqQDVzhLNXZlfhy8L01WhfXWtMsm8wZHWen46xmWcuGuP3iPNEVIzGzf9+HgQIGc5U1OwMexFItw6aOh40MVwuFKCby9ZRIwYB3ynFcMYIvs8V7dIgR3BAHVKXARwOvr28ARMfFI7m8kAL1luGgksPweNiTTIC+h5eeXtA0wpwAA0MbliZSvkh8dF3GBwYIWY33AOAvnTXP6RrTVkoU2qxrtnWbvOsx6648sj64s3LhS+LMxwsEMlboV4m+2AvNUJfhl7zHs7ofmPvHWISajQIqONTIk+BIs7g/hevSkqTMhVyRIS4eGgUiIu+RAwg80F1EywgBDFYAkEClkhQA0siaIAlEwRgOQR1sEICH6yMoARWQZAHqyQogFUTFMFqCBywWgIBi+lU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mc-iconfont[data-v-a5185fc9]{font-family:mc-iconfont!important;font-size:inherit;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mc-icon--envelope[data-v-a5185fc9]:before{content:""}.mc-icon--setting[data-v-a5185fc9]:before{content:""}.mc-icon--upload[data-v-a5185fc9]:before{content:""}.mc-icon--clock[data-v-a5185fc9]:before{content:""}.mc-icon--switch[data-v-a5185fc9]:before{content:""}.mc-icon--loading-dot[data-v-a5185fc9]:before{content:""}.mc-icon--fork[data-v-a5185fc9]:before{content:""}.mc-icon--square[data-v-a5185fc9]:before{content:""}.mc-icon--triangle-up[data-v-a5185fc9]:before{content:""}.mc-icon--loading[data-v-a5185fc9]:before{content:""}.mc-icon--application[data-v-a5185fc9]:before{content:""}.mc-icon--warning[data-v-a5185fc9]:before{content:""}.mc-icon--info[data-v-a5185fc9]:before{content:""}.mc-icon--add[data-v-a5185fc9]:before{content:""}.mc-icon--arrow-right[data-v-a5185fc9]:before{content:""}.mc-icon--arrow-left[data-v-a5185fc9]:before{content:""}.mc-icon--download[data-v-a5185fc9]:before{content:""}.mc-icon--attachment[data-v-a5185fc9]:before{content:""}.mc-icon--document[data-v-a5185fc9]:before{content:""}.mc-icon--copy[data-v-a5185fc9]:before{content:""}.mc-icon--refresh[data-v-a5185fc9]:before{content:""}.mc-icon--mandatory[data-v-a5185fc9]:before{content:""}.mc-icon--edit[data-v-a5185fc9]:before{content:""}.mc-icon--delete[data-v-a5185fc9]:before{content:""}.mc-icon--success[data-v-a5185fc9]:before{content:""}@keyframes loading-7393566b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mc-button[data-v-7393566b]{border:none;background:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;-moz-appearance:none;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:var(--mc-gap);font-weight:700;border-radius:var(--mc-radius);transition:transform var(--mc-transition-duration)}.mc-button[data-v-7393566b]:active{transform:translateY(var(--mc-transform-distance))}.mc-button.mc-button--medium[data-v-7393566b]{width:fit-content;height:40px;padding:15px 16px}.mc-button.mc-button--small[data-v-7393566b]{width:fit-content;height:34px;padding:12px 16px}.mc-button.mc-button--large[data-v-7393566b]{width:fit-content;height:64px;padding:27px 16px}.mc-button.mc-button--primary[data-v-7393566b]{background-color:var(--mc-teal-500);color:var(--mc-white)}.mc-button.mc-button--primary[data-v-7393566b]:hover{background-color:var(--mc-teal-900)}.mc-button.mc-button--plain[data-v-7393566b]{border:1px solid var(--mc-teal-500);color:var(--mc-teal-500)}.mc-button.mc-button--plain[data-v-7393566b]:hover{border:1px solid var(--mc-teal-900);color:var(--mc-teal-900)}.mc-button.mc-button--link[data-v-7393566b]{color:var(--mc-teal-500)}.mc-button.mc-button--link[data-v-7393566b]:hover{color:var(--mc-teal-900)}.mc-button.is-loading .loading-icon[data-v-7393566b]{animation:loading-7393566b 1s linear infinite}.mc-button.is-disabled[data-v-7393566b]{background-color:var(--mc-gray-300);color:var(--mc-gray-400);border:none;cursor:not-allowed}.mc-button.is-disabled[data-v-7393566b]:hover{background-color:var(--mc-gray-300);color:var(--mc-gray-400);transform:translateY(0);border:none}body{font-family:var(--er-font-family);font-weight:400;font-size:var(--er-font-size-base);line-height:calc(var(--er-font-size-base) * 1.2);color:var(--er-text-color-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}a{color:var(--er-color-primary);text-decoration:none}a:hover,a:focus{color:var(--er-color-primary-light-3)}a:active{color:var(--er-color-primary-dark-2)}h1,h2,h3,h4,h5,h6{color:var(--er-text-color-regular);font-weight:inherit}h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child{margin-top:0}h1:last-child,h2:last-child,h3:last-child,h4:last-child,h5:last-child,h6:last-child{margin-bottom:0}h1{font-size:calc(var(--er-font-size-base) + 6px)}h2{font-size:calc(var(--er-font-size-base) + 4px)}h3{font-size:calc(var(--er-font-size-base) + 2px)}h4,h5,h6,p{font-size:inherit}p{line-height:1.8}p:first-child{margin-top:0}p:last-child{margin-bottom:0}sup,sub{font-size:calc(var(--er-font-size-base) - 1px)}small{font-size:calc(var(--er-font-size-base) - 2px)}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid var(--er-border-color-lighter)}:root{--mc-purple-900: #211050;--mc-purple-500: #301a6d;--mc-purple-300: #462999;--mc-purple-200: #654cad;--mc-purple-100: #a695d7;--mc-purple-50: #e6ddff;--mc-teal-900: #399e9a;--mc-teal-500: #3fb9b5;--mc-teal-300: #45d4cf;--mc-teal-200: #aae1df;--mc-teal-100: #bcf0ee;--mc-teal-50: #dafafa;--mc-black: #000000;--mc-gray-800: #222222;--mc-gray-700: #333333;--mc-gray-600: #4d4d4d;--mc-gray-500: #808080;--mc-gray-400: #b0b0b0;--mc-gray-300: #d4d4d4;--mc-gray-200: #e7e7e7;--mc-gray-100: #f7f7f7;--mc-camp-background: #f9f7ff;--mc-white: #ffffff;--mc-success: #23b12f;--mc-warning: #ffba30;--mc-info: #4b82f1;--mc-error: #f53d3d;--mc-success-background: #def4e0;--mc-warning-background: #fff5e0;--mc-info-background: #e4edfd;--mc-error-background: #fee2e2;--mc-success-light-background: #eff9ef;--mc-warning-light-background: #fffaef;--mc-info-light-background: #f1f6fe;--mc-error-light-background: #fff1f1;--mc-gap: 4px;--mc-radius: 4px;--mc-transition-duration: .3s;--mc-transform-distance: 2px}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type * from './types';
|
|
2
|
+
export declare const McButton: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').ButtonProps> & Readonly<{
|
|
4
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
ref: import('vue').Ref<HTMLButtonElement | void>;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
click: (val: MouseEvent) => any;
|
|
9
|
+
}, import('vue').PublicProps, {
|
|
10
|
+
size: import('packages/core').ButtonSize;
|
|
11
|
+
type: import('packages/core').ButtonType;
|
|
12
|
+
nativeType: import('packages/core').NativeType;
|
|
13
|
+
useThrottle: boolean;
|
|
14
|
+
throttleDuration: number;
|
|
15
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
16
|
+
_ref: HTMLButtonElement;
|
|
17
|
+
}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<import('packages/core').ButtonProps> & Readonly<{
|
|
25
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
ref: import('vue').Ref<HTMLButtonElement | void>;
|
|
28
|
+
}, {}, {}, {}, {
|
|
29
|
+
size: import('packages/core').ButtonSize;
|
|
30
|
+
type: import('packages/core').ButtonType;
|
|
31
|
+
nativeType: import('packages/core').NativeType;
|
|
32
|
+
useThrottle: boolean;
|
|
33
|
+
throttleDuration: number;
|
|
34
|
+
}>;
|
|
35
|
+
__isFragment?: never;
|
|
36
|
+
__isTeleport?: never;
|
|
37
|
+
__isSuspense?: never;
|
|
38
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').ButtonProps> & Readonly<{
|
|
39
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
ref: import('vue').Ref<HTMLButtonElement | void>;
|
|
42
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
43
|
+
click: (val: MouseEvent) => any;
|
|
44
|
+
}, string, {
|
|
45
|
+
size: import('packages/core').ButtonSize;
|
|
46
|
+
type: import('packages/core').ButtonType;
|
|
47
|
+
nativeType: import('packages/core').NativeType;
|
|
48
|
+
useThrottle: boolean;
|
|
49
|
+
throttleDuration: number;
|
|
50
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
51
|
+
$slots: {
|
|
52
|
+
default?(_: {}): any;
|
|
53
|
+
};
|
|
54
|
+
}) & import('vue').Plugin;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { IconType } from '../mc-icon/types';
|
|
3
|
+
export type ButtonType = "primary" | "plain" | "link";
|
|
4
|
+
export type NativeType = "button" | "submit" | "reset";
|
|
5
|
+
export type ButtonSize = "medium" | "large" | "small";
|
|
6
|
+
export interface ButtonProps {
|
|
7
|
+
type?: ButtonType;
|
|
8
|
+
nativeType?: NativeType;
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
useThrottle?: boolean;
|
|
13
|
+
throttleDuration?: number;
|
|
14
|
+
leftIcon?: IconType;
|
|
15
|
+
rightIcon?: IconType;
|
|
16
|
+
content?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
width?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ButtonEmits {
|
|
21
|
+
(e: "click", val: MouseEvent): void;
|
|
22
|
+
}
|
|
23
|
+
export interface ButtonInstance {
|
|
24
|
+
ref: Ref<HTMLButtonElement | void>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type * from './types';
|
|
2
|
+
export declare const McIcon: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').IconProps> & Readonly<{
|
|
4
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
ref: import('vue').Ref<HTMLElement | void>;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
click: (val: MouseEvent) => any;
|
|
9
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
10
|
+
_ref: HTMLElement;
|
|
11
|
+
}, HTMLElement, import('vue').ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<import('packages/core').IconProps> & Readonly<{
|
|
19
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
ref: import('vue').Ref<HTMLElement | void>;
|
|
22
|
+
}, {}, {}, {}, {}>;
|
|
23
|
+
__isFragment?: never;
|
|
24
|
+
__isTeleport?: never;
|
|
25
|
+
__isSuspense?: never;
|
|
26
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').IconProps> & Readonly<{
|
|
27
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
ref: import('vue').Ref<HTMLElement | void>;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
31
|
+
click: (val: MouseEvent) => any;
|
|
32
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type IconType = "envelope" | "setting" | "upload" | "clock" | "switch" | "loading-dot" | "fork" | "square" | "triangle-up" | "loading" | "application" | "warning" | "info" | "add" | "arrow-right" | "arrow-left" | "download" | "attachment" | "document" | "copy" | "refresh" | "mandatory" | "edit" | "delete" | "success";
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
name: IconType;
|
|
5
|
+
}
|
|
6
|
+
export interface IconEmits {
|
|
7
|
+
(e: "click", val: MouseEvent): void;
|
|
8
|
+
}
|
|
9
|
+
export interface IconInstance {
|
|
10
|
+
ref: Ref<HTMLElement | void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './install';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
type SFCWithInstall<T> = T & Plugin;
|
|
3
|
+
type ComponentWithName = {
|
|
4
|
+
name: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const makeInstaller: (components: Plugin[]) => Plugin;
|
|
8
|
+
export declare const withInstall: <T extends ComponentWithName>(component: T) => SFCWithInstall<T>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:mc-iconfont;src:url(data:font/woff2;base64,d09GMgABAAAAAA8IAAsAAAAAHEAAAA65AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACGVgqlAJ1iATYCJANsCzgABCAFhGcHgm0bpRcz0nLSii/Zf3VgG9Me+onQssVAsc1sEAIcsiXFwP2LCPXcvWU4AZHWaLToHyatzT52gH4nXoB6MUMp4fnPv3/3mZkLPvlHYCmXRpk6VVKnqcXVCxU8AXCHp23+I8TiiJSj7+glxyoYggGYCEatG1fIGrexwBU/HWuWob+Y/gBcVX9vUlcpnR+lw3nDQ4tYBqp0d2w44F8IsgNS+VJL69uEFwxPAAtdqtQpyoR5BgDUX041c9N0CBA7l8Bc2dho8o/8kuWh160sWsALeBEqgGWlJaj/u1ZaKACoo3IK5Cv0OZVkjv7Adv9xyruc3aOUpwCo6PlqQDVzhLNXZlfhy8L01WhfXWtMsm8wZHWen46xmWcuGuP3iPNEVIzGz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nQ+yOLZIVXhcCRsDqNSWMG4cCCjtJMAwuMxB+WBmT5pCGNYvrsYSoEVdvlQvDYN7t99KHlhBFixFHXPHEl0B+mH78WBJJJSd5TCxsHFw8fGkEYEKihuv0Fgsy+ARWYod5LW2H3istey4FLXkaQDd5QTyfgbW0i4KJErnpqFAaOwVBImZbNoaTzYcidSt5ABVxMoexbTh9QBsnB105kJbH1JV7pdtZJCCBmpTSte0V6ExB70DBH6x9pHcM9L59a6/gCKol8FAnIS7X1hThmKq2qykrAOYkJFOgOuzLLW1timbpEHS3gsMkqB0cOhiMbioVAAA=) format("woff2")}.mc-iconfont[data-v-a5185fc9]{font-family:mc-iconfont!important;font-size:inherit;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mc-icon--envelope[data-v-a5185fc9]:before{content:""}.mc-icon--setting[data-v-a5185fc9]:before{content:""}.mc-icon--upload[data-v-a5185fc9]:before{content:""}.mc-icon--clock[data-v-a5185fc9]:before{content:""}.mc-icon--switch[data-v-a5185fc9]:before{content:""}.mc-icon--loading-dot[data-v-a5185fc9]:before{content:""}.mc-icon--fork[data-v-a5185fc9]:before{content:""}.mc-icon--square[data-v-a5185fc9]:before{content:""}.mc-icon--triangle-up[data-v-a5185fc9]:before{content:""}.mc-icon--loading[data-v-a5185fc9]:before{content:""}.mc-icon--application[data-v-a5185fc9]:before{content:""}.mc-icon--warning[data-v-a5185fc9]:before{content:""}.mc-icon--info[data-v-a5185fc9]:before{content:""}.mc-icon--add[data-v-a5185fc9]:before{content:""}.mc-icon--arrow-right[data-v-a5185fc9]:before{content:""}.mc-icon--arrow-left[data-v-a5185fc9]:before{content:""}.mc-icon--download[data-v-a5185fc9]:before{content:""}.mc-icon--attachment[data-v-a5185fc9]:before{content:""}.mc-icon--document[data-v-a5185fc9]:before{content:""}.mc-icon--copy[data-v-a5185fc9]:before{content:""}.mc-icon--refresh[data-v-a5185fc9]:before{content:""}.mc-icon--mandatory[data-v-a5185fc9]:before{content:""}.mc-icon--edit[data-v-a5185fc9]:before{content:""}.mc-icon--delete[data-v-a5185fc9]:before{content:""}.mc-icon--success[data-v-a5185fc9]:before{content:""}@keyframes loading-7393566b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mc-button[data-v-7393566b]{border:none;background:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;-moz-appearance:none;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:var(--mc-gap);font-weight:700;border-radius:var(--mc-radius);transition:transform var(--mc-transition-duration)}.mc-button[data-v-7393566b]:active{transform:translateY(var(--mc-transform-distance))}.mc-button.mc-button--medium[data-v-7393566b]{width:fit-content;height:40px;padding:15px 16px}.mc-button.mc-button--small[data-v-7393566b]{width:fit-content;height:34px;padding:12px 16px}.mc-button.mc-button--large[data-v-7393566b]{width:fit-content;height:64px;padding:27px 16px}.mc-button.mc-button--primary[data-v-7393566b]{background-color:var(--mc-teal-500);color:var(--mc-white)}.mc-button.mc-button--primary[data-v-7393566b]:hover{background-color:var(--mc-teal-900)}.mc-button.mc-button--plain[data-v-7393566b]{border:1px solid var(--mc-teal-500);color:var(--mc-teal-500)}.mc-button.mc-button--plain[data-v-7393566b]:hover{border:1px solid var(--mc-teal-900);color:var(--mc-teal-900)}.mc-button.mc-button--link[data-v-7393566b]{color:var(--mc-teal-500)}.mc-button.mc-button--link[data-v-7393566b]:hover{color:var(--mc-teal-900)}.mc-button.is-loading .loading-icon[data-v-7393566b]{animation:loading-7393566b 1s linear infinite}.mc-button.is-disabled[data-v-7393566b]{background-color:var(--mc-gray-300);color:var(--mc-gray-400);border:none;cursor:not-allowed}.mc-button.is-disabled[data-v-7393566b]:hover{background-color:var(--mc-gray-300);color:var(--mc-gray-400);transform:translateY(0);border:none}body{font-family:var(--er-font-family);font-weight:400;font-size:var(--er-font-size-base);line-height:calc(var(--er-font-size-base) * 1.2);color:var(--er-text-color-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}a{color:var(--er-color-primary);text-decoration:none}a:hover,a:focus{color:var(--er-color-primary-light-3)}a:active{color:var(--er-color-primary-dark-2)}h1,h2,h3,h4,h5,h6{color:var(--er-text-color-regular);font-weight:inherit}h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child{margin-top:0}h1:last-child,h2:last-child,h3:last-child,h4:last-child,h5:last-child,h6:last-child{margin-bottom:0}h1{font-size:calc(var(--er-font-size-base) + 6px)}h2{font-size:calc(var(--er-font-size-base) + 4px)}h3{font-size:calc(var(--er-font-size-base) + 2px)}h4,h5,h6,p{font-size:inherit}p{line-height:1.8}p:first-child{margin-top:0}p:last-child{margin-bottom:0}sup,sub{font-size:calc(var(--er-font-size-base) - 1px)}small{font-size:calc(var(--er-font-size-base) - 2px)}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid var(--er-border-color-lighter)}:root{--mc-purple-900: #211050;--mc-purple-500: #301a6d;--mc-purple-300: #462999;--mc-purple-200: #654cad;--mc-purple-100: #a695d7;--mc-purple-50: #e6ddff;--mc-teal-900: #399e9a;--mc-teal-500: #3fb9b5;--mc-teal-300: #45d4cf;--mc-teal-200: #aae1df;--mc-teal-100: #bcf0ee;--mc-teal-50: #dafafa;--mc-black: #000000;--mc-gray-800: #222222;--mc-gray-700: #333333;--mc-gray-600: #4d4d4d;--mc-gray-500: #808080;--mc-gray-400: #b0b0b0;--mc-gray-300: #d4d4d4;--mc-gray-200: #e7e7e7;--mc-gray-100: #f7f7f7;--mc-camp-background: #f9f7ff;--mc-white: #ffffff;--mc-success: #23b12f;--mc-warning: #ffba30;--mc-info: #4b82f1;--mc-error: #f53d3d;--mc-success-background: #def4e0;--mc-warning-background: #fff5e0;--mc-info-background: #e4edfd;--mc-error-background: #fee2e2;--mc-success-light-background: #eff9ef;--mc-warning-light-background: #fffaef;--mc-info-light-background: #f1f6fe;--mc-error-light-background: #fff1f1;--mc-gap: 4px;--mc-radius: 4px;--mc-transition-duration: .3s;--mc-transform-distance: 2px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(l,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(l=typeof globalThis<"u"?globalThis:l||self,r(l.McPlus={},l.Vue))})(this,function(l,r){"use strict";var F=typeof global=="object"&&global&&global.Object===Object&&global,re=typeof self=="object"&&self&&self.Object===Object&&self,$=F||re||Function("return this")(),E=$.Symbol,x=Object.prototype,oe=x.hasOwnProperty,ie=x.toString,h=E?E.toStringTag:void 0;function ae(e){var t=oe.call(e,h),n=e[h];try{e[h]=void 0;var o=!0}catch{}var i=ie.call(e);return o&&(t?e[h]=n:delete e[h]),i}var ce=Object.prototype,fe=ce.toString;function se(e){return fe.call(e)}var ue="[object Null]",le="[object Undefined]",R=E?E.toStringTag:void 0;function k(e){return e==null?e===void 0?le:ue:R&&R in Object(e)?ae(e):se(e)}function _(e){return e!=null&&typeof e=="object"}var de="[object Symbol]";function be(e){return typeof e=="symbol"||_(e)&&k(e)==de}var N=Array.isArray,ge=/\s/;function me(e){for(var t=e.length;t--&&ge.test(e.charAt(t)););return t}var pe=/^\s+/;function ye(e){return e&&e.slice(0,me(e)+1).replace(pe,"")}function j(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U=NaN,Te=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,je=/^0o[0-7]+$/i,Ie=parseInt;function L(e){if(typeof e=="number")return e;if(be(e))return U;if(j(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ye(e);var n=he.test(e);return n||je.test(e)?Ie(e.slice(2),n?2:8):Te.test(e)?U:+e}function Oe(e){return e}var Ae="[object AsyncFunction]",ve="[object Function]",Be="[object GeneratorFunction]",Ee="[object Proxy]";function ke(e){if(!j(e))return!1;var t=k(e);return t==ve||t==Be||t==Ae||t==Ee}function _e(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}var Se=9007199254740991,$e=/^(?:0|[1-9]\d*)$/;function Me(e,t){var n=typeof e;return t=t??Se,!!t&&(n=="number"||n!="symbol"&&$e.test(e))&&e>-1&&e%1==0&&e<t}var we=9007199254740991;function V(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=we}function W(e){return e!=null&&V(e.length)&&!ke(e)}var Ce=Object.prototype;function Pe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ce;return e===n}function Fe(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var xe="[object Arguments]";function z(e){return _(e)&&k(e)==xe}var D=Object.prototype,Re=D.hasOwnProperty,Ne=D.propertyIsEnumerable,Ue=z(function(){return arguments}())?z:function(e){return _(e)&&Re.call(e,"callee")&&!Ne.call(e,"callee")};function Le(){return!1}var G=typeof l=="object"&&l&&!l.nodeType&&l,X=G&&typeof module=="object"&&module&&!module.nodeType&&module,Ve=X&&X.exports===G,q=Ve?$.Buffer:void 0,We=q?q.isBuffer:void 0,ze=We||Le,De="[object Arguments]",Ge="[object Array]",Xe="[object Boolean]",qe="[object Date]",Ke="[object Error]",He="[object Function]",Je="[object Map]",Qe="[object Number]",Ye="[object Object]",Ze="[object RegExp]",et="[object Set]",tt="[object String]",nt="[object WeakMap]",rt="[object ArrayBuffer]",ot="[object DataView]",it="[object Float32Array]",at="[object Float64Array]",ct="[object Int8Array]",ft="[object Int16Array]",st="[object Int32Array]",ut="[object Uint8Array]",lt="[object Uint8ClampedArray]",dt="[object Uint16Array]",bt="[object Uint32Array]",a={};a[it]=a[at]=a[ct]=a[ft]=a[st]=a[ut]=a[lt]=a[dt]=a[bt]=!0,a[De]=a[Ge]=a[rt]=a[Xe]=a[ot]=a[qe]=a[Ke]=a[He]=a[Je]=a[Qe]=a[Ye]=a[Ze]=a[et]=a[tt]=a[nt]=!1;function gt(e){return _(e)&&V(e.length)&&!!a[k(e)]}function mt(e){return function(t){return e(t)}}var K=typeof l=="object"&&l&&!l.nodeType&&l,I=K&&typeof module=="object"&&module&&!module.nodeType&&module,pt=I&&I.exports===K,M=pt&&F.process,H=function(){try{var e=I&&I.require&&I.require("util").types;return e||M&&M.binding&&M.binding("util")}catch{}}(),J=H&&H.isTypedArray,yt=J?mt(J):gt,Tt=Object.prototype,ht=Tt.hasOwnProperty;function jt(e,t){var n=N(e),o=!n&&Ue(e),i=!n&&!o&&ze(e),f=!n&&!o&&!i&&yt(e),s=n||o||i||f,c=s?Fe(e.length,String):[],d=c.length;for(var b in e)ht.call(e,b)&&!(s&&(b=="length"||i&&(b=="offset"||b=="parent")||f&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Me(b,d)))&&c.push(b);return c}function It(e,t){return function(n){return e(t(n))}}var Ot=It(Object.keys,Object),At=Object.prototype,vt=At.hasOwnProperty;function Bt(e){if(!Pe(e))return Ot(e);var t=[];for(var n in Object(e))vt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Et(e){return W(e)?jt(e):Bt(e)}function kt(e){return function(t,n,o){for(var i=-1,f=Object(t),s=o(t),c=s.length;c--;){var d=s[++i];if(n(f[d],d,f)===!1)break}return t}}var _t=kt();function St(e,t){return e&&_t(e,t,Et)}function $t(e,t){return function(n,o){if(n==null)return n;if(!W(n))return e(n,o);for(var i=n.length,f=-1,s=Object(n);++f<i&&o(s[f],f,s)!==!1;);return n}}var Mt=$t(St),w=function(){return $.Date.now()},wt="Expected a function",Ct=Math.max,Pt=Math.min;function Ft(e,t,n){var o,i,f,s,c,d,b=0,O=!1,p=!1,A=!0;if(typeof e!="function")throw new TypeError(wt);t=L(t)||0,j(n)&&(O=!!n.leading,p="maxWait"in n,f=p?Ct(L(n.maxWait)||0,t):f,A="trailing"in n?!!n.trailing:A);function T(u){var m=o,B=i;return o=i=void 0,b=u,s=e.apply(B,m),s}function C(u){return b=u,c=setTimeout(y,t),O?T(u):s}function g(u){var m=u-d,B=u-b,ne=t-m;return p?Pt(ne,f-B):ne}function v(u){var m=u-d,B=u-b;return d===void 0||m>=t||m<0||p&&B>=f}function y(){var u=w();if(v(u))return te(u);c=setTimeout(y,g(u))}function te(u){return c=void 0,A&&o?T(u):(o=i=void 0,s)}function Gt(){c!==void 0&&clearTimeout(c),b=0,o=d=i=c=void 0}function Xt(){return c===void 0?s:te(w())}function P(){var u=w(),m=v(u);if(o=arguments,i=this,d=u,m){if(c===void 0)return C(d);if(p)return clearTimeout(c),c=setTimeout(y,t),T(d)}return c===void 0&&(c=setTimeout(y,t)),s}return P.cancel=Gt,P.flush=Xt,P}function xt(e){return typeof e=="function"?e:Oe}function Rt(e,t){var n=N(e)?_e:Mt;return n(e,xt(t))}var Nt="Expected a function";function Ut(e,t,n){var o=!0,i=!0;if(typeof e!="function")throw new TypeError(Nt);return j(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!1:i),Ft(e,t,{leading:o,maxWait:t,trailing:i})}const Lt=e=>n=>Rt(e,o=>n.use(o)),Q=e=>(e.install=t=>{t.component(e.name,e)},e),Vt=r.defineComponent({name:"McIcon",__name:"mc-icon",props:{name:{}},emits:["click"],setup(e,{expose:t,emit:n}){const o=n,i=r.ref(),f=s=>{o("click",s)};return t({ref:i}),(s,c)=>(r.openBlock(),r.createElementBlock("i",{ref_key:"_ref",ref:i,class:r.normalizeClass(["mc-iconfont",`mc-icon--${s.name}`]),onClick:c[0]||(c[0]=d=>f(d))},null,2))}}),Y=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},S=Y(Vt,[["__scopeId","data-v-a5185fc9"]]),Wt=["type","disabled"],zt={key:1,class:"loading-icon"},Z=Q(Y(r.defineComponent({name:"McButton",__name:"mc-button",props:{type:{default:"primary"},nativeType:{default:"button"},size:{default:"medium"},disabled:{type:Boolean},loading:{type:Boolean},useThrottle:{type:Boolean,default:!0},throttleDuration:{default:500},leftIcon:{},rightIcon:{},content:{},height:{},width:{}},emits:["click"],setup(e,{expose:t,emit:n}){const o=e,{loading:i,disabled:f,throttleDuration:s,height:c,width:d}=r.toRefs(o),b=n,O=r.ref(),p=r.toRefs(r.useAttrs()),A=r.computed(()=>({...r.toValue(p).style,width:d.value?d.value:void 0,height:c.value?c.value:void 0})),T=g=>{i.value||f.value||b("click",g)},C=Ut(T,s.value,{trailing:!1});return t({ref:O}),(g,v)=>(r.openBlock(),r.createElementBlock("button",{ref_key:"_ref",ref:O,style:r.normalizeStyle(A.value),class:r.normalizeClass(["mc-button",{[`mc-button--${g.type}`]:g.type,[`mc-button--${g.size}`]:g.size,"is-loading":r.unref(i),"is-disabled":r.unref(f)}]),type:g.nativeType,disabled:r.unref(f)||r.unref(i)?!0:void 0,onClick:v[0]||(v[0]=y=>g.useThrottle?r.unref(C)(y):T(y))},[g.leftIcon&&!r.unref(i)?(r.openBlock(),r.createBlock(S,{key:0,name:g.leftIcon},null,8,["name"])):r.createCommentVNode("",!0),r.unref(i)?(r.openBlock(),r.createElementBlock("span",zt,[r.createVNode(S,{name:"loading-dot"})])):r.createCommentVNode("",!0),r.renderSlot(g.$slots,"default",{},void 0,!0),g.rightIcon?(r.openBlock(),r.createBlock(S,{key:2,name:g.rightIcon},null,8,["name"])):r.createCommentVNode("",!0)],14,Wt))}}),[["__scopeId","data-v-7393566b"]])),ee=Q(S),Dt=Lt([Z,ee]);l.McButton=Z,l.McIcon=ee,l.default=Dt,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mc-plus",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Components library for Vue 3.X by Meta Compass",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"./dist/index.css",
|
|
11
|
+
"./dist/theme/*.css"
|
|
12
|
+
],
|
|
13
|
+
"main": "./dist/umd/index.umd.cjs",
|
|
14
|
+
"module": "./dist/es/index.js",
|
|
15
|
+
"types": "./dist/types/core/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/es/index.js",
|
|
19
|
+
"require": "./dist/umd/index.umd.cjs",
|
|
20
|
+
"types": "./dist/types/core/index.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./dist/": {
|
|
23
|
+
"import": "./dist/",
|
|
24
|
+
"require": "./dist/"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "run-s build:only move-style",
|
|
29
|
+
"build:only": "run-p build:es build:umd",
|
|
30
|
+
"build:umd": "vite build --config vite.umd.config.ts",
|
|
31
|
+
"build:es": "vite build --config vite.es.config.ts",
|
|
32
|
+
"move-style": "move-file dist/es/index.css dist/index.css"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@mc-plus/components": "workspace:*"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [],
|
|
38
|
+
"author": "Hirasawa Yui <ayachinenesanobauxichi@gmail.com>",
|
|
39
|
+
"license": "ISC",
|
|
40
|
+
"packageManager": "pnpm@10.6.2",
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"vite-plugin-dts": "^4.5.3"
|
|
43
|
+
}
|
|
44
|
+
}
|