@baishuyun/ui-base 2.3.3 → 2.4.1

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.
Files changed (58) hide show
  1. package/dist/Card/{Card-F2t4Rv_v.js → Card-CaKTq_1y.js} +17 -17
  2. package/dist/Card/index.js +2 -2
  3. package/dist/CheckBox/CheckBox-Cz6KW9Lw.js +33 -0
  4. package/dist/CheckBox/{CheckBox-DFoMXJZz.js → CheckBox-l__wOnmH.js} +25 -25
  5. package/dist/CheckBox/index.js +3 -3
  6. package/dist/ColorPicker/ColorPicker-C1kG_eI-.js +168 -0
  7. package/dist/ColorPicker/index.js +4 -5
  8. package/dist/DropDown/DropDown-BAPBTglm.js +162 -0
  9. package/dist/DropDown/index.js +6 -6
  10. package/dist/Editor/{Buttons-ClWtl3G-.js → Buttons-CsKKYGbV.js} +207 -204
  11. package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -13
  12. package/dist/Editor/index.js +207 -196
  13. package/dist/Icon/Icon-CTZCSuVg.js +19 -0
  14. package/dist/Icon/index.js +1 -1
  15. package/dist/InputTag/{InputTag-DbiyuWo9.js → InputTag-V4UnUnGJ.js} +33 -33
  16. package/dist/InputTag/index.js +2 -2
  17. package/dist/Loading/index.js +1 -1
  18. package/dist/Modal/{Modal-BO1s8pJe.js → Modal-DQ5bptu_.js} +1 -1
  19. package/dist/Modal/index.js +2 -2
  20. package/dist/NotFoundContent/index.js +1 -1
  21. package/dist/Radio/{Radio-dyoBNiKF.js → Radio-CZOrtNyn.js} +25 -25
  22. package/dist/Radio/index.js +1 -1
  23. package/dist/Segmented/{Segmented-Dd8glDXI.js → Segmented-DEGgLO-b.js} +15 -15
  24. package/dist/Segmented/index.js +1 -1
  25. package/dist/Select/Select-DyV_1e23.js +729 -0
  26. package/dist/Select/{SelectInputSearch-gp6gcY3x.js → SelectInputSearch-DMY6Y9B6.js} +2 -2
  27. package/dist/Select/index.js +10 -10
  28. package/dist/Tabs/{Tabs-Dsxn_7gF.js → Tabs-BqT-_eVo.js} +138 -138
  29. package/dist/Tabs/index.js +4 -5
  30. package/dist/Tree/index.js +4 -4
  31. package/dist/Tree/utils/index.js +1 -1
  32. package/dist/components/Tree/Tree.test.d.ts +1 -0
  33. package/dist/components/Tree/context/TreeContext.d.ts +1 -1
  34. package/dist/components/Tree/types/tree.d.ts +1 -1
  35. package/dist/index.js +83 -23
  36. package/dist/locale/LocaleProvider.test.d.ts +1 -0
  37. package/dist/locale/index.d.ts +1 -1
  38. package/dist/locale/lang/zh-TW.json.d.ts +64 -0
  39. package/dist/vendors/Tree-P9E06Unm.js +231 -0
  40. package/dist/vendors/{color-BPWy9DvT.js → color-CyuNdAfc.js} +2 -2
  41. package/package.json +3 -1
  42. package/dist/CheckBox/CheckBox-q2vu7qf7.js +0 -33
  43. package/dist/ColorPicker/ColorPicker-Bh4KTHxh.js +0 -168
  44. package/dist/DropDown/DropDown-BEzloRRM.js +0 -162
  45. package/dist/Icon/Icon-DXmPqVzg.js +0 -19
  46. package/dist/Select/Select-DoQO-Xi5.js +0 -729
  47. package/dist/vendors/Tree-DgwG7Unx.js +0 -231
  48. package/dist/vendors/clsx-DNOE4Gl8.js +0 -16
  49. package/dist/vendors/fuse.js-BKtvbTjL.js +0 -877
  50. package/dist/vendors/lexical-hZliMgDv.js +0 -6439
  51. package/dist/vendors/lodash-es-Bu9xU1fK.js +0 -334
  52. package/dist/vendors/simplebar-react-CFlS-Nm9.js +0 -370
  53. package/dist/vendors/tinycolor2-DToeAEPD.js +0 -726
  54. /package/dist/Loading/{Loading-Bi5NO-Ky.js → Loading-Dy5A--HK.js} +0 -0
  55. /package/dist/NotFoundContent/{NotFoundContent-CTPpcZOt.js → NotFoundContent-1-41e1rN.js} +0 -0
  56. /package/dist/vendors/{animations-C5JKFkz4.js → animations-DvjIfVz9.js} +0 -0
  57. /package/dist/vendors/{useFloatingPortal-BA6P5GxV.js → useFloatingPortal-W4pliYWU.js} +0 -0
  58. /package/dist/vendors/{useLocale-BfT0V1j4.js → useLocale-BXnqO-Ju.js} +0 -0
@@ -1,334 +0,0 @@
1
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
2
- var e = typeof global == "object" && global && global.Object === Object && global, t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")(), r = n.Symbol, i = Object.prototype, a = i.hasOwnProperty, o = i.toString, s = r ? r.toStringTag : void 0;
3
- function c(e) {
4
- var t = a.call(e, s), n = e[s];
5
- try {
6
- e[s] = void 0;
7
- var r = !0;
8
- } catch {}
9
- var i = o.call(e);
10
- return r && (t ? e[s] = n : delete e[s]), i;
11
- }
12
- //#endregion
13
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
14
- var l = Object.prototype.toString;
15
- function u(e) {
16
- return l.call(e);
17
- }
18
- //#endregion
19
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
20
- var d = "[object Null]", f = "[object Undefined]", p = r ? r.toStringTag : void 0;
21
- function m(e) {
22
- return e == null ? e === void 0 ? f : d : p && p in Object(e) ? c(e) : u(e);
23
- }
24
- //#endregion
25
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
26
- function h(e) {
27
- return typeof e == "object" && !!e;
28
- }
29
- //#endregion
30
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
31
- var g = "[object Symbol]";
32
- function _(e) {
33
- return typeof e == "symbol" || h(e) && m(e) == g;
34
- }
35
- //#endregion
36
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
37
- function v(e, t) {
38
- for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
39
- return i;
40
- }
41
- //#endregion
42
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
43
- var y = Array.isArray, b = Infinity, x = r ? r.prototype : void 0, S = x ? x.toString : void 0;
44
- function C(e) {
45
- if (typeof e == "string") return e;
46
- if (y(e)) return v(e, C) + "";
47
- if (_(e)) return S ? S.call(e) : "";
48
- var t = e + "";
49
- return t == "0" && 1 / e == -b ? "-0" : t;
50
- }
51
- //#endregion
52
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js
53
- var ee = /\s/;
54
- function te(e) {
55
- for (var t = e.length; t-- && ee.test(e.charAt(t)););
56
- return t;
57
- }
58
- //#endregion
59
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js
60
- var ne = /^\s+/;
61
- function re(e) {
62
- return e && e.slice(0, te(e) + 1).replace(ne, "");
63
- }
64
- //#endregion
65
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
66
- function w(e) {
67
- var t = typeof e;
68
- return e != null && (t == "object" || t == "function");
69
- }
70
- //#endregion
71
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js
72
- var T = NaN, ie = /^[-+]0x[0-9a-f]+$/i, ae = /^0b[01]+$/i, oe = /^0o[0-7]+$/i, se = parseInt;
73
- function E(e) {
74
- if (typeof e == "number") return e;
75
- if (_(e)) return T;
76
- if (w(e)) {
77
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
78
- e = w(t) ? t + "" : t;
79
- }
80
- if (typeof e != "string") return e === 0 ? e : +e;
81
- e = re(e);
82
- var n = ae.test(e);
83
- return n || oe.test(e) ? se(e.slice(2), n ? 2 : 8) : ie.test(e) ? T : +e;
84
- }
85
- //#endregion
86
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
87
- var ce = "[object AsyncFunction]", le = "[object Function]", ue = "[object GeneratorFunction]", de = "[object Proxy]";
88
- function D(e) {
89
- if (!w(e)) return !1;
90
- var t = m(e);
91
- return t == le || t == ue || t == ce || t == de;
92
- }
93
- //#endregion
94
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js
95
- var O = n["__core-js_shared__"], k = function() {
96
- var e = /[^.]+$/.exec(O && O.keys && O.keys.IE_PROTO || "");
97
- return e ? "Symbol(src)_1." + e : "";
98
- }();
99
- function fe(e) {
100
- return !!k && k in e;
101
- }
102
- //#endregion
103
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js
104
- var pe = Function.prototype.toString;
105
- function A(e) {
106
- if (e != null) {
107
- try {
108
- return pe.call(e);
109
- } catch {}
110
- try {
111
- return e + "";
112
- } catch {}
113
- }
114
- return "";
115
- }
116
- //#endregion
117
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js
118
- var me = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, ge = Function.prototype, _e = Object.prototype, ve = ge.toString, ye = _e.hasOwnProperty, be = RegExp("^" + ve.call(ye).replace(me, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
119
- function xe(e) {
120
- return !w(e) || fe(e) ? !1 : (D(e) ? be : he).test(A(e));
121
- }
122
- //#endregion
123
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js
124
- function Se(e, t) {
125
- return e?.[t];
126
- }
127
- //#endregion
128
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js
129
- function j(e, t) {
130
- var n = Se(e, t);
131
- return xe(n) ? n : void 0;
132
- }
133
- //#endregion
134
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
135
- var M = j(n, "WeakMap");
136
- //#endregion
137
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js
138
- function Ce() {}
139
- //#endregion
140
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
141
- var we = 9007199254740991;
142
- function N(e) {
143
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= we;
144
- }
145
- //#endregion
146
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
147
- function Te(e) {
148
- return e != null && N(e.length) && !D(e);
149
- }
150
- //#endregion
151
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
152
- var Ee = Object.prototype;
153
- function De(e) {
154
- var t = e && e.constructor;
155
- return e === (typeof t == "function" && t.prototype || Ee);
156
- }
157
- //#endregion
158
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
159
- var Oe = "[object Arguments]";
160
- function ke(e) {
161
- return h(e) && m(e) == Oe;
162
- }
163
- //#endregion
164
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
165
- var Ae = Object.prototype, je = Ae.hasOwnProperty, Me = Ae.propertyIsEnumerable, Ne = ke(function() {
166
- return arguments;
167
- }()) ? ke : function(e) {
168
- return h(e) && je.call(e, "callee") && !Me.call(e, "callee");
169
- };
170
- //#endregion
171
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
172
- function Pe() {
173
- return !1;
174
- }
175
- //#endregion
176
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
177
- var P = typeof exports == "object" && exports && !exports.nodeType && exports, F = P && typeof module == "object" && module && !module.nodeType && module, I = F && F.exports === P ? n.Buffer : void 0, Fe = (I ? I.isBuffer : void 0) || Pe, Ie = "[object Arguments]", Le = "[object Array]", Re = "[object Boolean]", ze = "[object Date]", Be = "[object Error]", Ve = "[object Function]", He = "[object Map]", Ue = "[object Number]", We = "[object Object]", Ge = "[object RegExp]", Ke = "[object Set]", qe = "[object String]", Je = "[object WeakMap]", Ye = "[object ArrayBuffer]", Xe = "[object DataView]", Ze = "[object Float32Array]", Qe = "[object Float64Array]", $e = "[object Int8Array]", et = "[object Int16Array]", tt = "[object Int32Array]", nt = "[object Uint8Array]", rt = "[object Uint8ClampedArray]", it = "[object Uint16Array]", at = "[object Uint32Array]", L = {};
178
- L[Ze] = L[Qe] = L[$e] = L[et] = L[tt] = L[nt] = L[rt] = L[it] = L[at] = !0, L[Ie] = L[Le] = L[Ye] = L[Re] = L[Xe] = L[ze] = L[Be] = L[Ve] = L[He] = L[Ue] = L[We] = L[Ge] = L[Ke] = L[qe] = L[Je] = !1;
179
- function ot(e) {
180
- return h(e) && N(e.length) && !!L[m(e)];
181
- }
182
- //#endregion
183
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
184
- function st(e) {
185
- return function(t) {
186
- return e(t);
187
- };
188
- }
189
- //#endregion
190
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
191
- var R = typeof exports == "object" && exports && !exports.nodeType && exports, z = R && typeof module == "object" && module && !module.nodeType && module, B = z && z.exports === R && e.process, V = function() {
192
- try {
193
- return z && z.require && z.require("util").types || B && B.binding && B.binding("util");
194
- } catch {}
195
- }(), H = V && V.isTypedArray, ct = H ? st(H) : ot;
196
- //#endregion
197
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
198
- function lt(e, t) {
199
- return function(n) {
200
- return e(t(n));
201
- };
202
- }
203
- //#endregion
204
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
205
- var ut = lt(Object.keys, Object), dt = Object.prototype.hasOwnProperty;
206
- function ft(e) {
207
- if (!De(e)) return ut(e);
208
- var t = [];
209
- for (var n in Object(e)) dt.call(e, n) && n != "constructor" && t.push(n);
210
- return t;
211
- }
212
- //#endregion
213
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
214
- var U = j(n, "Map");
215
- //#endregion
216
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
217
- function pt(e) {
218
- return e == null ? "" : C(e);
219
- }
220
- //#endregion
221
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
222
- var W = j(n, "DataView"), G = j(n, "Promise"), K = j(n, "Set"), q = "[object Map]", mt = "[object Object]", J = "[object Promise]", Y = "[object Set]", X = "[object WeakMap]", Z = "[object DataView]", ht = A(W), gt = A(U), _t = A(G), vt = A(K), yt = A(M), Q = m;
223
- (W && Q(new W(/* @__PURE__ */ new ArrayBuffer(1))) != Z || U && Q(new U()) != q || G && Q(G.resolve()) != J || K && Q(new K()) != Y || M && Q(new M()) != X) && (Q = function(e) {
224
- var t = m(e), n = t == mt ? e.constructor : void 0, r = n ? A(n) : "";
225
- if (r) switch (r) {
226
- case ht: return Z;
227
- case gt: return q;
228
- case _t: return J;
229
- case vt: return Y;
230
- case yt: return X;
231
- }
232
- return t;
233
- });
234
- var bt = Q, $ = function() {
235
- return n.Date.now();
236
- }, xt = "Expected a function", St = Math.max, Ct = Math.min;
237
- function wt(e, t, n) {
238
- var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
239
- if (typeof e != "function") throw TypeError(xt);
240
- t = E(t) || 0, w(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? St(E(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
241
- function p(t) {
242
- var n = r, a = i;
243
- return r = i = void 0, l = t, o = e.apply(a, n), o;
244
- }
245
- function m(e) {
246
- return l = e, s = setTimeout(_, t), u ? p(e) : o;
247
- }
248
- function h(e) {
249
- var n = e - c, r = e - l, i = t - n;
250
- return d ? Ct(i, a - r) : i;
251
- }
252
- function g(e) {
253
- var n = e - c, r = e - l;
254
- return c === void 0 || n >= t || n < 0 || d && r >= a;
255
- }
256
- function _() {
257
- var e = $();
258
- if (g(e)) return v(e);
259
- s = setTimeout(_, h(e));
260
- }
261
- function v(e) {
262
- return s = void 0, f && r ? p(e) : (r = i = void 0, o);
263
- }
264
- function y() {
265
- s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
266
- }
267
- function b() {
268
- return s === void 0 ? o : v($());
269
- }
270
- function x() {
271
- var e = $(), n = g(e);
272
- if (r = arguments, i = this, c = e, n) {
273
- if (s === void 0) return m(c);
274
- if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
275
- }
276
- return s === void 0 && (s = setTimeout(_, t)), o;
277
- }
278
- return x.cancel = y, x.flush = b, x;
279
- }
280
- //#endregion
281
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/head.js
282
- function Tt(e) {
283
- return e && e.length ? e[0] : void 0;
284
- }
285
- //#endregion
286
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js
287
- var Et = "[object String]";
288
- function Dt(e) {
289
- return typeof e == "string" || !y(e) && h(e) && m(e) == Et;
290
- }
291
- //#endregion
292
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.js
293
- var Ot = "[object Map]", kt = "[object Set]", At = Object.prototype.hasOwnProperty;
294
- function jt(e) {
295
- if (e == null) return !0;
296
- if (Te(e) && (y(e) || typeof e == "string" || typeof e.splice == "function" || Fe(e) || ct(e) || Ne(e))) return !e.length;
297
- var t = bt(e);
298
- if (t == Ot || t == kt) return !e.size;
299
- if (De(e)) return !ft(e).length;
300
- for (var n in e) if (At.call(e, n)) return !1;
301
- return !0;
302
- }
303
- //#endregion
304
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.js
305
- var Mt = "[object Number]";
306
- function Nt(e) {
307
- return typeof e == "number" || h(e) && m(e) == Mt;
308
- }
309
- //#endregion
310
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNil.js
311
- function Pt(e) {
312
- return e == null;
313
- }
314
- //#endregion
315
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle.js
316
- var Ft = "Expected a function";
317
- function It(e, t, n) {
318
- var r = !0, i = !0;
319
- if (typeof e != "function") throw TypeError(Ft);
320
- return w(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), wt(e, t, {
321
- leading: r,
322
- maxWait: t,
323
- trailing: i
324
- });
325
- }
326
- //#endregion
327
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqueId.js
328
- var Lt = 0;
329
- function Rt(e) {
330
- var t = ++Lt;
331
- return pt(e) + t;
332
- }
333
- //#endregion
334
- export { jt as a, wt as c, Nt as i, Ce as l, It as n, Dt as o, Pt as r, Tt as s, Rt as t, y as u };