fintech-component-library 1.1.0 → 2.0.1
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/fintech-component-library.es.js +642 -0
- package/dist/fintech-component-library.umd.js +15 -0
- package/dist/index.css +1 -0
- package/package.json +48 -5
- package/.github/workflows/main.yml +0 -23
- package/index.js +0 -9
- package/index.test.js +0 -9
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
import xe from "react";
|
|
2
|
+
var U = { exports: {} }, $ = {};
|
|
3
|
+
var Te;
|
|
4
|
+
function fr() {
|
|
5
|
+
if (Te) return $;
|
|
6
|
+
Te = 1;
|
|
7
|
+
var k = xe, _ = /* @__PURE__ */ Symbol.for("react.element"), D = /* @__PURE__ */ Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, m = k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
8
|
+
function T(y, f, E) {
|
|
9
|
+
var c, b = {}, O = null, W = null;
|
|
10
|
+
E !== void 0 && (O = "" + E), f.key !== void 0 && (O = "" + f.key), f.ref !== void 0 && (W = f.ref);
|
|
11
|
+
for (c in f) h.call(f, c) && !w.hasOwnProperty(c) && (b[c] = f[c]);
|
|
12
|
+
if (y && y.defaultProps) for (c in f = y.defaultProps, f) b[c] === void 0 && (b[c] = f[c]);
|
|
13
|
+
return { $$typeof: _, type: y, key: O, ref: W, props: b, _owner: m.current };
|
|
14
|
+
}
|
|
15
|
+
return $.Fragment = D, $.jsx = T, $.jsxs = T, $;
|
|
16
|
+
}
|
|
17
|
+
var I = {};
|
|
18
|
+
var Oe;
|
|
19
|
+
function cr() {
|
|
20
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
21
|
+
var k = xe, _ = /* @__PURE__ */ Symbol.for("react.element"), D = /* @__PURE__ */ Symbol.for("react.portal"), h = /* @__PURE__ */ Symbol.for("react.fragment"), m = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.provider"), y = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), W = /* @__PURE__ */ Symbol.for("react.offscreen"), H = Symbol.iterator, we = "@@iterator";
|
|
22
|
+
function Se(e) {
|
|
23
|
+
if (e === null || typeof e != "object")
|
|
24
|
+
return null;
|
|
25
|
+
var r = H && e[H] || e[we];
|
|
26
|
+
return typeof r == "function" ? r : null;
|
|
27
|
+
}
|
|
28
|
+
var S = k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
29
|
+
function d(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
|
+
Pe("error", e, t);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function Pe(e, r, t) {
|
|
37
|
+
{
|
|
38
|
+
var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
39
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
40
|
+
var u = t.map(function(o) {
|
|
41
|
+
return String(o);
|
|
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 $e(e) {
|
|
49
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === w || Ae || e === m || e === E || e === c || Fe || e === W || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === b || e.$$typeof === T || 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 Ie(e, r, t) {
|
|
56
|
+
var n = e.displayName;
|
|
57
|
+
if (n)
|
|
58
|
+
return n;
|
|
59
|
+
var i = r.displayName || r.name || "";
|
|
60
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
61
|
+
}
|
|
62
|
+
function Q(e) {
|
|
63
|
+
return e.displayName || "Context";
|
|
64
|
+
}
|
|
65
|
+
function R(e) {
|
|
66
|
+
if (e == null)
|
|
67
|
+
return null;
|
|
68
|
+
if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
69
|
+
return e.displayName || e.name || null;
|
|
70
|
+
if (typeof e == "string")
|
|
71
|
+
return e;
|
|
72
|
+
switch (e) {
|
|
73
|
+
case h:
|
|
74
|
+
return "Fragment";
|
|
75
|
+
case D:
|
|
76
|
+
return "Portal";
|
|
77
|
+
case w:
|
|
78
|
+
return "Profiler";
|
|
79
|
+
case m:
|
|
80
|
+
return "StrictMode";
|
|
81
|
+
case E:
|
|
82
|
+
return "Suspense";
|
|
83
|
+
case c:
|
|
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 T:
|
|
92
|
+
var t = e;
|
|
93
|
+
return Q(t._context) + ".Provider";
|
|
94
|
+
case f:
|
|
95
|
+
return Ie(e, e.render, "ForwardRef");
|
|
96
|
+
case b:
|
|
97
|
+
var n = e.displayName || null;
|
|
98
|
+
return n !== null ? n : R(e.type) || "Memo";
|
|
99
|
+
case O: {
|
|
100
|
+
var i = e, u = i._payload, o = i._init;
|
|
101
|
+
try {
|
|
102
|
+
return R(o(u));
|
|
103
|
+
} catch {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
var C = Object.assign, F = 0, ee, re, te, ne, ae, oe, ie;
|
|
111
|
+
function ue() {
|
|
112
|
+
}
|
|
113
|
+
ue.__reactDisabledLog = !0;
|
|
114
|
+
function We() {
|
|
115
|
+
{
|
|
116
|
+
if (F === 0) {
|
|
117
|
+
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = 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
|
+
F++;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function Ye() {
|
|
138
|
+
{
|
|
139
|
+
if (F--, F === 0) {
|
|
140
|
+
var e = {
|
|
141
|
+
configurable: !0,
|
|
142
|
+
enumerable: !0,
|
|
143
|
+
writable: !0
|
|
144
|
+
};
|
|
145
|
+
Object.defineProperties(console, {
|
|
146
|
+
log: C({}, e, {
|
|
147
|
+
value: ee
|
|
148
|
+
}),
|
|
149
|
+
info: C({}, e, {
|
|
150
|
+
value: re
|
|
151
|
+
}),
|
|
152
|
+
warn: C({}, e, {
|
|
153
|
+
value: te
|
|
154
|
+
}),
|
|
155
|
+
error: C({}, e, {
|
|
156
|
+
value: ne
|
|
157
|
+
}),
|
|
158
|
+
group: C({}, e, {
|
|
159
|
+
value: ae
|
|
160
|
+
}),
|
|
161
|
+
groupCollapsed: C({}, e, {
|
|
162
|
+
value: oe
|
|
163
|
+
}),
|
|
164
|
+
groupEnd: C({}, e, {
|
|
165
|
+
value: ie
|
|
166
|
+
})
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
F < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
var N = S.ReactCurrentDispatcher, J;
|
|
173
|
+
function Y(e, r, t) {
|
|
174
|
+
{
|
|
175
|
+
if (J === void 0)
|
|
176
|
+
try {
|
|
177
|
+
throw Error();
|
|
178
|
+
} catch (i) {
|
|
179
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
180
|
+
J = n && n[1] || "";
|
|
181
|
+
}
|
|
182
|
+
return `
|
|
183
|
+
` + J + e;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
var q = !1, L;
|
|
187
|
+
{
|
|
188
|
+
var Le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
189
|
+
L = new Le();
|
|
190
|
+
}
|
|
191
|
+
function se(e, r) {
|
|
192
|
+
if (!e || q)
|
|
193
|
+
return "";
|
|
194
|
+
{
|
|
195
|
+
var t = L.get(e);
|
|
196
|
+
if (t !== void 0)
|
|
197
|
+
return t;
|
|
198
|
+
}
|
|
199
|
+
var n;
|
|
200
|
+
q = !0;
|
|
201
|
+
var i = 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 o = function() {
|
|
208
|
+
throw Error();
|
|
209
|
+
};
|
|
210
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
211
|
+
set: function() {
|
|
212
|
+
throw Error();
|
|
213
|
+
}
|
|
214
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
215
|
+
try {
|
|
216
|
+
Reflect.construct(o, []);
|
|
217
|
+
} catch (p) {
|
|
218
|
+
n = p;
|
|
219
|
+
}
|
|
220
|
+
Reflect.construct(e, [], o);
|
|
221
|
+
} else {
|
|
222
|
+
try {
|
|
223
|
+
o.call();
|
|
224
|
+
} catch (p) {
|
|
225
|
+
n = p;
|
|
226
|
+
}
|
|
227
|
+
e.call(o.prototype);
|
|
228
|
+
}
|
|
229
|
+
} else {
|
|
230
|
+
try {
|
|
231
|
+
throw Error();
|
|
232
|
+
} catch (p) {
|
|
233
|
+
n = p;
|
|
234
|
+
}
|
|
235
|
+
e();
|
|
236
|
+
}
|
|
237
|
+
} catch (p) {
|
|
238
|
+
if (p && n && typeof p.stack == "string") {
|
|
239
|
+
for (var a = p.stack.split(`
|
|
240
|
+
`), v = n.stack.split(`
|
|
241
|
+
`), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
|
|
242
|
+
l--;
|
|
243
|
+
for (; s >= 1 && l >= 0; s--, l--)
|
|
244
|
+
if (a[s] !== v[l]) {
|
|
245
|
+
if (s !== 1 || l !== 1)
|
|
246
|
+
do
|
|
247
|
+
if (s--, l--, l < 0 || a[s] !== v[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" && L.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 = i;
|
|
258
|
+
}
|
|
259
|
+
var j = e ? e.displayName || e.name : "", x = j ? Y(j) : "";
|
|
260
|
+
return typeof e == "function" && L.set(e, x), x;
|
|
261
|
+
}
|
|
262
|
+
function Ve(e, r, t) {
|
|
263
|
+
return se(e, !1);
|
|
264
|
+
}
|
|
265
|
+
function Me(e) {
|
|
266
|
+
var r = e.prototype;
|
|
267
|
+
return !!(r && r.isReactComponent);
|
|
268
|
+
}
|
|
269
|
+
function V(e, r, t) {
|
|
270
|
+
if (e == null)
|
|
271
|
+
return "";
|
|
272
|
+
if (typeof e == "function")
|
|
273
|
+
return se(e, Me(e));
|
|
274
|
+
if (typeof e == "string")
|
|
275
|
+
return Y(e);
|
|
276
|
+
switch (e) {
|
|
277
|
+
case E:
|
|
278
|
+
return Y("Suspense");
|
|
279
|
+
case c:
|
|
280
|
+
return Y("SuspenseList");
|
|
281
|
+
}
|
|
282
|
+
if (typeof e == "object")
|
|
283
|
+
switch (e.$$typeof) {
|
|
284
|
+
case f:
|
|
285
|
+
return Ve(e.render);
|
|
286
|
+
case b:
|
|
287
|
+
return V(e.type, r, t);
|
|
288
|
+
case O: {
|
|
289
|
+
var n = e, i = n._payload, u = n._init;
|
|
290
|
+
try {
|
|
291
|
+
return V(u(i), r, t);
|
|
292
|
+
} catch {
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return "";
|
|
297
|
+
}
|
|
298
|
+
var A = Object.prototype.hasOwnProperty, le = {}, fe = S.ReactDebugCurrentFrame;
|
|
299
|
+
function M(e) {
|
|
300
|
+
if (e) {
|
|
301
|
+
var r = e._owner, t = V(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, i) {
|
|
307
|
+
{
|
|
308
|
+
var u = Function.call.bind(A);
|
|
309
|
+
for (var o in e)
|
|
310
|
+
if (u(e, o)) {
|
|
311
|
+
var a = void 0;
|
|
312
|
+
try {
|
|
313
|
+
if (typeof e[o] != "function") {
|
|
314
|
+
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`.");
|
|
315
|
+
throw v.name = "Invariant Violation", v;
|
|
316
|
+
}
|
|
317
|
+
a = e[o](r, o, 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(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), M(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, M(i), d("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 d("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 = S.ReactCurrentOwner, Be = {
|
|
350
|
+
key: !0,
|
|
351
|
+
ref: !0,
|
|
352
|
+
__self: !0,
|
|
353
|
+
__source: !0
|
|
354
|
+
}, pe, ge;
|
|
355
|
+
function Ke(e) {
|
|
356
|
+
if (A.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 ze(e) {
|
|
364
|
+
if (A.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 Ge(e, r) {
|
|
372
|
+
typeof e.ref == "string" && ve.current;
|
|
373
|
+
}
|
|
374
|
+
function Xe(e, r) {
|
|
375
|
+
{
|
|
376
|
+
var t = function() {
|
|
377
|
+
pe || (pe = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
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, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
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, i, u, o) {
|
|
397
|
+
var a = {
|
|
398
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
399
|
+
$$typeof: _,
|
|
400
|
+
// Built-in properties that belong on the element
|
|
401
|
+
type: e,
|
|
402
|
+
key: r,
|
|
403
|
+
ref: t,
|
|
404
|
+
props: o,
|
|
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: i
|
|
423
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
424
|
+
};
|
|
425
|
+
function Qe(e, r, t, n, i) {
|
|
426
|
+
{
|
|
427
|
+
var u, o = {}, a = null, v = null;
|
|
428
|
+
t !== void 0 && (de(t), a = "" + t), ze(r) && (de(r.key), a = "" + r.key), Ke(r) && (v = r.ref, Ge(r, i));
|
|
429
|
+
for (u in r)
|
|
430
|
+
A.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
|
|
431
|
+
if (e && e.defaultProps) {
|
|
432
|
+
var s = e.defaultProps;
|
|
433
|
+
for (u in s)
|
|
434
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
435
|
+
}
|
|
436
|
+
if (a || v) {
|
|
437
|
+
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
438
|
+
a && Xe(o, l), v && He(o, l);
|
|
439
|
+
}
|
|
440
|
+
return Ze(e, a, v, i, n, ve.current, o);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
var K = S.ReactCurrentOwner, ye = S.ReactDebugCurrentFrame;
|
|
444
|
+
function P(e) {
|
|
445
|
+
if (e) {
|
|
446
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
447
|
+
ye.setExtraStackFrame(t);
|
|
448
|
+
} else
|
|
449
|
+
ye.setExtraStackFrame(null);
|
|
450
|
+
}
|
|
451
|
+
var z;
|
|
452
|
+
z = !1;
|
|
453
|
+
function G(e) {
|
|
454
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
455
|
+
}
|
|
456
|
+
function be() {
|
|
457
|
+
{
|
|
458
|
+
if (K.current) {
|
|
459
|
+
var e = R(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 he = {};
|
|
472
|
+
function rr(e) {
|
|
473
|
+
{
|
|
474
|
+
var r = be();
|
|
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 me(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 (he[t])
|
|
491
|
+
return;
|
|
492
|
+
he[t] = !0;
|
|
493
|
+
var n = "";
|
|
494
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + R(e._owner.type) + "."), P(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), P(null);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
function Ee(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
|
+
G(n) && me(n, r);
|
|
505
|
+
}
|
|
506
|
+
else if (G(e))
|
|
507
|
+
e._store && (e._store.validated = !0);
|
|
508
|
+
else if (e) {
|
|
509
|
+
var i = Se(e);
|
|
510
|
+
if (typeof i == "function" && i !== e.entries)
|
|
511
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
512
|
+
G(o.value) && me(o.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 = R(r);
|
|
532
|
+
Ue(t, e.props, "prop", n, e);
|
|
533
|
+
} else if (r.PropTypes !== void 0 && !z) {
|
|
534
|
+
z = !0;
|
|
535
|
+
var i = R(r);
|
|
536
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
537
|
+
}
|
|
538
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("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
|
+
P(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
e.ref !== null && (P(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
var Re = {};
|
|
554
|
+
function _e(e, r, t, n, i, u) {
|
|
555
|
+
{
|
|
556
|
+
var o = $e(e);
|
|
557
|
+
if (!o) {
|
|
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 v = er();
|
|
561
|
+
v ? a += v : a += be();
|
|
562
|
+
var s;
|
|
563
|
+
e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === _ ? (s = "<" + (R(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
564
|
+
}
|
|
565
|
+
var l = Qe(e, r, t, i, u);
|
|
566
|
+
if (l == null)
|
|
567
|
+
return l;
|
|
568
|
+
if (o) {
|
|
569
|
+
var g = r.children;
|
|
570
|
+
if (g !== void 0)
|
|
571
|
+
if (n)
|
|
572
|
+
if (B(g)) {
|
|
573
|
+
for (var j = 0; j < g.length; j++)
|
|
574
|
+
Ee(g[j], e);
|
|
575
|
+
Object.freeze && Object.freeze(g);
|
|
576
|
+
} else
|
|
577
|
+
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
578
|
+
else
|
|
579
|
+
Ee(g, e);
|
|
580
|
+
}
|
|
581
|
+
if (A.call(r, "key")) {
|
|
582
|
+
var x = R(e), p = Object.keys(r).filter(function(lr) {
|
|
583
|
+
return lr !== "key";
|
|
584
|
+
}), X = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
585
|
+
if (!Re[x + X]) {
|
|
586
|
+
var sr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
|
|
587
|
+
d(`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, x, sr, x), Re[x + X] = !0;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return e === h ? nr(l) : tr(l), l;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
function ar(e, r, t) {
|
|
599
|
+
return _e(e, r, t, !0);
|
|
600
|
+
}
|
|
601
|
+
function or(e, r, t) {
|
|
602
|
+
return _e(e, r, t, !1);
|
|
603
|
+
}
|
|
604
|
+
var ir = or, ur = ar;
|
|
605
|
+
I.Fragment = h, I.jsx = ir, I.jsxs = ur;
|
|
606
|
+
})()), I;
|
|
607
|
+
}
|
|
608
|
+
var Ce;
|
|
609
|
+
function dr() {
|
|
610
|
+
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports = fr() : U.exports = cr()), U.exports;
|
|
611
|
+
}
|
|
612
|
+
var vr = dr();
|
|
613
|
+
const gr = ({
|
|
614
|
+
children: k,
|
|
615
|
+
onClick: _,
|
|
616
|
+
variant: D = "primary",
|
|
617
|
+
size: h = "md",
|
|
618
|
+
disabled: m = !1,
|
|
619
|
+
className: w = ""
|
|
620
|
+
}) => {
|
|
621
|
+
const T = "inline-flex items-center justify-center font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-200", y = {
|
|
622
|
+
primary: "bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",
|
|
623
|
+
secondary: "bg-gray-600 hover:bg-gray-700 text-white focus:ring-gray-500",
|
|
624
|
+
danger: "bg-red-600 hover:bg-red-700 text-white focus:ring-red-500"
|
|
625
|
+
}, f = {
|
|
626
|
+
sm: "px-3 py-1.5 text-sm",
|
|
627
|
+
md: "px-4 py-2 text-base",
|
|
628
|
+
lg: "px-6 py-3 text-lg"
|
|
629
|
+
}, E = m ? "opacity-50 cursor-not-allowed" : "", c = `${T} ${y[D]} ${f[h]} ${E} ${w}`;
|
|
630
|
+
return /* @__PURE__ */ vr.jsx(
|
|
631
|
+
"button",
|
|
632
|
+
{
|
|
633
|
+
className: c,
|
|
634
|
+
onClick: m ? void 0 : _,
|
|
635
|
+
disabled: m,
|
|
636
|
+
children: k
|
|
637
|
+
}
|
|
638
|
+
);
|
|
639
|
+
};
|
|
640
|
+
export {
|
|
641
|
+
gr as Button
|
|
642
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(function(E,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(E=typeof globalThis<"u"?globalThis:E||self,S(E.FintechComponentLibrary={},E.React))})(this,(function(E,S){"use strict";var Q=document.createElement("style");Q.textContent=`@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.inline-flex{display:inline-flex}.cursor-not-allowed{cursor:not-allowed}.items-center{align-items:center}.justify-center{justify-content:center}.opacity-50{opacity:.5}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Q);var L={exports:{}},F={};var ee;function Pe(){if(ee)return F;ee=1;var $=S,R=Symbol.for("react.element"),I=Symbol.for("react.fragment"),w=Object.prototype.hasOwnProperty,b=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function x(g,f,m){var c,y={},T=null,M=null;m!==void 0&&(T=""+m),f.key!==void 0&&(T=""+f.key),f.ref!==void 0&&(M=f.ref);for(c in f)w.call(f,c)&&!P.hasOwnProperty(c)&&(y[c]=f[c]);if(g&&g.defaultProps)for(c in f=g.defaultProps,f)y[c]===void 0&&(y[c]=f[c]);return{$$typeof:R,type:g,key:T,ref:M,props:y,_owner:b.current}}return F.Fragment=I,F.jsx=x,F.jsxs=x,F}var A={};var re;function je(){return re||(re=1,process.env.NODE_ENV!=="production"&&(function(){var $=S,R=Symbol.for("react.element"),I=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),g=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ne=Symbol.iterator,Ae="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[Ae];return typeof r=="function"?r:null}var j=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=j.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var We=!1,Ye=!1,Le=!1,Me=!1,Ve=!1,ae;ae=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===w||e===P||Ve||e===b||e===m||e===c||Me||e===M||We||Ye||Le||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===y||e.$$typeof===x||e.$$typeof===g||e.$$typeof===f||e.$$typeof===ae||e.getModuleId!==void 0))}function Ne(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ie(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case I:return"Portal";case P:return"Profiler";case b:return"StrictMode";case m:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return ie(r)+".Consumer";case x:var t=e;return ie(t._context)+".Provider";case f:return Ne(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case T:{var o=e,s=o._payload,i=o._init;try{return _(i(s))}catch{return null}}}return null}var C=Object.assign,W=0,oe,se,ue,le,fe,ce,de;function ve(){}ve.__reactDisabledLog=!0;function Be(){{if(W===0){oe=console.log,se=console.info,ue=console.warn,le=console.error,fe=console.group,ce=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Je(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:oe}),info:C({},e,{value:se}),warn:C({},e,{value:ue}),error:C({},e,{value:le}),group:C({},e,{value:fe}),groupCollapsed:C({},e,{value:ce}),groupEnd:C({},e,{value:de})})}W<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=j.ReactCurrentDispatcher,q;function V(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`
|
|
3
|
+
`+q+e}}var K=!1,U;{var qe=typeof WeakMap=="function"?WeakMap:Map;U=new qe}function pe(e,r){if(!e||K)return"";{var t=U.get(e);if(t!==void 0)return t}var n;K=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=J.current,J.current=null,Be();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(p){n=p}Reflect.construct(e,[],i)}else{try{i.call()}catch(p){n=p}e.call(i.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
|
|
4
|
+
`),v=n.stack.split(`
|
|
5
|
+
`),u=a.length-1,l=v.length-1;u>=1&&l>=0&&a[u]!==v[l];)l--;for(;u>=1&&l>=0;u--,l--)if(a[u]!==v[l]){if(u!==1||l!==1)do if(u--,l--,l<0||a[u]!==v[l]){var h=`
|
|
6
|
+
`+a[u].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,h),h}while(u>=1&&l>=0);break}}}finally{K=!1,J.current=s,Je(),Error.prepareStackTrace=o}var D=e?e.displayName||e.name:"",O=D?V(D):"";return typeof e=="function"&&U.set(e,O),O}function Ke(e,r,t){return pe(e,!1)}function ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,ze(e));if(typeof e=="string")return V(e);switch(e){case m:return V("Suspense");case c:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ke(e.render);case y:return N(e.type,r,t);case T:{var n=e,o=n._payload,s=n._init;try{return N(s(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,he={},ge=j.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Ge(e,r,t,n,o){{var s=Function.call.bind(Y);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){a=u}a&&!(a instanceof Error)&&(B(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),B(null)),a instanceof Error&&!(a.message in he)&&(he[a.message]=!0,B(o),d("Failed %s type: %s",t,a.message),B(null))}}}var Xe=Array.isArray;function z(e){return Xe(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return ye(e),!1}catch{return!0}}function ye(e){return""+e}function we(e){if(Ze(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),ye(e)}var be=j.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},me,_e;function er(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 rr(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 tr(e,r){typeof e.ref=="string"&&be.current}function nr(e,r){{var t=function(){me||(me=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){_e||(_e=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ir=function(e,r,t,n,o,s,i){var a={$$typeof:R,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,n,o){{var s,i={},a=null,v=null;t!==void 0&&(we(t),a=""+t),rr(r)&&(we(r.key),a=""+r.key),er(r)&&(v=r.ref,tr(r,o));for(s in r)Y.call(r,s)&&!Qe.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var u=e.defaultProps;for(s in u)i[s]===void 0&&(i[s]=u[s])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&nr(i,l),v&&ar(i,l)}return ir(e,a,v,o,n,be.current,i)}}var G=j.ReactCurrentOwner,Ee=j.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var X;X=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}function Re(){{if(G.current){var e=_(G.current.type);if(e)return`
|
|
7
|
+
|
|
8
|
+
Check the render method of \``+e+"`."}return""}}function sr(e){return""}var xe={};function ur(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
9
|
+
|
|
10
|
+
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(xe[t])return;xe[t]=!0;var n="";e&&e._owner&&e._owner!==G.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),k(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),k(null)}}function Ce(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&Te(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=$e(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)H(i.value)&&Te(i.value,r)}}}function lr(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===f||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=_(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=_(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){k(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}var Oe={};function Se(e,r,t,n,o,s){{var i=Ue(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=sr();v?a+=v:a+=Re();var u;e===null?u="null":z(e)?u="array":e!==void 0&&e.$$typeof===R?(u="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var l=or(e,r,t,o,s);if(l==null)return l;if(i){var h=r.children;if(h!==void 0)if(n)if(z(h)){for(var D=0;D<h.length;D++)Ce(h[D],e);Object.freeze&&Object.freeze(h)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(h,e)}if(Y.call(r,"key")){var O=_(e),p=Object.keys(r).filter(function(gr){return gr!=="key"}),Z=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!Oe[O+Z]){var hr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
|
|
11
|
+
let props = %s;
|
|
12
|
+
<%s {...props} />
|
|
13
|
+
React keys must be passed directly to JSX without using spread:
|
|
14
|
+
let props = %s;
|
|
15
|
+
<%s key={someKey} {...props} />`,Z,O,hr,O),Oe[O+Z]=!0}}return e===w?fr(l):lr(l),l}}function cr(e,r,t){return Se(e,r,t,!0)}function dr(e,r,t){return Se(e,r,t,!1)}var vr=dr,pr=cr;A.Fragment=w,A.jsx=vr,A.jsxs=pr})()),A}var te;function ke(){return te||(te=1,process.env.NODE_ENV==="production"?L.exports=Pe():L.exports=je()),L.exports}var De=ke();const Fe=({children:$,onClick:R,variant:I="primary",size:w="md",disabled:b=!1,className:P=""})=>{const x="inline-flex items-center justify-center font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-200",g={primary:"bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",secondary:"bg-gray-600 hover:bg-gray-700 text-white focus:ring-gray-500",danger:"bg-red-600 hover:bg-red-700 text-white focus:ring-red-500"},f={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg"},m=b?"opacity-50 cursor-not-allowed":"",c=`${x} ${g[I]} ${f[w]} ${m} ${P}`;return De.jsx("button",{className:c,onClick:b?void 0:R,disabled:b,children:$})};E.Button=Fe,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.inline-flex{display:inline-flex}.cursor-not-allowed{cursor:not-allowed}.items-center{align-items:center}.justify-center{justify-content:center}.opacity-50{opacity:.5}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
package/package.json
CHANGED
|
@@ -1,16 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fintech-component-library",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"main": "./dist/fintech-component-library.umd.js",
|
|
5
|
+
"module": "./dist/fintech-component-library.es.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/fintech-component-library.es.js",
|
|
10
|
+
"require": "./dist/fintech-component-library.umd.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./styles.css": "./dist/style.css"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
5
18
|
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "tsc && vite build",
|
|
21
|
+
"preview": "vite preview",
|
|
6
22
|
"test": "jest"
|
|
7
23
|
},
|
|
8
|
-
"keywords": [
|
|
24
|
+
"keywords": [
|
|
25
|
+
"react",
|
|
26
|
+
"components",
|
|
27
|
+
"ui",
|
|
28
|
+
"library",
|
|
29
|
+
"typescript",
|
|
30
|
+
"tailwind"
|
|
31
|
+
],
|
|
9
32
|
"author": "",
|
|
10
33
|
"license": "ISC",
|
|
11
|
-
"description": "",
|
|
34
|
+
"description": "A React component library with TypeScript and Tailwind CSS",
|
|
12
35
|
"devDependencies": {
|
|
36
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
37
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
38
|
+
"@testing-library/react": "^16.3.1",
|
|
39
|
+
"@types/react": "^19.2.8",
|
|
40
|
+
"@types/react-dom": "^19.2.3",
|
|
41
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
42
|
+
"autoprefixer": "^10.4.23",
|
|
43
|
+
"identity-obj-proxy": "^3.0.0",
|
|
13
44
|
"jest": "^29.7.0",
|
|
14
|
-
"jest-circus": "^29.7.0"
|
|
45
|
+
"jest-circus": "^29.7.0",
|
|
46
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
47
|
+
"jsdom": "^27.4.0",
|
|
48
|
+
"postcss": "^8.5.6",
|
|
49
|
+
"rollup": "^4.55.1",
|
|
50
|
+
"tailwindcss": "^4.1.18",
|
|
51
|
+
"ts-jest": "^29.4.6",
|
|
52
|
+
"typescript": "^5.9.3",
|
|
53
|
+
"vite": "^7.3.1"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
57
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
15
58
|
}
|
|
16
59
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Publish NPM Package
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
release:
|
|
7
|
-
types: [created]
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v2
|
|
13
|
-
|
|
14
|
-
- name: Setup Node.js
|
|
15
|
-
uses: actions/setup-node@v2
|
|
16
|
-
with:
|
|
17
|
-
node-version: '14'
|
|
18
|
-
registry-url: 'https://registry.npmjs.org/'
|
|
19
|
-
- run: npm install
|
|
20
|
-
- run: npm test
|
|
21
|
-
- run: npm publish
|
|
22
|
-
env:
|
|
23
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_FINTECH }}
|
package/index.js
DELETED
package/index.test.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const { greet, button } = require("./index");
|
|
2
|
-
|
|
3
|
-
test("greets a user", () => {
|
|
4
|
-
expect(greet("World")).toBe("Hello, World! Welcome to my first NPM package.");
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
test("creates a button", () => {
|
|
8
|
-
expect(button("Click me", "alert('Hello')")).toBe('<button onclick="alert(\'Hello\')">Click me</button>');
|
|
9
|
-
});
|