@mi-avalon/libs 0.0.18 → 0.0.19

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.
@@ -0,0 +1,42 @@
1
+ import { ButtonProps } from 'antd';
2
+ import * as React from 'react';
3
+ /**
4
+ * 默认配置按钮,也可以通过render() 渲染其他组件
5
+ */
6
+ export interface IRowItem {
7
+ /**
8
+ * 按钮名称
9
+ */
10
+ label?: string;
11
+ /**
12
+ * 按钮类型
13
+ */
14
+ type?: ButtonProps['type'];
15
+ /**
16
+ * 如果没有指定Render,则是按钮的onClick
17
+ */
18
+ onClick?: (e: any) => void;
19
+ /**
20
+ * 其他按钮属性
21
+ */
22
+ btnProps?: ButtonProps;
23
+ /**
24
+ * item 的className
25
+ */
26
+ className?: string;
27
+ /**
28
+ * 自定义渲染
29
+ */
30
+ render?: () => React.ReactNode;
31
+ }
32
+ export interface IItemRowProps {
33
+ route?: Array<{
34
+ name: string;
35
+ url?: string;
36
+ }>;
37
+ items?: IRowItem[];
38
+ style?: React.CSSProperties;
39
+ className?: string;
40
+ offsetTop?: number;
41
+ }
42
+ export declare const ItemsRow: (props: IItemRowProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button } from 'antd';
3
+ import { CompThemeProvider } from '../ThemeContext';
4
+ import { getClassName } from '../utils';
5
+ const classname = (n = '') => {
6
+ const cn = 'items-row';
7
+ return getClassName(cn, n);
8
+ };
9
+ export const ItemsRow = (props) => {
10
+ if (!props.items) {
11
+ return null;
12
+ }
13
+ return (_jsx(CompThemeProvider, { children: _jsx("div", { className: `${classname()} ${props.className || ''}`, style: props.style, children: (props.items || []).map((item, index) => {
14
+ const className = `${classname('item')} ${item.className}`;
15
+ if (item.render) {
16
+ return (_jsx("span", { className: className, children: item.render() }, index));
17
+ }
18
+ return (_jsx(Button, { className: className, ...item.btnProps, type: item.type || 'primary', onClick: item.onClick, children: item.label }, item.label));
19
+ }) }) }));
20
+ };
@@ -4,6 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  * 用于展示对象的详细信息,如用户信息、产品详情等
5
5
  */
6
6
  import { Descriptions } from 'antd';
7
+ import { CompThemeProvider } from '../ThemeContext';
7
8
  const MDescriptions = props => {
8
9
  const { data, title, column = 3, lineHeight, align = 'left', itemLayout, colon = true, bordered = false, style, className, labelStyle, contentStyle, } = props;
9
10
  // 合并样式
@@ -18,7 +19,7 @@ const MDescriptions = props => {
18
19
  ...(itemLayout?.value ? { width: `${itemLayout.value}px` } : {}),
19
20
  ...contentStyle,
20
21
  };
21
- return (_jsx(Descriptions, { title: title, column: column, colon: colon, bordered: bordered, style: style, className: className, labelStyle: mergedLabelStyle, contentStyle: mergedContentStyle, children: data.map((item, index) => (_jsx(Descriptions.Item, { label: item.label, span: item.span, children: item.value || '-' }, item.label?.toString() || index))) }));
22
+ return (_jsx(CompThemeProvider, { children: _jsx(Descriptions, { title: title, column: column, colon: colon, bordered: bordered, style: style, className: className, labelStyle: mergedLabelStyle, contentStyle: mergedContentStyle, children: data.map((item, index) => (_jsx(Descriptions.Item, { label: item.label, span: item.span, children: item.value || '-' }, item.label?.toString() || index))) }) }));
22
23
  };
23
24
  MDescriptions.displayName = 'MDescriptions';
24
25
  export { MDescriptions };
@@ -0,0 +1,11 @@
1
+ import { ThemeConfig } from 'antd';
2
+ interface ThemeContextType {
3
+ theme?: ThemeConfig;
4
+ }
5
+ export declare const MiThemeProvider: import("react").Provider<ThemeContextType>;
6
+ export declare function useMiThemeConfig(): ThemeContextType;
7
+ interface IProps {
8
+ children: React.ReactNode;
9
+ }
10
+ export declare function CompThemeProvider(props: IProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ConfigProvider, theme } from 'antd';
3
+ import { createContext, useContext } from 'react';
4
+ const ThemeContext = createContext({
5
+ theme: {
6
+ cssVar: true,
7
+ algorithm: [theme.defaultAlgorithm],
8
+ },
9
+ });
10
+ export const MiThemeProvider = ThemeContext.Provider;
11
+ export function useMiThemeConfig() {
12
+ return useContext(ThemeContext);
13
+ }
14
+ export function CompThemeProvider(props) {
15
+ const { theme } = useMiThemeConfig();
16
+ return _jsx(ConfigProvider, { theme: theme, children: props.children });
17
+ }
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- var pr = Object.defineProperty;
2
- var gr = (b, d, R) => d in b ? pr(b, d, { enumerable: !0, configurable: !0, writable: !0, value: R }) : b[d] = R;
3
- var u = (b, d, R) => (gr(b, typeof d != "symbol" ? d + "" : d, R), R);
4
- import Ae from "react";
5
- import { Descriptions as je, Button as mr } from "antd";
6
- var ne = { exports: {} }, N = {};
1
+ var gr = Object.defineProperty;
2
+ var hr = (p, d, R) => d in p ? gr(p, d, { enumerable: !0, configurable: !0, writable: !0, value: R }) : p[d] = R;
3
+ var u = (p, d, R) => (hr(p, typeof d != "symbol" ? d + "" : d, R), R);
4
+ import Ae, { createContext as mr, useContext as br } from "react";
5
+ import { theme as _r, ConfigProvider as Rr, Descriptions as je, Button as Er } from "antd";
6
+ var ae = { exports: {} }, N = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -13,23 +13,23 @@ var ne = { exports: {} }, N = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var Ye;
17
- function br() {
18
- if (Ye)
16
+ var Te;
17
+ function yr() {
18
+ if (Te)
19
19
  return N;
20
- Ye = 1;
21
- var b = Ae, d = Symbol.for("react.element"), R = Symbol.for("react.fragment"), S = Object.prototype.hasOwnProperty, w = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function h(C, v, j) {
23
- var g, y = {}, x = null, $ = null;
24
- j !== void 0 && (x = "" + j), v.key !== void 0 && (x = "" + v.key), v.ref !== void 0 && ($ = v.ref);
25
- for (g in v)
26
- S.call(v, g) && !A.hasOwnProperty(g) && (y[g] = v[g]);
27
- if (C && C.defaultProps)
28
- for (g in v = C.defaultProps, v)
29
- y[g] === void 0 && (y[g] = v[g]);
30
- return { $$typeof: d, type: C, key: x, ref: $, props: y, _owner: w.current };
20
+ Te = 1;
21
+ var p = Ae, d = Symbol.for("react.element"), R = Symbol.for("react.fragment"), C = Object.prototype.hasOwnProperty, x = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function b(O, v, j) {
23
+ var h, y = {}, w = null, $ = null;
24
+ j !== void 0 && (w = "" + j), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && ($ = v.ref);
25
+ for (h in v)
26
+ C.call(v, h) && !A.hasOwnProperty(h) && (y[h] = v[h]);
27
+ if (O && O.defaultProps)
28
+ for (h in v = O.defaultProps, v)
29
+ y[h] === void 0 && (y[h] = v[h]);
30
+ return { $$typeof: d, type: O, key: w, ref: $, props: y, _owner: x.current };
31
31
  }
32
- return N.Fragment = R, N.jsx = h, N.jsxs = h, N;
32
+ return N.Fragment = R, N.jsx = b, N.jsxs = b, N;
33
33
  }
34
34
  var H = {};
35
35
  /**
@@ -41,25 +41,25 @@ var H = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var Te;
45
- function hr() {
46
- return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
47
- var b = Ae, d = Symbol.for("react.element"), R = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), C = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), z = Symbol.iterator, k = "@@iterator";
48
- function J(e) {
44
+ var Ye;
45
+ function Cr() {
46
+ return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
47
+ var p = Ae, d = Symbol.for("react.element"), R = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), O = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), V = Symbol.iterator, k = "@@iterator";
48
+ function B(e) {
49
49
  if (e === null || typeof e != "object")
50
50
  return null;
51
- var r = z && e[z] || e[k];
51
+ var r = V && e[V] || e[k];
52
52
  return typeof r == "function" ? r : null;
53
53
  }
54
- var D = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function p(e) {
54
+ var D = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ function g(e) {
56
56
  {
57
57
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
58
58
  t[n - 1] = arguments[n];
59
- $e("error", e, t);
59
+ ke("error", e, t);
60
60
  }
61
61
  }
62
- function $e(e, r, t) {
62
+ function ke(e, r, t) {
63
63
  {
64
64
  var n = D.ReactDebugCurrentFrame, o = n.getStackAddendum();
65
65
  o !== "" && (r += "%s", t = t.concat([o]));
@@ -69,16 +69,16 @@ function hr() {
69
69
  s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
70
70
  }
71
71
  }
72
- var ke = !1, Pe = !1, Me = !1, Fe = !1, Ie = !1, ie;
72
+ var Pe = !1, Me = !1, Fe = !1, Ie = !1, We = !1, ie;
73
73
  ie = Symbol.for("react.module.reference");
74
- function We(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === S || e === A || Ie || e === w || e === j || e === g || Fe || e === $ || ke || Pe || Me || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === y || e.$$typeof === h || e.$$typeof === C || e.$$typeof === v || // This needs to include all possible module reference object
74
+ function Ne(e) {
75
+ return !!(typeof e == "string" || typeof e == "function" || e === C || e === A || We || e === x || e === j || e === h || Ie || e === $ || Pe || Me || Fe || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === b || e.$$typeof === O || e.$$typeof === v || // This needs to include all possible module reference object
76
76
  // types supported by any Flight configuration anywhere since
77
77
  // we don't know which Flight build this will end up being used
78
78
  // with.
79
79
  e.$$typeof === ie || e.getModuleId !== void 0));
80
80
  }
81
- function Ne(e, r, t) {
81
+ function He(e, r, t) {
82
82
  var n = e.displayName;
83
83
  if (n)
84
84
  return n;
@@ -88,44 +88,44 @@ function hr() {
88
88
  function oe(e) {
89
89
  return e.displayName || "Context";
90
90
  }
91
- function O(e) {
91
+ function S(e) {
92
92
  if (e == null)
93
93
  return null;
94
- if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
94
+ if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
95
  return e.displayName || e.name || null;
96
96
  if (typeof e == "string")
97
97
  return e;
98
98
  switch (e) {
99
- case S:
99
+ case C:
100
100
  return "Fragment";
101
101
  case R:
102
102
  return "Portal";
103
103
  case A:
104
104
  return "Profiler";
105
- case w:
105
+ case x:
106
106
  return "StrictMode";
107
107
  case j:
108
108
  return "Suspense";
109
- case g:
109
+ case h:
110
110
  return "SuspenseList";
111
111
  }
112
112
  if (typeof e == "object")
113
113
  switch (e.$$typeof) {
114
- case C:
114
+ case O:
115
115
  var r = e;
116
116
  return oe(r) + ".Consumer";
117
- case h:
117
+ case b:
118
118
  var t = e;
119
119
  return oe(t._context) + ".Provider";
120
120
  case v:
121
- return Ne(e, e.render, "ForwardRef");
121
+ return He(e, e.render, "ForwardRef");
122
122
  case y:
123
123
  var n = e.displayName || null;
124
- return n !== null ? n : O(e.type) || "Memo";
125
- case x: {
124
+ return n !== null ? n : S(e.type) || "Memo";
125
+ case w: {
126
126
  var o = e, s = o._payload, i = o._init;
127
127
  try {
128
- return O(i(s));
128
+ return S(i(s));
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -133,11 +133,11 @@ function hr() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var Y = Object.assign, F = 0, se, ue, le, ce, fe, de, ve;
136
+ var T = Object.assign, F = 0, se, ue, le, ce, fe, de, ve;
137
137
  function pe() {
138
138
  }
139
139
  pe.__reactDisabledLog = !0;
140
- function He() {
140
+ function ze() {
141
141
  {
142
142
  if (F === 0) {
143
143
  se = console.log, ue = console.info, le = console.warn, ce = console.error, fe = console.group, de = console.groupCollapsed, ve = console.groupEnd;
@@ -160,7 +160,7 @@ function hr() {
160
160
  F++;
161
161
  }
162
162
  }
163
- function ze() {
163
+ function Ve() {
164
164
  {
165
165
  if (F--, F === 0) {
166
166
  var e = {
@@ -169,65 +169,65 @@ function hr() {
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
172
- log: Y({}, e, {
172
+ log: T({}, e, {
173
173
  value: se
174
174
  }),
175
- info: Y({}, e, {
175
+ info: T({}, e, {
176
176
  value: ue
177
177
  }),
178
- warn: Y({}, e, {
178
+ warn: T({}, e, {
179
179
  value: le
180
180
  }),
181
- error: Y({}, e, {
181
+ error: T({}, e, {
182
182
  value: ce
183
183
  }),
184
- group: Y({}, e, {
184
+ group: T({}, e, {
185
185
  value: fe
186
186
  }),
187
- groupCollapsed: Y({}, e, {
187
+ groupCollapsed: T({}, e, {
188
188
  value: de
189
189
  }),
190
- groupEnd: Y({}, e, {
190
+ groupEnd: T({}, e, {
191
191
  value: ve
192
192
  })
193
193
  });
194
194
  }
195
- F < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ F < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
- var B = D.ReactCurrentDispatcher, q;
198
+ var q = D.ReactCurrentDispatcher, K;
199
199
  function U(e, r, t) {
200
200
  {
201
- if (q === void 0)
201
+ if (K === void 0)
202
202
  try {
203
203
  throw Error();
204
204
  } catch (o) {
205
205
  var n = o.stack.trim().match(/\n( *(at )?)/);
206
- q = n && n[1] || "";
206
+ K = n && n[1] || "";
207
207
  }
208
208
  return `
209
- ` + q + e;
209
+ ` + K + e;
210
210
  }
211
211
  }
212
- var K = !1, V;
212
+ var G = !1, L;
213
213
  {
214
214
  var Ue = typeof WeakMap == "function" ? WeakMap : Map;
215
- V = new Ue();
215
+ L = new Ue();
216
216
  }
217
217
  function ge(e, r) {
218
- if (!e || K)
218
+ if (!e || G)
219
219
  return "";
220
220
  {
221
- var t = V.get(e);
221
+ var t = L.get(e);
222
222
  if (t !== void 0)
223
223
  return t;
224
224
  }
225
225
  var n;
226
- K = !0;
226
+ G = !0;
227
227
  var o = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
229
  var s;
230
- s = B.current, B.current = null, He();
230
+ s = q.current, q.current = null, ze();
231
231
  try {
232
232
  if (r) {
233
233
  var i = function() {
@@ -273,63 +273,63 @@ function hr() {
273
273
  if (c--, f--, f < 0 || a[c] !== m[f]) {
274
274
  var E = `
275
275
  ` + a[c].replace(" at new ", " at ");
276
- return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, E), E;
276
+ return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, E), E;
277
277
  }
278
278
  while (c >= 1 && f >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
- K = !1, B.current = s, ze(), Error.prepareStackTrace = o;
283
+ G = !1, q.current = s, Ve(), Error.prepareStackTrace = o;
284
284
  }
285
- var M = e ? e.displayName || e.name : "", T = M ? U(M) : "";
286
- return typeof e == "function" && V.set(e, T), T;
285
+ var M = e ? e.displayName || e.name : "", Y = M ? U(M) : "";
286
+ return typeof e == "function" && L.set(e, Y), Y;
287
287
  }
288
- function Ve(e, r, t) {
288
+ function Le(e, r, t) {
289
289
  return ge(e, !1);
290
290
  }
291
- function Le(e) {
291
+ function Ze(e) {
292
292
  var r = e.prototype;
293
293
  return !!(r && r.isReactComponent);
294
294
  }
295
- function L(e, r, t) {
295
+ function Z(e, r, t) {
296
296
  if (e == null)
297
297
  return "";
298
298
  if (typeof e == "function")
299
- return ge(e, Le(e));
299
+ return ge(e, Ze(e));
300
300
  if (typeof e == "string")
301
301
  return U(e);
302
302
  switch (e) {
303
303
  case j:
304
304
  return U("Suspense");
305
- case g:
305
+ case h:
306
306
  return U("SuspenseList");
307
307
  }
308
308
  if (typeof e == "object")
309
309
  switch (e.$$typeof) {
310
310
  case v:
311
- return Ve(e.render);
311
+ return Le(e.render);
312
312
  case y:
313
- return L(e.type, r, t);
314
- case x: {
313
+ return Z(e.type, r, t);
314
+ case w: {
315
315
  var n = e, o = n._payload, s = n._init;
316
316
  try {
317
- return L(s(o), r, t);
317
+ return Z(s(o), r, t);
318
318
  } catch {
319
319
  }
320
320
  }
321
321
  }
322
322
  return "";
323
323
  }
324
- var I = Object.prototype.hasOwnProperty, me = {}, be = D.ReactDebugCurrentFrame;
325
- function Z(e) {
324
+ var I = Object.prototype.hasOwnProperty, he = {}, me = D.ReactDebugCurrentFrame;
325
+ function J(e) {
326
326
  if (e) {
327
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
328
- be.setExtraStackFrame(t);
327
+ var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
328
+ me.setExtraStackFrame(t);
329
329
  } else
330
- be.setExtraStackFrame(null);
330
+ me.setExtraStackFrame(null);
331
331
  }
332
- function Ze(e, r, t, n, o) {
332
+ function Je(e, r, t, n, o) {
333
333
  {
334
334
  var s = Function.call.bind(I);
335
335
  for (var i in e)
@@ -344,42 +344,42 @@ function hr() {
344
344
  } catch (c) {
345
345
  a = c;
346
346
  }
347
- a && !(a instanceof Error) && (Z(o), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), Z(null)), a instanceof Error && !(a.message in me) && (me[a.message] = !0, Z(o), p("Failed %s type: %s", t, a.message), Z(null));
347
+ a && !(a instanceof Error) && (J(o), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), J(null)), a instanceof Error && !(a.message in he) && (he[a.message] = !0, J(o), g("Failed %s type: %s", t, a.message), J(null));
348
348
  }
349
349
  }
350
350
  }
351
- var Je = Array.isArray;
352
- function G(e) {
353
- return Je(e);
351
+ var Be = Array.isArray;
352
+ function X(e) {
353
+ return Be(e);
354
354
  }
355
- function Be(e) {
355
+ function qe(e) {
356
356
  {
357
357
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
358
  return t;
359
359
  }
360
360
  }
361
- function qe(e) {
361
+ function Ke(e) {
362
362
  try {
363
- return he(e), !1;
363
+ return be(e), !1;
364
364
  } catch {
365
365
  return !0;
366
366
  }
367
367
  }
368
- function he(e) {
368
+ function be(e) {
369
369
  return "" + e;
370
370
  }
371
371
  function _e(e) {
372
- if (qe(e))
373
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), he(e);
372
+ if (Ke(e))
373
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), be(e);
374
374
  }
375
- var W = D.ReactCurrentOwner, Ke = {
375
+ var W = D.ReactCurrentOwner, Ge = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
379
379
  __source: !0
380
- }, Re, Ee, X;
381
- X = {};
382
- function Ge(e) {
380
+ }, Re, Ee, Q;
381
+ Q = {};
382
+ function Xe(e) {
383
383
  if (I.call(e, "ref")) {
384
384
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
385
385
  if (r && r.isReactWarning)
@@ -387,7 +387,7 @@ function hr() {
387
387
  }
388
388
  return e.ref !== void 0;
389
389
  }
390
- function Xe(e) {
390
+ function Qe(e) {
391
391
  if (I.call(e, "key")) {
392
392
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
393
393
  if (r && r.isReactWarning)
@@ -395,16 +395,16 @@ function hr() {
395
395
  }
396
396
  return e.key !== void 0;
397
397
  }
398
- function Qe(e, r) {
398
+ function er(e, r) {
399
399
  if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
400
- var t = O(W.current.type);
401
- X[t] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(W.current.type), e.ref), X[t] = !0);
400
+ var t = S(W.current.type);
401
+ Q[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(W.current.type), e.ref), Q[t] = !0);
402
402
  }
403
403
  }
404
- function er(e, r) {
404
+ function rr(e, r) {
405
405
  {
406
406
  var t = function() {
407
- Re || (Re = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
407
+ Re || (Re = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
408
408
  };
409
409
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
410
410
  get: t,
@@ -412,10 +412,10 @@ function hr() {
412
412
  });
413
413
  }
414
414
  }
415
- function rr(e, r) {
415
+ function tr(e, r) {
416
416
  {
417
417
  var t = function() {
418
- Ee || (Ee = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
418
+ Ee || (Ee = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
419
419
  };
420
420
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
421
  get: t,
@@ -423,7 +423,7 @@ function hr() {
423
423
  });
424
424
  }
425
425
  }
426
- var tr = function(e, r, t, n, o, s, i) {
426
+ var nr = function(e, r, t, n, o, s, i) {
427
427
  var a = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
429
  $$typeof: d,
@@ -452,12 +452,12 @@ function hr() {
452
452
  value: o
453
453
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
454
454
  };
455
- function nr(e, r, t, n, o) {
455
+ function ar(e, r, t, n, o) {
456
456
  {
457
457
  var s, i = {}, a = null, m = null;
458
- t !== void 0 && (_e(t), a = "" + t), Xe(r) && (_e(r.key), a = "" + r.key), Ge(r) && (m = r.ref, Qe(r, o));
458
+ t !== void 0 && (_e(t), a = "" + t), Qe(r) && (_e(r.key), a = "" + r.key), Xe(r) && (m = r.ref, er(r, o));
459
459
  for (s in r)
460
- I.call(r, s) && !Ke.hasOwnProperty(s) && (i[s] = r[s]);
460
+ I.call(r, s) && !Ge.hasOwnProperty(s) && (i[s] = r[s]);
461
461
  if (e && e.defaultProps) {
462
462
  var c = e.defaultProps;
463
463
  for (s in c)
@@ -465,28 +465,28 @@ function hr() {
465
465
  }
466
466
  if (a || m) {
467
467
  var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- a && er(i, f), m && rr(i, f);
468
+ a && rr(i, f), m && tr(i, f);
469
469
  }
470
- return tr(e, a, m, o, n, W.current, i);
470
+ return nr(e, a, m, o, n, W.current, i);
471
471
  }
472
472
  }
473
- var Q = D.ReactCurrentOwner, ye = D.ReactDebugCurrentFrame;
473
+ var ee = D.ReactCurrentOwner, ye = D.ReactDebugCurrentFrame;
474
474
  function P(e) {
475
475
  if (e) {
476
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
476
+ var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
477
477
  ye.setExtraStackFrame(t);
478
478
  } else
479
479
  ye.setExtraStackFrame(null);
480
480
  }
481
- var ee;
482
- ee = !1;
483
- function re(e) {
481
+ var re;
482
+ re = !1;
483
+ function te(e) {
484
484
  return typeof e == "object" && e !== null && e.$$typeof === d;
485
485
  }
486
- function Se() {
486
+ function Ce() {
487
487
  {
488
- if (Q.current) {
489
- var e = O(Q.current.type);
488
+ if (ee.current) {
489
+ var e = S(ee.current.type);
490
490
  if (e)
491
491
  return `
492
492
 
@@ -495,7 +495,7 @@ Check the render method of \`` + e + "`.";
495
495
  return "";
496
496
  }
497
497
  }
498
- function ar(e) {
498
+ function ir(e) {
499
499
  {
500
500
  if (e !== void 0) {
501
501
  var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
@@ -506,10 +506,10 @@ Check your code at ` + r + ":" + t + ".";
506
506
  return "";
507
507
  }
508
508
  }
509
- var Oe = {};
510
- function ir(e) {
509
+ var Se = {};
510
+ function or(e) {
511
511
  {
512
- var r = Se();
512
+ var r = Ce();
513
513
  if (!r) {
514
514
  var t = typeof e == "string" ? e : e.displayName || e.name;
515
515
  t && (r = `
@@ -519,39 +519,39 @@ Check the top-level render call using <` + t + ">.");
519
519
  return r;
520
520
  }
521
521
  }
522
- function we(e, r) {
522
+ function xe(e, r) {
523
523
  {
524
524
  if (!e._store || e._store.validated || e.key != null)
525
525
  return;
526
526
  e._store.validated = !0;
527
- var t = ir(r);
528
- if (Oe[t])
527
+ var t = or(r);
528
+ if (Se[t])
529
529
  return;
530
- Oe[t] = !0;
530
+ Se[t] = !0;
531
531
  var n = "";
532
- e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + O(e._owner.type) + "."), P(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), P(null);
532
+ e && e._owner && e._owner !== ee.current && (n = " It was passed a child from " + S(e._owner.type) + "."), P(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), P(null);
533
533
  }
534
534
  }
535
- function Ce(e, r) {
535
+ function Oe(e, r) {
536
536
  {
537
537
  if (typeof e != "object")
538
538
  return;
539
- if (G(e))
539
+ if (X(e))
540
540
  for (var t = 0; t < e.length; t++) {
541
541
  var n = e[t];
542
- re(n) && we(n, r);
542
+ te(n) && xe(n, r);
543
543
  }
544
- else if (re(e))
544
+ else if (te(e))
545
545
  e._store && (e._store.validated = !0);
546
546
  else if (e) {
547
- var o = J(e);
547
+ var o = B(e);
548
548
  if (typeof o == "function" && o !== e.entries)
549
549
  for (var s = o.call(e), i; !(i = s.next()).done; )
550
- re(i.value) && we(i.value, r);
550
+ te(i.value) && xe(i.value, r);
551
551
  }
552
552
  }
553
553
  }
554
- function or(e) {
554
+ function sr(e) {
555
555
  {
556
556
  var r = e.type;
557
557
  if (r == null || typeof r == "string")
@@ -566,137 +566,151 @@ Check the top-level render call using <` + t + ">.");
566
566
  else
567
567
  return;
568
568
  if (t) {
569
- var n = O(r);
570
- Ze(t, e.props, "prop", n, e);
571
- } else if (r.PropTypes !== void 0 && !ee) {
572
- ee = !0;
573
- var o = O(r);
574
- p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
569
+ var n = S(r);
570
+ Je(t, e.props, "prop", n, e);
571
+ } else if (r.PropTypes !== void 0 && !re) {
572
+ re = !0;
573
+ var o = S(r);
574
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
575
575
  }
576
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
577
  }
578
578
  }
579
- function sr(e) {
579
+ function ur(e) {
580
580
  {
581
581
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
582
582
  var n = r[t];
583
583
  if (n !== "children" && n !== "key") {
584
- P(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
584
+ P(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
585
585
  break;
586
586
  }
587
587
  }
588
- e.ref !== null && (P(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
588
+ e.ref !== null && (P(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
589
589
  }
590
590
  }
591
- var xe = {};
591
+ var we = {};
592
592
  function De(e, r, t, n, o, s) {
593
593
  {
594
- var i = We(e);
594
+ var i = Ne(e);
595
595
  if (!i) {
596
596
  var a = "";
597
597
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
- var m = ar(o);
599
- m ? a += m : a += Se();
598
+ var m = ir(o);
599
+ m ? a += m : a += Ce();
600
600
  var c;
601
- e === null ? c = "null" : G(e) ? c = "array" : e !== void 0 && e.$$typeof === d ? (c = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
601
+ e === null ? c = "null" : X(e) ? c = "array" : e !== void 0 && e.$$typeof === d ? (c = "<" + (S(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
602
602
  }
603
- var f = nr(e, r, t, o, s);
603
+ var f = ar(e, r, t, o, s);
604
604
  if (f == null)
605
605
  return f;
606
606
  if (i) {
607
607
  var E = r.children;
608
608
  if (E !== void 0)
609
609
  if (n)
610
- if (G(E)) {
610
+ if (X(E)) {
611
611
  for (var M = 0; M < E.length; M++)
612
- Ce(E[M], e);
612
+ Oe(E[M], e);
613
613
  Object.freeze && Object.freeze(E);
614
614
  } else
615
- p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
615
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
616
  else
617
- Ce(E, e);
617
+ Oe(E, e);
618
618
  }
619
619
  if (I.call(r, "key")) {
620
- var T = O(e), _ = Object.keys(r).filter(function(vr) {
621
- return vr !== "key";
622
- }), te = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
623
- if (!xe[T + te]) {
624
- var dr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
625
- p(`A props object containing a "key" prop is being spread into JSX:
620
+ var Y = S(e), _ = Object.keys(r).filter(function(pr) {
621
+ return pr !== "key";
622
+ }), ne = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ if (!we[Y + ne]) {
624
+ var vr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
625
+ g(`A props object containing a "key" prop is being spread into JSX:
626
626
  let props = %s;
627
627
  <%s {...props} />
628
628
  React keys must be passed directly to JSX without using spread:
629
629
  let props = %s;
630
- <%s key={someKey} {...props} />`, te, T, dr, T), xe[T + te] = !0;
630
+ <%s key={someKey} {...props} />`, ne, Y, vr, Y), we[Y + ne] = !0;
631
631
  }
632
632
  }
633
- return e === S ? sr(f) : or(f), f;
633
+ return e === C ? ur(f) : sr(f), f;
634
634
  }
635
635
  }
636
- function ur(e, r, t) {
636
+ function lr(e, r, t) {
637
637
  return De(e, r, t, !0);
638
638
  }
639
- function lr(e, r, t) {
639
+ function cr(e, r, t) {
640
640
  return De(e, r, t, !1);
641
641
  }
642
- var cr = lr, fr = ur;
643
- H.Fragment = S, H.jsx = cr, H.jsxs = fr;
642
+ var fr = cr, dr = lr;
643
+ H.Fragment = C, H.jsx = fr, H.jsxs = dr;
644
644
  }()), H;
645
645
  }
646
- process.env.NODE_ENV === "production" ? ne.exports = br() : ne.exports = hr();
647
- var ae = ne.exports;
648
- const _r = (b) => {
646
+ process.env.NODE_ENV === "production" ? ae.exports = yr() : ae.exports = Cr();
647
+ var z = ae.exports;
648
+ const $e = mr({
649
+ theme: {
650
+ cssVar: !0,
651
+ algorithm: [_r.defaultAlgorithm]
652
+ }
653
+ });
654
+ $e.Provider;
655
+ function Sr() {
656
+ return br($e);
657
+ }
658
+ function xr(p) {
659
+ const { theme: d } = Sr();
660
+ return /* @__PURE__ */ z.jsx(Rr, { theme: d, children: p.children });
661
+ }
662
+ const Or = (p) => {
649
663
  const {
650
664
  data: d,
651
665
  title: R,
652
- column: S = 3,
653
- lineHeight: w,
666
+ column: C = 3,
667
+ lineHeight: x,
654
668
  align: A = "left",
655
- itemLayout: h,
656
- colon: C = !0,
669
+ itemLayout: b,
670
+ colon: O = !0,
657
671
  bordered: v = !1,
658
672
  style: j,
659
- className: g,
673
+ className: h,
660
674
  labelStyle: y,
661
- contentStyle: x
662
- } = b, $ = {
663
- ...w ? { lineHeight: `${w}px` } : {},
675
+ contentStyle: w
676
+ } = p, $ = {
677
+ ...x ? { lineHeight: `${x}px` } : {},
664
678
  textAlign: A,
665
- ...h != null && h.label ? { width: `${h.label}px` } : {},
679
+ ...b != null && b.label ? { width: `${b.label}px` } : {},
666
680
  ...y
667
- }, z = {
668
- ...w ? { lineHeight: `${w}px` } : {},
669
- ...h != null && h.value ? { width: `${h.value}px` } : {},
670
- ...x
681
+ }, V = {
682
+ ...x ? { lineHeight: `${x}px` } : {},
683
+ ...b != null && b.value ? { width: `${b.value}px` } : {},
684
+ ...w
671
685
  };
672
- return /* @__PURE__ */ ae.jsx(
686
+ return /* @__PURE__ */ z.jsx(xr, { children: /* @__PURE__ */ z.jsx(
673
687
  je,
674
688
  {
675
689
  title: R,
676
- column: S,
677
- colon: C,
690
+ column: C,
691
+ colon: O,
678
692
  bordered: v,
679
693
  style: j,
680
- className: g,
694
+ className: h,
681
695
  labelStyle: $,
682
- contentStyle: z,
683
- children: d.map((k, J) => {
696
+ contentStyle: V,
697
+ children: d.map((k, B) => {
684
698
  var D;
685
- return /* @__PURE__ */ ae.jsx(
699
+ return /* @__PURE__ */ z.jsx(
686
700
  je.Item,
687
701
  {
688
702
  label: k.label,
689
703
  span: k.span,
690
704
  children: k.value || "-"
691
705
  },
692
- ((D = k.label) == null ? void 0 : D.toString()) || J
706
+ ((D = k.label) == null ? void 0 : D.toString()) || B
693
707
  );
694
708
  })
695
709
  }
696
- );
710
+ ) });
697
711
  };
698
- _r.displayName = "MDescriptions";
699
- const Sr = ({ type: b = "primary", children: d, onClick: R, custom: S }) => /* @__PURE__ */ ae.jsx(mr, { type: b, onClick: R, className: "my-button", children: S || d }), Or = {
712
+ Or.displayName = "MDescriptions";
713
+ const Tr = ({ type: p = "primary", children: d, onClick: R, custom: C }) => /* @__PURE__ */ z.jsx(Er, { type: p, onClick: R, className: "my-button", children: C || d }), Yr = {
700
714
  YMD_Hms: "YYYY-MM-DD HH:mm:ss",
701
715
  YMD: "YYYY-MM-DD",
702
716
  YMD2: "YYYYMMDD",
@@ -706,7 +720,7 @@ const Sr = ({ type: b = "primary", children: d, onClick: R, custom: S }) => /* @
706
720
  YMD_000: "YYYY-MM-DD 00:00:00",
707
721
  YMD_end: "YYYY-MM-DD 23:59:59",
708
722
  YMD_Hm: "YYYYMMDD HHmm"
709
- }, wr = 10;
723
+ }, Ar = 10;
710
724
  class l {
711
725
  }
712
726
  // 整数
@@ -733,9 +747,9 @@ u(l, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘
733
747
  u(l, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
734
748
  u(l, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
735
749
  export {
736
- Or as DATE_FORMAT,
737
- _r as MDescriptions,
738
- Sr as MyButton,
739
- wr as PAGE_SIZE,
750
+ Yr as DATE_FORMAT,
751
+ Or as MDescriptions,
752
+ Tr as MyButton,
753
+ Ar as PAGE_SIZE,
740
754
  l as PatternType
741
755
  };
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(d,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],_):(d=typeof globalThis<"u"?globalThis:d||self,_(d.MiAvalonLibs={},d.React,d.antd))})(this,function(d,_,w){"use strict";var yr=Object.defineProperty;var Sr=(d,_,w)=>_ in d?yr(d,_,{enumerable:!0,configurable:!0,writable:!0,value:w}):d[_]=w;var l=(d,_,w)=>(Sr(d,typeof _!="symbol"?_+"":_,w),w);const ue=(E=>E&&E.__esModule?E:{default:E})(_);var G={exports:{}},N={};/**
1
+ (function(d,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],h):(d=typeof globalThis<"u"?globalThis:d||self,h(d.MiAvalonLibs={},d.React,d.antd))})(this,function(d,h,y){"use strict";var Or=Object.defineProperty;var wr=(d,h,y)=>h in d?Or(d,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):d[h]=y;var l=(d,h,y)=>(wr(d,typeof h!="symbol"?h+"":h,y),y);const ue=(g=>g&&g.__esModule?g:{default:g})(h);var K={exports:{}},N={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var le;function Me(){if(le)return N;le=1;var E=ue.default,C=Symbol.for("react.element"),Y=Symbol.for("react.fragment"),S=Object.prototype.hasOwnProperty,D=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function h(x,v,A){var g,y={},T=null,M=null;A!==void 0&&(T=""+A),v.key!==void 0&&(T=""+v.key),v.ref!==void 0&&(M=v.ref);for(g in v)S.call(v,g)&&!P.hasOwnProperty(g)&&(y[g]=v[g]);if(x&&x.defaultProps)for(g in v=x.defaultProps,v)y[g]===void 0&&(y[g]=v[g]);return{$$typeof:C,type:x,key:T,ref:M,props:y,_owner:D.current}}return N.Fragment=Y,N.jsx=h,N.jsxs=h,N}var H={};/**
9
+ */var le;function Fe(){if(le)return N;le=1;var g=ue.default,S=Symbol.for("react.element"),Y=Symbol.for("react.fragment"),O=Object.prototype.hasOwnProperty,D=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function _(x,v,A){var m,C={},T=null,M=null;A!==void 0&&(T=""+A),v.key!==void 0&&(T=""+v.key),v.ref!==void 0&&(M=v.ref);for(m in v)O.call(v,m)&&!$.hasOwnProperty(m)&&(C[m]=v[m]);if(x&&x.defaultProps)for(m in v=x.defaultProps,v)C[m]===void 0&&(C[m]=v[m]);return{$$typeof:S,type:x,key:T,ref:M,props:C,_owner:D.current}}return N.Fragment=Y,N.jsx=_,N.jsxs=_,N}var H={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,19 +14,19 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ce;function Fe(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var E=ue.default,C=Symbol.for("react.element"),Y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),x=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),V=Symbol.iterator,F="@@iterator";function X(e){if(e===null||typeof e!="object")return null;var r=V&&e[V]||e[F];return typeof r=="function"?r:null}var j=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];He("error",e,t)}}function He(e,r,t){{var n=j.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var ze=!1,Le=!1,Ue=!1,Ve=!1,Ze=!1,de;de=Symbol.for("react.module.reference");function Be(e){return!!(typeof e=="string"||typeof e=="function"||e===S||e===P||Ze||e===D||e===A||e===g||Ve||e===M||ze||Le||Ue||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===y||e.$$typeof===h||e.$$typeof===x||e.$$typeof===v||e.$$typeof===de||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ve(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case Y:return"Portal";case P:return"Profiler";case D:return"StrictMode";case A:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var r=e;return ve(r)+".Consumer";case h:var t=e;return ve(t._context)+".Provider";case v:return Je(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case T:{var o=e,s=o._payload,i=o._init;try{return O(i(s))}catch{return null}}}return null}var $=Object.assign,z=0,pe,ge,be,he,me,_e,Ee;function Re(){}Re.__reactDisabledLog=!0;function qe(){{if(z===0){pe=console.log,ge=console.info,be=console.warn,he=console.error,me=console.group,_e=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}z++}}function Ge(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:pe}),info:$({},e,{value:ge}),warn:$({},e,{value:be}),error:$({},e,{value:he}),group:$({},e,{value:me}),groupCollapsed:$({},e,{value:_e}),groupEnd:$({},e,{value:Ee})})}z<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=j.ReactCurrentDispatcher,ee;function Z(e,r,t){{if(ee===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);ee=n&&n[1]||""}return`
18
- `+ee+e}}var re=!1,B;{var Ke=typeof WeakMap=="function"?WeakMap:Map;B=new Ke}function ye(e,r){if(!e||re)return"";{var t=B.get(e);if(t!==void 0)return t}var n;re=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=Q.current,Q.current=null,qe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(m){n=m}Reflect.construct(e,[],i)}else{try{i.call()}catch(m){n=m}e.call(i.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var a=m.stack.split(`
17
+ */var ce;function Ie(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var g=ue.default,S=Symbol.for("react.element"),Y=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),x=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),Z=Symbol.iterator,F="@@iterator";function X(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[F];return typeof r=="function"?r:null}var j=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Le("error",e,t)}}function Le(e,r,t){{var n=j.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ue=!1,Ze=!1,Be=!1,Je=!1,qe=!1,ve;ve=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===O||e===$||qe||e===D||e===A||e===m||Je||e===M||Ue||Ze||Be||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===C||e.$$typeof===_||e.$$typeof===x||e.$$typeof===v||e.$$typeof===ve||e.getModuleId!==void 0))}function Ke(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function pe(e){return e.displayName||"Context"}function w(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case Y:return"Portal";case $:return"Profiler";case D:return"StrictMode";case A:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var r=e;return pe(r)+".Consumer";case _:var t=e;return pe(t._context)+".Provider";case v:return Ke(e,e.render,"ForwardRef");case C:var n=e.displayName||null;return n!==null?n:w(e.type)||"Memo";case T:{var o=e,s=o._payload,i=o._init;try{return w(i(s))}catch{return null}}}return null}var P=Object.assign,V=0,he,ge,me,be,_e,Ee,Re;function ye(){}ye.__reactDisabledLog=!0;function Xe(){{if(V===0){he=console.log,ge=console.info,me=console.warn,be=console.error,_e=console.group,Ee=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Qe(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:he}),info:P({},e,{value:ge}),warn:P({},e,{value:me}),error:P({},e,{value:be}),group:P({},e,{value:_e}),groupCollapsed:P({},e,{value:Ee}),groupEnd:P({},e,{value:Re})})}V<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=j.ReactCurrentDispatcher,ee;function B(e,r,t){{if(ee===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);ee=n&&n[1]||""}return`
18
+ `+ee+e}}var re=!1,J;{var er=typeof WeakMap=="function"?WeakMap:Map;J=new er}function Se(e,r){if(!e||re)return"";{var t=J.get(e);if(t!==void 0)return t}var n;re=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=Q.current,Q.current=null,Xe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(E){n=E}Reflect.construct(e,[],i)}else{try{i.call()}catch(E){n=E}e.call(i.prototype)}}else{try{throw Error()}catch(E){n=E}e()}}catch(E){if(E&&n&&typeof E.stack=="string"){for(var a=E.stack.split(`
19
19
  `),b=n.stack.split(`
20
20
  `),c=a.length-1,f=b.length-1;c>=1&&f>=0&&a[c]!==b[f];)f--;for(;c>=1&&f>=0;c--,f--)if(a[c]!==b[f]){if(c!==1||f!==1)do if(c--,f--,f<0||a[c]!==b[f]){var R=`
21
- `+a[c].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,R),R}while(c>=1&&f>=0);break}}}finally{re=!1,Q.current=s,Ge(),Error.prepareStackTrace=o}var W=e?e.displayName||e.name:"",k=W?Z(W):"";return typeof e=="function"&&B.set(e,k),k}function Xe(e,r,t){return ye(e,!1)}function Qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Qe(e));if(typeof e=="string")return Z(e);switch(e){case A:return Z("Suspense");case g:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Xe(e.render);case y:return J(e.type,r,t);case T:{var n=e,o=n._payload,s=n._init;try{return J(s(o),r,t)}catch{}}}return""}var L=Object.prototype.hasOwnProperty,Se={},Oe=j.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}function er(e,r,t,n,o){{var s=Function.call.bind(L);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var b=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}a&&!(a instanceof Error)&&(q(o),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),q(null)),a instanceof Error&&!(a.message in Se)&&(Se[a.message]=!0,q(o),p("Failed %s type: %s",t,a.message),q(null))}}}var rr=Array.isArray;function te(e){return rr(e)}function tr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function nr(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Ce(e){if(nr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(e)),we(e)}var U=j.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},De,xe,ne;ne={};function ir(e){if(L.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function or(e){if(L.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function sr(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=O(U.current.type);ne[t]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(U.current.type),e.ref),ne[t]=!0)}}function ur(e,r){{var t=function(){De||(De=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function lr(e,r){{var t=function(){xe||(xe=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var cr=function(e,r,t,n,o,s,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function fr(e,r,t,n,o){{var s,i={},a=null,b=null;t!==void 0&&(Ce(t),a=""+t),or(r)&&(Ce(r.key),a=""+r.key),ir(r)&&(b=r.ref,sr(r,o));for(s in r)L.call(r,s)&&!ar.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var c=e.defaultProps;for(s in c)i[s]===void 0&&(i[s]=c[s])}if(a||b){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ur(i,f),b&&lr(i,f)}return cr(e,a,b,o,n,U.current,i)}}var ae=j.ReactCurrentOwner,Te=j.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var ie;ie=!1;function oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function je(){{if(ae.current){var e=O(ae.current.type);if(e)return`
21
+ `+a[c].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,R),R}while(c>=1&&f>=0);break}}}finally{re=!1,Q.current=s,Qe(),Error.prepareStackTrace=o}var W=e?e.displayName||e.name:"",k=W?B(W):"";return typeof e=="function"&&J.set(e,k),k}function rr(e,r,t){return Se(e,!1)}function tr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,t){if(e==null)return"";if(typeof e=="function")return Se(e,tr(e));if(typeof e=="string")return B(e);switch(e){case A:return B("Suspense");case m:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return rr(e.render);case C:return q(e.type,r,t);case T:{var n=e,o=n._payload,s=n._init;try{return q(s(o),r,t)}catch{}}}return""}var L=Object.prototype.hasOwnProperty,Ce={},Oe=j.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}function nr(e,r,t,n,o){{var s=Function.call.bind(L);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var b=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}a&&!(a instanceof Error)&&(G(o),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),G(null)),a instanceof Error&&!(a.message in Ce)&&(Ce[a.message]=!0,G(o),p("Failed %s type: %s",t,a.message),G(null))}}}var ar=Array.isArray;function te(e){return ar(e)}function ir(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function or(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function De(e){if(or(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ir(e)),we(e)}var U=j.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0},xe,Te,ne;ne={};function ur(e){if(L.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function lr(e){if(L.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function cr(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=w(U.current.type);ne[t]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(U.current.type),e.ref),ne[t]=!0)}}function fr(e,r){{var t=function(){xe||(xe=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function dr(e,r){{var t=function(){Te||(Te=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var vr=function(e,r,t,n,o,s,i){var a={$$typeof:S,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function pr(e,r,t,n,o){{var s,i={},a=null,b=null;t!==void 0&&(De(t),a=""+t),lr(r)&&(De(r.key),a=""+r.key),ur(r)&&(b=r.ref,cr(r,o));for(s in r)L.call(r,s)&&!sr.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var c=e.defaultProps;for(s in c)i[s]===void 0&&(i[s]=c[s])}if(a||b){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&fr(i,f),b&&dr(i,f)}return vr(e,a,b,o,n,U.current,i)}}var ae=j.ReactCurrentOwner,je=j.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}var ie;ie=!1;function oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}function Ae(){{if(ae.current){var e=w(ae.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function dr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function hr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var Ae={};function vr(e){{var r=je();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+t+"."}return""}}var Ye={};function gr(e){{var r=Ae();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function Ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=vr(r);if(Ae[t])return;Ae[t]=!0;var n="";e&&e._owner&&e._owner!==ae.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),I(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function $e(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var n=e[t];oe(n)&&Ye(n,r)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=X(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)oe(i.value)&&Ye(i.value,r)}}}function pr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=O(r);er(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ie){ie=!0;var o=O(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}var ke={};function Pe(e,r,t,n,o,s){{var i=Be(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=dr(o);b?a+=b:a+=je();var c;e===null?c="null":te(e)?c="array":e!==void 0&&e.$$typeof===C?(c="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,a)}var f=fr(e,r,t,o,s);if(f==null)return f;if(i){var R=r.children;if(R!==void 0)if(n)if(te(R)){for(var W=0;W<R.length;W++)$e(R[W],e);Object.freeze&&Object.freeze(R)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $e(R,e)}if(L.call(r,"key")){var k=O(e),m=Object.keys(r).filter(function(Rr){return Rr!=="key"}),se=m.length>0?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}";if(!ke[k+se]){var Er=m.length>0?"{"+m.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=gr(r);if(Ye[t])return;Ye[t]=!0;var n="";e&&e._owner&&e._owner!==ae.current&&(n=" It was passed a child from "+w(e._owner.type)+"."),I(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function ke(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var n=e[t];oe(n)&&Pe(n,r)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=X(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)oe(i.value)&&Pe(i.value,r)}}}function mr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===C))t=r.propTypes;else return;if(t){var n=w(r);nr(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ie){ie=!0;var o=w(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function br(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}var $e={};function Me(e,r,t,n,o,s){{var i=Ge(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=hr(o);b?a+=b:a+=Ae();var c;e===null?c="null":te(e)?c="array":e!==void 0&&e.$$typeof===S?(c="<"+(w(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,a)}var f=pr(e,r,t,o,s);if(f==null)return f;if(i){var R=r.children;if(R!==void 0)if(n)if(te(R)){for(var W=0;W<R.length;W++)ke(R[W],e);Object.freeze&&Object.freeze(R)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ke(R,e)}if(L.call(r,"key")){var k=w(e),E=Object.keys(r).filter(function(Cr){return Cr!=="key"}),se=E.length>0?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}";if(!$e[k+se]){var Sr=E.length>0?"{"+E.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,se,k,Er,k),ke[k+se]=!0}}return e===S?gr(f):pr(f),f}}function br(e,r,t){return Pe(e,r,t,!0)}function hr(e,r,t){return Pe(e,r,t,!1)}var mr=hr,_r=br;H.Fragment=S,H.jsx=mr,H.jsxs=_r}()),H}process.env.NODE_ENV==="production"?G.exports=Me():G.exports=Fe();var K=G.exports;const fe=E=>{const{data:C,title:Y,column:S=3,lineHeight:D,align:P="left",itemLayout:h,colon:x=!0,bordered:v=!1,style:A,className:g,labelStyle:y,contentStyle:T}=E,M={...D?{lineHeight:`${D}px`}:{},textAlign:P,...h!=null&&h.label?{width:`${h.label}px`}:{},...y},V={...D?{lineHeight:`${D}px`}:{},...h!=null&&h.value?{width:`${h.value}px`}:{},...T};return K.jsx(w.Descriptions,{title:Y,column:S,colon:x,bordered:v,style:A,className:g,labelStyle:M,contentStyle:V,children:C.map((F,X)=>{var j;return K.jsx(w.Descriptions.Item,{label:F.label,span:F.span,children:F.value||"-"},((j=F.label)==null?void 0:j.toString())||X)})})};fe.displayName="MDescriptions";const wr="",Ie=({type:E="primary",children:C,onClick:Y,custom:S})=>K.jsx(w.Button,{type:E,onClick:Y,className:"my-button",children:S||C}),We={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm"},Ne=10;class u{}l(u,"integerRegex",/^-?\d+$/),l(u,"positiveIntegerRegex",/^[1-9]\d*$/),l(u,"negativeIntegerRegex",/^-[1-9]\d*$/),l(u,"floatRegex",/^-?\d+(\.\d+)?$/),l(u,"letter",/^[a-zA-Z]+$/),l(u,"chinese",/^[\u4e00-\u9fa5]+$/),l(u,"number",/^[0-9]*$/),l(u,"username",/^[a-zA-Z]\w{3,15}$/),l(u,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),l(u,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),l(u,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),l(u,"phone",/^1[3-9]\d{9}$/),l(u,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),l(u,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),l(u,"idCard",/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/),l(u,"bankCard",/^[1-9]\d{3,30}$/),l(u,"zipCode",/^[1-9]\d{5}$/),l(u,"ip",/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/),l(u,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),l(u,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),l(u,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),l(u,"date",/^(\d{4})-(\d{2})-(\d{2})$/),d.DATE_FORMAT=We,d.MDescriptions=fe,d.MyButton=Ie,d.PAGE_SIZE=Ne,d.PatternType=u,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
32
+ <%s key={someKey} {...props} />`,se,k,Sr,k),$e[k+se]=!0}}return e===O?br(f):mr(f),f}}function _r(e,r,t){return Me(e,r,t,!0)}function Er(e,r,t){return Me(e,r,t,!1)}var Rr=Er,yr=_r;H.Fragment=O,H.jsx=Rr,H.jsxs=yr}()),H}process.env.NODE_ENV==="production"?K.exports=Fe():K.exports=Ie();var z=K.exports;const fe=h.createContext({theme:{cssVar:!0,algorithm:[y.theme.defaultAlgorithm]}});fe.Provider;function We(){return h.useContext(fe)}function Ne(g){const{theme:S}=We();return z.jsx(y.ConfigProvider,{theme:S,children:g.children})}const de=g=>{const{data:S,title:Y,column:O=3,lineHeight:D,align:$="left",itemLayout:_,colon:x=!0,bordered:v=!1,style:A,className:m,labelStyle:C,contentStyle:T}=g,M={...D?{lineHeight:`${D}px`}:{},textAlign:$,..._!=null&&_.label?{width:`${_.label}px`}:{},...C},Z={...D?{lineHeight:`${D}px`}:{},..._!=null&&_.value?{width:`${_.value}px`}:{},...T};return z.jsx(Ne,{children:z.jsx(y.Descriptions,{title:Y,column:O,colon:x,bordered:v,style:A,className:m,labelStyle:M,contentStyle:Z,children:S.map((F,X)=>{var j;return z.jsx(y.Descriptions.Item,{label:F.label,span:F.span,children:F.value||"-"},((j=F.label)==null?void 0:j.toString())||X)})})})};de.displayName="MDescriptions";const xr="",He=({type:g="primary",children:S,onClick:Y,custom:O})=>z.jsx(y.Button,{type:g,onClick:Y,className:"my-button",children:O||S}),ze={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm"},Ve=10;class u{}l(u,"integerRegex",/^-?\d+$/),l(u,"positiveIntegerRegex",/^[1-9]\d*$/),l(u,"negativeIntegerRegex",/^-[1-9]\d*$/),l(u,"floatRegex",/^-?\d+(\.\d+)?$/),l(u,"letter",/^[a-zA-Z]+$/),l(u,"chinese",/^[\u4e00-\u9fa5]+$/),l(u,"number",/^[0-9]*$/),l(u,"username",/^[a-zA-Z]\w{3,15}$/),l(u,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),l(u,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),l(u,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),l(u,"phone",/^1[3-9]\d{9}$/),l(u,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),l(u,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),l(u,"idCard",/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/),l(u,"bankCard",/^[1-9]\d{3,30}$/),l(u,"zipCode",/^[1-9]\d{5}$/),l(u,"ip",/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/),l(u,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),l(u,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),l(u,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),l(u,"date",/^(\d{4})-(\d{2})-(\d{2})$/),d.DATE_FORMAT=ze,d.MDescriptions=de,d.MyButton=He,d.PAGE_SIZE=Ve,d.PatternType=u,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mi-avalon/libs",
3
3
  "private": false,
4
- "version": "0.0.18",
4
+ "version": "0.0.19",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",