@baishuyun/ui-base 2.0.0 → 2.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/dist/Card/{Card-DMXtN2pu.js → Card-CXULQNHa.js} +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/CheckBox-Bu40TO29.js +84 -0
- package/dist/CheckBox/index.js +37 -0
- package/dist/ColorPicker/ColorPicker-CwFsihkL.js +207 -0
- package/dist/ColorPicker/index.js +1 -1
- package/dist/Icon/{Icon-C0bjP9U6.js → Icon-BlkVlKDd.js} +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +2 -2
- package/dist/Modal/{Modal-C1LEJ6Y0.js → Modal-BZTEGGa0.js} +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/NotFoundContent-h0-oIXlk.js +6 -0
- package/dist/NotFoundContent/index.js +4 -0
- package/dist/Radio/index.js +105 -0
- package/dist/Segmented/Segmented-UgzW78Ey.js +75 -0
- package/dist/Segmented/index.js +4 -0
- package/dist/Select/Select-C3abXG27.js +855 -0
- package/dist/Select/index.js +6 -0
- package/dist/Tree/index.js +4 -0
- package/dist/Tree/utils/index.js +40 -0
- package/dist/components/CheckBox/CheckBox.d.ts +46 -0
- package/dist/components/CheckBox/CheckboxIcon.d.ts +6 -0
- package/dist/components/CheckBox/Group.d.ts +30 -0
- package/dist/components/CheckBox/constants.d.ts +11 -0
- package/dist/components/CheckBox/context/context.d.ts +8 -0
- package/dist/components/CheckBox/index.d.ts +9 -0
- package/dist/components/NotFoundContent/NotFoundContent.d.ts +9 -0
- package/dist/components/NotFoundContent/index.d.ts +1 -0
- package/dist/components/Radio/Group.d.ts +3 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/constants.d.ts +6 -0
- package/dist/components/Radio/context/context.d.ts +9 -0
- package/dist/components/Radio/index.d.ts +7 -0
- package/dist/components/Radio/interface.d.ts +98 -0
- package/dist/components/Segmented/Segmented.d.ts +6 -0
- package/dist/components/Segmented/Segmented.type.d.ts +31 -0
- package/dist/components/Segmented/index.d.ts +2 -0
- package/dist/components/Select/HighlightText/HighlightText.d.ts +7 -0
- package/dist/components/Select/OptionList/MultOptionList/MultOptionList.d.ts +11 -0
- package/dist/components/Select/OptionList/OptionList.d.ts +6 -0
- package/dist/components/Select/OptionList/SingleOptionList/SingleOptionList.d.ts +11 -0
- package/dist/components/Select/OptionList/TreeOptionList/TreeOptionList.d.ts +21 -0
- package/dist/components/Select/OptionList/filter.d.ts +4 -0
- package/dist/components/Select/Select.d.ts +3 -0
- package/dist/components/Select/SelectInput/SelectInput.d.ts +10 -0
- package/dist/components/Select/SelectInput/SelectMultipleInput/OptionTag/OptionTag.d.ts +12 -0
- package/dist/components/Select/SelectInput/SelectMultipleInput/SelectMultipleInput.d.ts +8 -0
- package/dist/components/Select/SelectInput/SelectSingleInput/SelectSingleInput.d.ts +8 -0
- package/dist/components/Select/SelectInputSearch/SelectInputSearch.d.ts +6 -0
- package/dist/components/Select/SelectPanel/SelectPanel.d.ts +3 -0
- package/dist/components/Select/constants.d.ts +59 -0
- package/dist/components/Select/context/SelectContext.d.ts +52 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/interface.d.ts +192 -0
- package/dist/components/Select/utils/fieldAccessor.d.ts +30 -0
- package/dist/components/Select/utils/tree.d.ts +2 -0
- package/dist/components/Tree/Tree.d.ts +6 -0
- package/dist/components/Tree/TreeNode/TreeNode.d.ts +21 -0
- package/dist/components/Tree/context/TreeContext.d.ts +15 -0
- package/dist/components/Tree/index.d.ts +3 -0
- package/dist/components/Tree/types/node.d.ts +12 -0
- package/dist/components/Tree/types/tree.d.ts +84 -0
- package/dist/components/Tree/utils/index.d.ts +11 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/index.js +45 -35
- package/dist/style.css +1 -1
- package/dist/vendors/Tree-CCY2gtpG.js +225 -0
- package/dist/vendors/fuse.js-D1DCbUBb.js +1022 -0
- package/dist/vendors/index-ByQkttKA.js +59 -0
- package/dist/vendors/lodash-es-CZfJRWhO.js +305 -0
- package/dist/vendors/{simplebar-react-svBEsTVC.js → simplebar-react-Bf9Zq-21.js} +1 -1
- package/package.json +1 -1
- package/dist/ColorPicker/ColorPicker-CpPLwHR2.js +0 -253
- package/dist/vendors/fuse.js-l0sNRNKZ.js +0 -1
- package/dist/vendors/lodash-es-DP1ViCXF.js +0 -262
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
var tr = typeof global == "object" && global && global.Object === Object && global, pr = typeof self == "object" && self && self.Object === Object && self, u = tr || pr || Function("return this")(), x = u.Symbol, er = Object.prototype, yr = er.hasOwnProperty, dr = er.toString, v = x ? x.toStringTag : void 0;
|
|
2
|
-
function lr(r) {
|
|
3
|
-
var t = yr.call(r, v), e = r[v];
|
|
4
|
-
try {
|
|
5
|
-
r[v] = void 0;
|
|
6
|
-
var a = !0;
|
|
7
|
-
} catch {
|
|
8
|
-
}
|
|
9
|
-
var c = dr.call(r);
|
|
10
|
-
return a && (t ? r[v] = e : delete r[v]), c;
|
|
11
|
-
}
|
|
12
|
-
var Tr = Object.prototype, jr = Tr.toString;
|
|
13
|
-
function mr(r) {
|
|
14
|
-
return jr.call(r);
|
|
15
|
-
}
|
|
16
|
-
var vr = "[object Null]", Or = "[object Undefined]", V = x ? x.toStringTag : void 0;
|
|
17
|
-
function b(r) {
|
|
18
|
-
return r == null ? r === void 0 ? Or : vr : V && V in Object(r) ? lr(r) : mr(r);
|
|
19
|
-
}
|
|
20
|
-
function S(r) {
|
|
21
|
-
return r != null && typeof r == "object";
|
|
22
|
-
}
|
|
23
|
-
var Sr = "[object Symbol]";
|
|
24
|
-
function $r(r) {
|
|
25
|
-
return typeof r == "symbol" || S(r) && b(r) == Sr;
|
|
26
|
-
}
|
|
27
|
-
var hr = Array.isArray, xr = /\s/;
|
|
28
|
-
function Ar(r) {
|
|
29
|
-
for (var t = r.length; t-- && xr.test(r.charAt(t)); )
|
|
30
|
-
;
|
|
31
|
-
return t;
|
|
32
|
-
}
|
|
33
|
-
var wr = /^\s+/;
|
|
34
|
-
function Pr(r) {
|
|
35
|
-
return r && r.slice(0, Ar(r) + 1).replace(wr, "");
|
|
36
|
-
}
|
|
37
|
-
function d(r) {
|
|
38
|
-
var t = typeof r;
|
|
39
|
-
return r != null && (t == "object" || t == "function");
|
|
40
|
-
}
|
|
41
|
-
var D = NaN, Er = /^[-+]0x[0-9a-f]+$/i, Ir = /^0b[01]+$/i, Mr = /^0o[0-7]+$/i, kr = parseInt;
|
|
42
|
-
function L(r) {
|
|
43
|
-
if (typeof r == "number")
|
|
44
|
-
return r;
|
|
45
|
-
if ($r(r))
|
|
46
|
-
return D;
|
|
47
|
-
if (d(r)) {
|
|
48
|
-
var t = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
49
|
-
r = d(t) ? t + "" : t;
|
|
50
|
-
}
|
|
51
|
-
if (typeof r != "string")
|
|
52
|
-
return r === 0 ? r : +r;
|
|
53
|
-
r = Pr(r);
|
|
54
|
-
var e = Ir.test(r);
|
|
55
|
-
return e || Mr.test(r) ? kr(r.slice(2), e ? 2 : 8) : Er.test(r) ? D : +r;
|
|
56
|
-
}
|
|
57
|
-
var Cr = "[object AsyncFunction]", Fr = "[object Function]", Nr = "[object GeneratorFunction]", _r = "[object Proxy]";
|
|
58
|
-
function nr(r) {
|
|
59
|
-
if (!d(r))
|
|
60
|
-
return !1;
|
|
61
|
-
var t = b(r);
|
|
62
|
-
return t == Fr || t == Nr || t == Cr || t == _r;
|
|
63
|
-
}
|
|
64
|
-
var E = u["__core-js_shared__"], G = (function() {
|
|
65
|
-
var r = /[^.]+$/.exec(E && E.keys && E.keys.IE_PROTO || "");
|
|
66
|
-
return r ? "Symbol(src)_1." + r : "";
|
|
67
|
-
})();
|
|
68
|
-
function Br(r) {
|
|
69
|
-
return !!G && G in r;
|
|
70
|
-
}
|
|
71
|
-
var Rr = Function.prototype, Wr = Rr.toString;
|
|
72
|
-
function p(r) {
|
|
73
|
-
if (r != null) {
|
|
74
|
-
try {
|
|
75
|
-
return Wr.call(r);
|
|
76
|
-
} catch {
|
|
77
|
-
}
|
|
78
|
-
try {
|
|
79
|
-
return r + "";
|
|
80
|
-
} catch {
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return "";
|
|
84
|
-
}
|
|
85
|
-
var Ur = /[\\^$.*+?()[\]{}|]/g, Vr = /^\[object .+?Constructor\]$/, Dr = Function.prototype, Lr = Object.prototype, Gr = Dr.toString, Kr = Lr.hasOwnProperty, Xr = RegExp(
|
|
86
|
-
"^" + Gr.call(Kr).replace(Ur, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
87
|
-
);
|
|
88
|
-
function qr(r) {
|
|
89
|
-
if (!d(r) || Br(r))
|
|
90
|
-
return !1;
|
|
91
|
-
var t = nr(r) ? Xr : Vr;
|
|
92
|
-
return t.test(p(r));
|
|
93
|
-
}
|
|
94
|
-
function Hr(r, t) {
|
|
95
|
-
return r == null ? void 0 : r[t];
|
|
96
|
-
}
|
|
97
|
-
function $(r, t) {
|
|
98
|
-
var e = Hr(r, t);
|
|
99
|
-
return qr(e) ? e : void 0;
|
|
100
|
-
}
|
|
101
|
-
var k = $(u, "WeakMap"), zr = 9007199254740991;
|
|
102
|
-
function or(r) {
|
|
103
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= zr;
|
|
104
|
-
}
|
|
105
|
-
function Jr(r) {
|
|
106
|
-
return r != null && or(r.length) && !nr(r);
|
|
107
|
-
}
|
|
108
|
-
var Qr = Object.prototype;
|
|
109
|
-
function ar(r) {
|
|
110
|
-
var t = r && r.constructor, e = typeof t == "function" && t.prototype || Qr;
|
|
111
|
-
return r === e;
|
|
112
|
-
}
|
|
113
|
-
var Yr = "[object Arguments]";
|
|
114
|
-
function K(r) {
|
|
115
|
-
return S(r) && b(r) == Yr;
|
|
116
|
-
}
|
|
117
|
-
var ir = Object.prototype, Zr = ir.hasOwnProperty, rt = ir.propertyIsEnumerable, tt = K(/* @__PURE__ */ (function() {
|
|
118
|
-
return arguments;
|
|
119
|
-
})()) ? K : function(r) {
|
|
120
|
-
return S(r) && Zr.call(r, "callee") && !rt.call(r, "callee");
|
|
121
|
-
};
|
|
122
|
-
function et() {
|
|
123
|
-
return !1;
|
|
124
|
-
}
|
|
125
|
-
var cr = typeof exports == "object" && exports && !exports.nodeType && exports, X = cr && typeof module == "object" && module && !module.nodeType && module, nt = X && X.exports === cr, q = nt ? u.Buffer : void 0, ot = q ? q.isBuffer : void 0, at = ot || et, it = "[object Arguments]", ct = "[object Array]", ut = "[object Boolean]", ft = "[object Date]", st = "[object Error]", gt = "[object Function]", bt = "[object Map]", pt = "[object Number]", yt = "[object Object]", dt = "[object RegExp]", lt = "[object Set]", Tt = "[object String]", jt = "[object WeakMap]", mt = "[object ArrayBuffer]", vt = "[object DataView]", Ot = "[object Float32Array]", St = "[object Float64Array]", $t = "[object Int8Array]", ht = "[object Int16Array]", xt = "[object Int32Array]", At = "[object Uint8Array]", wt = "[object Uint8ClampedArray]", Pt = "[object Uint16Array]", Et = "[object Uint32Array]", n = {};
|
|
126
|
-
n[Ot] = n[St] = n[$t] = n[ht] = n[xt] = n[At] = n[wt] = n[Pt] = n[Et] = !0;
|
|
127
|
-
n[it] = n[ct] = n[mt] = n[ut] = n[vt] = n[ft] = n[st] = n[gt] = n[bt] = n[pt] = n[yt] = n[dt] = n[lt] = n[Tt] = n[jt] = !1;
|
|
128
|
-
function It(r) {
|
|
129
|
-
return S(r) && or(r.length) && !!n[b(r)];
|
|
130
|
-
}
|
|
131
|
-
function Mt(r) {
|
|
132
|
-
return function(t) {
|
|
133
|
-
return r(t);
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
var ur = typeof exports == "object" && exports && !exports.nodeType && exports, O = ur && typeof module == "object" && module && !module.nodeType && module, kt = O && O.exports === ur, I = kt && tr.process, H = (function() {
|
|
137
|
-
try {
|
|
138
|
-
var r = O && O.require && O.require("util").types;
|
|
139
|
-
return r || I && I.binding && I.binding("util");
|
|
140
|
-
} catch {
|
|
141
|
-
}
|
|
142
|
-
})(), z = H && H.isTypedArray, Ct = z ? Mt(z) : It;
|
|
143
|
-
function Ft(r, t) {
|
|
144
|
-
return function(e) {
|
|
145
|
-
return r(t(e));
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
var Nt = Ft(Object.keys, Object), _t = Object.prototype, Bt = _t.hasOwnProperty;
|
|
149
|
-
function Rt(r) {
|
|
150
|
-
if (!ar(r))
|
|
151
|
-
return Nt(r);
|
|
152
|
-
var t = [];
|
|
153
|
-
for (var e in Object(r))
|
|
154
|
-
Bt.call(r, e) && e != "constructor" && t.push(e);
|
|
155
|
-
return t;
|
|
156
|
-
}
|
|
157
|
-
var C = $(u, "Map"), F = $(u, "DataView"), N = $(u, "Promise"), _ = $(u, "Set"), J = "[object Map]", Wt = "[object Object]", Q = "[object Promise]", Y = "[object Set]", Z = "[object WeakMap]", rr = "[object DataView]", Ut = p(F), Vt = p(C), Dt = p(N), Lt = p(_), Gt = p(k), g = b;
|
|
158
|
-
(F && g(new F(new ArrayBuffer(1))) != rr || C && g(new C()) != J || N && g(N.resolve()) != Q || _ && g(new _()) != Y || k && g(new k()) != Z) && (g = function(r) {
|
|
159
|
-
var t = b(r), e = t == Wt ? r.constructor : void 0, a = e ? p(e) : "";
|
|
160
|
-
if (a)
|
|
161
|
-
switch (a) {
|
|
162
|
-
case Ut:
|
|
163
|
-
return rr;
|
|
164
|
-
case Vt:
|
|
165
|
-
return J;
|
|
166
|
-
case Dt:
|
|
167
|
-
return Q;
|
|
168
|
-
case Lt:
|
|
169
|
-
return Y;
|
|
170
|
-
case Gt:
|
|
171
|
-
return Z;
|
|
172
|
-
}
|
|
173
|
-
return t;
|
|
174
|
-
});
|
|
175
|
-
var M = function() {
|
|
176
|
-
return u.Date.now();
|
|
177
|
-
}, Kt = "Expected a function", Xt = Math.max, qt = Math.min;
|
|
178
|
-
function Ht(r, t, e) {
|
|
179
|
-
var a, c, l, y, i, s, T = 0, B = !1, j = !1, A = !0;
|
|
180
|
-
if (typeof r != "function")
|
|
181
|
-
throw new TypeError(Kt);
|
|
182
|
-
t = L(t) || 0, d(e) && (B = !!e.leading, j = "maxWait" in e, l = j ? Xt(L(e.maxWait) || 0, t) : l, A = "trailing" in e ? !!e.trailing : A);
|
|
183
|
-
function w(o) {
|
|
184
|
-
var f = a, m = c;
|
|
185
|
-
return a = c = void 0, T = o, y = r.apply(m, f), y;
|
|
186
|
-
}
|
|
187
|
-
function fr(o) {
|
|
188
|
-
return T = o, i = setTimeout(h, t), B ? w(o) : y;
|
|
189
|
-
}
|
|
190
|
-
function sr(o) {
|
|
191
|
-
var f = o - s, m = o - T, U = t - f;
|
|
192
|
-
return j ? qt(U, l - m) : U;
|
|
193
|
-
}
|
|
194
|
-
function R(o) {
|
|
195
|
-
var f = o - s, m = o - T;
|
|
196
|
-
return s === void 0 || f >= t || f < 0 || j && m >= l;
|
|
197
|
-
}
|
|
198
|
-
function h() {
|
|
199
|
-
var o = M();
|
|
200
|
-
if (R(o))
|
|
201
|
-
return W(o);
|
|
202
|
-
i = setTimeout(h, sr(o));
|
|
203
|
-
}
|
|
204
|
-
function W(o) {
|
|
205
|
-
return i = void 0, A && a ? w(o) : (a = c = void 0, y);
|
|
206
|
-
}
|
|
207
|
-
function gr() {
|
|
208
|
-
i !== void 0 && clearTimeout(i), T = 0, a = s = c = i = void 0;
|
|
209
|
-
}
|
|
210
|
-
function br() {
|
|
211
|
-
return i === void 0 ? y : W(M());
|
|
212
|
-
}
|
|
213
|
-
function P() {
|
|
214
|
-
var o = M(), f = R(o);
|
|
215
|
-
if (a = arguments, c = this, s = o, f) {
|
|
216
|
-
if (i === void 0)
|
|
217
|
-
return fr(s);
|
|
218
|
-
if (j)
|
|
219
|
-
return clearTimeout(i), i = setTimeout(h, t), w(s);
|
|
220
|
-
}
|
|
221
|
-
return i === void 0 && (i = setTimeout(h, t)), y;
|
|
222
|
-
}
|
|
223
|
-
return P.cancel = gr, P.flush = br, P;
|
|
224
|
-
}
|
|
225
|
-
var zt = "[object Map]", Jt = "[object Set]", Qt = Object.prototype, Yt = Qt.hasOwnProperty;
|
|
226
|
-
function te(r) {
|
|
227
|
-
if (r == null)
|
|
228
|
-
return !0;
|
|
229
|
-
if (Jr(r) && (hr(r) || typeof r == "string" || typeof r.splice == "function" || at(r) || Ct(r) || tt(r)))
|
|
230
|
-
return !r.length;
|
|
231
|
-
var t = g(r);
|
|
232
|
-
if (t == zt || t == Jt)
|
|
233
|
-
return !r.size;
|
|
234
|
-
if (ar(r))
|
|
235
|
-
return !Rt(r).length;
|
|
236
|
-
for (var e in r)
|
|
237
|
-
if (Yt.call(r, e))
|
|
238
|
-
return !1;
|
|
239
|
-
return !0;
|
|
240
|
-
}
|
|
241
|
-
var Zt = "[object Number]";
|
|
242
|
-
function ee(r) {
|
|
243
|
-
return typeof r == "number" || S(r) && b(r) == Zt;
|
|
244
|
-
}
|
|
245
|
-
var re = "Expected a function";
|
|
246
|
-
function ne(r, t, e) {
|
|
247
|
-
var a = !0, c = !0;
|
|
248
|
-
if (typeof r != "function")
|
|
249
|
-
throw new TypeError(re);
|
|
250
|
-
return d(e) && (a = "leading" in e ? !!e.leading : a, c = "trailing" in e ? !!e.trailing : c), Ht(r, t, {
|
|
251
|
-
leading: a,
|
|
252
|
-
maxWait: t,
|
|
253
|
-
trailing: c
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
export {
|
|
257
|
-
te as a,
|
|
258
|
-
hr as b,
|
|
259
|
-
Ht as d,
|
|
260
|
-
ee as i,
|
|
261
|
-
ne as t
|
|
262
|
-
};
|