itrm-components 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/itrm-components.js +235 -225
- package/dist/itrm-components.umd.cjs +9 -9
- package/dist/tooltip/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/itrm-components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Pe, { useState as dr } from "react";
|
|
2
|
+
var N = { exports: {} }, W = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,20 +10,20 @@ var M = { exports: {} }, D = {};
|
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
12
|
var Oe;
|
|
13
|
-
function
|
|
14
|
-
if (Oe) return
|
|
13
|
+
function vr() {
|
|
14
|
+
if (Oe) return W;
|
|
15
15
|
Oe = 1;
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var p, b = {},
|
|
19
|
-
|
|
20
|
-
for (p in c)
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
16
|
+
var x = Pe, R = Symbol.for("react.element"), k = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, O = x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function D(E, c, w) {
|
|
18
|
+
var p, b = {}, _ = null, Y = null;
|
|
19
|
+
w !== void 0 && (_ = "" + w), c.key !== void 0 && (_ = "" + c.key), c.ref !== void 0 && (Y = c.ref);
|
|
20
|
+
for (p in c) y.call(c, p) && !S.hasOwnProperty(p) && (b[p] = c[p]);
|
|
21
|
+
if (E && E.defaultProps) for (p in c = E.defaultProps, c) b[p] === void 0 && (b[p] = c[p]);
|
|
22
|
+
return { $$typeof: R, type: E, key: _, ref: Y, props: b, _owner: O.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return W.Fragment = k, W.jsx = D, W.jsxs = D, W;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var $ = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -34,90 +34,90 @@ var F = {};
|
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
36
|
var Se;
|
|
37
|
-
function
|
|
37
|
+
function pr() {
|
|
38
38
|
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var
|
|
40
|
-
function
|
|
39
|
+
var x = Pe, R = Symbol.for("react.element"), k = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), D = Symbol.for("react.provider"), E = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, je = "@@iterator";
|
|
40
|
+
function xe(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r = Q && e[Q] || e[
|
|
43
|
+
var r = Q && e[Q] || e[je];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var C = x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function f(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
50
|
t[n - 1] = arguments[n];
|
|
51
|
-
|
|
51
|
+
ke("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ke(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var n =
|
|
57
|
-
|
|
58
|
-
var u = t.map(function(
|
|
59
|
-
return String(
|
|
56
|
+
var n = C.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
57
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
58
|
+
var u = t.map(function(o) {
|
|
59
|
+
return String(o);
|
|
60
60
|
});
|
|
61
61
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var De = !1, Fe = !1, Ae = !1, Ie = !1, We = !1, ee;
|
|
65
65
|
ee = Symbol.for("react.module.reference");
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
66
|
+
function $e(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === y || e === S || We || e === O || e === w || e === p || Ie || e === Y || De || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === D || e.$$typeof === E || e.$$typeof === c || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
71
|
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ye(e, r, t) {
|
|
74
74
|
var n = e.displayName;
|
|
75
75
|
if (n)
|
|
76
76
|
return n;
|
|
77
|
-
var
|
|
78
|
-
return
|
|
77
|
+
var i = r.displayName || r.name || "";
|
|
78
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
79
79
|
}
|
|
80
80
|
function re(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function g(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
86
|
+
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
87
|
return e.displayName || e.name || null;
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case y:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case k:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case S:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case O:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case w:
|
|
100
100
|
return "Suspense";
|
|
101
101
|
case p:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case E:
|
|
107
107
|
var r = e;
|
|
108
108
|
return re(r) + ".Consumer";
|
|
109
|
-
case
|
|
109
|
+
case D:
|
|
110
110
|
var t = e;
|
|
111
111
|
return re(t._context) + ".Provider";
|
|
112
112
|
case c:
|
|
113
|
-
return
|
|
113
|
+
return Ye(e, e.render, "ForwardRef");
|
|
114
114
|
case b:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n :
|
|
117
|
-
case
|
|
118
|
-
var
|
|
116
|
+
return n !== null ? n : g(e.type) || "Memo";
|
|
117
|
+
case _: {
|
|
118
|
+
var i = e, u = i._payload, o = i._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return g(o(u));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function vr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
128
|
+
var m = Object.assign, F = 0, te, ne, ae, oe, ie, ue, se;
|
|
129
|
+
function le() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
le.__reactDisabledLog = !0;
|
|
132
|
+
function Me() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
te = console.log, ne = console.info, ae = console.warn,
|
|
134
|
+
if (F === 0) {
|
|
135
|
+
te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: le,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,254 +149,254 @@ function vr() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
F++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function Le() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (F--, F === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: m({}, e, {
|
|
165
165
|
value: te
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: m({}, e, {
|
|
168
168
|
value: ne
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: m({}, e, {
|
|
171
171
|
value: ae
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
174
|
-
value: ie
|
|
175
|
-
}),
|
|
176
|
-
group: E({}, e, {
|
|
173
|
+
error: m({}, e, {
|
|
177
174
|
value: oe
|
|
178
175
|
}),
|
|
179
|
-
|
|
176
|
+
group: m({}, e, {
|
|
177
|
+
value: ie
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: m({}, e, {
|
|
180
180
|
value: ue
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
182
|
+
groupEnd: m({}, e, {
|
|
183
183
|
value: se
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
F < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var J =
|
|
191
|
-
function
|
|
190
|
+
var J = C.ReactCurrentDispatcher, q;
|
|
191
|
+
function M(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (q === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var n =
|
|
196
|
+
} catch (i) {
|
|
197
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
198
198
|
q = n && n[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
201
|
` + q + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var B = !1,
|
|
204
|
+
var B = !1, L;
|
|
205
205
|
{
|
|
206
206
|
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
|
|
207
|
+
L = new Ve();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function fe(e, r) {
|
|
210
210
|
if (!e || B)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var t =
|
|
213
|
+
var t = L.get(e);
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
217
|
var n;
|
|
218
218
|
B = !0;
|
|
219
|
-
var
|
|
219
|
+
var i = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var u;
|
|
222
|
-
u = J.current, J.current = null,
|
|
222
|
+
u = J.current, J.current = null, Me();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var o = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
n =
|
|
234
|
+
Reflect.construct(o, []);
|
|
235
|
+
} catch (v) {
|
|
236
|
+
n = v;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], o);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
n =
|
|
241
|
+
o.call();
|
|
242
|
+
} catch (v) {
|
|
243
|
+
n = v;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(o.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
n =
|
|
250
|
+
} catch (v) {
|
|
251
|
+
n = v;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var a =
|
|
258
|
-
`),
|
|
259
|
-
`), s = a.length - 1,
|
|
260
|
-
|
|
261
|
-
for (; s >= 1 &&
|
|
262
|
-
if (a[s] !==
|
|
263
|
-
if (s !== 1 ||
|
|
255
|
+
} catch (v) {
|
|
256
|
+
if (v && n && typeof v.stack == "string") {
|
|
257
|
+
for (var a = v.stack.split(`
|
|
258
|
+
`), d = n.stack.split(`
|
|
259
|
+
`), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
|
|
260
|
+
l--;
|
|
261
|
+
for (; s >= 1 && l >= 0; s--, l--)
|
|
262
|
+
if (a[s] !== d[l]) {
|
|
263
|
+
if (s !== 1 || l !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (s--,
|
|
266
|
-
var
|
|
265
|
+
if (s--, l--, l < 0 || a[s] !== d[l]) {
|
|
266
|
+
var h = `
|
|
267
267
|
` + a[s].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName &&
|
|
268
|
+
return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, h), h;
|
|
269
269
|
}
|
|
270
|
-
while (s >= 1 &&
|
|
270
|
+
while (s >= 1 && l >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
B = !1, J.current = u, Le(), Error.prepareStackTrace =
|
|
275
|
+
B = !1, J.current = u, Le(), Error.prepareStackTrace = i;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var j = e ? e.displayName || e.name : "", T = j ? M(j) : "";
|
|
278
|
+
return typeof e == "function" && L.set(e, T), T;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function Ue(e, r, t) {
|
|
281
|
+
return fe(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Ne(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function V(e, r, t) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return fe(e, Ne(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return M(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
295
|
+
case w:
|
|
296
|
+
return M("Suspense");
|
|
297
297
|
case p:
|
|
298
|
-
return
|
|
298
|
+
return M("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case c:
|
|
303
|
-
return
|
|
303
|
+
return Ue(e.render);
|
|
304
304
|
case b:
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
var n = e,
|
|
305
|
+
return V(e.type, r, t);
|
|
306
|
+
case _: {
|
|
307
|
+
var n = e, i = n._payload, u = n._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return V(u(i), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
316
|
+
var A = Object.prototype.hasOwnProperty, ce = {}, de = C.ReactDebugCurrentFrame;
|
|
317
|
+
function U(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
320
|
-
|
|
319
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
320
|
+
de.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
de.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Je(e, r, t, n, i) {
|
|
325
325
|
{
|
|
326
|
-
var u = Function.call.bind(
|
|
327
|
-
for (var
|
|
328
|
-
if (u(e,
|
|
326
|
+
var u = Function.call.bind(A);
|
|
327
|
+
for (var o in e)
|
|
328
|
+
if (u(e, o)) {
|
|
329
329
|
var a = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[o] != "function") {
|
|
332
|
+
var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw d.name = "Invariant Violation", d;
|
|
334
334
|
}
|
|
335
|
-
a = e[
|
|
335
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (s) {
|
|
337
337
|
a = s;
|
|
338
338
|
}
|
|
339
|
-
a && !(a instanceof Error) && (
|
|
339
|
+
a && !(a instanceof Error) && (U(i), f("%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, o, typeof a), U(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, U(i), f("Failed %s type: %s", t, a.message), U(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var qe = Array.isArray;
|
|
344
344
|
function K(e) {
|
|
345
|
-
return
|
|
345
|
+
return qe(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function Be(e) {
|
|
348
348
|
{
|
|
349
349
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ke(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return ve(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function ve(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function pe(e) {
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
364
|
+
if (Ke(e))
|
|
365
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ve(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var I = C.ReactCurrentOwner, Ge = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
372
|
+
}, he, ge, G;
|
|
373
373
|
G = {};
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
374
|
+
function ze(e) {
|
|
375
|
+
if (A.call(e, "ref")) {
|
|
376
376
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
377
|
if (r && r.isReactWarning)
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
380
380
|
return e.ref !== void 0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
382
|
+
function Xe(e) {
|
|
383
|
+
if (A.call(e, "key")) {
|
|
384
384
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
385
|
if (r && r.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return e.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
if (typeof e.ref == "string" &&
|
|
392
|
-
var t =
|
|
393
|
-
G[t] || (
|
|
390
|
+
function He(e, r) {
|
|
391
|
+
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
392
|
+
var t = g(I.current.type);
|
|
393
|
+
G[t] || (f('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', g(I.current.type), e.ref), G[t] = !0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Ze(e, r) {
|
|
397
397
|
{
|
|
398
398
|
var t = function() {
|
|
399
|
-
|
|
399
|
+
he || (he = !0, f("%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));
|
|
400
400
|
};
|
|
401
401
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
402
|
get: t,
|
|
@@ -404,10 +404,10 @@ function vr() {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Qe(e, r) {
|
|
408
408
|
{
|
|
409
409
|
var t = function() {
|
|
410
|
-
|
|
410
|
+
ge || (ge = !0, f("%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));
|
|
411
411
|
};
|
|
412
412
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
413
|
get: t,
|
|
@@ -415,15 +415,15 @@ function vr() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var
|
|
418
|
+
var er = function(e, r, t, n, i, u, o) {
|
|
419
419
|
var a = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
-
$$typeof:
|
|
421
|
+
$$typeof: R,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: e,
|
|
424
424
|
key: r,
|
|
425
425
|
ref: t,
|
|
426
|
-
props:
|
|
426
|
+
props: o,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: u
|
|
429
429
|
};
|
|
@@ -441,44 +441,44 @@ function vr() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: i
|
|
445
445
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
446
446
|
};
|
|
447
|
-
function
|
|
447
|
+
function rr(e, r, t, n, i) {
|
|
448
448
|
{
|
|
449
|
-
var u,
|
|
450
|
-
t !== void 0 && (pe(t), a = "" + t),
|
|
449
|
+
var u, o = {}, a = null, d = null;
|
|
450
|
+
t !== void 0 && (pe(t), a = "" + t), Xe(r) && (pe(r.key), a = "" + r.key), ze(r) && (d = r.ref, He(r, i));
|
|
451
451
|
for (u in r)
|
|
452
|
-
|
|
452
|
+
A.call(r, u) && !Ge.hasOwnProperty(u) && (o[u] = r[u]);
|
|
453
453
|
if (e && e.defaultProps) {
|
|
454
454
|
var s = e.defaultProps;
|
|
455
455
|
for (u in s)
|
|
456
|
-
|
|
456
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
457
457
|
}
|
|
458
|
-
if (a ||
|
|
459
|
-
var
|
|
460
|
-
a &&
|
|
458
|
+
if (a || d) {
|
|
459
|
+
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
+
a && Ze(o, l), d && Qe(o, l);
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return er(e, a, d, i, n, I.current, o);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var z =
|
|
466
|
-
function
|
|
465
|
+
var z = C.ReactCurrentOwner, ye = C.ReactDebugCurrentFrame;
|
|
466
|
+
function P(e) {
|
|
467
467
|
if (e) {
|
|
468
|
-
var r = e._owner, t =
|
|
469
|
-
|
|
468
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
469
|
+
ye.setExtraStackFrame(t);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
ye.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
473
|
var X;
|
|
474
474
|
X = !1;
|
|
475
475
|
function H(e) {
|
|
476
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
476
|
+
return typeof e == "object" && e !== null && e.$$typeof === R;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function be() {
|
|
479
479
|
{
|
|
480
480
|
if (z.current) {
|
|
481
|
-
var e =
|
|
481
|
+
var e = g(z.current.type);
|
|
482
482
|
if (e)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -487,13 +487,13 @@ Check the render method of \`` + e + "`.";
|
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function tr(e) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
var Re = {};
|
|
494
|
-
function
|
|
494
|
+
function nr(e) {
|
|
495
495
|
{
|
|
496
|
-
var r =
|
|
496
|
+
var r = be();
|
|
497
497
|
if (!r) {
|
|
498
498
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
499
|
t && (r = `
|
|
@@ -508,12 +508,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
508
508
|
if (!e._store || e._store.validated || e.key != null)
|
|
509
509
|
return;
|
|
510
510
|
e._store.validated = !0;
|
|
511
|
-
var t =
|
|
511
|
+
var t = nr(r);
|
|
512
512
|
if (Re[t])
|
|
513
513
|
return;
|
|
514
514
|
Re[t] = !0;
|
|
515
515
|
var n = "";
|
|
516
|
-
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " +
|
|
516
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + g(e._owner.type) + "."), P(e), f('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);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function _e(e, r) {
|
|
@@ -528,14 +528,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
528
528
|
else if (H(e))
|
|
529
529
|
e._store && (e._store.validated = !0);
|
|
530
530
|
else if (e) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var u =
|
|
534
|
-
H(
|
|
531
|
+
var i = xe(e);
|
|
532
|
+
if (typeof i == "function" && i !== e.entries)
|
|
533
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
534
|
+
H(o.value) && Ee(o.value, r);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function ar(e) {
|
|
539
539
|
{
|
|
540
540
|
var r = e.type;
|
|
541
541
|
if (r == null || typeof r == "string")
|
|
@@ -550,85 +550,95 @@ Check the top-level render call using <` + t + ">.");
|
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
552
|
if (t) {
|
|
553
|
-
var n =
|
|
554
|
-
|
|
553
|
+
var n = g(r);
|
|
554
|
+
Je(t, e.props, "prop", n, e);
|
|
555
555
|
} else if (r.PropTypes !== void 0 && !X) {
|
|
556
556
|
X = !0;
|
|
557
|
-
var
|
|
558
|
-
|
|
557
|
+
var i = g(r);
|
|
558
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function or(e) {
|
|
564
564
|
{
|
|
565
565
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
566
566
|
var n = r[t];
|
|
567
567
|
if (n !== "children" && n !== "key") {
|
|
568
|
-
|
|
568
|
+
P(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
e.ref !== null && (
|
|
572
|
+
e.ref !== null && (P(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var me = {};
|
|
576
|
-
function Te(e, r, t, n,
|
|
576
|
+
function Te(e, r, t, n, i, u) {
|
|
577
577
|
{
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
578
|
+
var o = $e(e);
|
|
579
|
+
if (!o) {
|
|
580
580
|
var a = "";
|
|
581
581
|
(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.");
|
|
582
|
-
var
|
|
583
|
-
|
|
582
|
+
var d = tr();
|
|
583
|
+
d ? a += d : a += be();
|
|
584
584
|
var s;
|
|
585
|
-
e === null ? s = "null" : K(e) ? s = "array" : e !== void 0 && e.$$typeof ===
|
|
585
|
+
e === null ? s = "null" : K(e) ? s = "array" : e !== void 0 && e.$$typeof === R ? (s = "<" + (g(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
590
|
-
if (
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
587
|
+
var l = rr(e, r, t, i, u);
|
|
588
|
+
if (l == null)
|
|
589
|
+
return l;
|
|
590
|
+
if (o) {
|
|
591
|
+
var h = r.children;
|
|
592
|
+
if (h !== void 0)
|
|
593
593
|
if (n)
|
|
594
|
-
if (K(
|
|
595
|
-
for (var
|
|
596
|
-
_e(
|
|
597
|
-
Object.freeze && Object.freeze(
|
|
594
|
+
if (K(h)) {
|
|
595
|
+
for (var j = 0; j < h.length; j++)
|
|
596
|
+
_e(h[j], e);
|
|
597
|
+
Object.freeze && Object.freeze(h);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
|
-
_e(
|
|
601
|
+
_e(h, e);
|
|
602
602
|
}
|
|
603
|
-
if (
|
|
604
|
-
var
|
|
605
|
-
return
|
|
606
|
-
}), Z =
|
|
607
|
-
if (!me[
|
|
608
|
-
var fr =
|
|
609
|
-
|
|
603
|
+
if (A.call(r, "key")) {
|
|
604
|
+
var T = g(e), v = Object.keys(r).filter(function(cr) {
|
|
605
|
+
return cr !== "key";
|
|
606
|
+
}), Z = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!me[T + Z]) {
|
|
608
|
+
var fr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
f(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
613
613
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`, Z,
|
|
614
|
+
<%s key={someKey} {...props} />`, Z, T, fr, T), me[T + Z] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return e ===
|
|
617
|
+
return e === y ? or(l) : ar(l), l;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function ir(e, r, t) {
|
|
621
621
|
return Te(e, r, t, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function ur(e, r, t) {
|
|
624
624
|
return Te(e, r, t, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
626
|
+
var sr = ur, lr = ir;
|
|
627
|
+
$.Fragment = y, $.jsx = sr, $.jsxs = lr;
|
|
628
|
+
}()), $;
|
|
629
629
|
}
|
|
630
630
|
var we;
|
|
631
|
-
function
|
|
632
|
-
return we || (we = 1, process.env.NODE_ENV === "production" ?
|
|
631
|
+
function hr() {
|
|
632
|
+
return we || (we = 1, process.env.NODE_ENV === "production" ? N.exports = vr() : N.exports = pr()), N.exports;
|
|
633
633
|
}
|
|
634
|
-
|
|
634
|
+
var Ce = hr();
|
|
635
|
+
const yr = ({ children: x, content: R }) => {
|
|
636
|
+
const [k, y] = dr(!1), O = () => y(!0), S = () => y(!1);
|
|
637
|
+
return /* @__PURE__ */ Ce.jsxs("div", { onMouseOver: O, onMouseOut: S, children: [
|
|
638
|
+
x,
|
|
639
|
+
k && /* @__PURE__ */ Ce.jsx("div", { className: "tooltip-content", children: R })
|
|
640
|
+
] });
|
|
641
|
+
};
|
|
642
|
+
export {
|
|
643
|
+
yr as Tooltip
|
|
644
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(R,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(R=typeof globalThis<"u"?globalThis:R||self,E(R["itrm-components"]={},R.React))})(this,function(R,E){"use strict";var L={exports:{}},D={};/**
|
|
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
|
|
9
|
+
*/var re;function xe(){if(re)return D;re=1;var A=E,_=Symbol.for("react.element"),I=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,w=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function W(m,c,C){var p,b={},T=null,V=null;C!==void 0&&(T=""+C),c.key!==void 0&&(T=""+c.key),c.ref!==void 0&&(V=c.ref);for(p in c)g.call(c,p)&&!P.hasOwnProperty(p)&&(b[p]=c[p]);if(m&&m.defaultProps)for(p in c=m.defaultProps,c)b[p]===void 0&&(b[p]=c[p]);return{$$typeof:_,type:m,key:T,ref:V,props:b,_owner:w.current}}return D.Fragment=I,D.jsx=W,D.jsxs=W,D}var F={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
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
|
|
18
|
-
`+
|
|
17
|
+
*/var te;function ke(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var A=E,_=Symbol.for("react.element"),I=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),m=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),oe=Symbol.iterator,Ae="@@iterator";function Ie(e){if(e===null||typeof e!="object")return null;var r=oe&&e[oe]||e[Ae];return typeof r=="function"?r:null}var j=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function l(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];We("error",e,t)}}function We(e,r,t){{var n=j.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ye=!1,Me=!1,$e=!1,Le=!1,Ve=!1,ie;ie=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===P||Ve||e===w||e===C||e===p||Le||e===V||Ye||Me||$e||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===b||e.$$typeof===W||e.$$typeof===m||e.$$typeof===c||e.$$typeof===ie||e.getModuleId!==void 0))}function Ne(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ue(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&l("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 g:return"Fragment";case I:return"Portal";case P:return"Profiler";case w:return"StrictMode";case C:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return ue(r)+".Consumer";case W:var t=e;return ue(t._context)+".Provider";case c:return Ne(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case T:{var i=e,u=i._payload,o=i._init;try{return y(o(u))}catch{return null}}}return null}var O=Object.assign,Y=0,se,fe,le,ce,de,ve,pe;function he(){}he.__reactDisabledLog=!0;function Je(){{if(Y===0){se=console.log,fe=console.info,le=console.warn,ce=console.error,de=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Be(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:se}),info:O({},e,{value:fe}),warn:O({},e,{value:le}),error:O({},e,{value:ce}),group:O({},e,{value:de}),groupCollapsed:O({},e,{value:ve}),groupEnd:O({},e,{value:pe})})}Y<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=j.ReactCurrentDispatcher,K;function U(e,r,t){{if(K===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);K=n&&n[1]||""}return`
|
|
18
|
+
`+K+e}}var G=!1,N;{var qe=typeof WeakMap=="function"?WeakMap:Map;N=new qe}function ye(e,r){if(!e||G)return"";{var t=N.get(e);if(t!==void 0)return t}var n;G=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Je();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(v){n=v}Reflect.construct(e,[],o)}else{try{o.call()}catch(v){n=v}e.call(o.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
|
|
19
19
|
`),d=n.stack.split(`
|
|
20
|
-
`),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var
|
|
21
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&
|
|
20
|
+
`),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var h=`
|
|
21
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),typeof e=="function"&&N.set(e,h),h}while(s>=1&&f>=0);break}}}finally{G=!1,q.current=u,Be(),Error.prepareStackTrace=i}var k=e?e.displayName||e.name:"",S=k?U(k):"";return typeof e=="function"&&N.set(e,S),S}function Ke(e,r,t){return ye(e,!1)}function Ge(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,Ge(e));if(typeof e=="string")return U(e);switch(e){case C:return U("Suspense");case p:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Ke(e.render);case b:return J(e.type,r,t);case T:{var n=e,i=n._payload,u=n._init;try{return J(u(i),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,ge={},be=j.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function ze(e,r,t,n,i){{var u=Function.call.bind(M);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var d=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(B(i),l("%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,o,typeof a),B(null)),a instanceof Error&&!(a.message in ge)&&(ge[a.message]=!0,B(i),l("Failed %s type: %s",t,a.message),B(null))}}}var Xe=Array.isArray;function z(e){return Xe(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Ee(e){if(Ze(e))return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Re(e)}var $=j.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},_e,me,X;X={};function er(e){if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function rr(e){if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function tr(e,r){if(typeof e.ref=="string"&&$.current&&r&&$.current.stateNode!==r){var t=y($.current.type);X[t]||(l('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',y($.current.type),e.ref),X[t]=!0)}}function nr(e,r){{var t=function(){_e||(_e=!0,l("%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 ar(e,r){{var t=function(){me||(me=!0,l("%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 or=function(e,r,t,n,i,u,o){var a={$$typeof:_,type:e,key:r,ref:t,props:o,_owner:u};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:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ir(e,r,t,n,i){{var u,o={},a=null,d=null;t!==void 0&&(Ee(t),a=""+t),rr(r)&&(Ee(r.key),a=""+r.key),er(r)&&(d=r.ref,tr(r,i));for(u in r)M.call(r,u)&&!Qe.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&nr(o,f),d&&ar(o,f)}return or(e,a,d,i,n,$.current,o)}}var H=j.ReactCurrentOwner,Te=j.ReactDebugCurrentFrame;function x(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 Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function Oe(){{if(H.current){var e=y(H.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function ur(e){return""}var Se={};function sr(e){{var r=Oe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(Se[t])return;Se[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),x(e),l('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),x(null)}}function Pe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&we(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var i=Ie(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Q(o.value)&&we(o.value,r)}}}function fr(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===c||r.$$typeof===b))t=r.propTypes;else return;if(t){var n=y(r);ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var i=y(r);l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){x(e),l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),x(null);break}}e.ref!==null&&(x(e),l("Invalid attribute `ref` supplied to `React.Fragment`."),x(null))}}var Ce={};function je(e,r,t,n,i,u){{var o=Ue(e);if(!o){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 d=ur();d?a+=d:a+=Oe();var s;e===null?s="null":z(e)?s="array":e!==void 0&&e.$$typeof===_?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=ir(e,r,t,i,u);if(f==null)return f;if(o){var h=r.children;if(h!==void 0)if(n)if(z(h)){for(var k=0;k<h.length;k++)Pe(h[k],e);Object.freeze&&Object.freeze(h)}else l("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 Pe(h,e)}if(M.call(r,"key")){var S=y(e),v=Object.keys(r).filter(function(yr){return yr!=="key"}),ee=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[S+ee]){var hr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";l(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,ee,S,hr,S),Ce[S+ee]=!0}}return e===g?lr(f):fr(f),f}}function cr(e,r,t){return je(e,r,t,!0)}function dr(e,r,t){return je(e,r,t,!1)}var vr=dr,pr=cr;F.Fragment=g,F.jsx=vr,F.jsxs=pr}()),F}var ne;function De(){return ne||(ne=1,process.env.NODE_ENV==="production"?L.exports=xe():L.exports=ke()),L.exports}var ae=De();const Fe=({children:A,content:_})=>{const[I,g]=E.useState(!1),w=()=>g(!0),P=()=>g(!1);return ae.jsxs("div",{onMouseOver:w,onMouseOut:P,children:[A,I&&ae.jsx("div",{className:"tooltip-content",children:_})]})};R.Tooltip=Fe,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
package/dist/tooltip/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as Tooltip } from './components/tooltip';
|
|
2
|
+
export type { TooltipProps } from './components/tooltip';
|