@tealca/core-components 1.0.2 → 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 oe from "react";
2
- function ae(o) {
3
- return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
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 R = { exports: {} }, E = {};
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) Meta Platforms, Inc. and affiliates.
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 se() {
17
- if ($) return E;
18
- $ = 1;
19
- var o = Symbol.for("react.transitional.element"), f = Symbol.for("react.fragment");
20
- function c(d, l, t) {
21
- var a = null;
22
- if (t !== void 0 && (a = "" + t), l.key !== void 0 && (a = "" + l.key), "key" in l) {
23
- t = {};
24
- for (var i in l)
25
- i !== "key" && (t[i] = l[i]);
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 E.Fragment = f, E.jsx = c, E.jsxs = c, E;
27
+ return I.Fragment = m, I.jsx = c, I.jsxs = c, I;
36
28
  }
37
- var v = {};
29
+ var $ = {};
38
30
  /**
39
31
  * @license React
40
32
  * react-jsx-runtime.development.js
41
33
  *
42
- * Copyright (c) Meta Platforms, Inc. and affiliates.
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 D;
48
- function ue() {
49
- return D || (D = 1, process.env.NODE_ENV !== "production" && (function() {
50
- function o(e) {
51
- if (e == null) return null;
52
- if (typeof e == "function")
53
- return e.$$typeof === re ? null : e.displayName || e.name || null;
54
- if (typeof e == "string") return e;
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 T:
94
+ case R:
57
95
  return "Fragment";
58
- case G:
96
+ case m:
97
+ return "Portal";
98
+ case s:
59
99
  return "Profiler";
60
- case z:
100
+ case S:
61
101
  return "StrictMode";
62
- case Z:
102
+ case C:
63
103
  return "Suspense";
64
- case Q:
104
+ case g:
65
105
  return "SuspenseList";
66
- case ee:
67
- return "Activity";
68
106
  }
69
107
  if (typeof e == "object")
70
- switch (typeof e.tag == "number" && console.error(
71
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
- ), e.$$typeof) {
73
- case V:
74
- return "Portal";
75
- case B:
76
- return (e.displayName || "Context") + ".Provider";
77
- case X:
78
- return (e._context.displayName || "Context") + ".Consumer";
79
- case H:
80
- var r = e.render;
81
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
82
- case K:
83
- return r = e.displayName || null, r !== null ? r : o(e.type) || "Memo";
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(e(r));
123
+ return O(o(u));
88
124
  } catch {
125
+ return null;
89
126
  }
127
+ }
90
128
  }
91
129
  return null;
92
130
  }
93
- function f(e) {
94
- return "" + e;
131
+ var P = Object.assign, F = 0, re, te, ne, ae, oe, ie, ue;
132
+ function se() {
95
133
  }
96
- function c(e) {
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
- f(e);
99
- var r = !1;
100
- } catch {
101
- r = !0;
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
- if (r) {
104
- r = console;
105
- var n = r.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
106
- return n.call(
107
- r,
108
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- s
110
- ), f(e);
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 d(e) {
114
- if (e === T) return "<>";
115
- if (typeof e == "object" && e !== null && e.$$typeof === h)
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
- var r = o(e);
119
- return r ? "<" + r + ">" : "<...>";
358
+ return ve(e), !1;
120
359
  } catch {
121
- return "<...>";
360
+ return !0;
122
361
  }
123
362
  }
124
- function l() {
125
- var e = O.A;
126
- return e === null ? null : e.getOwner();
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
- function t() {
129
- return Error("react-stack-top-frame");
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 a(e) {
132
- if (N.call(e, "key")) {
384
+ function Ze(e) {
385
+ if (A.call(e, "key")) {
133
386
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
134
- if (r && r.isReactWarning) return !1;
387
+ if (r && r.isReactWarning)
388
+ return !1;
135
389
  }
136
390
  return e.key !== void 0;
137
391
  }
138
- function i(e, r) {
139
- function n() {
140
- g || (g = !0, console.error(
141
- "%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://react.dev/link/special-props)",
142
- r
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
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
146
- get: n,
147
- configurable: !0
148
- });
149
- }
150
- function U() {
151
- var e = o(this.type);
152
- return C[e] || (C[e] = !0, console.error(
153
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
154
- )), e = this.props.ref, e !== void 0 ? e : null;
155
- }
156
- function J(e, r, n, s, p, m, x, S) {
157
- return n = m.ref, e = {
158
- $$typeof: P,
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
- props: m,
162
- _owner: p
163
- }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
164
- enumerable: !1,
165
- get: U
166
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
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: 0
171
- }), Object.defineProperty(e, "_debugInfo", {
433
+ value: !1
434
+ }), Object.defineProperty(a, "_self", {
172
435
  configurable: !1,
173
436
  enumerable: !1,
174
- writable: !0,
175
- value: null
176
- }), Object.defineProperty(e, "_debugStack", {
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: !0,
185
- value: S
186
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
187
- }
188
- function A(e, r, n, s, p, m, x, S) {
189
- var u = r.children;
190
- if (u !== void 0)
191
- if (s)
192
- if (te(u)) {
193
- for (s = 0; s < u.length; s++)
194
- w(u[s]);
195
- Object.freeze && Object.freeze(u);
196
- } else
197
- console.error(
198
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
199
- );
200
- else w(u);
201
- if (N.call(r, "key")) {
202
- u = o(e);
203
- var b = Object.keys(r).filter(function(ne) {
204
- return ne !== "key";
205
- });
206
- s = 0 < b.length ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}", I[u + s] || (b = 0 < b.length ? "{" + b.join(": ..., ") + ": ...}" : "{}", console.error(
207
- `A props object containing a "key" prop is being spread into JSX:
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
- s,
214
- u,
215
- b,
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
- var g, C = {}, Y = _.react_stack_bottom_frame.bind(
250
- _,
251
- t
252
- )(), F = k(d(t)), I = {};
253
- v.Fragment = T, v.jsx = function(e, r, n, s, p) {
254
- var m = 1e4 > O.recentlyCreatedOwnerStacks++;
255
- return A(
256
- e,
257
- r,
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 M;
281
- function ce() {
282
- return M || (M = 1, process.env.NODE_ENV === "production" ? R.exports = se() : R.exports = ue()), R.exports;
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 W = ce(), y = { exports: {} };
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 L;
291
- function le() {
292
- return L || (L = 1, (function(o) {
639
+ var Pe;
640
+ function mr() {
641
+ return Pe || (Pe = 1, (function(v) {
293
642
  (function() {
294
- var f = {}.hasOwnProperty;
295
- function c() {
296
- for (var t = "", a = 0; a < arguments.length; a++) {
297
- var i = arguments[a];
298
- i && (t = l(t, d(i)));
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 t;
649
+ return s;
301
650
  }
302
- function d(t) {
303
- if (typeof t == "string" || typeof t == "number")
304
- return t;
305
- if (typeof t != "object")
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(t))
308
- return c.apply(null, t);
309
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
310
- return t.toString();
311
- var a = "";
312
- for (var i in t)
313
- f.call(t, i) && t[i] && (a = l(a, i));
314
- return a;
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 l(t, a) {
317
- return a ? t ? t + " " + a : t + a : t;
665
+ function S(s, c) {
666
+ return c ? s ? s + " " + c : s + c : s;
318
667
  }
319
- o.exports ? (c.default = c, o.exports = c) : window.classNames = c;
668
+ v.exports ? (m.default = m, v.exports = m) : window.classNames = m;
320
669
  })();
321
- })(y)), y.exports;
670
+ })(H)), H.exports;
322
671
  }
323
- var ie = le();
324
- const q = /* @__PURE__ */ ae(ie), fe = ({
325
- children: o,
326
- className: f,
327
- disabled: c,
328
- ...d
329
- }) => /* @__PURE__ */ W.jsx(
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: q(
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
- f,
335
- c ? "pointer-events-none opacity-50" : ""
683
+ _,
684
+ m ? "pointer-events-none opacity-50" : ""
336
685
  ),
337
- ...d,
338
- children: o
686
+ ...R,
687
+ children: v
339
688
  }
340
- ), de = ({
341
- children: o,
342
- className: f,
343
- ...c
344
- }) => /* @__PURE__ */ W.jsx(
345
- fe,
689
+ ), Rr = ({
690
+ children: v,
691
+ className: _,
692
+ ...m
693
+ }) => /* @__PURE__ */ Ce.jsx(
694
+ Er,
346
695
  {
347
- className: q(
696
+ className: je(
348
697
  "bg-tealca-500 border-tealca-500 hover:bg-tealca-400 text-white focus-visible:outline-tealca-400",
349
- f
698
+ _
350
699
  ),
351
- ...c,
352
- children: o
700
+ ...m,
701
+ children: v
353
702
  }
354
703
  );
355
704
  export {
356
- de as PrimaryButton
705
+ Rr as PrimaryButton
357
706
  };
@@ -1,26 +1,34 @@
1
- (function(b,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],v):(b=typeof globalThis<"u"?globalThis:b||self,v(b["tealca-core-components"]={},b.React))})(this,(function(b,v){"use strict";function V(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var T={exports:{}},_={};/**
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) Meta Platforms, Inc. and affiliates.
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 A;function z(){if(A)return _;A=1;var o=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function c(m,i,t){var a=null;if(t!==void 0&&(a=""+t),i.key!==void 0&&(a=""+i.key),"key"in i){t={};for(var l in i)l!=="key"&&(t[l]=i[l])}else t=i;return i=t.ref,{$$typeof:o,type:m,key:a,ref:i!==void 0?i:null,props:t}}return _.Fragment=f,_.jsx=c,_.jsxs=c,_}var R={};/**
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) Meta Platforms, Inc. and affiliates.
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 w;function G(){return w||(w=1,process.env.NODE_ENV!=="production"&&(function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case ne:return"Profiler";case te:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case re:return"Portal";case ae:return(e.displayName||"Context")+".Provider";case oe:return(e._context.displayName||"Context")+".Consumer";case se:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return r=e.displayName||null,r!==null?r:o(e.type)||"Memo";case M:r=e._payload,e=e._init;try{return o(e(r))}catch{}}return null}function f(e){return""+e}function c(e){try{f(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,s=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),f(e)}}function m(e){if(e===S)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===M)return"<...>";try{var r=o(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=x.A;return e===null?null:e.getOwner()}function t(){return Error("react-stack-top-frame")}function a(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function l(e,r){function n(){L||(L=!0,console.error("%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://react.dev/link/special-props)",r))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function K(){var e=o(this.type);return W[e]||(W[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function ee(e,r,n,s,p,d,k,h){return n=d.ref,e={$$typeof:D,type:e,key:r,props:d,_owner:p},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:K}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function F(e,r,n,s,p,d,k,h){var u=r.children;if(u!==void 0)if(s)if(de(u)){for(s=0;s<u.length;s++)I(u[s]);Object.freeze&&Object.freeze(u)}else console.error("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 I(u);if($.call(r,"key")){u=o(e);var E=Object.keys(r).filter(function(me){return me!=="key"});s=0<E.length?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}",J[u+s]||(E=0<E.length?"{"+E.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
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} />`,s,u,E,u),J[u+s]=!0)}if(u=null,n!==void 0&&(c(n),u=""+n),a(r)&&(c(r.key),u=""+r.key),"key"in r){n={};for(var P in r)P!=="key"&&(n[P]=r[P])}else n=r;return u&&l(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),ee(e,u,d,p,i(),n,k,h)}function I(e){typeof e=="object"&&e!==null&&e.$$typeof===D&&e._store&&(e._store.validated=1)}var O=v,D=Symbol.for("react.transitional.element"),re=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),oe=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),x=O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,de=Array.isArray,j=console.createTask?console.createTask:function(){return null};O={react_stack_bottom_frame:function(e){return e()}};var L,W={},q=O.react_stack_bottom_frame.bind(O,t)(),U=j(m(t)),J={};R.Fragment=S,R.jsx=function(e,r,n,s,p){var d=1e4>x.recentlyCreatedOwnerStacks++;return F(e,r,n,!1,s,p,d?Error("react-stack-top-frame"):q,d?j(m(e)):U)},R.jsxs=function(e,r,n,s,p){var d=1e4>x.recentlyCreatedOwnerStacks++;return F(e,r,n,!0,s,p,d?Error("react-stack-top-frame"):q,d?j(m(e)):U)}})()),R}var g;function B(){return g||(g=1,process.env.NODE_ENV==="production"?T.exports=z():T.exports=G()),T.exports}var N=B(),y={exports:{}};/*!
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 C;function X(){return C||(C=1,(function(o){(function(){var f={}.hasOwnProperty;function c(){for(var t="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(t=i(t,m(l)))}return t}function m(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return c.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var a="";for(var l in t)f.call(t,l)&&t[l]&&(a=i(a,l));return a}function i(t,a){return a?t?t+" "+a:t+a:t}o.exports?(c.default=c,o.exports=c):window.classNames=c})()})(y)),y.exports}var H=X();const Y=V(H),Z=({children:o,className:f,disabled:c,...m})=>N.jsx("button",{className:Y("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",f,c?"pointer-events-none opacity-50":""),...m,children:o}),Q=({children:o,className:f,...c})=>N.jsx(Z,{className:Y("bg-tealca-500 border-tealca-500 hover:bg-tealca-400 text-white focus-visible:outline-tealca-400",f),...c,children:o});b.PrimaryButton=Q,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
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.2",
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",
@@ -27,10 +27,12 @@
27
27
  "dependencies": {
28
28
  "@tailwindcss/vite": "^4.1.12",
29
29
  "classnames": "^2.5.1",
30
- "react": "^19.1.1",
31
- "react-dom": "^19.1.1",
32
30
  "tailwindcss": "^4.1.12"
33
31
  },
32
+ "peerDependencies": {
33
+ "react": "^18.2.0 || ^19.0.0",
34
+ "react-dom": "^18.2.0 || ^19.0.0"
35
+ },
34
36
  "devDependencies": {
35
37
  "@chromatic-com/storybook": "^4.1.1",
36
38
  "@eslint/js": "^9.33.0",
@@ -44,9 +46,9 @@
44
46
  "@tailwindcss/forms": "^0.5.10",
45
47
  "@testing-library/jest-dom": "^6.8.0",
46
48
  "@testing-library/react": "^16.3.0",
47
- "@types/node": "^24.3.1",
48
- "@types/react": "^19.1.10",
49
- "@types/react-dom": "^19.1.7",
49
+ "@types/node": "^20.6.3",
50
+ "@types/react": "^18.2.22",
51
+ "@types/react-dom": "^18.2.7",
50
52
  "@vitejs/plugin-react-swc": "^4.0.0",
51
53
  "@vitest/browser": "^3.2.4",
52
54
  "@vitest/coverage-v8": "^3.2.4",
@@ -58,6 +60,8 @@
58
60
  "jsdom": "^26.1.0",
59
61
  "playwright": "^1.55.0",
60
62
  "prettier": "^3.6.2",
63
+ "react": "^18.2.0",
64
+ "react-dom": "^18.2.0",
61
65
  "storybook": "^9.1.4",
62
66
  "typescript": "~5.8.3",
63
67
  "typescript-eslint": "^8.39.1",