@emporix/component-library 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ export interface SecondaryButtonProps {
3
+ /**
4
+ * The content of the button
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * Whether the button is disabled
9
+ */
10
+ disabled?: boolean;
11
+ /**
12
+ * Click handler
13
+ */
14
+ onClick?: () => void;
15
+ /**
16
+ * Additional CSS class name
17
+ */
18
+ className?: string;
19
+ /**
20
+ * Test ID for testing
21
+ */
22
+ 'data-testid'?: string;
23
+ }
24
+ export declare const SecondaryButton: ({ children, disabled, onClick, className, "data-testid": testId, ...props }: SecondaryButtonProps) => import("react/jsx-runtime").JSX.Element;
25
+ //# sourceMappingURL=SecondaryButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecondaryButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SecondaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,eAAe,GAAI,6EAO7B,oBAAoB,4CAqBtB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export { PrimaryButton } from './components/buttons/PrimaryButton';
2
2
  export type { PrimaryButtonProps } from './components/buttons/PrimaryButton';
3
+ export { SecondaryButton } from './components/buttons/SecondaryButton';
4
+ export type { SecondaryButtonProps } from './components/buttons/SecondaryButton';
3
5
  export { Tabs } from './components/tabs/Tabs';
4
6
  export type { TabsProps, TabItem } from './components/tabs/Tabs';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAGhE,OAAO,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAGhE,OAAO,qBAAqB,CAAA"}
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import xe from "react";
2
- var U = { exports: {} }, L = {};
1
+ import we from "react";
2
+ var U = { exports: {} }, $ = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,21 +9,21 @@ var U = { exports: {} }, L = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Oe;
13
- function vr() {
14
- if (Oe) return L;
15
- Oe = 1;
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 };
12
+ var je;
13
+ function pr() {
14
+ if (je) return $;
15
+ je = 1;
16
+ var h = we, p = Symbol.for("react.element"), C = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, m = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function g(R, u, P) {
18
+ var f, T = {}, x = null, W = null;
19
+ P !== void 0 && (x = "" + P), u.key !== void 0 && (x = "" + u.key), u.ref !== void 0 && (W = u.ref);
20
+ for (f in u) _.call(u, f) && !E.hasOwnProperty(f) && (T[f] = u[f]);
21
+ if (R && R.defaultProps) for (f in u = R.defaultProps, u) T[f] === void 0 && (T[f] = u[f]);
22
+ return { $$typeof: p, type: R, key: x, ref: W, props: T, _owner: m.current };
23
23
  }
24
- return L.Fragment = S, L.jsx = g, L.jsxs = g, L;
24
+ return $.Fragment = C, $.jsx = g, $.jsxs = g, $;
25
25
  }
26
- var W = {};
26
+ var L = {};
27
27
  /**
28
28
  * @license React
29
29
  * react-jsx-runtime.development.js
@@ -33,38 +33,38 @@ 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 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) {
36
+ var Oe;
37
+ function br() {
38
+ return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
39
+ var h = we, p = Symbol.for("react.element"), C = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), R = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
40
+ function De(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var r = Q && e[Q] || e[we];
43
+ var r = Q && e[Q] || e[ke];
44
44
  return typeof r == "function" ? r : null;
45
45
  }
46
- var D = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
46
+ var D = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
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
- De("error", e, t);
51
+ Fe("error", e, t);
52
52
  }
53
53
  }
54
- function De(e, r, t) {
54
+ function Fe(e, r, t) {
55
55
  {
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);
56
+ var n = D.ReactDebugCurrentFrame, i = n.getStackAddendum();
57
+ i !== "" && (r += "%s", t = t.concat([i]));
58
+ var s = t.map(function(o) {
59
+ return String(o);
60
60
  });
61
61
  s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
62
62
  }
63
63
  }
64
- var Fe = !1, Ae = !1, Ie = !1, $e = !1, Le = !1, ee;
64
+ var Ae = !1, Be = !1, Ie = !1, $e = !1, Le = !1, ee;
65
65
  ee = Symbol.for("react.module.reference");
66
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
67
+ return !!(typeof e == "string" || typeof e == "function" || e === _ || e === E || Le || e === m || e === P || e === f || $e || e === W || Ae || Be || Ie || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === T || e.$$typeof === g || e.$$typeof === R || 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.
@@ -74,13 +74,13 @@ function pr() {
74
74
  var n = e.displayName;
75
75
  if (n)
76
76
  return n;
77
- var o = r.displayName || r.name || "";
78
- return o !== "" ? t + "(" + o + ")" : t;
77
+ var i = r.displayName || r.name || "";
78
+ return i !== "" ? t + "(" + i + ")" : t;
79
79
  }
80
80
  function re(e) {
81
81
  return e.displayName || "Context";
82
82
  }
83
- function P(e) {
83
+ function S(e) {
84
84
  if (e == null)
85
85
  return null;
86
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")
@@ -88,22 +88,22 @@ function pr() {
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case m:
91
+ case _:
92
92
  return "Fragment";
93
- case S:
93
+ case C:
94
94
  return "Portal";
95
- case T:
95
+ case E:
96
96
  return "Profiler";
97
- case h:
97
+ case m:
98
98
  return "StrictMode";
99
- case O:
99
+ case P:
100
100
  return "Suspense";
101
101
  case f:
102
102
  return "SuspenseList";
103
103
  }
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
- case y:
106
+ case R:
107
107
  var r = e;
108
108
  return re(r) + ".Consumer";
109
109
  case g:
@@ -111,13 +111,13 @@ function pr() {
111
111
  return re(t._context) + ".Provider";
112
112
  case u:
113
113
  return Ye(e, e.render, "ForwardRef");
114
- case E:
114
+ case T:
115
115
  var n = e.displayName || null;
116
- return n !== null ? n : P(e.type) || "Memo";
116
+ return n !== null ? n : S(e.type) || "Memo";
117
117
  case x: {
118
- var o = e, s = o._payload, i = o._init;
118
+ var i = e, s = i._payload, o = i._init;
119
119
  try {
120
- return P(i(s));
120
+ return S(o(s));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,14 +125,14 @@ function pr() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var w = Object.assign, I = 0, te, ne, ae, ie, oe, se, ue;
128
+ var w = Object.assign, B = 0, te, ne, ae, oe, ie, se, ue;
129
129
  function le() {
130
130
  }
131
131
  le.__reactDisabledLog = !0;
132
- function Be() {
132
+ function Ne() {
133
133
  {
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;
134
+ if (B === 0) {
135
+ te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, se = console.groupCollapsed, ue = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
@@ -149,12 +149,12 @@ function pr() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- I++;
152
+ B++;
153
153
  }
154
154
  }
155
- function Ne() {
155
+ function Ve() {
156
156
  {
157
- if (I--, I === 0) {
157
+ if (B--, B === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
@@ -171,10 +171,10 @@ function pr() {
171
171
  value: ae
172
172
  }),
173
173
  error: w({}, e, {
174
- value: ie
174
+ value: oe
175
175
  }),
176
176
  group: w({}, e, {
177
- value: oe
177
+ value: ie
178
178
  }),
179
179
  groupCollapsed: w({}, e, {
180
180
  value: se
@@ -184,17 +184,17 @@ function pr() {
184
184
  })
185
185
  });
186
186
  }
187
- I < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ B < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
190
  var J = D.ReactCurrentDispatcher, q;
191
- function B(e, r, t) {
191
+ function Y(e, r, t) {
192
192
  {
193
193
  if (q === void 0)
194
194
  try {
195
195
  throw Error();
196
- } catch (o) {
197
- var n = o.stack.trim().match(/\n( *(at )?)/);
196
+ } catch (i) {
197
+ var n = i.stack.trim().match(/\n( *(at )?)/);
198
198
  q = n && n[1] || "";
199
199
  }
200
200
  return `
@@ -203,8 +203,8 @@ function pr() {
203
203
  }
204
204
  var K = !1, N;
205
205
  {
206
- var Ve = typeof WeakMap == "function" ? WeakMap : Map;
207
- N = new Ve();
206
+ var Me = typeof WeakMap == "function" ? WeakMap : Map;
207
+ N = new Me();
208
208
  }
209
209
  function ce(e, r) {
210
210
  if (!e || K)
@@ -216,45 +216,45 @@ function pr() {
216
216
  }
217
217
  var n;
218
218
  K = !0;
219
- var o = Error.prepareStackTrace;
219
+ var i = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
221
  var s;
222
- s = J.current, J.current = null, Be();
222
+ s = J.current, J.current = null, Ne();
223
223
  try {
224
224
  if (r) {
225
- var i = function() {
225
+ var o = function() {
226
226
  throw Error();
227
227
  };
228
- if (Object.defineProperty(i.prototype, "props", {
228
+ if (Object.defineProperty(o.prototype, "props", {
229
229
  set: function() {
230
230
  throw Error();
231
231
  }
232
232
  }), typeof Reflect == "object" && Reflect.construct) {
233
233
  try {
234
- Reflect.construct(i, []);
235
- } catch (p) {
236
- n = p;
234
+ Reflect.construct(o, []);
235
+ } catch (b) {
236
+ n = b;
237
237
  }
238
- Reflect.construct(e, [], i);
238
+ Reflect.construct(e, [], o);
239
239
  } else {
240
240
  try {
241
- i.call();
242
- } catch (p) {
243
- n = p;
241
+ o.call();
242
+ } catch (b) {
243
+ n = b;
244
244
  }
245
- e.call(i.prototype);
245
+ e.call(o.prototype);
246
246
  }
247
247
  } else {
248
248
  try {
249
249
  throw Error();
250
- } catch (p) {
251
- n = p;
250
+ } catch (b) {
251
+ n = b;
252
252
  }
253
253
  e();
254
254
  }
255
- } catch (p) {
256
- if (p && n && typeof p.stack == "string") {
257
- for (var a = p.stack.split(`
255
+ } catch (b) {
256
+ if (b && n && typeof b.stack == "string") {
257
+ for (var a = b.stack.split(`
258
258
  `), v = n.stack.split(`
259
259
  `), l = a.length - 1, c = v.length - 1; l >= 1 && c >= 0 && a[l] !== v[c]; )
260
260
  c--;
@@ -263,24 +263,24 @@ function pr() {
263
263
  if (l !== 1 || c !== 1)
264
264
  do
265
265
  if (l--, c--, c < 0 || a[l] !== v[c]) {
266
- var b = `
266
+ var y = `
267
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;
268
+ return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, y), y;
269
269
  }
270
270
  while (l >= 1 && c >= 0);
271
271
  break;
272
272
  }
273
273
  }
274
274
  } finally {
275
- K = !1, J.current = s, Ne(), Error.prepareStackTrace = o;
275
+ K = !1, J.current = s, Ve(), Error.prepareStackTrace = i;
276
276
  }
277
- var A = e ? e.displayName || e.name : "", k = A ? B(A) : "";
277
+ var A = e ? e.displayName || e.name : "", k = A ? Y(A) : "";
278
278
  return typeof e == "function" && N.set(e, k), k;
279
279
  }
280
- function Me(e, r, t) {
280
+ function Ue(e, r, t) {
281
281
  return ce(e, !1);
282
282
  }
283
- function Ue(e) {
283
+ function Je(e) {
284
284
  var r = e.prototype;
285
285
  return !!(r && r.isReactComponent);
286
286
  }
@@ -288,32 +288,32 @@ function pr() {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return ce(e, Ue(e));
291
+ return ce(e, Je(e));
292
292
  if (typeof e == "string")
293
- return B(e);
293
+ return Y(e);
294
294
  switch (e) {
295
- case O:
296
- return B("Suspense");
295
+ case P:
296
+ return Y("Suspense");
297
297
  case f:
298
- return B("SuspenseList");
298
+ return Y("SuspenseList");
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
302
  case u:
303
- return Me(e.render);
304
- case E:
303
+ return Ue(e.render);
304
+ case T:
305
305
  return V(e.type, r, t);
306
306
  case x: {
307
- var n = e, o = n._payload, s = n._init;
307
+ var n = e, i = n._payload, s = n._init;
308
308
  try {
309
- return V(s(o), r, t);
309
+ return V(s(i), r, t);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var $ = Object.prototype.hasOwnProperty, fe = {}, de = D.ReactDebugCurrentFrame;
316
+ var I = 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);
@@ -321,36 +321,36 @@ function pr() {
321
321
  } else
322
322
  de.setExtraStackFrame(null);
323
323
  }
324
- function Je(e, r, t, n, o) {
324
+ function qe(e, r, t, n, i) {
325
325
  {
326
- var s = Function.call.bind($);
327
- for (var i in e)
328
- if (s(e, i)) {
326
+ var s = Function.call.bind(I);
327
+ for (var o in e)
328
+ if (s(e, o)) {
329
329
  var a = void 0;
330
330
  try {
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`.");
331
+ if (typeof e[o] != "function") {
332
+ var v = 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
333
  throw v.name = "Invariant Violation", v;
334
334
  }
335
- a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
336
  } catch (l) {
337
337
  a = l;
338
338
  }
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));
339
+ a && !(a instanceof Error) && (M(i), 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, o, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), d("Failed %s type: %s", t, a.message), M(null));
340
340
  }
341
341
  }
342
342
  }
343
- var qe = Array.isArray;
343
+ var Ke = Array.isArray;
344
344
  function H(e) {
345
- return qe(e);
345
+ return Ke(e);
346
346
  }
347
- function Ke(e) {
347
+ function He(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 He(e) {
353
+ function Ge(e) {
354
354
  try {
355
355
  return ve(e), !1;
356
356
  } catch {
@@ -361,35 +361,35 @@ function pr() {
361
361
  return "" + e;
362
362
  }
363
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);
364
+ if (Ge(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.", He(e)), ve(e);
366
366
  }
367
- var be = D.ReactCurrentOwner, Ge = {
367
+ var be = D.ReactCurrentOwner, ze = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, _e, me;
373
- function ze(e) {
374
- if ($.call(e, "ref")) {
372
+ }, _e, ye;
373
+ function Xe(e) {
374
+ if (I.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 Xe(e) {
382
- if ($.call(e, "key")) {
381
+ function Ze(e) {
382
+ if (I.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) {
389
+ function Qe(e, r) {
390
390
  typeof e.ref == "string" && be.current;
391
391
  }
392
- function Qe(e, r) {
392
+ function er(e, r) {
393
393
  {
394
394
  var t = function() {
395
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));
@@ -400,10 +400,10 @@ function pr() {
400
400
  });
401
401
  }
402
402
  }
403
- function er(e, r) {
403
+ function rr(e, r) {
404
404
  {
405
405
  var t = function() {
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));
406
+ ye || (ye = !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,15 +411,15 @@ function pr() {
411
411
  });
412
412
  }
413
413
  }
414
- var rr = function(e, r, t, n, o, s, i) {
414
+ var tr = function(e, r, t, n, i, s, o) {
415
415
  var a = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
- $$typeof: _,
417
+ $$typeof: p,
418
418
  // Built-in properties that belong on the element
419
419
  type: e,
420
420
  key: r,
421
421
  ref: t,
422
- props: i,
422
+ props: o,
423
423
  // Record the component responsible for creating this element.
424
424
  _owner: s
425
425
  };
@@ -437,44 +437,44 @@ function pr() {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
- value: o
440
+ value: i
441
441
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
442
442
  };
443
- function tr(e, r, t, n, o) {
443
+ function nr(e, r, t, n, i) {
444
444
  {
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));
445
+ var s, o = {}, a = null, v = null;
446
+ t !== void 0 && (pe(t), a = "" + t), Ze(r) && (pe(r.key), a = "" + r.key), Xe(r) && (v = r.ref, Qe(r, i));
447
447
  for (s in r)
448
- $.call(r, s) && !Ge.hasOwnProperty(s) && (i[s] = r[s]);
448
+ I.call(r, s) && !ze.hasOwnProperty(s) && (o[s] = r[s]);
449
449
  if (e && e.defaultProps) {
450
450
  var l = e.defaultProps;
451
451
  for (s in l)
452
- i[s] === void 0 && (i[s] = l[s]);
452
+ o[s] === void 0 && (o[s] = l[s]);
453
453
  }
454
454
  if (a || v) {
455
455
  var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- a && Qe(i, c), v && er(i, c);
456
+ a && er(o, c), v && rr(o, c);
457
457
  }
458
- return rr(e, a, v, o, n, be.current, i);
458
+ return tr(e, a, v, i, n, be.current, o);
459
459
  }
460
460
  }
461
- var G = D.ReactCurrentOwner, ye = D.ReactDebugCurrentFrame;
461
+ var G = D.ReactCurrentOwner, me = D.ReactDebugCurrentFrame;
462
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
- ye.setExtraStackFrame(t);
465
+ me.setExtraStackFrame(t);
466
466
  } else
467
- ye.setExtraStackFrame(null);
467
+ me.setExtraStackFrame(null);
468
468
  }
469
469
  var z;
470
470
  z = !1;
471
471
  function X(e) {
472
- return typeof e == "object" && e !== null && e.$$typeof === _;
472
+ return typeof e == "object" && e !== null && e.$$typeof === p;
473
473
  }
474
- function he() {
474
+ function ge() {
475
475
  {
476
476
  if (G.current) {
477
- var e = P(G.current.type);
477
+ var e = S(G.current.type);
478
478
  if (e)
479
479
  return `
480
480
 
@@ -483,13 +483,13 @@ Check the render method of \`` + e + "`.";
483
483
  return "";
484
484
  }
485
485
  }
486
- function nr(e) {
486
+ function ar(e) {
487
487
  return "";
488
488
  }
489
- var ge = {};
490
- function ar(e) {
489
+ var he = {};
490
+ function or(e) {
491
491
  {
492
- var r = he();
492
+ var r = ge();
493
493
  if (!r) {
494
494
  var t = typeof e == "string" ? e : e.displayName || e.name;
495
495
  t && (r = `
@@ -504,12 +504,12 @@ 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 = ar(r);
508
- if (ge[t])
507
+ var t = or(r);
508
+ if (he[t])
509
509
  return;
510
- ge[t] = !0;
510
+ he[t] = !0;
511
511
  var n = "";
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);
512
+ e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + S(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) {
@@ -524,10 +524,10 @@ Check the top-level render call using <` + t + ">.");
524
524
  else if (X(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
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);
527
+ var i = De(e);
528
+ if (typeof i == "function" && i !== e.entries)
529
+ for (var s = i.call(e), o; !(o = s.next()).done; )
530
+ X(o.value) && Ee(o.value, r);
531
531
  }
532
532
  }
533
533
  }
@@ -541,22 +541,22 @@ Check the top-level render call using <` + t + ">.");
541
541
  t = r.propTypes;
542
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 === E))
544
+ r.$$typeof === T))
545
545
  t = r.propTypes;
546
546
  else
547
547
  return;
548
548
  if (t) {
549
- var n = P(r);
550
- Je(t, e.props, "prop", n, e);
549
+ var n = S(r);
550
+ qe(t, e.props, "prop", n, e);
551
551
  } else if (r.PropTypes !== void 0 && !z) {
552
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");
553
+ var i = S(r);
554
+ d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
555
555
  }
556
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 or(e) {
559
+ function sr(e) {
560
560
  {
561
561
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
562
562
  var n = r[t];
@@ -569,138 +569,167 @@ Check the top-level render call using <` + t + ">.");
569
569
  }
570
570
  }
571
571
  var Ce = {};
572
- function Te(e, r, t, n, o, s) {
572
+ function Te(e, r, t, n, i, s) {
573
573
  {
574
- var i = We(e);
575
- if (!i) {
574
+ var o = We(e);
575
+ if (!o) {
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 v = nr();
579
- v ? a += v : a += he();
578
+ var v = ar();
579
+ v ? a += v : a += ge();
580
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);
581
+ e === null ? l = "null" : H(e) ? l = "array" : e !== void 0 && e.$$typeof === p ? (l = "<" + (S(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 c = tr(e, r, t, o, s);
583
+ var c = nr(e, r, t, i, s);
584
584
  if (c == null)
585
585
  return c;
586
- if (i) {
587
- var b = r.children;
588
- if (b !== void 0)
586
+ if (o) {
587
+ var y = r.children;
588
+ if (y !== void 0)
589
589
  if (n)
590
- if (H(b)) {
591
- for (var A = 0; A < b.length; A++)
592
- Re(b[A], e);
593
- Object.freeze && Object.freeze(b);
590
+ if (H(y)) {
591
+ for (var A = 0; A < y.length; A++)
592
+ Re(y[A], e);
593
+ Object.freeze && Object.freeze(y);
594
594
  } else
595
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(b, e);
597
+ Re(y, e);
598
598
  }
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}";
599
+ if (I.call(r, "key")) {
600
+ var k = S(e), b = Object.keys(r).filter(function(vr) {
601
+ return vr !== "key";
602
+ }), Z = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
603
603
  if (!Ce[k + Z]) {
604
- var fr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
604
+ var dr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
605
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} />`, Z, k, fr, k), Ce[k + Z] = !0;
610
+ <%s key={someKey} {...props} />`, Z, k, dr, k), Ce[k + Z] = !0;
611
611
  }
612
612
  }
613
- return e === m ? or(c) : ir(c), c;
613
+ return e === _ ? sr(c) : ir(c), c;
614
614
  }
615
615
  }
616
- function sr(e, r, t) {
616
+ function ur(e, r, t) {
617
617
  return Te(e, r, t, !0);
618
618
  }
619
- function ur(e, r, t) {
619
+ function lr(e, r, t) {
620
620
  return Te(e, r, t, !1);
621
621
  }
622
- var lr = ur, cr = sr;
623
- W.Fragment = m, W.jsx = lr, W.jsxs = cr;
624
- })()), W;
622
+ var cr = lr, fr = ur;
623
+ L.Fragment = _, L.jsx = cr, L.jsxs = fr;
624
+ })()), L;
625
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;
626
+ var Pe;
627
+ function _r() {
628
+ return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? U.exports = pr() : U.exports = br()), U.exports;
629
629
  }
630
- var j = br();
631
- const _r = "_primaryButton_131re_1", mr = "_primaryButtonDisabled_131re_33", Se = {
632
- primaryButton: _r,
630
+ var O = _r();
631
+ const yr = "_primaryButton_131re_1", mr = "_primaryButtonDisabled_131re_33", Se = {
632
+ primaryButton: yr,
633
633
  primaryButtonDisabled: mr
634
- }, Sr = ({
635
- children: C,
636
- disabled: _ = !1,
637
- onClick: S,
638
- className: m = "",
639
- "data-testid": h,
640
- ...T
634
+ }, kr = ({
635
+ children: h,
636
+ disabled: p = !1,
637
+ onClick: C,
638
+ className: _ = "",
639
+ "data-testid": m,
640
+ ...E
641
641
  }) => {
642
642
  const g = [
643
643
  Se.primaryButton,
644
- _ ? Se.primaryButtonDisabled : "",
645
- m
644
+ p ? Se.primaryButtonDisabled : "",
645
+ _
646
+ ].filter(Boolean).join(" ");
647
+ return /* @__PURE__ */ O.jsx(
648
+ "button",
649
+ {
650
+ type: "button",
651
+ className: g,
652
+ disabled: p,
653
+ onClick: C,
654
+ "data-testid": m,
655
+ ...E,
656
+ children: h
657
+ }
658
+ );
659
+ }, gr = "_secondaryButton_172jg_1", hr = "_secondaryButtonDisabled_172jg_33", xe = {
660
+ secondaryButton: gr,
661
+ secondaryButtonDisabled: hr
662
+ }, Dr = ({
663
+ children: h,
664
+ disabled: p = !1,
665
+ onClick: C,
666
+ className: _ = "",
667
+ "data-testid": m,
668
+ ...E
669
+ }) => {
670
+ const g = [
671
+ xe.secondaryButton,
672
+ p ? xe.secondaryButtonDisabled : "",
673
+ _
646
674
  ].filter(Boolean).join(" ");
647
- return /* @__PURE__ */ j.jsx(
675
+ return /* @__PURE__ */ O.jsx(
648
676
  "button",
649
677
  {
650
678
  type: "button",
651
679
  className: g,
652
- disabled: _,
653
- onClick: S,
654
- "data-testid": h,
655
- ...T,
656
- children: C
680
+ disabled: p,
681
+ onClick: C,
682
+ "data-testid": m,
683
+ ...E,
684
+ children: h
657
685
  }
658
686
  );
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
687
+ }, Er = "_tabsContainer_m3c4e_1", Rr = "_tabsHeader_m3c4e_7", Cr = "_tabItem_m3c4e_13", Tr = "_tabContent_m3c4e_29", jr = "_tabLabel_m3c4e_51", Or = "_tabLine_m3c4e_61", Pr = "_active_m3c4e_68", Sr = "_inactive_m3c4e_76", xr = "_tabPanels_m3c4e_84", j = {
688
+ tabsContainer: Er,
689
+ tabsHeader: Rr,
690
+ tabItem: Cr,
691
+ tabContent: Tr,
692
+ tabLabel: jr,
693
+ tabLine: Or,
694
+ active: Pr,
695
+ inactive: Sr,
696
+ tabPanels: xr
697
+ }, Fr = ({
698
+ tabs: h,
699
+ activeTabId: p,
700
+ onTabChange: C,
701
+ className: _ = "",
702
+ "data-testid": m,
703
+ ...E
676
704
  }) => {
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
705
+ var R;
706
+ const g = [j.tabsContainer, _].filter(Boolean).join(" ");
707
+ return /* @__PURE__ */ O.jsxs("div", { className: g, "data-testid": m, ...E, children: [
708
+ /* @__PURE__ */ O.jsx("div", { className: j.tabsHeader, children: h.map((u) => {
709
+ const P = u.id === p, f = [
710
+ j.tabItem,
711
+ P ? j.active : j.inactive
684
712
  ].filter(Boolean).join(" ");
685
- return /* @__PURE__ */ j.jsxs(
713
+ return /* @__PURE__ */ O.jsxs(
686
714
  "button",
687
715
  {
688
716
  type: "button",
689
717
  className: f,
690
- onClick: () => S(u.id),
691
- "data-testid": `${h}-tab-${u.id}`,
718
+ onClick: () => C(u.id),
719
+ "data-testid": `${m}-tab-${u.id}`,
692
720
  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 })
721
+ /* @__PURE__ */ O.jsx("div", { className: j.tabContent, children: /* @__PURE__ */ O.jsx("span", { className: j.tabLabel, children: u.label }) }),
722
+ /* @__PURE__ */ O.jsx("div", { className: j.tabLine })
695
723
  ]
696
724
  },
697
725
  u.id
698
726
  );
699
727
  }) }),
700
- /* @__PURE__ */ j.jsx("div", { className: R.tabPanels, children: (y = C.find((u) => u.id === _)) == null ? void 0 : y.content })
728
+ /* @__PURE__ */ O.jsx("div", { className: j.tabPanels, children: (R = h.find((u) => u.id === p)) == null ? void 0 : R.content })
701
729
  ] });
702
730
  };
703
731
  export {
704
- Sr as PrimaryButton,
705
- xr as Tabs
732
+ kr as PrimaryButton,
733
+ Dr as SecondaryButton,
734
+ Fr as Tabs
706
735
  };
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(T,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],F):(T=typeof globalThis<"u"?globalThis:T||self,F(T.EmporixComponentLibrary={},T.React))})(this,(function(T,F){"use strict";var N={exports:{}},B={};/**
1
+ (function(C,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],B):(C=typeof globalThis<"u"?globalThis:C||self,B(C.EmporixComponentLibrary={},C.React))})(this,(function(C,B){"use strict";var N={exports:{}},L={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var re;function ke(){if(re)return B;re=1;var P=F,_=Symbol.for("react.element"),x=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,g=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0};function E(y,u,j){var f,R={},w=null,M=null;j!==void 0&&(w=""+j),u.key!==void 0&&(w=""+u.key),u.ref!==void 0&&(M=u.ref);for(f in u)m.call(u,f)&&!O.hasOwnProperty(f)&&(R[f]=u[f]);if(y&&y.defaultProps)for(f in u=y.defaultProps,u)R[f]===void 0&&(R[f]=u[f]);return{$$typeof:_,type:y,key:w,ref:M,props:R,_owner:g.current}}return B.Fragment=x,B.jsx=E,B.jsxs=E,B}var $={};/**
9
+ */var re;function De(){if(re)return L;re=1;var g=B,p=Symbol.for("react.element"),P=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,m=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0};function h(R,u,S){var f,O={},w=null,M=null;S!==void 0&&(w=""+S),u.key!==void 0&&(w=""+u.key),u.ref!==void 0&&(M=u.ref);for(f in u)_.call(u,f)&&!E.hasOwnProperty(f)&&(O[f]=u[f]);if(R&&R.defaultProps)for(f in u=R.defaultProps,u)O[f]===void 0&&(O[f]=u[f]);return{$$typeof:p,type:R,key:w,ref:M,props:O,_owner:m.current}}return L.Fragment=P,L.jsx=h,L.jsxs=h,L}var $={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var te;function De(){return te||(te=1,process.env.NODE_ENV!=="production"&&(function(){var P=F,_=Symbol.for("react.element"),x=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ie=Symbol.iterator,Le="@@iterator";function Be(e){if(e===null||typeof e!="object")return null;var r=ie&&e[ie]||e[Le];return typeof r=="function"?r:null}var A=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];$e("error",e,t)}}function $e(e,r,t){{var n=A.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var We=!1,Ye=!1,Ne=!1,Me=!1,Ve=!1,oe;oe=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===O||Ve||e===g||e===j||e===f||Me||e===M||We||Ye||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===R||e.$$typeof===E||e.$$typeof===y||e.$$typeof===u||e.$$typeof===oe||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function se(e){return e.displayName||"Context"}function S(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case x:return"Portal";case O:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return se(r)+".Consumer";case E:var t=e;return se(t._context)+".Provider";case u:return Je(e,e.render,"ForwardRef");case R:var n=e.displayName||null;return n!==null?n:S(e.type)||"Memo";case w:{var o=e,s=o._payload,i=o._init;try{return S(i(s))}catch{return null}}}return null}var k=Object.assign,W=0,ue,le,ce,fe,de,ve,pe;function be(){}be.__reactDisabledLog=!0;function qe(){{if(W===0){ue=console.log,le=console.info,ce=console.warn,fe=console.error,de=console.group,ve=console.groupCollapsed,pe=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})}W++}}function He(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ue}),info:k({},e,{value:le}),warn:k({},e,{value:ce}),error:k({},e,{value:fe}),group:k({},e,{value:de}),groupCollapsed:k({},e,{value:ve}),groupEnd:k({},e,{value:pe})})}W<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=A.ReactCurrentDispatcher,K;function V(e,r,t){{if(K===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);K=n&&n[1]||""}return`
18
- `+K+e}}var G=!1,U;{var Ke=typeof WeakMap=="function"?WeakMap:Map;U=new Ke}function _e(e,r){if(!e||G)return"";{var t=U.get(e);if(t!==void 0)return t}var n;G=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=H.current,H.current=null,qe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(p){n=p}Reflect.construct(e,[],i)}else{try{i.call()}catch(p){n=p}e.call(i.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
17
+ */var te;function Be(){return te||(te=1,process.env.NODE_ENV!=="production"&&(function(){var g=B,p=Symbol.for("react.element"),P=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),R=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ie=Symbol.iterator,$e="@@iterator";function We(e){if(e===null||typeof e!="object")return null;var r=ie&&e[ie]||e[$e];return typeof r=="function"?r:null}var F=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ye("error",e,t)}}function Ye(e,r,t){{var n=F.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var s=t.map(function(o){return String(o)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ne=!1,Me=!1,Ve=!1,Ue=!1,Je=!1,se;se=Symbol.for("react.module.reference");function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===E||Je||e===m||e===S||e===f||Ue||e===M||Ne||Me||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===O||e.$$typeof===h||e.$$typeof===R||e.$$typeof===u||e.$$typeof===se||e.getModuleId!==void 0))}function He(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ue(e){return e.displayName||"Context"}function x(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case P:return"Portal";case E:return"Profiler";case m:return"StrictMode";case S:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ue(r)+".Consumer";case h:var t=e;return ue(t._context)+".Provider";case u:return He(e,e.render,"ForwardRef");case O:var n=e.displayName||null;return n!==null?n:x(e.type)||"Memo";case w:{var i=e,s=i._payload,o=i._init;try{return x(o(s))}catch{return null}}}return null}var k=Object.assign,W=0,ce,le,fe,de,ve,pe,be;function _e(){}_e.__reactDisabledLog=!0;function Ke(){{if(W===0){ce=console.log,le=console.info,fe=console.warn,de=console.error,ve=console.group,pe=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Ge(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ce}),info:k({},e,{value:le}),warn:k({},e,{value:fe}),error:k({},e,{value:de}),group:k({},e,{value:ve}),groupCollapsed:k({},e,{value:pe}),groupEnd:k({},e,{value:be})})}W<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=F.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,U;{var ze=typeof WeakMap=="function"?WeakMap:Map;U=new ze}function ye(e,r){if(!e||G)return"";{var t=U.get(e);if(t!==void 0)return t}var n;G=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=H.current,H.current=null,Ke();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(b){n=b}Reflect.construct(e,[],o)}else{try{o.call()}catch(b){n=b}e.call(o.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
19
19
  `),v=n.stack.split(`
20
- `),l=a.length-1,c=v.length-1;l>=1&&c>=0&&a[l]!==v[c];)c--;for(;l>=1&&c>=0;l--,c--)if(a[l]!==v[c]){if(l!==1||c!==1)do if(l--,c--,c<0||a[l]!==v[c]){var b=`
21
- `+a[l].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,b),b}while(l>=1&&c>=0);break}}}finally{G=!1,H.current=s,He(),Error.prepareStackTrace=o}var L=e?e.displayName||e.name:"",D=L?V(L):"";return typeof e=="function"&&U.set(e,D),D}function Ge(e,r,t){return _e(e,!1)}function ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,ze(e));if(typeof e=="string")return V(e);switch(e){case j:return V("Suspense");case f:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Ge(e.render);case R:return J(e.type,r,t);case w:{var n=e,o=n._payload,s=n._init;try{return J(s(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,me={},ye=A.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function Xe(e,r,t,n,o){{var s=Function.call.bind(Y);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){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`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(q(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),q(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,q(o),d("Failed %s type: %s",t,a.message),q(null))}}}var Ze=Array.isArray;function z(e){return Ze(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function er(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function ge(e){if(er(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),he(e)}var Ee=A.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Re,Te;function tr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){typeof e.ref=="string"&&Ee.current}function ir(e,r){{var t=function(){Re||(Re=!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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function or(e,r){{var t=function(){Te||(Te=!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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var sr=function(e,r,t,n,o,s,i){var a={$$typeof:_,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ur(e,r,t,n,o){{var s,i={},a=null,v=null;t!==void 0&&(ge(t),a=""+t),nr(r)&&(ge(r.key),a=""+r.key),tr(r)&&(v=r.ref,ar(r,o));for(s in r)Y.call(r,s)&&!rr.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||v){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(i,c),v&&or(i,c)}return sr(e,a,v,o,n,Ee.current,i)}}var X=A.ReactCurrentOwner,Ce=A.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);Ce.setExtraStackFrame(t)}else Ce.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function Pe(){{if(X.current){var e=S(X.current.type);if(e)return`
20
+ `),c=a.length-1,l=v.length-1;c>=1&&l>=0&&a[c]!==v[l];)l--;for(;c>=1&&l>=0;c--,l--)if(a[c]!==v[l]){if(c!==1||l!==1)do if(c--,l--,l<0||a[c]!==v[l]){var y=`
21
+ `+a[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,y),y}while(c>=1&&l>=0);break}}}finally{G=!1,H.current=s,Ge(),Error.prepareStackTrace=i}var I=e?e.displayName||e.name:"",D=I?V(I):"";return typeof e=="function"&&U.set(e,D),D}function Xe(e,r,t){return ye(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Ze(e));if(typeof e=="string")return V(e);switch(e){case S:return V("Suspense");case f:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Xe(e.render);case O:return J(e.type,r,t);case w:{var n=e,i=n._payload,s=n._init;try{return J(s(i),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,me={},he=F.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Qe(e,r,t,n,i){{var s=Function.call.bind(Y);for(var o in e)if(s(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var v=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 v.name="Invariant Violation",v}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}a&&!(a instanceof Error)&&(q(i),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,o,typeof a),q(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,q(i),d("Failed %s type: %s",t,a.message),q(null))}}}var er=Array.isArray;function z(e){return er(e)}function rr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function tr(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function Ee(e){if(tr(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rr(e)),ge(e)}var Re=F.ReactCurrentOwner,nr={key:!0,ref:!0,__self:!0,__source:!0},Ce,Te;function ar(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function or(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ir(e,r){typeof e.ref=="string"&&Re.current}function sr(e,r){{var t=function(){Ce||(Ce=!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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ur(e,r){{var t=function(){Te||(Te=!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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var cr=function(e,r,t,n,i,s,o){var a={$$typeof:p,type:e,key:r,ref:t,props:o,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function lr(e,r,t,n,i){{var s,o={},a=null,v=null;t!==void 0&&(Ee(t),a=""+t),or(r)&&(Ee(r.key),a=""+r.key),ar(r)&&(v=r.ref,ir(r,i));for(s in r)Y.call(r,s)&&!nr.hasOwnProperty(s)&&(o[s]=r[s]);if(e&&e.defaultProps){var c=e.defaultProps;for(s in c)o[s]===void 0&&(o[s]=c[s])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&sr(o,l),v&&ur(o,l)}return cr(e,a,v,i,n,Re.current,o)}}var X=F.ReactCurrentOwner,je=F.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function Pe(){{if(X.current){var e=x(X.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function lr(e){return""}var Oe={};function cr(e){{var r=Pe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function fr(e){return""}var Oe={};function dr(e){{var r=Pe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
24
 
25
- Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+S(e._owner.type)+"."),I(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),I(null)}}function Se(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&je(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var o=Be(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)Q(i.value)&&je(i.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===R))t=r.propTypes;else return;if(t){var n=S(r);Xe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var o=S(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}var xe={};function we(e,r,t,n,o,s){{var i=Ue(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=lr();v?a+=v:a+=Pe();var l;e===null?l="null":z(e)?l="array":e!==void 0&&e.$$typeof===_?(l="<"+(S(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)}var c=ur(e,r,t,o,s);if(c==null)return c;if(i){var b=r.children;if(b!==void 0)if(n)if(z(b)){for(var L=0;L<b.length;L++)Se(b[L],e);Object.freeze&&Object.freeze(b)}else 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.");else Se(b,e)}if(Y.call(r,"key")){var D=S(e),p=Object.keys(r).filter(function(yr){return yr!=="key"}),ee=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!xe[D+ee]){var mr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=dr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+x(e._owner.type)+"."),A(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),A(null)}}function xe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&Se(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var i=We(e);if(typeof i=="function"&&i!==e.entries)for(var s=i.call(e),o;!(o=s.next()).done;)Q(o.value)&&Se(o.value,r)}}}function vr(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===u||r.$$typeof===O))t=r.propTypes;else return;if(t){var n=x(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var i=x(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var we={};function ke(e,r,t,n,i,s){{var o=qe(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 v=fr();v?a+=v:a+=Pe();var c;e===null?c="null":z(e)?c="array":e!==void 0&&e.$$typeof===p?(c="<"+(x(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):c=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",c,a)}var l=lr(e,r,t,i,s);if(l==null)return l;if(o){var y=r.children;if(y!==void 0)if(n)if(z(y)){for(var I=0;I<y.length;I++)xe(y[I],e);Object.freeze&&Object.freeze(y)}else 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.");else xe(y,e)}if(Y.call(r,"key")){var D=x(e),b=Object.keys(r).filter(function(gr){return gr!=="key"}),ee=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!we[D+ee]){var hr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ee,D,mr,D),xe[D+ee]=!0}}return e===m?dr(c):fr(c),c}}function vr(e,r,t){return we(e,r,t,!0)}function pr(e,r,t){return we(e,r,t,!1)}var br=pr,_r=vr;$.Fragment=m,$.jsx=br,$.jsxs=_r})()),$}var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV==="production"?N.exports=ke():N.exports=De()),N.exports}var C=Fe();const ae={primaryButton:"_primaryButton_131re_1",primaryButtonDisabled:"_primaryButtonDisabled_131re_33"},Ae=({children:P,disabled:_=!1,onClick:x,className:m="","data-testid":g,...O})=>{const E=[ae.primaryButton,_?ae.primaryButtonDisabled:"",m].filter(Boolean).join(" ");return C.jsx("button",{type:"button",className:E,disabled:_,onClick:x,"data-testid":g,...O,children:P})},h={tabsContainer:"_tabsContainer_m3c4e_1",tabsHeader:"_tabsHeader_m3c4e_7",tabItem:"_tabItem_m3c4e_13",tabContent:"_tabContent_m3c4e_29",tabLabel:"_tabLabel_m3c4e_51",tabLine:"_tabLine_m3c4e_61",active:"_active_m3c4e_68",inactive:"_inactive_m3c4e_76",tabPanels:"_tabPanels_m3c4e_84"},Ie=({tabs:P,activeTabId:_,onTabChange:x,className:m="","data-testid":g,...O})=>{var y;const E=[h.tabsContainer,m].filter(Boolean).join(" ");return C.jsxs("div",{className:E,"data-testid":g,...O,children:[C.jsx("div",{className:h.tabsHeader,children:P.map(u=>{const j=u.id===_,f=[h.tabItem,j?h.active:h.inactive].filter(Boolean).join(" ");return C.jsxs("button",{type:"button",className:f,onClick:()=>x(u.id),"data-testid":`${g}-tab-${u.id}`,children:[C.jsx("div",{className:h.tabContent,children:C.jsx("span",{className:h.tabLabel,children:u.label})}),C.jsx("div",{className:h.tabLine})]},u.id)})}),C.jsx("div",{className:h.tabPanels,children:(y=P.find(u=>u.id===_))==null?void 0:y.content})]})};T.PrimaryButton=Ae,T.Tabs=Ie,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
30
+ <%s key={someKey} {...props} />`,ee,D,hr,D),we[D+ee]=!0}}return e===_?pr(l):vr(l),l}}function br(e,r,t){return ke(e,r,t,!0)}function _r(e,r,t){return ke(e,r,t,!1)}var yr=_r,mr=br;$.Fragment=_,$.jsx=yr,$.jsxs=mr})()),$}var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV==="production"?N.exports=De():N.exports=Be()),N.exports}var T=Fe();const ae={primaryButton:"_primaryButton_131re_1",primaryButtonDisabled:"_primaryButtonDisabled_131re_33"},Ae=({children:g,disabled:p=!1,onClick:P,className:_="","data-testid":m,...E})=>{const h=[ae.primaryButton,p?ae.primaryButtonDisabled:"",_].filter(Boolean).join(" ");return T.jsx("button",{type:"button",className:h,disabled:p,onClick:P,"data-testid":m,...E,children:g})},oe={secondaryButton:"_secondaryButton_172jg_1",secondaryButtonDisabled:"_secondaryButtonDisabled_172jg_33"},Ie=({children:g,disabled:p=!1,onClick:P,className:_="","data-testid":m,...E})=>{const h=[oe.secondaryButton,p?oe.secondaryButtonDisabled:"",_].filter(Boolean).join(" ");return T.jsx("button",{type:"button",className:h,disabled:p,onClick:P,"data-testid":m,...E,children:g})},j={tabsContainer:"_tabsContainer_m3c4e_1",tabsHeader:"_tabsHeader_m3c4e_7",tabItem:"_tabItem_m3c4e_13",tabContent:"_tabContent_m3c4e_29",tabLabel:"_tabLabel_m3c4e_51",tabLine:"_tabLine_m3c4e_61",active:"_active_m3c4e_68",inactive:"_inactive_m3c4e_76",tabPanels:"_tabPanels_m3c4e_84"},Le=({tabs:g,activeTabId:p,onTabChange:P,className:_="","data-testid":m,...E})=>{var R;const h=[j.tabsContainer,_].filter(Boolean).join(" ");return T.jsxs("div",{className:h,"data-testid":m,...E,children:[T.jsx("div",{className:j.tabsHeader,children:g.map(u=>{const S=u.id===p,f=[j.tabItem,S?j.active:j.inactive].filter(Boolean).join(" ");return T.jsxs("button",{type:"button",className:f,onClick:()=>P(u.id),"data-testid":`${m}-tab-${u.id}`,children:[T.jsx("div",{className:j.tabContent,children:T.jsx("span",{className:j.tabLabel,children:u.label})}),T.jsx("div",{className:j.tabLine})]},u.id)})}),T.jsx("div",{className:j.tabPanels,children:(R=g.find(u=>u.id===p))==null?void 0:R.content})]})};C.PrimaryButton=Ae,C.SecondaryButton=Ie,C.Tabs=Le,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- ._primaryButton_131re_1{background:var(--color-primary);border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:#fff;padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease}._primaryButton_131re_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._primaryButton_131re_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #d6e3f5;background:#d6e3f5;opacity:.5}._primaryButton_131re_1:hover{background:var(--color-primary-hover)}._primaryButtonDisabled_131re_33{cursor:not-allowed;opacity:.65}._primaryButtonDisabled_131re_33:hover{transform:none}._tabsContainer_m3c4e_1{display:flex;flex-direction:column;width:100%}._tabsHeader_m3c4e_7{display:flex;align-items:center;gap:0}._tabItem_m3c4e_13{display:flex;flex-direction:column;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit}._tabItem_m3c4e_13:hover ._tabContent_m3c4e_29{background-color:#128afb0d}._tabItem_m3c4e_13:focus{outline:none}._tabItem_m3c4e_13:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}._tabContent_m3c4e_29{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0;transition:background-color .2s ease}._tabLabel_m3c4e_51{font-family:Lato,sans-serif;font-size:var(--font-size-base);line-height:1.5em;text-align:center;font-weight:var(--font-weight-normal);color:var(--color-text-secondary);transition:color .2s ease}._tabLine_m3c4e_61{width:100%;height:2px;background-color:transparent;transition:background-color .2s ease}._active_m3c4e_68 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._active_m3c4e_68 ._tabLine_m3c4e_61{background-color:var(--color-primary)}._inactive_m3c4e_76 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-normal);color:var(--color-text-secondary)}._inactive_m3c4e_76 ._tabLine_m3c4e_61{background-color:var(--color-border-light)}._tabPanels_m3c4e_84{padding:var(--spacing-md) 0;background-color:transparent}*{box-sizing:border-box}:root{--color-primary: #3b73bb;--color-primary-hover: #2665b7;--color-dark: #3e4759;--color-text-primary: #212529;--color-text-secondary: #6c757d;--color-bg-primary: #ffffff;--color-bg-secondary: #f8f9fa;--color-border-light: #e9ecef;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 3rem;--border-radius-sm: .25rem;--border-radius-md: .375rem;--border-radius-lg: .5rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-weight-normal: 400;--font-weight-bold: 700}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text-primary);background-color:var(--color-bg-primary);margin:0;padding:0}
1
+ ._primaryButton_131re_1{background:var(--color-primary);border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:#fff;padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease}._primaryButton_131re_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._primaryButton_131re_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #d6e3f5;background:#d6e3f5;opacity:.5}._primaryButton_131re_1:hover{background:var(--color-primary-hover)}._primaryButtonDisabled_131re_33{cursor:not-allowed;opacity:.65}._primaryButtonDisabled_131re_33:hover{transform:none}._secondaryButton_172jg_1{background:transparent;border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:var(--color-primary);padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease,border-color .3s ease,color .3s ease}._secondaryButton_172jg_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._secondaryButton_172jg_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #d6e3f5;background:transparent;opacity:.5}._secondaryButton_172jg_1:hover{background:#efefef}._secondaryButtonDisabled_172jg_33{cursor:not-allowed;opacity:.65}._secondaryButtonDisabled_172jg_33:hover{transform:none;background:transparent;color:#9cbbe3}._tabsContainer_m3c4e_1{display:flex;flex-direction:column;width:100%}._tabsHeader_m3c4e_7{display:flex;align-items:center;gap:0}._tabItem_m3c4e_13{display:flex;flex-direction:column;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit}._tabItem_m3c4e_13:hover ._tabContent_m3c4e_29{background-color:#128afb0d}._tabItem_m3c4e_13:focus{outline:none}._tabItem_m3c4e_13:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}._tabContent_m3c4e_29{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0;transition:background-color .2s ease}._tabLabel_m3c4e_51{font-family:Lato,sans-serif;font-size:var(--font-size-base);line-height:1.5em;text-align:center;font-weight:var(--font-weight-normal);color:var(--color-text-secondary);transition:color .2s ease}._tabLine_m3c4e_61{width:100%;height:2px;background-color:transparent;transition:background-color .2s ease}._active_m3c4e_68 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._active_m3c4e_68 ._tabLine_m3c4e_61{background-color:var(--color-primary)}._inactive_m3c4e_76 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-normal);color:var(--color-text-secondary)}._inactive_m3c4e_76 ._tabLine_m3c4e_61{background-color:var(--color-border-light)}._tabPanels_m3c4e_84{padding:var(--spacing-md) 0;background-color:transparent}*{box-sizing:border-box}:root{--color-primary: #3b73bb;--color-primary-hover: #2665b7;--color-dark: #3e4759;--color-text-primary: #212529;--color-text-secondary: #6c757d;--color-bg-primary: #ffffff;--color-bg-secondary: #f8f9fa;--color-border-light: #e9ecef;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 3rem;--border-radius-sm: .25rem;--border-radius-md: .375rem;--border-radius-lg: .5rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-weight-normal: 400;--font-weight-bold: 700}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text-primary);background-color:var(--color-bg-primary);margin:0;padding:0}
@@ -0,0 +1,4 @@
1
+ declare module '@emporix/component-library/styles' {
2
+ const styles: string;
3
+ export default styles;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emporix/component-library",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "A React component library for Emporix projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
@@ -20,7 +20,10 @@
20
20
  "import": "./dist/index.es.js",
21
21
  "require": "./dist/index.umd.js"
22
22
  },
23
- "./styles": "./dist/style.css"
23
+ "./styles": {
24
+ "types": "./dist/styles.d.ts",
25
+ "default": "./dist/style.css"
26
+ }
24
27
  },
25
28
  "files": [
26
29
  "dist"
@@ -28,7 +31,7 @@
28
31
  "scripts": {
29
32
  "dev": "vite",
30
33
  "build": "tsc && vite build",
31
- "build:lib": "vite build --mode library",
34
+ "build:lib": "vite build --mode library && node -e \"require('fs').writeFileSync('dist/styles.d.ts', 'declare module \\'@emporix/component-library/styles\\' {\\n const styles: string;\\n export default styles;\\n}\\n')\"",
32
35
  "preview": "vite preview",
33
36
  "test": "vitest",
34
37
  "test:ui": "vitest --ui",