jy-headless 0.0.0 → 0.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 Ce from "react";
2
- var V = { exports: {} }, k = {};
1
+ import Se from "react";
2
+ var U = { exports: {} }, I = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -10,20 +10,20 @@ var V = { exports: {} }, k = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var Te;
13
- function lr() {
14
- if (Te) return k;
13
+ function fr() {
14
+ if (Te) return I;
15
15
  Te = 1;
16
- var M = Ce, P = Symbol.for("react.element"), U = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, F = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function w(h, l, T) {
18
- var p, E = {}, y = null, I = null;
19
- T !== void 0 && (y = "" + T), l.key !== void 0 && (y = "" + l.key), l.ref !== void 0 && (I = l.ref);
20
- for (p in l) m.call(l, p) && !A.hasOwnProperty(p) && (E[p] = l[p]);
21
- if (h && h.defaultProps) for (p in l = h.defaultProps, l) E[p] === void 0 && (E[p] = l[p]);
22
- return { $$typeof: P, type: h, key: y, ref: I, props: E, _owner: F.current };
16
+ var y = Se, m = Symbol.for("react.element"), w = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, S = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function D(E, f, C) {
18
+ var p, b = {}, R = null, W = null;
19
+ C !== void 0 && (R = "" + C), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (W = f.ref);
20
+ for (p in f) h.call(f, p) && !P.hasOwnProperty(p) && (b[p] = f[p]);
21
+ if (E && E.defaultProps) for (p in f = E.defaultProps, f) b[p] === void 0 && (b[p] = f[p]);
22
+ return { $$typeof: m, type: E, key: R, ref: W, props: b, _owner: S.current };
23
23
  }
24
- return k.Fragment = U, k.jsx = w, k.jsxs = w, k;
24
+ return I.Fragment = w, I.jsx = D, I.jsxs = D, I;
25
25
  }
26
- var D = {};
26
+ var $ = {};
27
27
  /**
28
28
  * @license React
29
29
  * react-jsx-runtime.development.js
@@ -36,35 +36,35 @@ var D = {};
36
36
  var Oe;
37
37
  function cr() {
38
38
  return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
39
- var M = Ce, P = Symbol.for("react.element"), U = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), H = Symbol.iterator, Pe = "@@iterator";
40
- function we(e) {
39
+ var y = Se, m = Symbol.for("react.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), D = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), H = Symbol.iterator, Pe = "@@iterator";
40
+ function Ce(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
43
  var r = H && e[H] || e[Pe];
44
44
  return typeof r == "function" ? r : null;
45
45
  }
46
- var O = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
46
+ var x = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
47
  function c(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
+ xe("error", e, t);
52
52
  }
53
53
  }
54
- function je(e, r, t) {
54
+ function xe(e, r, t) {
55
55
  {
56
- var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
57
- o !== "" && (r += "%s", t = t.concat([o]));
58
- var u = t.map(function(i) {
59
- return String(i);
56
+ var n = x.ReactDebugCurrentFrame, i = n.getStackAddendum();
57
+ i !== "" && (r += "%s", t = t.concat([i]));
58
+ var u = t.map(function(o) {
59
+ return String(o);
60
60
  });
61
61
  u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
62
62
  }
63
63
  }
64
- var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
64
+ var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
65
65
  Z = Symbol.for("react.module.reference");
66
66
  function Ie(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || Ae || e === F || e === T || e === p || Fe || e === I || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === E || e.$$typeof === w || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === h || e === P || Ae || e === S || e === C || e === p || Fe || e === W || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === D || e.$$typeof === E || e.$$typeof === f || // 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 cr() {
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 Q(e) {
81
81
  return e.displayName || "Context";
82
82
  }
83
- function b(e) {
83
+ function _(e) {
84
84
  if (e == null)
85
85
  return null;
86
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")
@@ -88,36 +88,36 @@ function cr() {
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case m:
91
+ case h:
92
92
  return "Fragment";
93
- case U:
93
+ case w:
94
94
  return "Portal";
95
- case A:
95
+ case P:
96
96
  return "Profiler";
97
- case F:
97
+ case S:
98
98
  return "StrictMode";
99
- case T:
99
+ case C:
100
100
  return "Suspense";
101
101
  case p:
102
102
  return "SuspenseList";
103
103
  }
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
- case h:
106
+ case E:
107
107
  var r = e;
108
108
  return Q(r) + ".Consumer";
109
- case w:
109
+ case D:
110
110
  var t = e;
111
111
  return Q(t._context) + ".Provider";
112
- case l:
112
+ case f:
113
113
  return $e(e, e.render, "ForwardRef");
114
- case E:
114
+ case b:
115
115
  var n = e.displayName || null;
116
- return n !== null ? n : b(e.type) || "Memo";
117
- case y: {
118
- var o = e, u = o._payload, i = o._init;
116
+ return n !== null ? n : _(e.type) || "Memo";
117
+ case R: {
118
+ var i = e, u = i._payload, o = i._init;
119
119
  try {
120
- return b(i(u));
120
+ return _(o(u));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,14 +125,14 @@ function cr() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var R = Object.assign, j = 0, ee, re, te, ne, ae, ie, oe;
128
+ var T = Object.assign, F = 0, ee, re, te, ne, ae, oe, ie;
129
129
  function ue() {
130
130
  }
131
131
  ue.__reactDisabledLog = !0;
132
132
  function We() {
133
133
  {
134
- if (j === 0) {
135
- ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
134
+ if (F === 0) {
135
+ ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
@@ -149,100 +149,100 @@ function cr() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- j++;
152
+ F++;
153
153
  }
154
154
  }
155
155
  function Ye() {
156
156
  {
157
- if (j--, j === 0) {
157
+ if (F--, F === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
161
161
  writable: !0
162
162
  };
163
163
  Object.defineProperties(console, {
164
- log: R({}, e, {
164
+ log: T({}, e, {
165
165
  value: ee
166
166
  }),
167
- info: R({}, e, {
167
+ info: T({}, e, {
168
168
  value: re
169
169
  }),
170
- warn: R({}, e, {
170
+ warn: T({}, e, {
171
171
  value: te
172
172
  }),
173
- error: R({}, e, {
173
+ error: T({}, e, {
174
174
  value: ne
175
175
  }),
176
- group: R({}, e, {
176
+ group: T({}, e, {
177
177
  value: ae
178
178
  }),
179
- groupCollapsed: R({}, e, {
180
- value: ie
181
- }),
182
- groupEnd: R({}, e, {
179
+ groupCollapsed: T({}, e, {
183
180
  value: oe
181
+ }),
182
+ groupEnd: T({}, e, {
183
+ value: ie
184
184
  })
185
185
  });
186
186
  }
187
- j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var N = O.ReactCurrentDispatcher, J;
191
- function $(e, r, t) {
190
+ var N = x.ReactCurrentDispatcher, J;
191
+ function Y(e, r, t) {
192
192
  {
193
193
  if (J === 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
  J = n && n[1] || "";
199
199
  }
200
200
  return `
201
201
  ` + J + e;
202
202
  }
203
203
  }
204
- var q = !1, W;
204
+ var q = !1, M;
205
205
  {
206
- var Le = typeof WeakMap == "function" ? WeakMap : Map;
207
- W = new Le();
206
+ var Me = typeof WeakMap == "function" ? WeakMap : Map;
207
+ M = new Me();
208
208
  }
209
209
  function se(e, r) {
210
210
  if (!e || q)
211
211
  return "";
212
212
  {
213
- var t = W.get(e);
213
+ var t = M.get(e);
214
214
  if (t !== void 0)
215
215
  return t;
216
216
  }
217
217
  var n;
218
218
  q = !0;
219
- var o = Error.prepareStackTrace;
219
+ var i = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
221
  var u;
222
222
  u = N.current, N.current = null, We();
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, []);
234
+ Reflect.construct(o, []);
235
235
  } catch (v) {
236
236
  n = v;
237
237
  }
238
- Reflect.construct(e, [], i);
238
+ Reflect.construct(e, [], o);
239
239
  } else {
240
240
  try {
241
- i.call();
241
+ o.call();
242
242
  } catch (v) {
243
243
  n = v;
244
244
  }
245
- e.call(i.prototype);
245
+ e.call(o.prototype);
246
246
  }
247
247
  } else {
248
248
  try {
@@ -256,87 +256,87 @@ function cr() {
256
256
  if (v && n && typeof v.stack == "string") {
257
257
  for (var a = v.stack.split(`
258
258
  `), d = n.stack.split(`
259
- `), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
260
- f--;
261
- for (; s >= 1 && f >= 0; s--, f--)
262
- if (a[s] !== d[f]) {
263
- if (s !== 1 || f !== 1)
259
+ `), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
260
+ l--;
261
+ for (; s >= 1 && l >= 0; s--, l--)
262
+ if (a[s] !== d[l]) {
263
+ if (s !== 1 || l !== 1)
264
264
  do
265
- if (s--, f--, f < 0 || a[s] !== d[f]) {
265
+ if (s--, l--, l < 0 || a[s] !== d[l]) {
266
266
  var g = `
267
267
  ` + a[s].replace(" at new ", " at ");
268
- return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, g), g;
268
+ return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, g), g;
269
269
  }
270
- while (s >= 1 && f >= 0);
270
+ while (s >= 1 && l >= 0);
271
271
  break;
272
272
  }
273
273
  }
274
274
  } finally {
275
- q = !1, N.current = u, Ye(), Error.prepareStackTrace = o;
275
+ q = !1, N.current = u, Ye(), Error.prepareStackTrace = i;
276
276
  }
277
- var C = e ? e.displayName || e.name : "", _ = C ? $(C) : "";
278
- return typeof e == "function" && W.set(e, _), _;
277
+ var k = e ? e.displayName || e.name : "", O = k ? Y(k) : "";
278
+ return typeof e == "function" && M.set(e, O), O;
279
279
  }
280
280
  function Ve(e, r, t) {
281
281
  return se(e, !1);
282
282
  }
283
- function Me(e) {
283
+ function Le(e) {
284
284
  var r = e.prototype;
285
285
  return !!(r && r.isReactComponent);
286
286
  }
287
- function Y(e, r, t) {
287
+ function V(e, r, t) {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return se(e, Me(e));
291
+ return se(e, Le(e));
292
292
  if (typeof e == "string")
293
- return $(e);
293
+ return Y(e);
294
294
  switch (e) {
295
- case T:
296
- return $("Suspense");
295
+ case C:
296
+ return Y("Suspense");
297
297
  case p:
298
- return $("SuspenseList");
298
+ return Y("SuspenseList");
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
- case l:
302
+ case f:
303
303
  return Ve(e.render);
304
- case E:
305
- return Y(e.type, r, t);
306
- case y: {
307
- var n = e, o = n._payload, u = n._init;
304
+ case b:
305
+ return V(e.type, r, t);
306
+ case R: {
307
+ var n = e, i = n._payload, u = n._init;
308
308
  try {
309
- return Y(u(o), r, t);
309
+ return V(u(i), r, t);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var x = Object.prototype.hasOwnProperty, fe = {}, le = O.ReactDebugCurrentFrame;
316
+ var A = Object.prototype.hasOwnProperty, le = {}, fe = x.ReactDebugCurrentFrame;
317
317
  function L(e) {
318
318
  if (e) {
319
- var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
320
- le.setExtraStackFrame(t);
319
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
320
+ fe.setExtraStackFrame(t);
321
321
  } else
322
- le.setExtraStackFrame(null);
322
+ fe.setExtraStackFrame(null);
323
323
  }
324
- function Ue(e, r, t, n, o) {
324
+ function Ue(e, r, t, n, i) {
325
325
  {
326
- var u = Function.call.bind(x);
327
- for (var i in e)
328
- if (u(e, i)) {
326
+ var u = Function.call.bind(A);
327
+ for (var o in e)
328
+ if (u(e, o)) {
329
329
  var a = void 0;
330
330
  try {
331
- if (typeof e[i] != "function") {
332
- var d = 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 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
333
  throw d.name = "Invariant Violation", d;
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 (s) {
337
337
  a = s;
338
338
  }
339
- a && !(a instanceof Error) && (L(o), 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, i, typeof a), L(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null));
339
+ a && !(a instanceof Error) && (L(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), L(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, L(i), c("Failed %s type: %s", t, a.message), L(null));
340
340
  }
341
341
  }
342
342
  }
@@ -364,29 +364,29 @@ function cr() {
364
364
  if (qe(e))
365
365
  return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ce(e);
366
366
  }
367
- var ve = O.ReactCurrentOwner, Be = {
367
+ var ve = x.ReactCurrentOwner, Be = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
372
  }, pe, ge;
373
- function Ke(e) {
374
- if (x.call(e, "ref")) {
373
+ function ze(e) {
374
+ if (A.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 (x.call(e, "key")) {
381
+ function Ke(e) {
382
+ if (A.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 Ge(e, r) {
390
390
  typeof e.ref == "string" && ve.current;
391
391
  }
392
392
  function Xe(e, r) {
@@ -411,15 +411,15 @@ function cr() {
411
411
  });
412
412
  }
413
413
  }
414
- var Ze = function(e, r, t, n, o, u, i) {
414
+ var Ze = function(e, r, t, n, i, u, o) {
415
415
  var a = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
- $$typeof: P,
417
+ $$typeof: m,
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: u
425
425
  };
@@ -437,44 +437,44 @@ function cr() {
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 Qe(e, r, t, n, o) {
443
+ function Qe(e, r, t, n, i) {
444
444
  {
445
- var u, i = {}, a = null, d = null;
446
- t !== void 0 && (de(t), a = "" + t), Ge(r) && (de(r.key), a = "" + r.key), Ke(r) && (d = r.ref, ze(r, o));
445
+ var u, o = {}, a = null, d = null;
446
+ t !== void 0 && (de(t), a = "" + t), Ke(r) && (de(r.key), a = "" + r.key), ze(r) && (d = r.ref, Ge(r, i));
447
447
  for (u in r)
448
- x.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]);
448
+ A.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
449
449
  if (e && e.defaultProps) {
450
450
  var s = e.defaultProps;
451
451
  for (u in s)
452
- i[u] === void 0 && (i[u] = s[u]);
452
+ o[u] === void 0 && (o[u] = s[u]);
453
453
  }
454
454
  if (a || d) {
455
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- a && Xe(i, f), d && He(i, f);
455
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ a && Xe(o, l), d && He(o, l);
457
457
  }
458
- return Ze(e, a, d, o, n, ve.current, i);
458
+ return Ze(e, a, d, i, n, ve.current, o);
459
459
  }
460
460
  }
461
- var K = O.ReactCurrentOwner, Ee = O.ReactDebugCurrentFrame;
462
- function S(e) {
461
+ var z = x.ReactCurrentOwner, ye = x.ReactDebugCurrentFrame;
462
+ function j(e) {
463
463
  if (e) {
464
- var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
465
- Ee.setExtraStackFrame(t);
464
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
465
+ ye.setExtraStackFrame(t);
466
466
  } else
467
- Ee.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 === P;
469
+ var K;
470
+ K = !1;
471
+ function G(e) {
472
+ return typeof e == "object" && e !== null && e.$$typeof === m;
473
473
  }
474
474
  function be() {
475
475
  {
476
- if (K.current) {
477
- var e = b(K.current.type);
476
+ if (z.current) {
477
+ var e = _(z.current.type);
478
478
  if (e)
479
479
  return `
480
480
 
@@ -499,7 +499,7 @@ Check the top-level render call using <` + t + ">.");
499
499
  return r;
500
500
  }
501
501
  }
502
- function ye(e, r) {
502
+ function _e(e, r) {
503
503
  {
504
504
  if (!e._store || e._store.validated || e.key != null)
505
505
  return;
@@ -509,25 +509,25 @@ Check the top-level render call using <` + t + ">.");
509
509
  return;
510
510
  he[t] = !0;
511
511
  var n = "";
512
- e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + b(e._owner.type) + "."), S(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), S(null);
512
+ e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + _(e._owner.type) + "."), j(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), j(null);
513
513
  }
514
514
  }
515
- function Re(e, r) {
515
+ function me(e, r) {
516
516
  {
517
517
  if (typeof e != "object")
518
518
  return;
519
519
  if (B(e))
520
520
  for (var t = 0; t < e.length; t++) {
521
521
  var n = e[t];
522
- z(n) && ye(n, r);
522
+ G(n) && _e(n, r);
523
523
  }
524
- else if (z(e))
524
+ else if (G(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
- var o = we(e);
528
- if (typeof o == "function" && o !== e.entries)
529
- for (var u = o.call(e), i; !(i = u.next()).done; )
530
- z(i.value) && ye(i.value, r);
527
+ var i = Ce(e);
528
+ if (typeof i == "function" && i !== e.entries)
529
+ for (var u = i.call(e), o; !(o = u.next()).done; )
530
+ G(o.value) && _e(o.value, r);
531
531
  }
532
532
  }
533
533
  }
@@ -539,19 +539,19 @@ 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 === l || // Note: Memo only checks outer props here.
542
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
- r.$$typeof === E))
544
+ r.$$typeof === b))
545
545
  t = r.propTypes;
546
546
  else
547
547
  return;
548
548
  if (t) {
549
- var n = b(r);
549
+ var n = _(r);
550
550
  Ue(t, e.props, "prop", n, e);
551
- } else if (r.PropTypes !== void 0 && !G) {
552
- G = !0;
553
- var o = b(r);
554
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
551
+ } else if (r.PropTypes !== void 0 && !K) {
552
+ K = !0;
553
+ var i = _(r);
554
+ c("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 && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
@@ -561,75 +561,110 @@ Check the top-level render call using <` + t + ">.");
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
- S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
564
+ j(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
565
565
  break;
566
566
  }
567
567
  }
568
- e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
568
+ e.ref !== null && (j(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
569
569
  }
570
570
  }
571
- var _e = {};
572
- function me(e, r, t, n, o, u) {
571
+ var Ee = {};
572
+ function Re(e, r, t, n, i, u) {
573
573
  {
574
- var i = Ie(e);
575
- if (!i) {
574
+ var o = Ie(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
578
  var d = er();
579
579
  d ? a += d : a += be();
580
580
  var s;
581
- e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === P ? (s = "<" + (b(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);
581
+ e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === m ? (s = "<" + (_(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);
582
582
  }
583
- var f = Qe(e, r, t, o, u);
584
- if (f == null)
585
- return f;
586
- if (i) {
583
+ var l = Qe(e, r, t, i, u);
584
+ if (l == null)
585
+ return l;
586
+ if (o) {
587
587
  var g = r.children;
588
588
  if (g !== void 0)
589
589
  if (n)
590
590
  if (B(g)) {
591
- for (var C = 0; C < g.length; C++)
592
- Re(g[C], e);
591
+ for (var k = 0; k < g.length; k++)
592
+ me(g[k], e);
593
593
  Object.freeze && Object.freeze(g);
594
594
  } else
595
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.");
596
596
  else
597
- Re(g, e);
597
+ me(g, e);
598
598
  }
599
- if (x.call(r, "key")) {
600
- var _ = b(e), v = Object.keys(r).filter(function(fr) {
601
- return fr !== "key";
599
+ if (A.call(r, "key")) {
600
+ var O = _(e), v = Object.keys(r).filter(function(lr) {
601
+ return lr !== "key";
602
602
  }), X = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!_e[_ + X]) {
603
+ if (!Ee[O + X]) {
604
604
  var sr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
605
605
  c(`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, _, sr, _), _e[_ + X] = !0;
610
+ <%s key={someKey} {...props} />`, X, O, sr, O), Ee[O + X] = !0;
611
611
  }
612
612
  }
613
- return e === m ? nr(f) : tr(f), f;
613
+ return e === h ? nr(l) : tr(l), l;
614
614
  }
615
615
  }
616
616
  function ar(e, r, t) {
617
- return me(e, r, t, !0);
617
+ return Re(e, r, t, !0);
618
618
  }
619
- function ir(e, r, t) {
620
- return me(e, r, t, !1);
619
+ function or(e, r, t) {
620
+ return Re(e, r, t, !1);
621
621
  }
622
- var or = ir, ur = ar;
623
- D.Fragment = m, D.jsx = or, D.jsxs = ur;
624
- }()), D;
622
+ var ir = or, ur = ar;
623
+ $.Fragment = h, $.jsx = ir, $.jsxs = ur;
624
+ }()), $;
625
625
  }
626
- var Se;
626
+ var we;
627
627
  function dr() {
628
- return Se || (Se = 1, process.env.NODE_ENV === "production" ? V.exports = lr() : V.exports = cr()), V.exports;
628
+ return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports = fr() : U.exports = cr()), U.exports;
629
629
  }
630
630
  var vr = dr();
631
- const gr = () => /* @__PURE__ */ vr.jsx("button", { children: " test " });
631
+ const br = ({
632
+ children: y,
633
+ additionalClass: m,
634
+ className: w,
635
+ size: h = "md",
636
+ ...S
637
+ }) => {
638
+ const P = () => {
639
+ switch (h) {
640
+ case "sm":
641
+ return "text-sm py-2 px-3 shadow-md";
642
+ case "md":
643
+ return "text-md py-3 px-7 shadow-md";
644
+ case "lg":
645
+ return "text-lg py-3 px-10 shadow-lg";
646
+ }
647
+ };
648
+ return /* @__PURE__ */ vr.jsx(
649
+ "button",
650
+ {
651
+ ...S,
652
+ className: w || `${P()} rounded-md font-bold bg-white hover:bg-gray-100 active:gray-200
653
+ active:shadow-inner disabled:shadow-none disabled:bg-gray-200 disabled:text-gray-400
654
+ ${m}`,
655
+ children: y
656
+ }
657
+ );
658
+ }, hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
659
+ __proto__: null
660
+ }, Symbol.toStringTag, { value: "Module" })), pr = (y) => y && y.length > 0, gr = (y) => !y || y.length <= 0, _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
661
+ __proto__: null,
662
+ hasValue: pr,
663
+ isEmpty: gr
664
+ }, Symbol.toStringTag, { value: "Module" }));
632
665
  export {
633
- gr as CommonButton
666
+ _r as ArrayUtils,
667
+ br as CommonButton,
668
+ hr as Types
634
669
  };
635
670
  //# sourceMappingURL=index.es.js.map