@tealca/core-components 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,357 +1,706 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import xe from "react";
|
|
2
|
+
function pr(v) {
|
|
3
|
+
return v && v.__esModule && Object.prototype.hasOwnProperty.call(v, "default") ? v.default : v;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var M = { exports: {} }, I = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
|
-
* react-jsx-runtime.production.js
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c)
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
function c(
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} else t = l;
|
|
27
|
-
return l = t.ref, {
|
|
28
|
-
$$typeof: o,
|
|
29
|
-
type: d,
|
|
30
|
-
key: a,
|
|
31
|
-
ref: l !== void 0 ? l : null,
|
|
32
|
-
props: t
|
|
33
|
-
};
|
|
15
|
+
var Oe;
|
|
16
|
+
function br() {
|
|
17
|
+
if (Oe) return I;
|
|
18
|
+
Oe = 1;
|
|
19
|
+
var v = xe, _ = Symbol.for("react.element"), m = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, S = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function c(y, d, C) {
|
|
21
|
+
var g, T = {}, w = null, W = null;
|
|
22
|
+
C !== void 0 && (w = "" + C), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (W = d.ref);
|
|
23
|
+
for (g in d) R.call(d, g) && !s.hasOwnProperty(g) && (T[g] = d[g]);
|
|
24
|
+
if (y && y.defaultProps) for (g in d = y.defaultProps, d) T[g] === void 0 && (T[g] = d[g]);
|
|
25
|
+
return { $$typeof: _, type: y, key: w, ref: W, props: T, _owner: S.current };
|
|
34
26
|
}
|
|
35
|
-
return
|
|
27
|
+
return I.Fragment = m, I.jsx = c, I.jsxs = c, I;
|
|
36
28
|
}
|
|
37
|
-
var
|
|
29
|
+
var $ = {};
|
|
38
30
|
/**
|
|
39
31
|
* @license React
|
|
40
32
|
* react-jsx-runtime.development.js
|
|
41
33
|
*
|
|
42
|
-
* Copyright (c)
|
|
34
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
35
|
*
|
|
44
36
|
* This source code is licensed under the MIT license found in the
|
|
45
37
|
* LICENSE file in the root directory of this source tree.
|
|
46
38
|
*/
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
if (typeof e
|
|
53
|
-
return
|
|
54
|
-
|
|
39
|
+
var Se;
|
|
40
|
+
function yr() {
|
|
41
|
+
return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
42
|
+
var v = xe, _ = Symbol.for("react.element"), m = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), y = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Z = Symbol.iterator, ke = "@@iterator";
|
|
43
|
+
function De(e) {
|
|
44
|
+
if (e === null || typeof e != "object")
|
|
45
|
+
return null;
|
|
46
|
+
var r = Z && e[Z] || e[ke];
|
|
47
|
+
return typeof r == "function" ? r : null;
|
|
48
|
+
}
|
|
49
|
+
var j = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
|
+
function p(e) {
|
|
51
|
+
{
|
|
52
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
53
|
+
t[n - 1] = arguments[n];
|
|
54
|
+
Fe("error", e, t);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function Fe(e, r, t) {
|
|
58
|
+
{
|
|
59
|
+
var n = j.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
60
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
61
|
+
var u = t.map(function(o) {
|
|
62
|
+
return String(o);
|
|
63
|
+
});
|
|
64
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var Ae = !1, Ie = !1, $e = !1, We = !1, Ye = !1, Q;
|
|
68
|
+
Q = Symbol.for("react.module.reference");
|
|
69
|
+
function Ne(e) {
|
|
70
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === s || Ye || e === S || e === C || e === g || We || e === W || Ae || Ie || $e || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === T || e.$$typeof === c || e.$$typeof === y || e.$$typeof === d || // This needs to include all possible module reference object
|
|
71
|
+
// types supported by any Flight configuration anywhere since
|
|
72
|
+
// we don't know which Flight build this will end up being used
|
|
73
|
+
// with.
|
|
74
|
+
e.$$typeof === Q || e.getModuleId !== void 0));
|
|
75
|
+
}
|
|
76
|
+
function Ve(e, r, t) {
|
|
77
|
+
var n = e.displayName;
|
|
78
|
+
if (n)
|
|
79
|
+
return n;
|
|
80
|
+
var i = r.displayName || r.name || "";
|
|
81
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
82
|
+
}
|
|
83
|
+
function ee(e) {
|
|
84
|
+
return e.displayName || "Context";
|
|
85
|
+
}
|
|
86
|
+
function O(e) {
|
|
87
|
+
if (e == null)
|
|
88
|
+
return null;
|
|
89
|
+
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")
|
|
90
|
+
return e.displayName || e.name || null;
|
|
91
|
+
if (typeof e == "string")
|
|
92
|
+
return e;
|
|
55
93
|
switch (e) {
|
|
56
|
-
case
|
|
94
|
+
case R:
|
|
57
95
|
return "Fragment";
|
|
58
|
-
case
|
|
96
|
+
case m:
|
|
97
|
+
return "Portal";
|
|
98
|
+
case s:
|
|
59
99
|
return "Profiler";
|
|
60
|
-
case
|
|
100
|
+
case S:
|
|
61
101
|
return "StrictMode";
|
|
62
|
-
case
|
|
102
|
+
case C:
|
|
63
103
|
return "Suspense";
|
|
64
|
-
case
|
|
104
|
+
case g:
|
|
65
105
|
return "SuspenseList";
|
|
66
|
-
case ee:
|
|
67
|
-
return "Activity";
|
|
68
106
|
}
|
|
69
107
|
if (typeof e == "object")
|
|
70
|
-
switch (typeof
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
case
|
|
78
|
-
return (e.
|
|
79
|
-
case
|
|
80
|
-
var
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
84
|
-
case h:
|
|
85
|
-
r = e._payload, e = e._init;
|
|
108
|
+
switch (e.$$typeof) {
|
|
109
|
+
case y:
|
|
110
|
+
var r = e;
|
|
111
|
+
return ee(r) + ".Consumer";
|
|
112
|
+
case c:
|
|
113
|
+
var t = e;
|
|
114
|
+
return ee(t._context) + ".Provider";
|
|
115
|
+
case d:
|
|
116
|
+
return Ve(e, e.render, "ForwardRef");
|
|
117
|
+
case T:
|
|
118
|
+
var n = e.displayName || null;
|
|
119
|
+
return n !== null ? n : O(e.type) || "Memo";
|
|
120
|
+
case w: {
|
|
121
|
+
var i = e, u = i._payload, o = i._init;
|
|
86
122
|
try {
|
|
87
|
-
return o(
|
|
123
|
+
return O(o(u));
|
|
88
124
|
} catch {
|
|
125
|
+
return null;
|
|
89
126
|
}
|
|
127
|
+
}
|
|
90
128
|
}
|
|
91
129
|
return null;
|
|
92
130
|
}
|
|
93
|
-
|
|
94
|
-
|
|
131
|
+
var P = Object.assign, F = 0, re, te, ne, ae, oe, ie, ue;
|
|
132
|
+
function se() {
|
|
95
133
|
}
|
|
96
|
-
|
|
134
|
+
se.__reactDisabledLog = !0;
|
|
135
|
+
function Le() {
|
|
136
|
+
{
|
|
137
|
+
if (F === 0) {
|
|
138
|
+
re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
|
|
139
|
+
var e = {
|
|
140
|
+
configurable: !0,
|
|
141
|
+
enumerable: !0,
|
|
142
|
+
value: se,
|
|
143
|
+
writable: !0
|
|
144
|
+
};
|
|
145
|
+
Object.defineProperties(console, {
|
|
146
|
+
info: e,
|
|
147
|
+
log: e,
|
|
148
|
+
warn: e,
|
|
149
|
+
error: e,
|
|
150
|
+
group: e,
|
|
151
|
+
groupCollapsed: e,
|
|
152
|
+
groupEnd: e
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
F++;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function Me() {
|
|
159
|
+
{
|
|
160
|
+
if (F--, F === 0) {
|
|
161
|
+
var e = {
|
|
162
|
+
configurable: !0,
|
|
163
|
+
enumerable: !0,
|
|
164
|
+
writable: !0
|
|
165
|
+
};
|
|
166
|
+
Object.defineProperties(console, {
|
|
167
|
+
log: P({}, e, {
|
|
168
|
+
value: re
|
|
169
|
+
}),
|
|
170
|
+
info: P({}, e, {
|
|
171
|
+
value: te
|
|
172
|
+
}),
|
|
173
|
+
warn: P({}, e, {
|
|
174
|
+
value: ne
|
|
175
|
+
}),
|
|
176
|
+
error: P({}, e, {
|
|
177
|
+
value: ae
|
|
178
|
+
}),
|
|
179
|
+
group: P({}, e, {
|
|
180
|
+
value: oe
|
|
181
|
+
}),
|
|
182
|
+
groupCollapsed: P({}, e, {
|
|
183
|
+
value: ie
|
|
184
|
+
}),
|
|
185
|
+
groupEnd: P({}, e, {
|
|
186
|
+
value: ue
|
|
187
|
+
})
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
F < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
var U = j.ReactCurrentDispatcher, q;
|
|
194
|
+
function Y(e, r, t) {
|
|
195
|
+
{
|
|
196
|
+
if (q === void 0)
|
|
197
|
+
try {
|
|
198
|
+
throw Error();
|
|
199
|
+
} catch (i) {
|
|
200
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
201
|
+
q = n && n[1] || "";
|
|
202
|
+
}
|
|
203
|
+
return `
|
|
204
|
+
` + q + e;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
var B = !1, N;
|
|
208
|
+
{
|
|
209
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
|
+
N = new Ue();
|
|
211
|
+
}
|
|
212
|
+
function le(e, r) {
|
|
213
|
+
if (!e || B)
|
|
214
|
+
return "";
|
|
215
|
+
{
|
|
216
|
+
var t = N.get(e);
|
|
217
|
+
if (t !== void 0)
|
|
218
|
+
return t;
|
|
219
|
+
}
|
|
220
|
+
var n;
|
|
221
|
+
B = !0;
|
|
222
|
+
var i = Error.prepareStackTrace;
|
|
223
|
+
Error.prepareStackTrace = void 0;
|
|
224
|
+
var u;
|
|
225
|
+
u = U.current, U.current = null, Le();
|
|
97
226
|
try {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
227
|
+
if (r) {
|
|
228
|
+
var o = function() {
|
|
229
|
+
throw Error();
|
|
230
|
+
};
|
|
231
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
232
|
+
set: function() {
|
|
233
|
+
throw Error();
|
|
234
|
+
}
|
|
235
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
236
|
+
try {
|
|
237
|
+
Reflect.construct(o, []);
|
|
238
|
+
} catch (h) {
|
|
239
|
+
n = h;
|
|
240
|
+
}
|
|
241
|
+
Reflect.construct(e, [], o);
|
|
242
|
+
} else {
|
|
243
|
+
try {
|
|
244
|
+
o.call();
|
|
245
|
+
} catch (h) {
|
|
246
|
+
n = h;
|
|
247
|
+
}
|
|
248
|
+
e.call(o.prototype);
|
|
249
|
+
}
|
|
250
|
+
} else {
|
|
251
|
+
try {
|
|
252
|
+
throw Error();
|
|
253
|
+
} catch (h) {
|
|
254
|
+
n = h;
|
|
255
|
+
}
|
|
256
|
+
e();
|
|
257
|
+
}
|
|
258
|
+
} catch (h) {
|
|
259
|
+
if (h && n && typeof h.stack == "string") {
|
|
260
|
+
for (var a = h.stack.split(`
|
|
261
|
+
`), b = n.stack.split(`
|
|
262
|
+
`), l = a.length - 1, f = b.length - 1; l >= 1 && f >= 0 && a[l] !== b[f]; )
|
|
263
|
+
f--;
|
|
264
|
+
for (; l >= 1 && f >= 0; l--, f--)
|
|
265
|
+
if (a[l] !== b[f]) {
|
|
266
|
+
if (l !== 1 || f !== 1)
|
|
267
|
+
do
|
|
268
|
+
if (l--, f--, f < 0 || a[l] !== b[f]) {
|
|
269
|
+
var E = `
|
|
270
|
+
` + a[l].replace(" at new ", " at ");
|
|
271
|
+
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, E), E;
|
|
272
|
+
}
|
|
273
|
+
while (l >= 1 && f >= 0);
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
} finally {
|
|
278
|
+
B = !1, U.current = u, Me(), Error.prepareStackTrace = i;
|
|
102
279
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
280
|
+
var D = e ? e.displayName || e.name : "", x = D ? Y(D) : "";
|
|
281
|
+
return typeof e == "function" && N.set(e, x), x;
|
|
282
|
+
}
|
|
283
|
+
function qe(e, r, t) {
|
|
284
|
+
return le(e, !1);
|
|
285
|
+
}
|
|
286
|
+
function Be(e) {
|
|
287
|
+
var r = e.prototype;
|
|
288
|
+
return !!(r && r.isReactComponent);
|
|
289
|
+
}
|
|
290
|
+
function V(e, r, t) {
|
|
291
|
+
if (e == null)
|
|
292
|
+
return "";
|
|
293
|
+
if (typeof e == "function")
|
|
294
|
+
return le(e, Be(e));
|
|
295
|
+
if (typeof e == "string")
|
|
296
|
+
return Y(e);
|
|
297
|
+
switch (e) {
|
|
298
|
+
case C:
|
|
299
|
+
return Y("Suspense");
|
|
300
|
+
case g:
|
|
301
|
+
return Y("SuspenseList");
|
|
111
302
|
}
|
|
303
|
+
if (typeof e == "object")
|
|
304
|
+
switch (e.$$typeof) {
|
|
305
|
+
case d:
|
|
306
|
+
return qe(e.render);
|
|
307
|
+
case T:
|
|
308
|
+
return V(e.type, r, t);
|
|
309
|
+
case w: {
|
|
310
|
+
var n = e, i = n._payload, u = n._init;
|
|
311
|
+
try {
|
|
312
|
+
return V(u(i), r, t);
|
|
313
|
+
} catch {
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return "";
|
|
318
|
+
}
|
|
319
|
+
var A = Object.prototype.hasOwnProperty, fe = {}, ce = j.ReactDebugCurrentFrame;
|
|
320
|
+
function L(e) {
|
|
321
|
+
if (e) {
|
|
322
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
323
|
+
ce.setExtraStackFrame(t);
|
|
324
|
+
} else
|
|
325
|
+
ce.setExtraStackFrame(null);
|
|
326
|
+
}
|
|
327
|
+
function Je(e, r, t, n, i) {
|
|
328
|
+
{
|
|
329
|
+
var u = Function.call.bind(A);
|
|
330
|
+
for (var o in e)
|
|
331
|
+
if (u(e, o)) {
|
|
332
|
+
var a = void 0;
|
|
333
|
+
try {
|
|
334
|
+
if (typeof e[o] != "function") {
|
|
335
|
+
var b = 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`.");
|
|
336
|
+
throw b.name = "Invariant Violation", b;
|
|
337
|
+
}
|
|
338
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
339
|
+
} catch (l) {
|
|
340
|
+
a = l;
|
|
341
|
+
}
|
|
342
|
+
a && !(a instanceof Error) && (L(i), 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, o, typeof a), L(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, L(i), p("Failed %s type: %s", t, a.message), L(null));
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
var Ke = Array.isArray;
|
|
347
|
+
function J(e) {
|
|
348
|
+
return Ke(e);
|
|
112
349
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return
|
|
350
|
+
function Ge(e) {
|
|
351
|
+
{
|
|
352
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
353
|
+
return t;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
function ze(e) {
|
|
117
357
|
try {
|
|
118
|
-
|
|
119
|
-
return r ? "<" + r + ">" : "<...>";
|
|
358
|
+
return ve(e), !1;
|
|
120
359
|
} catch {
|
|
121
|
-
return
|
|
360
|
+
return !0;
|
|
122
361
|
}
|
|
123
362
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
|
|
363
|
+
function ve(e) {
|
|
364
|
+
return "" + e;
|
|
365
|
+
}
|
|
366
|
+
function de(e) {
|
|
367
|
+
if (ze(e))
|
|
368
|
+
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), ve(e);
|
|
127
369
|
}
|
|
128
|
-
|
|
129
|
-
|
|
370
|
+
var pe = j.ReactCurrentOwner, Xe = {
|
|
371
|
+
key: !0,
|
|
372
|
+
ref: !0,
|
|
373
|
+
__self: !0,
|
|
374
|
+
__source: !0
|
|
375
|
+
}, be, ye;
|
|
376
|
+
function He(e) {
|
|
377
|
+
if (A.call(e, "ref")) {
|
|
378
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
379
|
+
if (r && r.isReactWarning)
|
|
380
|
+
return !1;
|
|
381
|
+
}
|
|
382
|
+
return e.ref !== void 0;
|
|
130
383
|
}
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
384
|
+
function Ze(e) {
|
|
385
|
+
if (A.call(e, "key")) {
|
|
133
386
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
134
|
-
if (r && r.isReactWarning)
|
|
387
|
+
if (r && r.isReactWarning)
|
|
388
|
+
return !1;
|
|
135
389
|
}
|
|
136
390
|
return e.key !== void 0;
|
|
137
391
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
)
|
|
392
|
+
function Qe(e, r) {
|
|
393
|
+
typeof e.ref == "string" && pe.current;
|
|
394
|
+
}
|
|
395
|
+
function er(e, r) {
|
|
396
|
+
{
|
|
397
|
+
var t = function() {
|
|
398
|
+
be || (be = !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));
|
|
399
|
+
};
|
|
400
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
401
|
+
get: t,
|
|
402
|
+
configurable: !0
|
|
403
|
+
});
|
|
144
404
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
405
|
+
}
|
|
406
|
+
function rr(e, r) {
|
|
407
|
+
{
|
|
408
|
+
var t = function() {
|
|
409
|
+
ye || (ye = !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));
|
|
410
|
+
};
|
|
411
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
412
|
+
get: t,
|
|
413
|
+
configurable: !0
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
var tr = function(e, r, t, n, i, u, o) {
|
|
418
|
+
var a = {
|
|
419
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
420
|
+
$$typeof: _,
|
|
421
|
+
// Built-in properties that belong on the element
|
|
159
422
|
type: e,
|
|
160
423
|
key: r,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
424
|
+
ref: t,
|
|
425
|
+
props: o,
|
|
426
|
+
// Record the component responsible for creating this element.
|
|
427
|
+
_owner: u
|
|
428
|
+
};
|
|
429
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
167
430
|
configurable: !1,
|
|
168
431
|
enumerable: !1,
|
|
169
432
|
writable: !0,
|
|
170
|
-
value:
|
|
171
|
-
}), Object.defineProperty(
|
|
433
|
+
value: !1
|
|
434
|
+
}), Object.defineProperty(a, "_self", {
|
|
172
435
|
configurable: !1,
|
|
173
436
|
enumerable: !1,
|
|
174
|
-
writable: !
|
|
175
|
-
value:
|
|
176
|
-
}), Object.defineProperty(
|
|
177
|
-
configurable: !1,
|
|
178
|
-
enumerable: !1,
|
|
179
|
-
writable: !0,
|
|
180
|
-
value: x
|
|
181
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
437
|
+
writable: !1,
|
|
438
|
+
value: n
|
|
439
|
+
}), Object.defineProperty(a, "_source", {
|
|
182
440
|
configurable: !1,
|
|
183
441
|
enumerable: !1,
|
|
184
|
-
writable: !
|
|
185
|
-
value:
|
|
186
|
-
}), Object.freeze && (Object.freeze(
|
|
187
|
-
}
|
|
188
|
-
function
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
442
|
+
writable: !1,
|
|
443
|
+
value: i
|
|
444
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
445
|
+
};
|
|
446
|
+
function nr(e, r, t, n, i) {
|
|
447
|
+
{
|
|
448
|
+
var u, o = {}, a = null, b = null;
|
|
449
|
+
t !== void 0 && (de(t), a = "" + t), Ze(r) && (de(r.key), a = "" + r.key), He(r) && (b = r.ref, Qe(r, i));
|
|
450
|
+
for (u in r)
|
|
451
|
+
A.call(r, u) && !Xe.hasOwnProperty(u) && (o[u] = r[u]);
|
|
452
|
+
if (e && e.defaultProps) {
|
|
453
|
+
var l = e.defaultProps;
|
|
454
|
+
for (u in l)
|
|
455
|
+
o[u] === void 0 && (o[u] = l[u]);
|
|
456
|
+
}
|
|
457
|
+
if (a || b) {
|
|
458
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
459
|
+
a && er(o, f), b && rr(o, f);
|
|
460
|
+
}
|
|
461
|
+
return tr(e, a, b, i, n, pe.current, o);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
var K = j.ReactCurrentOwner, he = j.ReactDebugCurrentFrame;
|
|
465
|
+
function k(e) {
|
|
466
|
+
if (e) {
|
|
467
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
468
|
+
he.setExtraStackFrame(t);
|
|
469
|
+
} else
|
|
470
|
+
he.setExtraStackFrame(null);
|
|
471
|
+
}
|
|
472
|
+
var G;
|
|
473
|
+
G = !1;
|
|
474
|
+
function z(e) {
|
|
475
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
476
|
+
}
|
|
477
|
+
function me() {
|
|
478
|
+
{
|
|
479
|
+
if (K.current) {
|
|
480
|
+
var e = O(K.current.type);
|
|
481
|
+
if (e)
|
|
482
|
+
return `
|
|
483
|
+
|
|
484
|
+
Check the render method of \`` + e + "`.";
|
|
485
|
+
}
|
|
486
|
+
return "";
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function ar(e) {
|
|
490
|
+
return "";
|
|
491
|
+
}
|
|
492
|
+
var ge = {};
|
|
493
|
+
function or(e) {
|
|
494
|
+
{
|
|
495
|
+
var r = me();
|
|
496
|
+
if (!r) {
|
|
497
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
498
|
+
t && (r = `
|
|
499
|
+
|
|
500
|
+
Check the top-level render call using <` + t + ">.");
|
|
501
|
+
}
|
|
502
|
+
return r;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function Ee(e, r) {
|
|
506
|
+
{
|
|
507
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
508
|
+
return;
|
|
509
|
+
e._store.validated = !0;
|
|
510
|
+
var t = or(r);
|
|
511
|
+
if (ge[t])
|
|
512
|
+
return;
|
|
513
|
+
ge[t] = !0;
|
|
514
|
+
var n = "";
|
|
515
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(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), k(null);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
function _e(e, r) {
|
|
519
|
+
{
|
|
520
|
+
if (typeof e != "object")
|
|
521
|
+
return;
|
|
522
|
+
if (J(e))
|
|
523
|
+
for (var t = 0; t < e.length; t++) {
|
|
524
|
+
var n = e[t];
|
|
525
|
+
z(n) && Ee(n, r);
|
|
526
|
+
}
|
|
527
|
+
else if (z(e))
|
|
528
|
+
e._store && (e._store.validated = !0);
|
|
529
|
+
else if (e) {
|
|
530
|
+
var i = De(e);
|
|
531
|
+
if (typeof i == "function" && i !== e.entries)
|
|
532
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
533
|
+
z(o.value) && Ee(o.value, r);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
function ir(e) {
|
|
538
|
+
{
|
|
539
|
+
var r = e.type;
|
|
540
|
+
if (r == null || typeof r == "string")
|
|
541
|
+
return;
|
|
542
|
+
var t;
|
|
543
|
+
if (typeof r == "function")
|
|
544
|
+
t = r.propTypes;
|
|
545
|
+
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
|
|
546
|
+
// Inner props are checked in the reconciler.
|
|
547
|
+
r.$$typeof === T))
|
|
548
|
+
t = r.propTypes;
|
|
549
|
+
else
|
|
550
|
+
return;
|
|
551
|
+
if (t) {
|
|
552
|
+
var n = O(r);
|
|
553
|
+
Je(t, e.props, "prop", n, e);
|
|
554
|
+
} else if (r.PropTypes !== void 0 && !G) {
|
|
555
|
+
G = !0;
|
|
556
|
+
var i = O(r);
|
|
557
|
+
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
558
|
+
}
|
|
559
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
function ur(e) {
|
|
563
|
+
{
|
|
564
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
565
|
+
var n = r[t];
|
|
566
|
+
if (n !== "children" && n !== "key") {
|
|
567
|
+
k(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
e.ref !== null && (k(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
var Re = {};
|
|
575
|
+
function Te(e, r, t, n, i, u) {
|
|
576
|
+
{
|
|
577
|
+
var o = Ne(e);
|
|
578
|
+
if (!o) {
|
|
579
|
+
var a = "";
|
|
580
|
+
(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.");
|
|
581
|
+
var b = ar();
|
|
582
|
+
b ? a += b : a += me();
|
|
583
|
+
var l;
|
|
584
|
+
e === null ? l = "null" : J(e) ? l = "array" : e !== void 0 && e.$$typeof === _ ? (l = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = 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", l, a);
|
|
585
|
+
}
|
|
586
|
+
var f = nr(e, r, t, i, u);
|
|
587
|
+
if (f == null)
|
|
588
|
+
return f;
|
|
589
|
+
if (o) {
|
|
590
|
+
var E = r.children;
|
|
591
|
+
if (E !== void 0)
|
|
592
|
+
if (n)
|
|
593
|
+
if (J(E)) {
|
|
594
|
+
for (var D = 0; D < E.length; D++)
|
|
595
|
+
_e(E[D], e);
|
|
596
|
+
Object.freeze && Object.freeze(E);
|
|
597
|
+
} else
|
|
598
|
+
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.");
|
|
599
|
+
else
|
|
600
|
+
_e(E, e);
|
|
601
|
+
}
|
|
602
|
+
if (A.call(r, "key")) {
|
|
603
|
+
var x = O(e), h = Object.keys(r).filter(function(dr) {
|
|
604
|
+
return dr !== "key";
|
|
605
|
+
}), X = h.length > 0 ? "{key: someKey, " + h.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
606
|
+
if (!Re[x + X]) {
|
|
607
|
+
var vr = h.length > 0 ? "{" + h.join(": ..., ") + ": ...}" : "{}";
|
|
608
|
+
p(`A props object containing a "key" prop is being spread into JSX:
|
|
208
609
|
let props = %s;
|
|
209
610
|
<%s {...props} />
|
|
210
611
|
React keys must be passed directly to JSX without using spread:
|
|
211
612
|
let props = %s;
|
|
212
|
-
<%s key={someKey} {...props} />`,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
u
|
|
217
|
-
), I[u + s] = !0);
|
|
218
|
-
}
|
|
219
|
-
if (u = null, n !== void 0 && (c(n), u = "" + n), a(r) && (c(r.key), u = "" + r.key), "key" in r) {
|
|
220
|
-
n = {};
|
|
221
|
-
for (var j in r)
|
|
222
|
-
j !== "key" && (n[j] = r[j]);
|
|
223
|
-
} else n = r;
|
|
224
|
-
return u && i(
|
|
225
|
-
n,
|
|
226
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
227
|
-
), J(
|
|
228
|
-
e,
|
|
229
|
-
u,
|
|
230
|
-
m,
|
|
231
|
-
p,
|
|
232
|
-
l(),
|
|
233
|
-
n,
|
|
234
|
-
x,
|
|
235
|
-
S
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
function w(e) {
|
|
239
|
-
typeof e == "object" && e !== null && e.$$typeof === P && e._store && (e._store.validated = 1);
|
|
240
|
-
}
|
|
241
|
-
var _ = oe, P = Symbol.for("react.transitional.element"), V = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), G = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), B = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), Q = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), re = Symbol.for("react.client.reference"), O = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, te = Array.isArray, k = console.createTask ? console.createTask : function() {
|
|
242
|
-
return null;
|
|
243
|
-
};
|
|
244
|
-
_ = {
|
|
245
|
-
react_stack_bottom_frame: function(e) {
|
|
246
|
-
return e();
|
|
613
|
+
<%s key={someKey} {...props} />`, X, x, vr, x), Re[x + X] = !0;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
return e === R ? ur(f) : ir(f), f;
|
|
247
617
|
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
n,
|
|
259
|
-
!1,
|
|
260
|
-
s,
|
|
261
|
-
p,
|
|
262
|
-
m ? Error("react-stack-top-frame") : Y,
|
|
263
|
-
m ? k(d(e)) : F
|
|
264
|
-
);
|
|
265
|
-
}, v.jsxs = function(e, r, n, s, p) {
|
|
266
|
-
var m = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
267
|
-
return A(
|
|
268
|
-
e,
|
|
269
|
-
r,
|
|
270
|
-
n,
|
|
271
|
-
!0,
|
|
272
|
-
s,
|
|
273
|
-
p,
|
|
274
|
-
m ? Error("react-stack-top-frame") : Y,
|
|
275
|
-
m ? k(d(e)) : F
|
|
276
|
-
);
|
|
277
|
-
};
|
|
278
|
-
})()), v;
|
|
618
|
+
}
|
|
619
|
+
function sr(e, r, t) {
|
|
620
|
+
return Te(e, r, t, !0);
|
|
621
|
+
}
|
|
622
|
+
function lr(e, r, t) {
|
|
623
|
+
return Te(e, r, t, !1);
|
|
624
|
+
}
|
|
625
|
+
var fr = lr, cr = sr;
|
|
626
|
+
$.Fragment = R, $.jsx = fr, $.jsxs = cr;
|
|
627
|
+
})()), $;
|
|
279
628
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
629
|
+
var we;
|
|
630
|
+
function hr() {
|
|
631
|
+
return we || (we = 1, process.env.NODE_ENV === "production" ? M.exports = br() : M.exports = yr()), M.exports;
|
|
283
632
|
}
|
|
284
|
-
var
|
|
633
|
+
var Ce = hr(), H = { exports: {} };
|
|
285
634
|
/*!
|
|
286
635
|
Copyright (c) 2018 Jed Watson.
|
|
287
636
|
Licensed under the MIT License (MIT), see
|
|
288
637
|
http://jedwatson.github.io/classnames
|
|
289
638
|
*/
|
|
290
|
-
var
|
|
291
|
-
function
|
|
292
|
-
return
|
|
639
|
+
var Pe;
|
|
640
|
+
function mr() {
|
|
641
|
+
return Pe || (Pe = 1, (function(v) {
|
|
293
642
|
(function() {
|
|
294
|
-
var
|
|
295
|
-
function
|
|
296
|
-
for (var
|
|
297
|
-
var
|
|
298
|
-
|
|
643
|
+
var _ = {}.hasOwnProperty;
|
|
644
|
+
function m() {
|
|
645
|
+
for (var s = "", c = 0; c < arguments.length; c++) {
|
|
646
|
+
var y = arguments[c];
|
|
647
|
+
y && (s = S(s, R(y)));
|
|
299
648
|
}
|
|
300
|
-
return
|
|
649
|
+
return s;
|
|
301
650
|
}
|
|
302
|
-
function
|
|
303
|
-
if (typeof
|
|
304
|
-
return
|
|
305
|
-
if (typeof
|
|
651
|
+
function R(s) {
|
|
652
|
+
if (typeof s == "string" || typeof s == "number")
|
|
653
|
+
return s;
|
|
654
|
+
if (typeof s != "object")
|
|
306
655
|
return "";
|
|
307
|
-
if (Array.isArray(
|
|
308
|
-
return
|
|
309
|
-
if (
|
|
310
|
-
return
|
|
311
|
-
var
|
|
312
|
-
for (var
|
|
313
|
-
|
|
314
|
-
return
|
|
656
|
+
if (Array.isArray(s))
|
|
657
|
+
return m.apply(null, s);
|
|
658
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
659
|
+
return s.toString();
|
|
660
|
+
var c = "";
|
|
661
|
+
for (var y in s)
|
|
662
|
+
_.call(s, y) && s[y] && (c = S(c, y));
|
|
663
|
+
return c;
|
|
315
664
|
}
|
|
316
|
-
function
|
|
317
|
-
return
|
|
665
|
+
function S(s, c) {
|
|
666
|
+
return c ? s ? s + " " + c : s + c : s;
|
|
318
667
|
}
|
|
319
|
-
|
|
668
|
+
v.exports ? (m.default = m, v.exports = m) : window.classNames = m;
|
|
320
669
|
})();
|
|
321
|
-
})(
|
|
670
|
+
})(H)), H.exports;
|
|
322
671
|
}
|
|
323
|
-
var
|
|
324
|
-
const
|
|
325
|
-
children:
|
|
326
|
-
className:
|
|
327
|
-
disabled:
|
|
328
|
-
...
|
|
329
|
-
}) => /* @__PURE__ */
|
|
672
|
+
var gr = mr();
|
|
673
|
+
const je = /* @__PURE__ */ pr(gr), Er = ({
|
|
674
|
+
children: v,
|
|
675
|
+
className: _,
|
|
676
|
+
disabled: m,
|
|
677
|
+
...R
|
|
678
|
+
}) => /* @__PURE__ */ Ce.jsx(
|
|
330
679
|
"button",
|
|
331
680
|
{
|
|
332
|
-
className:
|
|
681
|
+
className: je(
|
|
333
682
|
"inline-flex justify-center rounded-md px-3 py-2 text-sm font-semibold shadow-sm focus-visible:outline-2 focus-visible:outline-offset-2 border-2 cursor-pointer",
|
|
334
|
-
|
|
335
|
-
|
|
683
|
+
_,
|
|
684
|
+
m ? "pointer-events-none opacity-50" : ""
|
|
336
685
|
),
|
|
337
|
-
...
|
|
338
|
-
children:
|
|
686
|
+
...R,
|
|
687
|
+
children: v
|
|
339
688
|
}
|
|
340
|
-
),
|
|
341
|
-
children:
|
|
342
|
-
className:
|
|
343
|
-
...
|
|
344
|
-
}) => /* @__PURE__ */
|
|
345
|
-
|
|
689
|
+
), Rr = ({
|
|
690
|
+
children: v,
|
|
691
|
+
className: _,
|
|
692
|
+
...m
|
|
693
|
+
}) => /* @__PURE__ */ Ce.jsx(
|
|
694
|
+
Er,
|
|
346
695
|
{
|
|
347
|
-
className:
|
|
696
|
+
className: je(
|
|
348
697
|
"bg-tealca-500 border-tealca-500 hover:bg-tealca-400 text-white focus-visible:outline-tealca-400",
|
|
349
|
-
|
|
698
|
+
_
|
|
350
699
|
),
|
|
351
|
-
...
|
|
352
|
-
children:
|
|
700
|
+
...m,
|
|
701
|
+
children: v
|
|
353
702
|
}
|
|
354
703
|
);
|
|
355
704
|
export {
|
|
356
|
-
|
|
705
|
+
Rr as PrimaryButton
|
|
357
706
|
};
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(S,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],C):(S=typeof globalThis<"u"?globalThis:S||self,C(S["tealca-core-components"]={},S.React))})(this,(function(S,C){"use strict";function De(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var M={exports:{}},I={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
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 ee;function Fe(){if(ee)return I;ee=1;var d=C,R=Symbol.for("react.element"),m=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,P=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(b,v,k){var g,T={},w=null,N=null;k!==void 0&&(w=""+k),v.key!==void 0&&(w=""+v.key),v.ref!==void 0&&(N=v.ref);for(g in v)_.call(v,g)&&!s.hasOwnProperty(g)&&(T[g]=v[g]);if(b&&b.defaultProps)for(g in v=b.defaultProps,v)T[g]===void 0&&(T[g]=v[g]);return{$$typeof:R,type:b,key:w,ref:N,props:T,_owner:P.current}}return I.Fragment=m,I.jsx=c,I.jsxs=c,I}var W={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
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
|
|
17
|
+
*/var re;function Ae(){return re||(re=1,process.env.NODE_ENV!=="production"&&(function(){var d=C,R=Symbol.for("react.element"),m=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),ie=Symbol.iterator,Ne="@@iterator";function Ve(e){if(e===null||typeof e!="object")return null;var r=ie&&e[ie]||e[Ne];return typeof r=="function"?r:null}var D=d.__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=D.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 Ue=!1,Be=!1,qe=!1,Je=!1,Ke=!1,ue;ue=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===s||Ke||e===P||e===k||e===g||Je||e===N||Ue||Be||qe||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===T||e.$$typeof===c||e.$$typeof===b||e.$$typeof===v||e.$$typeof===ue||e.getModuleId!==void 0))}function ze(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function se(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 _:return"Fragment";case m:return"Portal";case s:return"Profiler";case P:return"StrictMode";case k:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return se(r)+".Consumer";case c:var t=e;return se(t._context)+".Provider";case v:return ze(e,e.render,"ForwardRef");case T:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case w:{var i=e,u=i._payload,o=i._init;try{return O(o(u))}catch{return null}}}return null}var x=Object.assign,Y=0,fe,le,ce,de,ve,pe,ye;function be(){}be.__reactDisabledLog=!0;function Xe(){{if(Y===0){fe=console.log,le=console.info,ce=console.warn,de=console.error,ve=console.group,pe=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function He(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},e,{value:fe}),info:x({},e,{value:le}),warn:x({},e,{value:ce}),error:x({},e,{value:de}),group:x({},e,{value:ve}),groupCollapsed:x({},e,{value:pe}),groupEnd:x({},e,{value:ye})})}Y<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=D.ReactCurrentDispatcher,K;function V(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,L;{var Ze=typeof WeakMap=="function"?WeakMap:Map;L=new Ze}function he(e,r){if(!e||G)return"";{var t=L.get(e);if(t!==void 0)return t}var n;G=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Xe();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(h){n=h}Reflect.construct(e,[],o)}else{try{o.call()}catch(h){n=h}e.call(o.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var a=h.stack.split(`
|
|
19
|
+
`),y=n.stack.split(`
|
|
20
|
+
`),f=a.length-1,l=y.length-1;f>=1&&l>=0&&a[f]!==y[l];)l--;for(;f>=1&&l>=0;f--,l--)if(a[f]!==y[l]){if(f!==1||l!==1)do if(f--,l--,l<0||a[f]!==y[l]){var E=`
|
|
21
|
+
`+a[f].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,E),E}while(f>=1&&l>=0);break}}}finally{G=!1,J.current=u,He(),Error.prepareStackTrace=i}var A=e?e.displayName||e.name:"",j=A?V(A):"";return typeof e=="function"&&L.set(e,j),j}function Qe(e,r,t){return he(e,!1)}function er(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,er(e));if(typeof e=="string")return V(e);switch(e){case k:return V("Suspense");case g:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Qe(e.render);case T:return U(e.type,r,t);case w:{var n=e,i=n._payload,u=n._init;try{return U(u(i),r,t)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,me={},ge=D.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function rr(e,r,t,n,i){{var u=Function.call.bind($);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var y=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 y.name="Invariant Violation",y}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(B(i),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,o,typeof a),B(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,B(i),p("Failed %s type: %s",t,a.message),B(null))}}}var tr=Array.isArray;function z(e){return tr(e)}function nr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ar(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function Re(e){if(ar(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nr(e)),Ee(e)}var _e=D.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Te,Oe;function ir(e){if($.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ur(e){if($.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){typeof e.ref=="string"&&_e.current}function fr(e,r){{var t=function(){Te||(Te=!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(){Oe||(Oe=!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,i,u,o){var a={$$typeof:R,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 dr(e,r,t,n,i){{var u,o={},a=null,y=null;t!==void 0&&(Re(t),a=""+t),ur(r)&&(Re(r.key),a=""+r.key),ir(r)&&(y=r.ref,sr(r,i));for(u in r)$.call(r,u)&&!or.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)o[u]===void 0&&(o[u]=f[u])}if(a||y){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&fr(o,l),y&&lr(o,l)}return cr(e,a,y,i,n,_e.current,o)}}var X=D.ReactCurrentOwner,Se=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var H;H=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}function Pe(){{if(X.current){var e=O(X.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function vr(e){return""}var we={};function pr(e){{var r=Pe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function xe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=pr(r);if(we[t])return;we[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),F(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),F(null)}}function je(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&xe(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var i=Ve(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Z(o.value)&&xe(o.value,r)}}}function yr(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===T))t=r.propTypes;else return;if(t){var n=O(r);rr(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var i=O(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"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"){F(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),F(null);break}}e.ref!==null&&(F(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var Ce={};function ke(e,r,t,n,i,u){{var o=Ge(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 y=vr();y?a+=y:a+=Pe();var f;e===null?f="null":z(e)?f="array":e!==void 0&&e.$$typeof===R?(f="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=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",f,a)}var l=dr(e,r,t,i,u);if(l==null)return l;if(o){var E=r.children;if(E!==void 0)if(n)if(z(E)){for(var A=0;A<E.length;A++)je(E[A],e);Object.freeze&&Object.freeze(E)}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 je(E,e)}if($.call(r,"key")){var j=O(e),h=Object.keys(r).filter(function(_r){return _r!=="key"}),Q=h.length>0?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[j+Q]){var Rr=h.length>0?"{"+h.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
|
|
18
26
|
let props = %s;
|
|
19
27
|
<%s {...props} />
|
|
20
28
|
React keys must be passed directly to JSX without using spread:
|
|
21
29
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Q,j,Rr,j),Ce[j+Q]=!0}}return e===_?br(l):yr(l),l}}function hr(e,r,t){return ke(e,r,t,!0)}function mr(e,r,t){return ke(e,r,t,!1)}var gr=mr,Er=hr;W.Fragment=_,W.jsx=gr,W.jsxs=Er})()),W}var te;function Ie(){return te||(te=1,process.env.NODE_ENV==="production"?M.exports=Fe():M.exports=Ae()),M.exports}var ne=Ie(),q={exports:{}};/*!
|
|
23
31
|
Copyright (c) 2018 Jed Watson.
|
|
24
32
|
Licensed under the MIT License (MIT), see
|
|
25
33
|
http://jedwatson.github.io/classnames
|
|
26
|
-
*/var
|
|
34
|
+
*/var ae;function We(){return ae||(ae=1,(function(d){(function(){var R={}.hasOwnProperty;function m(){for(var s="",c=0;c<arguments.length;c++){var b=arguments[c];b&&(s=P(s,_(b)))}return s}function _(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return m.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var b in s)R.call(s,b)&&s[b]&&(c=P(c,b));return c}function P(s,c){return c?s?s+" "+c:s+c:s}d.exports?(m.default=m,d.exports=m):window.classNames=m})()})(q)),q.exports}var Ye=We();const oe=De(Ye),$e=({children:d,className:R,disabled:m,..._})=>ne.jsx("button",{className:oe("inline-flex justify-center rounded-md px-3 py-2 text-sm font-semibold shadow-sm focus-visible:outline-2 focus-visible:outline-offset-2 border-2 cursor-pointer",R,m?"pointer-events-none opacity-50":""),..._,children:d}),Me=({children:d,className:R,...m})=>ne.jsx($e,{className:oe("bg-tealca-500 border-tealca-500 hover:bg-tealca-400 text-white focus-visible:outline-tealca-400",R),...m,children:d});S.PrimaryButton=Me,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tealca/core-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "A collection of shared UI components for Tealca's applications.",
|
|
6
6
|
"main": "dist/tealca-core-components.umd.js",
|
|
7
7
|
"module": "dist/tealca-core-components.es.js",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@tailwindcss/forms": "^0.5.10",
|
|
47
47
|
"@testing-library/jest-dom": "^6.8.0",
|
|
48
48
|
"@testing-library/react": "^16.3.0",
|
|
49
|
-
"@types/node": "^
|
|
50
|
-
"@types/react": "^
|
|
51
|
-
"@types/react-dom": "^
|
|
49
|
+
"@types/node": "^20.6.3",
|
|
50
|
+
"@types/react": "^18.2.22",
|
|
51
|
+
"@types/react-dom": "^18.2.7",
|
|
52
52
|
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
53
53
|
"@vitest/browser": "^3.2.4",
|
|
54
54
|
"@vitest/coverage-v8": "^3.2.4",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"jsdom": "^26.1.0",
|
|
61
61
|
"playwright": "^1.55.0",
|
|
62
62
|
"prettier": "^3.6.2",
|
|
63
|
-
"react": "^
|
|
64
|
-
"react-dom": "^
|
|
63
|
+
"react": "^18.2.0",
|
|
64
|
+
"react-dom": "^18.2.0",
|
|
65
65
|
"storybook": "^9.1.4",
|
|
66
66
|
"typescript": "~5.8.3",
|
|
67
67
|
"typescript-eslint": "^8.39.1",
|