@baishuyun/ui-business 2.0.0 → 2.0.3

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.
@@ -1,124 +1,129 @@
1
- var A = typeof global == "object" && global && global.Object === Object && global, F = typeof self == "object" && self && self.Object === Object && self, R = A || F || Function("return this")(), T = R.Symbol, W = Object.prototype, M = W.hasOwnProperty, _ = W.toString, b = T ? T.toStringTag : void 0;
2
- function w(e) {
3
- var n = M.call(e, b), r = e[b];
1
+ var M = typeof global == "object" && global && global.Object === Object && global, _ = typeof self == "object" && self && self.Object === Object && self, A = M || _ || Function("return this")(), y = A.Symbol, R = Object.prototype, w = R.hasOwnProperty, B = R.toString, b = y ? y.toStringTag : void 0;
2
+ function U(n) {
3
+ var t = w.call(n, b), r = n[b];
4
4
  try {
5
- e[b] = void 0;
5
+ n[b] = void 0;
6
6
  var i = !0;
7
7
  } catch {
8
8
  }
9
- var o = _.call(e);
10
- return i && (n ? e[b] = r : delete e[b]), o;
9
+ var o = B.call(n);
10
+ return i && (t ? n[b] = r : delete n[b]), o;
11
11
  }
12
- var B = Object.prototype, U = B.toString;
13
- function G(e) {
14
- return U.call(e);
12
+ var G = Object.prototype, X = G.toString;
13
+ function D(n) {
14
+ return X.call(n);
15
15
  }
16
- var X = "[object Null]", D = "[object Undefined]", I = T ? T.toStringTag : void 0;
17
- function H(e) {
18
- return e == null ? e === void 0 ? D : X : I && I in Object(e) ? w(e) : G(e);
16
+ var H = "[object Null]", q = "[object Undefined]", I = y ? y.toStringTag : void 0;
17
+ function W(n) {
18
+ return n == null ? n === void 0 ? q : H : I && I in Object(n) ? U(n) : D(n);
19
19
  }
20
- function q(e) {
21
- return e != null && typeof e == "object";
20
+ function N(n) {
21
+ return n != null && typeof n == "object";
22
22
  }
23
23
  var z = "[object Symbol]";
24
- function J(e) {
25
- return typeof e == "symbol" || q(e) && H(e) == z;
24
+ function J(n) {
25
+ return typeof n == "symbol" || N(n) && W(n) == z;
26
26
  }
27
- var K = /\s/;
28
- function Q(e) {
29
- for (var n = e.length; n-- && K.test(e.charAt(n)); )
27
+ var K = Array.isArray, Q = /\s/;
28
+ function V(n) {
29
+ for (var t = n.length; t-- && Q.test(n.charAt(t)); )
30
30
  ;
31
- return n;
31
+ return t;
32
32
  }
33
- var V = /^\s+/;
34
- function Y(e) {
35
- return e && e.slice(0, Q(e) + 1).replace(V, "");
33
+ var Y = /^\s+/;
34
+ function Z(n) {
35
+ return n && n.slice(0, V(n) + 1).replace(Y, "");
36
36
  }
37
- function y(e) {
38
- var n = typeof e;
39
- return e != null && (n == "object" || n == "function");
37
+ function T(n) {
38
+ var t = typeof n;
39
+ return n != null && (t == "object" || t == "function");
40
40
  }
41
- var $ = NaN, Z = /^[-+]0x[0-9a-f]+$/i, ee = /^0b[01]+$/i, ne = /^0o[0-7]+$/i, te = parseInt;
42
- function k(e) {
43
- if (typeof e == "number")
44
- return e;
45
- if (J(e))
41
+ var $ = NaN, nn = /^[-+]0x[0-9a-f]+$/i, tn = /^0b[01]+$/i, en = /^0o[0-7]+$/i, rn = parseInt;
42
+ function k(n) {
43
+ if (typeof n == "number")
44
+ return n;
45
+ if (J(n))
46
46
  return $;
47
- if (y(e)) {
48
- var n = typeof e.valueOf == "function" ? e.valueOf() : e;
49
- e = y(n) ? n + "" : n;
47
+ if (T(n)) {
48
+ var t = typeof n.valueOf == "function" ? n.valueOf() : n;
49
+ n = T(t) ? t + "" : t;
50
50
  }
51
- if (typeof e != "string")
52
- return e === 0 ? e : +e;
53
- e = Y(e);
54
- var r = ee.test(e);
55
- return r || ne.test(e) ? te(e.slice(2), r ? 2 : 8) : Z.test(e) ? $ : +e;
51
+ if (typeof n != "string")
52
+ return n === 0 ? n : +n;
53
+ n = Z(n);
54
+ var r = tn.test(n);
55
+ return r || en.test(n) ? rn(n.slice(2), r ? 2 : 8) : nn.test(n) ? $ : +n;
56
56
  }
57
- function ce() {
57
+ function dn() {
58
58
  }
59
59
  var O = function() {
60
- return R.Date.now();
61
- }, re = "Expected a function", ie = Math.max, ae = Math.min;
62
- function oe(e, n, r) {
63
- var i, o, d, u, a, c, l = 0, S = !1, s = !1, j = !0;
64
- if (typeof e != "function")
65
- throw new TypeError(re);
66
- n = k(n) || 0, y(r) && (S = !!r.leading, s = "maxWait" in r, d = s ? ie(k(r.maxWait) || 0, n) : d, j = "trailing" in r ? !!r.trailing : j);
67
- function p(t) {
68
- var f = i, g = o;
69
- return i = o = void 0, l = t, u = e.apply(g, f), u;
60
+ return A.Date.now();
61
+ }, an = "Expected a function", on = Math.max, fn = Math.min;
62
+ function cn(n, t, r) {
63
+ var i, o, s, u, a, c, d = 0, v = !1, g = !1, j = !0;
64
+ if (typeof n != "function")
65
+ throw new TypeError(an);
66
+ t = k(t) || 0, T(r) && (v = !!r.leading, g = "maxWait" in r, s = g ? on(k(r.maxWait) || 0, t) : s, j = "trailing" in r ? !!r.trailing : j);
67
+ function p(e) {
68
+ var f = i, l = o;
69
+ return i = o = void 0, d = e, u = n.apply(l, f), u;
70
70
  }
71
- function N(t) {
72
- return l = t, a = setTimeout(m, n), S ? p(t) : u;
71
+ function C(e) {
72
+ return d = e, a = setTimeout(m, t), v ? p(e) : u;
73
73
  }
74
- function C(t) {
75
- var f = t - c, g = t - l, E = n - f;
76
- return s ? ae(E, d - g) : E;
74
+ function L(e) {
75
+ var f = e - c, l = e - d, E = t - f;
76
+ return g ? fn(E, s - l) : E;
77
77
  }
78
- function h(t) {
79
- var f = t - c, g = t - l;
80
- return c === void 0 || f >= n || f < 0 || s && g >= d;
78
+ function h(e) {
79
+ var f = e - c, l = e - d;
80
+ return c === void 0 || f >= t || f < 0 || g && l >= s;
81
81
  }
82
82
  function m() {
83
- var t = O();
84
- if (h(t))
85
- return x(t);
86
- a = setTimeout(m, C(t));
83
+ var e = O();
84
+ if (h(e))
85
+ return x(e);
86
+ a = setTimeout(m, L(e));
87
87
  }
88
- function x(t) {
89
- return a = void 0, j && i ? p(t) : (i = o = void 0, u);
90
- }
91
- function L() {
92
- a !== void 0 && clearTimeout(a), l = 0, i = c = o = a = void 0;
88
+ function x(e) {
89
+ return a = void 0, j && i ? p(e) : (i = o = void 0, u);
93
90
  }
94
91
  function P() {
92
+ a !== void 0 && clearTimeout(a), d = 0, i = c = o = a = void 0;
93
+ }
94
+ function F() {
95
95
  return a === void 0 ? u : x(O());
96
96
  }
97
- function v() {
98
- var t = O(), f = h(t);
99
- if (i = arguments, o = this, c = t, f) {
97
+ function S() {
98
+ var e = O(), f = h(e);
99
+ if (i = arguments, o = this, c = e, f) {
100
100
  if (a === void 0)
101
- return N(c);
102
- if (s)
103
- return clearTimeout(a), a = setTimeout(m, n), p(c);
101
+ return C(c);
102
+ if (g)
103
+ return clearTimeout(a), a = setTimeout(m, t), p(c);
104
104
  }
105
- return a === void 0 && (a = setTimeout(m, n)), u;
105
+ return a === void 0 && (a = setTimeout(m, t)), u;
106
106
  }
107
- return v.cancel = L, v.flush = P, v;
107
+ return S.cancel = P, S.flush = F, S;
108
+ }
109
+ var un = "[object String]";
110
+ function gn(n) {
111
+ return typeof n == "string" || !K(n) && N(n) && W(n) == un;
108
112
  }
109
- var fe = "Expected a function";
110
- function ue(e, n, r) {
113
+ var sn = "Expected a function";
114
+ function ln(n, t, r) {
111
115
  var i = !0, o = !0;
112
- if (typeof e != "function")
113
- throw new TypeError(fe);
114
- return y(r) && (i = "leading" in r ? !!r.leading : i, o = "trailing" in r ? !!r.trailing : o), oe(e, n, {
116
+ if (typeof n != "function")
117
+ throw new TypeError(sn);
118
+ return T(r) && (i = "leading" in r ? !!r.leading : i, o = "trailing" in r ? !!r.trailing : o), cn(n, t, {
115
119
  leading: i,
116
- maxWait: n,
120
+ maxWait: t,
117
121
  trailing: o
118
122
  });
119
123
  }
120
124
  export {
121
- oe as d,
122
- ce as n,
123
- ue as t
125
+ cn as d,
126
+ gn as i,
127
+ dn as n,
128
+ ln as t
124
129
  };
@@ -1,6 +1 @@
1
- /// <reference types="vite/client" />
2
-
3
- declare module '*.module.scss' {
4
- const classes: { readonly [key: string]: string };
5
- export default classes;
6
- }
1
+ /// <reference types="vite/client" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ui-business",
3
- "version": "2.0.0",
3
+ "version": "2.0.3",
4
4
  "description": "百数云业务组件库",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,6 +19,10 @@
19
19
  "./ConfigProvider": {
20
20
  "import": "./dist/ConfigProvider/index.js",
21
21
  "types": "./dist/components/ConfigProvider/index.d.ts"
22
+ },
23
+ "./components/*": {
24
+ "import": "./dist/*/index.js",
25
+ "types": "./dist/components/*/index.d.ts"
22
26
  }
23
27
  },
24
28
  "files": [
@@ -37,7 +41,7 @@
37
41
  "peerDependencies": {
38
42
  "ahooks": ">=3.7.0",
39
43
  "antd": ">=5.1.2",
40
- "bsy-react-ui": ">=1.34.2",
44
+ "bsy-react-ui": ">=1.34.4",
41
45
  "immer": "^10.0.0",
42
46
  "motion": "^11.18.2",
43
47
  "react": ">=18.3.1",