reusify-ui 1.0.5 → 1.0.7

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