@emporix/component-library 1.0.0 → 1.0.2

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