fintech-component-library 2.0.7 → 2.0.8

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.
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export interface ButtonProps {
3
+ children: React.ReactNode;
4
+ onClick?: () => void;
5
+ variant?: "primary" | "secondary" | "success" | "danger" | "neutral";
6
+ size?: "xs" | "sm" | "md" | "lg";
7
+ disabled?: boolean;
8
+ className?: string;
9
+ type?: "button" | "submit" | "reset";
10
+ title?: string;
11
+ "aria-label"?: string;
12
+ }
13
+ export declare const Button: React.FC<ButtonProps>;
14
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACrE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqDxC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const Button = ({ children, onClick, variant = "primary", size = "md", disabled = false, className = "", type = "button", title, "aria-label": ariaLabel, }) => {
3
+ const baseClasses = "inline-flex items-center justify-center font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-200";
4
+ const variantClasses = {
5
+ primary: "bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",
6
+ secondary: "bg-gray-600 hover:bg-gray-700 text-white focus:ring-gray-500",
7
+ success: "bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",
8
+ danger: "bg-red-600 hover:bg-red-700 text-white focus:ring-red-500",
9
+ neutral: "bg-slate-200 hover:bg-slate-300 text-slate-900 focus:ring-slate-400",
10
+ };
11
+ const sizeClasses = {
12
+ xs: "px-3 py-1 text-xs",
13
+ sm: "px-3 py-1.5 text-sm",
14
+ md: "px-4 py-2 text-base",
15
+ lg: "px-6 py-3 text-lg",
16
+ };
17
+ const classes = [
18
+ baseClasses,
19
+ variantClasses[variant],
20
+ sizeClasses[size],
21
+ disabled && "opacity-50 cursor-not-allowed",
22
+ className,
23
+ ]
24
+ .filter(Boolean)
25
+ .join(" ");
26
+ return (_jsx("button", { type: type, className: classes, onClick: disabled ? undefined : onClick, disabled: disabled, title: title, "aria-label": ariaLabel, "aria-disabled": disabled, children: children }));
27
+ };
28
+ Button.displayName = "Button";
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Button } from "./Button";
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Button>;
6
+ export declare const Default: Story;
7
+ export declare const IconOnly: Story;
8
+ export declare const Disabled: Story;
9
+ //# sourceMappingURL=Button.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsB7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { Button } from "./Button";
2
+ const meta = {
3
+ title: "Components/Button",
4
+ component: Button,
5
+ args: {
6
+ children: "Button",
7
+ variant: "primary",
8
+ size: "md",
9
+ disabled: false,
10
+ },
11
+ argTypes: {
12
+ variant: {
13
+ control: "select",
14
+ options: ["primary", "secondary", "success", "danger", "neutral"],
15
+ },
16
+ size: {
17
+ control: "select",
18
+ options: ["xs", "sm", "md", "lg"],
19
+ },
20
+ onClick: { action: "clicked" },
21
+ },
22
+ tags: ["autodocs"],
23
+ };
24
+ export default meta;
25
+ export const Default = {};
26
+ export const IconOnly = {
27
+ args: {
28
+ "aria-label": "Save",
29
+ children: "💾",
30
+ },
31
+ };
32
+ export const Disabled = {
33
+ args: {
34
+ disabled: true,
35
+ },
36
+ };
@@ -0,0 +1,3 @@
1
+ export { Button } from "./Button";
2
+ export type { ButtonProps } from "./Button";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export { Button } from "./Button";
@@ -1,642 +1,308 @@
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 };
1
+ import K from "react";
2
+ var T = { exports: {} }, b = {};
3
+ var F;
4
+ function ee() {
5
+ if (F) return b;
6
+ F = 1;
7
+ var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.fragment");
8
+ function u(c, o, s) {
9
+ var i = null;
10
+ if (s !== void 0 && (i = "" + s), o.key !== void 0 && (i = "" + o.key), "key" in o) {
11
+ s = {};
12
+ for (var f in o)
13
+ f !== "key" && (s[f] = o[f]);
14
+ } else s = o;
15
+ return o = s.ref, {
16
+ $$typeof: l,
17
+ type: c,
18
+ key: i,
19
+ ref: o !== void 0 ? o : null,
20
+ props: s
21
+ };
14
22
  }
15
- return $.Fragment = D, $.jsx = T, $.jsxs = T, $;
23
+ return b.Fragment = m, b.jsx = u, b.jsxs = u, b;
16
24
  }
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;
25
+ var _ = {};
26
+ var D;
27
+ function re() {
28
+ return D || (D = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ function l(e) {
30
+ if (e == null) return null;
31
+ if (typeof e == "function")
32
+ return e.$$typeof === H ? null : e.displayName || e.name || null;
33
+ if (typeof e == "string") return e;
72
34
  switch (e) {
73
- case h:
35
+ case k:
74
36
  return "Fragment";
75
- case D:
76
- return "Portal";
77
- case w:
37
+ case U:
78
38
  return "Profiler";
79
- case m:
39
+ case W:
80
40
  return "StrictMode";
81
- case E:
41
+ case V:
82
42
  return "Suspense";
83
- case c:
43
+ case G:
84
44
  return "SuspenseList";
45
+ case X:
46
+ return "Activity";
85
47
  }
86
48
  if (typeof e == "object")
87
- switch (e.$$typeof) {
88
- case y:
89
- var r = e;
90
- return Q(r) + ".Consumer";
91
- case 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;
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 M:
53
+ return "Portal";
54
+ case z:
55
+ return e.displayName || "Context";
56
+ case q:
57
+ return (e._context.displayName || "Context") + ".Consumer";
58
+ case J:
59
+ var r = e.render;
60
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
+ case B:
62
+ return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
63
+ case O:
64
+ r = e._payload, e = e._init;
101
65
  try {
102
- return R(o(u));
66
+ return l(e(r));
103
67
  } catch {
104
- return null;
105
68
  }
106
- }
107
69
  }
108
70
  return null;
109
71
  }
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();
72
+ function m(e) {
73
+ return "" + e;
190
74
  }
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();
75
+ function u(e) {
205
76
  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
- }
77
+ m(e);
78
+ var r = !1;
79
+ } catch {
80
+ r = !0;
323
81
  }
324
- }
325
- var Ne = Array.isArray;
326
- function B(e) {
327
- return Ne(e);
328
- }
329
- function Je(e) {
330
- {
331
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
332
- return t;
82
+ if (r) {
83
+ r = console;
84
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
+ return t.call(
86
+ r,
87
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
+ n
89
+ ), m(e);
333
90
  }
334
91
  }
335
- function qe(e) {
92
+ function c(e) {
93
+ if (e === k) return "<>";
94
+ if (typeof e == "object" && e !== null && e.$$typeof === O)
95
+ return "<...>";
336
96
  try {
337
- return ce(e), !1;
97
+ var r = l(e);
98
+ return r ? "<" + r + ">" : "<...>";
338
99
  } catch {
339
- return !0;
100
+ return "<...>";
340
101
  }
341
102
  }
342
- function ce(e) {
343
- return "" + e;
344
- }
345
- function de(e) {
346
- if (qe(e))
347
- return 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);
103
+ function o() {
104
+ var e = h.A;
105
+ return e === null ? null : e.getOwner();
348
106
  }
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;
107
+ function s() {
108
+ return Error("react-stack-top-frame");
362
109
  }
363
- function ze(e) {
364
- if (A.call(e, "key")) {
110
+ function i(e) {
111
+ if (j.call(e, "key")) {
365
112
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
366
- if (r && r.isReactWarning)
367
- return !1;
113
+ if (r && r.isReactWarning) return !1;
368
114
  }
369
115
  return e.key !== void 0;
370
116
  }
371
- function 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
- });
117
+ function f(e, r) {
118
+ function t() {
119
+ N || (N = !0, console.error(
120
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
121
+ r
122
+ ));
394
123
  }
395
- }
396
- var Ze = function(e, r, t, n, 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
124
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
125
+ get: t,
126
+ configurable: !0
127
+ });
128
+ }
129
+ function x() {
130
+ var e = l(this.type);
131
+ return C[e] || (C[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 y(e, r, t, n, g, A) {
136
+ var a = t.ref;
137
+ return e = {
138
+ $$typeof: P,
401
139
  type: e,
402
140
  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", {
141
+ props: t,
142
+ _owner: n
143
+ }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
144
+ enumerable: !1,
145
+ get: x
146
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
409
147
  configurable: !1,
410
148
  enumerable: !1,
411
149
  writable: !0,
412
- value: !1
413
- }), Object.defineProperty(a, "_self", {
150
+ value: 0
151
+ }), Object.defineProperty(e, "_debugInfo", {
414
152
  configurable: !1,
415
153
  enumerable: !1,
416
- writable: !1,
417
- value: n
418
- }), Object.defineProperty(a, "_source", {
154
+ writable: !0,
155
+ value: null
156
+ }), Object.defineProperty(e, "_debugStack", {
419
157
  configurable: !1,
420
158
  enumerable: !1,
421
- writable: !1,
422
- value: 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:
159
+ writable: !0,
160
+ value: g
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 E(e, r, t, n, g, 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 (j.call(r, "key")) {
182
+ a = l(e);
183
+ var d = Object.keys(r).filter(function(Q) {
184
+ return Q !== "key";
185
+ });
186
+ n = 0 < d.length ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}", I[a + n] || (d = 0 < d.length ? "{" + d.join(": ..., ") + ": ...}" : "{}", console.error(
187
+ `A props object containing a "key" prop is being spread into JSX:
588
188
  let props = %s;
589
189
  <%s {...props} />
590
190
  React keys must be passed directly to JSX without using spread:
591
191
  let props = %s;
592
- <%s key={someKey} {...props} />`, X, x, sr, x), Re[x + X] = !0;
593
- }
594
- }
595
- return e === h ? nr(l) : tr(l), l;
192
+ <%s key={someKey} {...props} />`,
193
+ n,
194
+ a,
195
+ d,
196
+ a
197
+ ), I[a + n] = !0);
596
198
  }
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;
199
+ if (a = null, t !== void 0 && (u(t), a = "" + t), i(r) && (u(r.key), a = "" + r.key), "key" in r) {
200
+ t = {};
201
+ for (var S in r)
202
+ S !== "key" && (t[S] = r[S]);
203
+ } else t = r;
204
+ return a && f(
205
+ t,
206
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
+ ), y(
208
+ e,
209
+ a,
210
+ t,
211
+ o(),
212
+ g,
213
+ A
214
+ );
215
+ }
216
+ function p(e) {
217
+ v(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === O && (e._payload.status === "fulfilled" ? v(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
+ }
219
+ function v(e) {
220
+ return typeof e == "object" && e !== null && e.$$typeof === P;
221
+ }
222
+ var R = K, P = /* @__PURE__ */ Symbol.for("react.transitional.element"), M = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), W = /* @__PURE__ */ Symbol.for("react.strict_mode"), U = /* @__PURE__ */ Symbol.for("react.profiler"), q = /* @__PURE__ */ Symbol.for("react.consumer"), z = /* @__PURE__ */ Symbol.for("react.context"), J = /* @__PURE__ */ Symbol.for("react.forward_ref"), V = /* @__PURE__ */ Symbol.for("react.suspense"), G = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), X = /* @__PURE__ */ Symbol.for("react.activity"), H = /* @__PURE__ */ Symbol.for("react.client.reference"), h = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, Z = Array.isArray, w = console.createTask ? console.createTask : function() {
223
+ return null;
224
+ };
225
+ R = {
226
+ react_stack_bottom_frame: function(e) {
227
+ return e();
228
+ }
229
+ };
230
+ var N, C = {}, Y = R.react_stack_bottom_frame.bind(
231
+ R,
232
+ s
233
+ )(), $ = w(c(s)), I = {};
234
+ _.Fragment = k, _.jsx = function(e, r, t) {
235
+ var n = 1e4 > h.recentlyCreatedOwnerStacks++;
236
+ return E(
237
+ e,
238
+ r,
239
+ t,
240
+ !1,
241
+ n ? Error("react-stack-top-frame") : Y,
242
+ n ? w(c(e)) : $
243
+ );
244
+ }, _.jsxs = function(e, r, t) {
245
+ var n = 1e4 > h.recentlyCreatedOwnerStacks++;
246
+ return E(
247
+ e,
248
+ r,
249
+ t,
250
+ !0,
251
+ n ? Error("react-stack-top-frame") : Y,
252
+ n ? w(c(e)) : $
253
+ );
254
+ };
255
+ })()), _;
607
256
  }
608
- var Ce;
609
- function dr() {
610
- return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports = fr() : U.exports = cr()), U.exports;
257
+ var L;
258
+ function te() {
259
+ return L || (L = 1, process.env.NODE_ENV === "production" ? T.exports = ee() : T.exports = re()), T.exports;
611
260
  }
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 = ""
261
+ var ne = te();
262
+ const ae = ({
263
+ children: l,
264
+ onClick: m,
265
+ variant: u = "primary",
266
+ size: c = "md",
267
+ disabled: o = !1,
268
+ className: s = "",
269
+ type: i = "button",
270
+ title: f,
271
+ "aria-label": x
620
272
  }) => {
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 = {
273
+ const y = "inline-flex items-center justify-center font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-200", E = {
622
274
  primary: "bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",
623
275
  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 = {
276
+ success: "bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",
277
+ danger: "bg-red-600 hover:bg-red-700 text-white focus:ring-red-500",
278
+ neutral: "bg-slate-200 hover:bg-slate-300 text-slate-900 focus:ring-slate-400"
279
+ }, p = {
280
+ xs: "px-3 py-1 text-xs",
626
281
  sm: "px-3 py-1.5 text-sm",
627
282
  md: "px-4 py-2 text-base",
628
283
  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(
284
+ }, v = [
285
+ y,
286
+ E[u],
287
+ p[c],
288
+ o && "opacity-50 cursor-not-allowed",
289
+ s
290
+ ].filter(Boolean).join(" ");
291
+ return /* @__PURE__ */ ne.jsx(
631
292
  "button",
632
293
  {
633
- className: c,
634
- onClick: m ? void 0 : _,
635
- disabled: m,
636
- children: k
294
+ type: i,
295
+ className: v,
296
+ onClick: o ? void 0 : m,
297
+ disabled: o,
298
+ title: f,
299
+ "aria-label": x,
300
+ "aria-disabled": o,
301
+ children: l
637
302
  }
638
303
  );
639
304
  };
305
+ ae.displayName = "Button";
640
306
  export {
641
- gr as Button
307
+ ae as Button
642
308
  };
@@ -1,15 +1,7 @@
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:
1
+ (function(l,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],y):(l=typeof globalThis<"u"?globalThis:l||self,y(l.FintechComponentLibrary={},l.React))})(this,(function(l,y){"use strict";var N=document.createElement("style");N.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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--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}}}.static{position:static}.flex{display:flex}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.items-center{align-items:center}.justify-center{justify-content:center}.border{border-style:var(--tw-border-style);border-width:1px}.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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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(N);var v={exports:{}},h={};var C;function q(){if(C)return h;C=1;var s=Symbol.for("react.transitional.element"),w=Symbol.for("react.fragment");function u(c,a,i){var f=null;if(i!==void 0&&(f=""+i),a.key!==void 0&&(f=""+a.key),"key"in a){i={};for(var d in a)d!=="key"&&(i[d]=a[d])}else i=a;return a=i.ref,{$$typeof:s,type:c,key:f,ref:a!==void 0?a:null,props:i}}return h.Fragment=w,h.jsx=u,h.jsxs=u,h}var m={};var Y;function J(){return Y||(Y=1,process.env.NODE_ENV!=="production"&&(function(){function s(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case H:return"Profiler";case X:return"StrictMode";case ee:return"Suspense";case te:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case G:return"Portal";case Q:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:s(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return s(e(t))}catch{}}return null}function w(e){return""+e}function u(e){try{w(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),w(e)}}function c(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===O)return"<...>";try{var t=s(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function a(){var e=j.A;return e===null?null:e.getOwner()}function i(){return Error("react-stack-top-frame")}function f(e){if(D.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function d(e,t){function r(){z||(z=!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)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function R(){var e=s(this.type);return L[e]||(L[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 T(e,t,r,n,E,A){var o=r.ref;return e={$$typeof:I,type:e,key:t,props:r,_owner:n},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:R}):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:E}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,t,r,n,E,A){var o=t.children;if(o!==void 0)if(n)if(ae(o)){for(n=0;n<o.length;n++)b(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 b(o);if(D.call(t,"key")){o=s(e);var p=Object.keys(t).filter(function(ie){return ie!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",U[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
11
3
  let props = %s;
12
4
  <%s {...props} />
13
5
  React keys must be passed directly to JSX without using spread:
14
6
  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"})}));
7
+ <%s key={someKey} {...props} />`,n,o,p,o),U[o+n]=!0)}if(o=null,r!==void 0&&(u(r),o=""+r),f(t)&&(u(t.key),o=""+t.key),"key"in t){r={};for(var P in t)P!=="key"&&(r[P]=t[P])}else r=t;return o&&d(r,typeof e=="function"?e.displayName||e.name||"Unknown":e),T(e,o,r,a(),E,A)}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===O&&(e._payload.status==="fulfilled"?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}var _=y,I=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),j=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,ae=Array.isArray,S=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(e){return e()}};var z,L={},M=_.react_stack_bottom_frame.bind(_,i)(),W=S(c(i)),U={};m.Fragment=k,m.jsx=function(e,t,r){var n=1e4>j.recentlyCreatedOwnerStacks++;return g(e,t,r,!1,n?Error("react-stack-top-frame"):M,n?S(c(e)):W)},m.jsxs=function(e,t,r){var n=1e4>j.recentlyCreatedOwnerStacks++;return g(e,t,r,!0,n?Error("react-stack-top-frame"):M,n?S(c(e)):W)}})()),m}var $;function V(){return $||($=1,process.env.NODE_ENV==="production"?v.exports=q():v.exports=J()),v.exports}var B=V();const F=({children:s,onClick:w,variant:u="primary",size:c="md",disabled:a=!1,className:i="",type:f="button",title:d,"aria-label":R})=>{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",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",success:"bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",danger:"bg-red-600 hover:bg-red-700 text-white focus:ring-red-500",neutral:"bg-slate-200 hover:bg-slate-300 text-slate-900 focus:ring-slate-400"},b={xs:"px-3 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg"},x=[T,g[u],b[c],a&&"opacity-50 cursor-not-allowed",i].filter(Boolean).join(" ");return B.jsx("button",{type:f,className:x,onClick:a?void 0:w,disabled:a,title:d,"aria-label":R,"aria-disabled":a,children:s})};F.displayName="Button",l.Button=F,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
package/dist/index.css CHANGED
@@ -1 +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}
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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--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}}}.static{position:static}.flex{display:flex}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.items-center{align-items:center}.justify-center{justify-content:center}.border{border-style:var(--tw-border-style);border-width:1px}.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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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}
@@ -0,0 +1,4 @@
1
+ import "./index.css";
2
+ export { Button } from "./components/Button";
3
+ export type { ButtonProps } from "./components/Button";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import "./index.css";
2
+ export { Button } from "./components/Button";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fintech-component-library",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "main": "./dist/fintech-component-library.umd.js",
5
5
  "module": "./dist/fintech-component-library.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,15 +13,16 @@
13
13
  "./styles.css": "./dist/style.css"
14
14
  },
15
15
  "files": [
16
- "dist",
17
- "src",
18
- "src/components"
16
+ "dist"
19
17
  ],
20
18
  "scripts": {
21
19
  "dev": "vite",
22
20
  "build": "vite build && tsc",
23
21
  "preview": "vite preview",
24
- "test": "jest"
22
+ "test": "jest",
23
+ "storybook": "storybook dev -p 6006",
24
+ "build-storybook": "storybook build",
25
+ "prepublishOnly": "npm run build"
25
26
  },
26
27
  "keywords": [
27
28
  "react",
@@ -35,24 +36,37 @@
35
36
  "license": "ISC",
36
37
  "description": "A React component library with TypeScript and Tailwind CSS",
37
38
  "devDependencies": {
39
+ "@chromatic-com/storybook": "^5.0.0",
40
+ "@storybook/addon-a11y": "^10.1.11",
41
+ "@storybook/addon-docs": "^10.1.11",
42
+ "@storybook/addon-onboarding": "^10.1.11",
43
+ "@storybook/addon-vitest": "^10.1.11",
44
+ "@storybook/react-vite": "^10.1.11",
38
45
  "@tailwindcss/postcss": "^4.1.18",
39
46
  "@testing-library/jest-dom": "^6.9.1",
40
47
  "@testing-library/react": "^16.3.1",
41
48
  "@types/react": "^19.2.8",
42
49
  "@types/react-dom": "^19.2.3",
43
50
  "@vitejs/plugin-react": "^5.1.2",
51
+ "@vitest/browser-playwright": "^4.0.17",
52
+ "@vitest/coverage-v8": "^4.0.17",
44
53
  "autoprefixer": "^10.4.23",
45
54
  "identity-obj-proxy": "^3.0.0",
46
55
  "jest": "^29.7.0",
47
56
  "jest-circus": "^29.7.0",
48
57
  "jest-environment-jsdom": "^30.2.0",
49
58
  "jsdom": "^27.4.0",
59
+ "playwright": "^1.57.0",
50
60
  "postcss": "^8.5.6",
61
+ "react": "^19.2.3",
62
+ "react-dom": "^19.2.3",
51
63
  "rollup": "^4.55.1",
64
+ "storybook": "^10.1.11",
52
65
  "tailwindcss": "^4.1.18",
53
66
  "ts-jest": "^29.4.6",
54
67
  "typescript": "^5.9.3",
55
- "vite": "^7.3.1"
68
+ "vite": "^7.3.1",
69
+ "vitest": "^4.0.17"
56
70
  },
57
71
  "peerDependencies": {
58
72
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
@@ -1,60 +0,0 @@
1
- import React from "react";
2
-
3
- interface ButtonProps {
4
- children: React.ReactNode;
5
- onClick?: () => void;
6
- variant?: "primary" | "secondary" | "success" | "danger" | "neutral";
7
- size?: "xs" | "sm" | "md" | "lg";
8
- disabled?: boolean;
9
- className?: string;
10
- type?: "button" | "submit" | "reset";
11
- title?: string;
12
- }
13
-
14
- const Button: React.FC<ButtonProps> = ({
15
- children,
16
- onClick,
17
- variant = "primary",
18
- size = "md",
19
- disabled = false,
20
- className = "",
21
- type = "button",
22
- title = "",
23
- }) => {
24
- const baseClasses =
25
- "inline-flex items-center justify-center font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-200";
26
-
27
- const variantClasses = {
28
- primary: "bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",
29
- secondary: "bg-gray-600 hover:bg-gray-700 text-white focus:ring-gray-500",
30
- success: "bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",
31
- danger: "bg-red-600 hover:bg-red-700 text-white focus:ring-red-500",
32
- neutral:
33
- "bg-slate-200 hover:bg-slate-300 text-slate-900 focus:ring-slate-400",
34
- };
35
-
36
- const sizeClasses = {
37
- xs: "px-3 py-1 text-xs",
38
- sm: "px-3 py-1.5 text-sm",
39
- md: "px-4 py-2 text-base",
40
- lg: "px-6 py-3 text-lg",
41
- };
42
-
43
- const disabledClasses = disabled ? "opacity-50 cursor-not-allowed" : "";
44
-
45
- const classes = `${baseClasses} ${variantClasses[variant]} ${sizeClasses[size]} ${disabledClasses} ${className}`;
46
-
47
- return (
48
- <button
49
- className={classes}
50
- onClick={disabled ? undefined : onClick}
51
- disabled={disabled}
52
- type={type || "button"}
53
- title={title}
54
- >
55
- {children}
56
- </button>
57
- );
58
- };
59
-
60
- export default Button;
package/src/index.css DELETED
@@ -1,3 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- import "./index.css";
2
- export { default as Button } from "./components/Button";