@bhoimayur/testnpm 1.0.7 → 1.0.9
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.js +631 -0
- package/dist/index.umd.cjs +14 -0
- package/package.json +11 -13
- package/dist/index.mjs +0 -280
- package/dist/index.umd.js +0 -6
- package/src/CustomButton.jsx +0 -18
- package/src/index.js +0 -1
- package/vite.config.js +0 -16
package/dist/index.js
ADDED
|
@@ -0,0 +1,631 @@
|
|
|
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 };
|
|
14
|
+
}
|
|
15
|
+
return D.Fragment = U, D.jsx = x, D.jsxs = x, D;
|
|
16
|
+
}
|
|
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;
|
|
72
|
+
switch (e) {
|
|
73
|
+
case m:
|
|
74
|
+
return "Fragment";
|
|
75
|
+
case U:
|
|
76
|
+
return "Portal";
|
|
77
|
+
case I:
|
|
78
|
+
return "Profiler";
|
|
79
|
+
case A:
|
|
80
|
+
return "StrictMode";
|
|
81
|
+
case T:
|
|
82
|
+
return "Suspense";
|
|
83
|
+
case p:
|
|
84
|
+
return "SuspenseList";
|
|
85
|
+
}
|
|
86
|
+
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;
|
|
101
|
+
try {
|
|
102
|
+
return h(i(u));
|
|
103
|
+
} catch {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
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();
|
|
190
|
+
}
|
|
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();
|
|
205
|
+
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
|
+
}
|
|
323
|
+
}
|
|
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;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
function qe(e) {
|
|
336
|
+
try {
|
|
337
|
+
return ce(e), !1;
|
|
338
|
+
} catch {
|
|
339
|
+
return !0;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
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);
|
|
348
|
+
}
|
|
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;
|
|
362
|
+
}
|
|
363
|
+
function Ge(e) {
|
|
364
|
+
if (k.call(e, "key")) {
|
|
365
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
366
|
+
if (r && r.isReactWarning)
|
|
367
|
+
return !1;
|
|
368
|
+
}
|
|
369
|
+
return e.key !== void 0;
|
|
370
|
+
}
|
|
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
|
+
});
|
|
394
|
+
}
|
|
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
|
|
401
|
+
type: e,
|
|
402
|
+
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", {
|
|
409
|
+
configurable: !1,
|
|
410
|
+
enumerable: !1,
|
|
411
|
+
writable: !0,
|
|
412
|
+
value: !1
|
|
413
|
+
}), Object.defineProperty(a, "_self", {
|
|
414
|
+
configurable: !1,
|
|
415
|
+
enumerable: !1,
|
|
416
|
+
writable: !1,
|
|
417
|
+
value: n
|
|
418
|
+
}), Object.defineProperty(a, "_source", {
|
|
419
|
+
configurable: !1,
|
|
420
|
+
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:
|
|
588
|
+
let props = %s;
|
|
589
|
+
<%s {...props} />
|
|
590
|
+
React keys must be passed directly to JSX without using spread:
|
|
591
|
+
let props = %s;
|
|
592
|
+
<%s key={someKey} {...props} />`, X, _, sr, _), _e[_ + X] = !0;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return e === m ? nr(l) : tr(l), l;
|
|
596
|
+
}
|
|
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;
|
|
607
|
+
}
|
|
608
|
+
var Ce;
|
|
609
|
+
function dr() {
|
|
610
|
+
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? V.exports = fr() : V.exports = cr()), V.exports;
|
|
611
|
+
}
|
|
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
|
+
);
|
|
628
|
+
}
|
|
629
|
+
export {
|
|
630
|
+
gr as CustomButton
|
|
631
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
(function(h,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],T):(h=typeof globalThis<"u"?globalThis:h||self,T(h.MyButtonLib={},h.require$$0))})(this,(function(h,T){"use strict";var W={exports:{}},x={};var Q;function we(){if(Q)return x;Q=1;var k=T,D=Symbol.for("react.element"),B=Symbol.for("react.fragment"),O=Object.prototype.hasOwnProperty,Y=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function F(E,l,S){var p,g={},R=null,M=null;S!==void 0&&(R=""+S),l.key!==void 0&&(R=""+l.key),l.ref!==void 0&&(M=l.ref);for(p in l)O.call(l,p)&&!$.hasOwnProperty(p)&&(g[p]=l[p]);if(E&&E.defaultProps)for(p in l=E.defaultProps,l)g[p]===void 0&&(g[p]=l[p]);return{$$typeof:D,type:E,key:R,ref:M,props:g,_owner:Y.current}}return x.Fragment=B,x.jsx=F,x.jsxs=F,x}var j={};var ee;function xe(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&(function(){var k=T,D=Symbol.for("react.element"),B=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),E=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),R=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 C=k.__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=C.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,Me=!1,Le=!1,ne;ne=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===O||e===$||Le||e===Y||e===S||e===p||Me||e===M||We||Ye||$e||typeof e=="object"&&e!==null&&(e.$$typeof===R||e.$$typeof===g||e.$$typeof===F||e.$$typeof===E||e.$$typeof===l||e.$$typeof===ne||e.getModuleId!==void 0))}function Ue(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 y(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 O:return"Fragment";case B:return"Portal";case $:return"Profiler";case Y:return"StrictMode";case S:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return ae(r)+".Consumer";case F:var t=e;return ae(t._context)+".Provider";case l:return Ue(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case R:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var _=Object.assign,A=0,ie,oe,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ne(){{if(A===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})}A++}}function Be(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:ie}),info:_({},e,{value:oe}),warn:_({},e,{value:ue}),error:_({},e,{value:se}),group:_({},e,{value:fe}),groupCollapsed:_({},e,{value:le}),groupEnd:_({},e,{value:ce})})}A<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.ReactCurrentDispatcher,q;function L(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`
|
|
2
|
+
`+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(`
|
|
3
|
+
`),d=n.stack.split(`
|
|
4
|
+
`),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 b=`
|
|
5
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,b),b}while(s>=1&&f>=0);break}}}finally{K=!1,J.current=u,Be(),Error.prepareStackTrace=o}var w=e?e.displayName||e.name:"",m=w?L(w):"";return typeof e=="function"&&V.set(e,m),m}function qe(e,r,t){return ve(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Ke(e));if(typeof e=="string")return L(e);switch(e){case S:return L("Suspense");case p:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return qe(e.render);case g:return U(e.type,r,t);case R:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,pe={},be=C.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function Ge(e,r,t,n,o){{var u=Function.call.bind(I);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)&&(N(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),N(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,N(o),c("Failed %s type: %s",t,a.message),N(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 ye(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=C.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Ee,Re;function Qe(e){if(I.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(I.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(){Ee||(Ee=!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(){Re||(Re=!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:D,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&&(ye(t),a=""+t),er(r)&&(ye(r.key),a=""+r.key),Qe(r)&&(d=r.ref,rr(r,o));for(u in r)I.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=C.ReactCurrentOwner,_e=C.ReactDebugCurrentFrame;function P(e){if(e){var r=e._owner,t=U(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===D}function me(){{if(z.current){var e=y(z.current.type);if(e)return`
|
|
6
|
+
|
|
7
|
+
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=`
|
|
8
|
+
|
|
9
|
+
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 "+y(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)}}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=y(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=y(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"){P(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),P(null);break}}e.ref!==null&&(P(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),P(null))}}var Ce={};function Pe(e,r,t,n,o,u){{var i=Ve(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===D?(s="<"+(y(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 b=r.children;if(b!==void 0)if(n)if(G(b)){for(var w=0;w<b.length;w++)Se(b[w],e);Object.freeze&&Object.freeze(b)}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(b,e)}if(I.call(r,"key")){var m=y(e),v=Object.keys(r).filter(function(br){return br!=="key"}),Z=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[m+Z]){var pr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
10
|
+
let props = %s;
|
|
11
|
+
<%s {...props} />
|
|
12
|
+
React keys must be passed directly to JSX without using spread:
|
|
13
|
+
let props = %s;
|
|
14
|
+
<%s key={someKey} {...props} />`,Z,m,pr,m),Ce[m+Z]=!0}}return e===O?fr(f):sr(f),f}}function lr(e,r,t){return Pe(e,r,t,!0)}function cr(e,r,t){return Pe(e,r,t,!1)}var dr=cr,vr=lr;j.Fragment=O,j.jsx=dr,j.jsxs=vr})()),j}var re;function je(){return re||(re=1,process.env.NODE_ENV==="production"?W.exports=we():W.exports=xe()),W.exports}var ke=je();function De({text:k="Click Me"}){return ke.jsx("button",{style:{padding:"10px 20px",background:"#2563eb",color:"white",border:"none",borderRadius:"6px",cursor:"pointer"},children:k})}h.CustomButton=De,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhoimayur/testnpm",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"type": "
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"module": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "vite build"
|
|
12
12
|
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"react": "^19.2.4",
|
|
15
|
-
"react-dom": "^19.2.4"
|
|
16
|
-
},
|
|
17
13
|
"peerDependencies": {
|
|
18
|
-
"react": "
|
|
19
|
-
"react-dom": "
|
|
14
|
+
"react": ">=17",
|
|
15
|
+
"react-dom": ">=17"
|
|
20
16
|
},
|
|
21
17
|
"devDependencies": {
|
|
18
|
+
"react": "^18.2.0",
|
|
19
|
+
"react-dom": "^18.2.0",
|
|
22
20
|
"@vitejs/plugin-react": "^5.1.4",
|
|
23
21
|
"vite": "^7.3.1"
|
|
24
22
|
}
|
package/dist/index.mjs
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import K from "react";
|
|
2
|
-
var p = { 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
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
|
|
24
|
-
}
|
|
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;
|
|
34
|
-
switch (e) {
|
|
35
|
-
case v:
|
|
36
|
-
return "Fragment";
|
|
37
|
-
case U:
|
|
38
|
-
return "Profiler";
|
|
39
|
-
case W:
|
|
40
|
-
return "StrictMode";
|
|
41
|
-
case z:
|
|
42
|
-
return "Suspense";
|
|
43
|
-
case G:
|
|
44
|
-
return "SuspenseList";
|
|
45
|
-
case B:
|
|
46
|
-
return "Activity";
|
|
47
|
-
}
|
|
48
|
-
if (typeof e == "object")
|
|
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;
|
|
65
|
-
try {
|
|
66
|
-
return u(e(r));
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
function E(e) {
|
|
73
|
-
return "" + e;
|
|
74
|
-
}
|
|
75
|
-
function c(e) {
|
|
76
|
-
try {
|
|
77
|
-
E(e);
|
|
78
|
-
var r = !1;
|
|
79
|
-
} catch {
|
|
80
|
-
r = !0;
|
|
81
|
-
}
|
|
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);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function i(e) {
|
|
93
|
-
if (e === v) return "<>";
|
|
94
|
-
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
95
|
-
return "<...>";
|
|
96
|
-
try {
|
|
97
|
-
var r = u(e);
|
|
98
|
-
return r ? "<" + r + ">" : "<...>";
|
|
99
|
-
} catch {
|
|
100
|
-
return "<...>";
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function o() {
|
|
104
|
-
var e = k.A;
|
|
105
|
-
return e === null ? null : e.getOwner();
|
|
106
|
-
}
|
|
107
|
-
function s() {
|
|
108
|
-
return Error("react-stack-top-frame");
|
|
109
|
-
}
|
|
110
|
-
function f(e) {
|
|
111
|
-
if (g.call(e, "key")) {
|
|
112
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
|
-
if (r && r.isReactWarning) return !1;
|
|
114
|
-
}
|
|
115
|
-
return e.key !== void 0;
|
|
116
|
-
}
|
|
117
|
-
function d(e, r) {
|
|
118
|
-
function t() {
|
|
119
|
-
j || (j = !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
|
-
));
|
|
123
|
-
}
|
|
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, R, A) {
|
|
136
|
-
var a = t.ref;
|
|
137
|
-
return e = {
|
|
138
|
-
$$typeof: y,
|
|
139
|
-
type: e,
|
|
140
|
-
key: r,
|
|
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", {
|
|
147
|
-
configurable: !1,
|
|
148
|
-
enumerable: !1,
|
|
149
|
-
writable: !0,
|
|
150
|
-
value: 0
|
|
151
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
152
|
-
configurable: !1,
|
|
153
|
-
enumerable: !1,
|
|
154
|
-
writable: !0,
|
|
155
|
-
value: null
|
|
156
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
157
|
-
configurable: !1,
|
|
158
|
-
enumerable: !1,
|
|
159
|
-
writable: !0,
|
|
160
|
-
value: R
|
|
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 S(e, r, t, n, R, 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
|
-
P(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 P(a);
|
|
181
|
-
if (g.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:
|
|
188
|
-
let props = %s;
|
|
189
|
-
<%s {...props} />
|
|
190
|
-
React keys must be passed directly to JSX without using spread:
|
|
191
|
-
let props = %s;
|
|
192
|
-
<%s key={someKey} {...props} />`,
|
|
193
|
-
n,
|
|
194
|
-
a,
|
|
195
|
-
l,
|
|
196
|
-
a
|
|
197
|
-
), Y[a + n] = !0);
|
|
198
|
-
}
|
|
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 x in r)
|
|
202
|
-
x !== "key" && (t[x] = r[x]);
|
|
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
|
-
R,
|
|
213
|
-
A
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
function P(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 === y;
|
|
221
|
-
}
|
|
222
|
-
var b = K, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), L = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__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 = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
223
|
-
return null;
|
|
224
|
-
};
|
|
225
|
-
b = {
|
|
226
|
-
react_stack_bottom_frame: function(e) {
|
|
227
|
-
return e();
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
var j, h = {}, N = b.react_stack_bottom_frame.bind(
|
|
231
|
-
b,
|
|
232
|
-
s
|
|
233
|
-
)(), C = O(i(s)), Y = {};
|
|
234
|
-
_.Fragment = v, _.jsx = function(e, r, t) {
|
|
235
|
-
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
236
|
-
return S(
|
|
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 S(
|
|
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
|
-
})()), _;
|
|
256
|
-
}
|
|
257
|
-
var F;
|
|
258
|
-
function te() {
|
|
259
|
-
return F || (F = 1, process.env.NODE_ENV === "production" ? p.exports = ee() : p.exports = re()), p.exports;
|
|
260
|
-
}
|
|
261
|
-
var ne = te();
|
|
262
|
-
function oe({ text: u = "Click Me" }) {
|
|
263
|
-
return /* @__PURE__ */ ne.jsx(
|
|
264
|
-
"button",
|
|
265
|
-
{
|
|
266
|
-
style: {
|
|
267
|
-
padding: "10px 20px",
|
|
268
|
-
background: "#2563eb",
|
|
269
|
-
color: "white",
|
|
270
|
-
border: "none",
|
|
271
|
-
borderRadius: "6px",
|
|
272
|
-
cursor: "pointer"
|
|
273
|
-
},
|
|
274
|
-
children: u
|
|
275
|
-
}
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
export {
|
|
279
|
-
oe as CustomButton
|
|
280
|
-
};
|
package/dist/index.umd.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
(function(l,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],i):(l=typeof globalThis<"u"?globalThis:l||self,i(l.MyButtonLib={},l.require$$0))})(this,(function(l,i){"use strict";var p={exports:{}},f={};var P;function L(){if(P)return f;P=1;var s=Symbol.for("react.transitional.element"),R=Symbol.for("react.fragment");function m(_,a,u){var E=null;if(u!==void 0&&(E=""+u),a.key!==void 0&&(E=""+a.key),"key"in a){u={};for(var b in a)b!=="key"&&(u[b]=a[b])}else u=a;return a=u.ref,{$$typeof:s,type:_,key:E,ref:a!==void 0?a:null,props:u}}return f.Fragment=R,f.jsx=m,f.jsxs=m,f}var d={};var h;function W(){return h||(h=1,process.env.NODE_ENV!=="production"&&(function(){function s(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case X:return"Profiler";case B:return"StrictMode";case K:return"Suspense";case ee:return"SuspenseList";case te: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 G:return"Portal";case Z:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case Q:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return r=e.displayName||null,r!==null?r:s(e.type)||"Memo";case O:r=e._payload,e=e._init;try{return s(e(r))}catch{}}return null}function R(e){return""+e}function m(e){try{R(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),R(e)}}function _(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===O)return"<...>";try{var r=s(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=y.A;return e===null?null:e.getOwner()}function u(){return Error("react-stack-top-frame")}function E(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 b(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=s(this.type);return I[e]||(I[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 z(e,r,t,n,T,x){var o=t.ref;return e={$$typeof:C,type:e,key:r,props:t,_owner:n},(o!==void 0?o: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:T}),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,T,x){var o=r.children;if(o!==void 0)if(n)if(oe(o)){for(n=0;n<o.length;n++)g(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 g(o);if(Y.call(r,"key")){o=s(e);var c=Object.keys(r).filter(function(ae){return ae!=="key"});n=0<c.length?"{key: someKey, "+c.join(": ..., ")+": ...}":"{key: someKey}",D[o+n]||(c=0<c.length?"{"+c.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
-
let props = %s;
|
|
3
|
-
<%s {...props} />
|
|
4
|
-
React keys must be passed directly to JSX without using spread:
|
|
5
|
-
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,n,o,c,o),D[o+n]=!0)}if(o=null,t!==void 0&&(m(t),o=""+t),E(r)&&(m(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&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),z(e,o,t,a(),T,x)}function g(e){N(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===O&&(e._payload.status==="fulfilled"?N(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}var v=i,C=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ne=Symbol.for("react.client.reference"),y=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,oe=Array.isArray,S=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var $,I={},F=v.react_stack_bottom_frame.bind(v,u)(),M=S(_(u)),D={};d.Fragment=k,d.jsx=function(e,r,t){var n=1e4>y.recentlyCreatedOwnerStacks++;return w(e,r,t,!1,n?Error("react-stack-top-frame"):F,n?S(_(e)):M)},d.jsxs=function(e,r,t){var n=1e4>y.recentlyCreatedOwnerStacks++;return w(e,r,t,!0,n?Error("react-stack-top-frame"):F,n?S(_(e)):M)}})()),d}var j;function U(){return j||(j=1,process.env.NODE_ENV==="production"?p.exports=L():p.exports=W()),p.exports}var q=U();function J({text:s="Click Me"}){return q.jsx("button",{style:{padding:"10px 20px",background:"#2563eb",color:"white",border:"none",borderRadius:"6px",cursor:"pointer"},children:s})}l.CustomButton=J,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|
package/src/CustomButton.jsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
export default function CustomButton({ text = "Click Me" }) {
|
|
4
|
-
return (
|
|
5
|
-
<button
|
|
6
|
-
style={{
|
|
7
|
-
padding: "10px 20px",
|
|
8
|
-
background: "#2563eb",
|
|
9
|
-
color: "white",
|
|
10
|
-
border: "none",
|
|
11
|
-
borderRadius: "6px",
|
|
12
|
-
cursor: "pointer"
|
|
13
|
-
}}
|
|
14
|
-
>
|
|
15
|
-
{text}
|
|
16
|
-
</button>
|
|
17
|
-
);
|
|
18
|
-
}
|
package/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CustomButton } from "./CustomButton";
|
package/vite.config.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
plugins: [react()],
|
|
6
|
-
build: {
|
|
7
|
-
lib: {
|
|
8
|
-
entry: "src/index.js",
|
|
9
|
-
name: "MyButtonLib",
|
|
10
|
-
fileName: "index"
|
|
11
|
-
},
|
|
12
|
-
rollupOptions: {
|
|
13
|
-
external: ["react", "react-dom"]
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
});
|