@bhoimayur/testnpm 1.0.17 → 1.0.18

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