@raghu5707/react-ui-kit 1.0.3 → 1.0.4

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,8 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export type ButtonVariant = "primary" | "secondary" | "danger" | "outline";
3
+ export type ButtonSize = "sm" | "md" | "lg";
4
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
+ variant?: ButtonVariant;
6
+ size?: ButtonSize;
7
+ }
8
+ export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ export { Button } from './Button';
2
+ export type { ButtonProps } from './Button';
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export {}
1
+ export { Button } from './components/Button/Button';
2
+ export type { ButtonProps, ButtonVariant, ButtonSize } from './components/Button/Button';
@@ -1,303 +1,654 @@
1
- import ee, { forwardRef as re } from "react";
2
- var v = { exports: {} }, b = {};
3
- var $;
4
- function te() {
5
- if ($) return b;
6
- $ = 1;
7
- var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function u(n, l, c) {
9
- var m = null;
10
- if (c !== void 0 && (m = "" + c), l.key !== void 0 && (m = "" + l.key), "key" in l) {
11
- c = {};
12
- for (var d in l)
13
- d !== "key" && (c[d] = l[d]);
14
- } else c = l;
15
- return l = c.ref, {
16
- $$typeof: t,
17
- type: n,
18
- key: m,
19
- ref: l !== void 0 ? l : null,
20
- props: c
21
- };
1
+ import we, { forwardRef as cr } from "react";
2
+ var U = { exports: {} }, F = {};
3
+ var Te;
4
+ function dr() {
5
+ if (Te) return F;
6
+ Te = 1;
7
+ var c = we, d = /* @__PURE__ */ Symbol.for("react.element"), v = /* @__PURE__ */ Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, E = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 };
8
+ function k(T, p, C) {
9
+ var h, R = {}, x = null, W = null;
10
+ C !== void 0 && (x = "" + C), p.key !== void 0 && (x = "" + p.key), p.ref !== void 0 && (W = p.ref);
11
+ for (h in p) s.call(p, h) && !$.hasOwnProperty(h) && (R[h] = p[h]);
12
+ if (T && T.defaultProps) for (h in p = T.defaultProps, p) R[h] === void 0 && (R[h] = p[h]);
13
+ return { $$typeof: d, type: T, key: x, ref: W, props: R, _owner: E.current };
22
14
  }
23
- return b.Fragment = i, b.jsx = u, b.jsxs = u, b;
15
+ return F.Fragment = v, F.jsx = k, F.jsxs = k, F;
24
16
  }
25
- var p = {};
26
- var I;
27
- function ne() {
28
- return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
29
- function t(e) {
30
- if (e == null) return null;
31
- if (typeof e == "function")
32
- return e.$$typeof === Z ? null : e.displayName || e.name || null;
33
- if (typeof e == "string") return e;
17
+ var I = {};
18
+ var xe;
19
+ function vr() {
20
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && (function() {
21
+ var c = we, d = /* @__PURE__ */ Symbol.for("react.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), E = /* @__PURE__ */ Symbol.for("react.strict_mode"), $ = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), h = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), x = /* @__PURE__ */ Symbol.for("react.lazy"), W = /* @__PURE__ */ Symbol.for("react.offscreen"), H = Symbol.iterator, Se = "@@iterator";
22
+ function Pe(e) {
23
+ if (e === null || typeof e != "object")
24
+ return null;
25
+ var r = H && e[H] || e[Se];
26
+ return typeof r == "function" ? r : null;
27
+ }
28
+ var S = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
29
+ function g(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
+ je("error", e, t);
34
+ }
35
+ }
36
+ function je(e, r, t) {
37
+ {
38
+ var n = S.ReactDebugCurrentFrame, o = n.getStackAddendum();
39
+ o !== "" && (r += "%s", t = t.concat([o]));
40
+ var u = t.map(function(i) {
41
+ return String(i);
42
+ });
43
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
44
+ }
45
+ }
46
+ var ke = !1, De = !1, Ae = !1, Fe = !1, Ie = !1, Z;
47
+ Z = /* @__PURE__ */ Symbol.for("react.module.reference");
48
+ function $e(e) {
49
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === $ || Ie || e === E || e === C || e === h || Fe || e === W || ke || De || Ae || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === R || e.$$typeof === k || e.$$typeof === T || e.$$typeof === p || // 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 We(e, r, t) {
56
+ var n = e.displayName;
57
+ if (n)
58
+ return n;
59
+ var o = r.displayName || r.name || "";
60
+ return o !== "" ? t + "(" + o + ")" : t;
61
+ }
62
+ function Q(e) {
63
+ return e.displayName || "Context";
64
+ }
65
+ function _(e) {
66
+ if (e == null)
67
+ return null;
68
+ if (typeof e.tag == "number" && g("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;
34
72
  switch (e) {
35
- case R:
73
+ case s:
36
74
  return "Fragment";
37
- case q:
75
+ case v:
76
+ return "Portal";
77
+ case $:
38
78
  return "Profiler";
39
- case U:
79
+ case E:
40
80
  return "StrictMode";
41
- case G:
81
+ case C:
42
82
  return "Suspense";
43
- case X:
83
+ case h:
44
84
  return "SuspenseList";
45
- case H:
46
- return "Activity";
47
85
  }
48
86
  if (typeof e == "object")
49
- switch (typeof e.tag == "number" && console.error(
50
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
- ), e.$$typeof) {
52
- case W:
53
- return "Portal";
54
- case J:
55
- return e.displayName || "Context";
56
- case z:
57
- return (e._context.displayName || "Context") + ".Consumer";
58
- case V:
59
- var r = e.render;
60
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
- case B:
62
- return r = e.displayName || null, r !== null ? r : t(e.type) || "Memo";
63
- case y:
64
- r = e._payload, e = e._init;
87
+ switch (e.$$typeof) {
88
+ case T:
89
+ var r = e;
90
+ return Q(r) + ".Consumer";
91
+ case k:
92
+ var t = e;
93
+ return Q(t._context) + ".Provider";
94
+ case p:
95
+ return We(e, e.render, "ForwardRef");
96
+ case R:
97
+ var n = e.displayName || null;
98
+ return n !== null ? n : _(e.type) || "Memo";
99
+ case x: {
100
+ var o = e, u = o._payload, i = o._init;
65
101
  try {
66
- return t(e(r));
102
+ return _(i(u));
67
103
  } catch {
104
+ return null;
68
105
  }
106
+ }
69
107
  }
70
108
  return null;
71
109
  }
72
- function i(e) {
73
- return "" + e;
110
+ var O = Object.assign, D = 0, ee, re, te, ne, ae, ie, oe;
111
+ function ue() {
112
+ }
113
+ ue.__reactDisabledLog = !0;
114
+ function Ye() {
115
+ {
116
+ if (D === 0) {
117
+ ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
118
+ var e = {
119
+ configurable: !0,
120
+ enumerable: !0,
121
+ value: ue,
122
+ writable: !0
123
+ };
124
+ Object.defineProperties(console, {
125
+ info: e,
126
+ log: e,
127
+ warn: e,
128
+ error: e,
129
+ group: e,
130
+ groupCollapsed: e,
131
+ groupEnd: e
132
+ });
133
+ }
134
+ D++;
135
+ }
136
+ }
137
+ function Le() {
138
+ {
139
+ if (D--, D === 0) {
140
+ var e = {
141
+ configurable: !0,
142
+ enumerable: !0,
143
+ writable: !0
144
+ };
145
+ Object.defineProperties(console, {
146
+ log: O({}, e, {
147
+ value: ee
148
+ }),
149
+ info: O({}, e, {
150
+ value: re
151
+ }),
152
+ warn: O({}, e, {
153
+ value: te
154
+ }),
155
+ error: O({}, e, {
156
+ value: ne
157
+ }),
158
+ group: O({}, e, {
159
+ value: ae
160
+ }),
161
+ groupCollapsed: O({}, e, {
162
+ value: ie
163
+ }),
164
+ groupEnd: O({}, e, {
165
+ value: oe
166
+ })
167
+ });
168
+ }
169
+ D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ }
171
+ }
172
+ var N = S.ReactCurrentDispatcher, B;
173
+ function Y(e, r, t) {
174
+ {
175
+ if (B === void 0)
176
+ try {
177
+ throw Error();
178
+ } catch (o) {
179
+ var n = o.stack.trim().match(/\n( *(at )?)/);
180
+ B = n && n[1] || "";
181
+ }
182
+ return `
183
+ ` + B + e;
184
+ }
74
185
  }
75
- function u(e) {
186
+ var J = !1, L;
187
+ {
188
+ var Ve = typeof WeakMap == "function" ? WeakMap : Map;
189
+ L = new Ve();
190
+ }
191
+ function se(e, r) {
192
+ if (!e || J)
193
+ return "";
194
+ {
195
+ var t = L.get(e);
196
+ if (t !== void 0)
197
+ return t;
198
+ }
199
+ var n;
200
+ J = !0;
201
+ var o = Error.prepareStackTrace;
202
+ Error.prepareStackTrace = void 0;
203
+ var u;
204
+ u = N.current, N.current = null, Ye();
76
205
  try {
77
- i(e);
78
- var r = !1;
79
- } catch {
80
- r = !0;
206
+ if (r) {
207
+ var i = function() {
208
+ throw Error();
209
+ };
210
+ if (Object.defineProperty(i.prototype, "props", {
211
+ set: function() {
212
+ throw Error();
213
+ }
214
+ }), typeof Reflect == "object" && Reflect.construct) {
215
+ try {
216
+ Reflect.construct(i, []);
217
+ } catch (b) {
218
+ n = b;
219
+ }
220
+ Reflect.construct(e, [], i);
221
+ } else {
222
+ try {
223
+ i.call();
224
+ } catch (b) {
225
+ n = b;
226
+ }
227
+ e.call(i.prototype);
228
+ }
229
+ } else {
230
+ try {
231
+ throw Error();
232
+ } catch (b) {
233
+ n = b;
234
+ }
235
+ e();
236
+ }
237
+ } catch (b) {
238
+ if (b && n && typeof b.stack == "string") {
239
+ for (var a = b.stack.split(`
240
+ `), y = n.stack.split(`
241
+ `), f = a.length - 1, l = y.length - 1; f >= 1 && l >= 0 && a[f] !== y[l]; )
242
+ l--;
243
+ for (; f >= 1 && l >= 0; f--, l--)
244
+ if (a[f] !== y[l]) {
245
+ if (f !== 1 || l !== 1)
246
+ do
247
+ if (f--, l--, l < 0 || a[f] !== y[l]) {
248
+ var m = `
249
+ ` + a[f].replace(" at new ", " at ");
250
+ return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, m), m;
251
+ }
252
+ while (f >= 1 && l >= 0);
253
+ break;
254
+ }
255
+ }
256
+ } finally {
257
+ J = !1, N.current = u, Le(), Error.prepareStackTrace = o;
81
258
  }
82
- if (r) {
83
- r = console;
84
- var a = r.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
- return a.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
- o
89
- ), i(e);
259
+ var j = e ? e.displayName || e.name : "", w = j ? Y(j) : "";
260
+ return typeof e == "function" && L.set(e, w), w;
261
+ }
262
+ function Me(e, r, t) {
263
+ return se(e, !1);
264
+ }
265
+ function Ue(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, Ue(e));
274
+ if (typeof e == "string")
275
+ return Y(e);
276
+ switch (e) {
277
+ case C:
278
+ return Y("Suspense");
279
+ case h:
280
+ return Y("SuspenseList");
90
281
  }
282
+ if (typeof e == "object")
283
+ switch (e.$$typeof) {
284
+ case p:
285
+ return Me(e.render);
286
+ case R:
287
+ return V(e.type, r, t);
288
+ case x: {
289
+ var n = e, o = n._payload, u = n._init;
290
+ try {
291
+ return V(u(o), r, t);
292
+ } catch {
293
+ }
294
+ }
295
+ }
296
+ return "";
297
+ }
298
+ var A = Object.prototype.hasOwnProperty, fe = {}, le = 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
+ le.setExtraStackFrame(t);
303
+ } else
304
+ le.setExtraStackFrame(null);
305
+ }
306
+ function Ne(e, r, t, n, o) {
307
+ {
308
+ var u = Function.call.bind(A);
309
+ for (var i in e)
310
+ if (u(e, i)) {
311
+ var a = void 0;
312
+ try {
313
+ if (typeof e[i] != "function") {
314
+ var y = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
315
+ throw y.name = "Invariant Violation", y;
316
+ }
317
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
+ } catch (f) {
319
+ a = f;
320
+ }
321
+ a && !(a instanceof Error) && (M(o), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(o), g("Failed %s type: %s", t, a.message), M(null));
322
+ }
323
+ }
324
+ }
325
+ var Be = Array.isArray;
326
+ function q(e) {
327
+ return Be(e);
91
328
  }
92
- function n(e) {
93
- if (e === R) return "<>";
94
- if (typeof e == "object" && e !== null && e.$$typeof === y)
95
- return "<...>";
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) {
96
336
  try {
97
- var r = t(e);
98
- return r ? "<" + r + ">" : "<...>";
337
+ return ce(e), !1;
99
338
  } catch {
100
- return "<...>";
339
+ return !0;
101
340
  }
102
341
  }
103
- function l() {
104
- var e = T.A;
105
- return e === null ? null : e.getOwner();
342
+ function ce(e) {
343
+ return "" + e;
344
+ }
345
+ function de(e) {
346
+ if (qe(e))
347
+ return g("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);
106
348
  }
107
- function c() {
108
- return Error("react-stack-top-frame");
349
+ var ve = S.ReactCurrentOwner, Ke = {
350
+ key: !0,
351
+ ref: !0,
352
+ __self: !0,
353
+ __source: !0
354
+ }, pe, ge;
355
+ function ze(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;
109
362
  }
110
- function m(e) {
111
- if (S.call(e, "key")) {
363
+ function Ge(e) {
364
+ if (A.call(e, "key")) {
112
365
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
113
- if (r && r.isReactWarning) return !1;
366
+ if (r && r.isReactWarning)
367
+ return !1;
114
368
  }
115
369
  return e.key !== void 0;
116
370
  }
117
- function d(e, r) {
118
- function a() {
119
- P || (P = !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
- ));
371
+ function Xe(e, r) {
372
+ typeof e.ref == "string" && ve.current;
373
+ }
374
+ function He(e, r) {
375
+ {
376
+ var t = function() {
377
+ pe || (pe = !0, g("%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 Ze(e, r) {
386
+ {
387
+ var t = function() {
388
+ ge || (ge = !0, g("%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
+ });
123
394
  }
124
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
125
- get: a,
126
- configurable: !0
127
- });
128
- }
129
- function L() {
130
- var e = t(this.type);
131
- return j[e] || (j[e] = !0, console.error(
132
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
133
- )), e = this.props.ref, e !== void 0 ? e : null;
134
- }
135
- function M(e, r, a, o, E, x) {
136
- var s = a.ref;
137
- return e = {
138
- $$typeof: w,
395
+ }
396
+ var Qe = function(e, r, t, n, o, u, i) {
397
+ var a = {
398
+ // This tag allows us to uniquely identify this as a React Element
399
+ $$typeof: d,
400
+ // Built-in properties that belong on the element
139
401
  type: e,
140
402
  key: r,
141
- props: a,
142
- _owner: o
143
- }, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
144
- enumerable: !1,
145
- get: L
146
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
147
- configurable: !1,
148
- enumerable: !1,
149
- writable: !0,
150
- value: 0
151
- }), Object.defineProperty(e, "_debugInfo", {
403
+ ref: t,
404
+ props: i,
405
+ // Record the component responsible for creating this element.
406
+ _owner: u
407
+ };
408
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
152
409
  configurable: !1,
153
410
  enumerable: !1,
154
411
  writable: !0,
155
- value: null
156
- }), Object.defineProperty(e, "_debugStack", {
412
+ value: !1
413
+ }), Object.defineProperty(a, "_self", {
157
414
  configurable: !1,
158
415
  enumerable: !1,
159
- writable: !0,
160
- value: E
161
- }), Object.defineProperty(e, "_debugTask", {
416
+ writable: !1,
417
+ value: n
418
+ }), Object.defineProperty(a, "_source", {
162
419
  configurable: !1,
163
420
  enumerable: !1,
164
- writable: !0,
165
- value: x
166
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
167
- }
168
- function k(e, r, a, o, E, x) {
169
- var s = r.children;
170
- if (s !== void 0)
171
- if (o)
172
- if (Q(s)) {
173
- for (o = 0; o < s.length; o++)
174
- A(s[o]);
175
- Object.freeze && Object.freeze(s);
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 A(s);
181
- if (S.call(r, "key")) {
182
- s = t(e);
183
- var f = Object.keys(r).filter(function(K) {
184
- return K !== "key";
185
- });
186
- o = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", Y[s + o] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
187
- `A props object containing a "key" prop is being spread into JSX:
421
+ writable: !1,
422
+ value: o
423
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
424
+ };
425
+ function er(e, r, t, n, o) {
426
+ {
427
+ var u, i = {}, a = null, y = null;
428
+ t !== void 0 && (de(t), a = "" + t), Ge(r) && (de(r.key), a = "" + r.key), ze(r) && (y = r.ref, Xe(r, o));
429
+ for (u in r)
430
+ A.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
431
+ if (e && e.defaultProps) {
432
+ var f = e.defaultProps;
433
+ for (u in f)
434
+ i[u] === void 0 && (i[u] = f[u]);
435
+ }
436
+ if (a || y) {
437
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
438
+ a && He(i, l), y && Ze(i, l);
439
+ }
440
+ return Qe(e, a, y, o, n, ve.current, i);
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 === d;
455
+ }
456
+ function be() {
457
+ {
458
+ if (K.current) {
459
+ var e = _(K.current.type);
460
+ if (e)
461
+ return `
462
+
463
+ Check the render method of \`` + e + "`.";
464
+ }
465
+ return "";
466
+ }
467
+ }
468
+ function rr(e) {
469
+ return "";
470
+ }
471
+ var he = {};
472
+ function tr(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 = tr(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 " + _(e._owner.type) + "."), P(e), g('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 (q(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 o = Pe(e);
510
+ if (typeof o == "function" && o !== e.entries)
511
+ for (var u = o.call(e), i; !(i = u.next()).done; )
512
+ G(i.value) && me(i.value, r);
513
+ }
514
+ }
515
+ }
516
+ function nr(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 === p || // Note: Memo only checks outer props here.
525
+ // Inner props are checked in the reconciler.
526
+ r.$$typeof === R))
527
+ t = r.propTypes;
528
+ else
529
+ return;
530
+ if (t) {
531
+ var n = _(r);
532
+ Ne(t, e.props, "prop", n, e);
533
+ } else if (r.PropTypes !== void 0 && !z) {
534
+ z = !0;
535
+ var o = _(r);
536
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
537
+ }
538
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
539
+ }
540
+ }
541
+ function ar(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), g("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), g("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
551
+ }
552
+ }
553
+ var Re = {};
554
+ function _e(e, r, t, n, o, u) {
555
+ {
556
+ var i = $e(e);
557
+ if (!i) {
558
+ var a = "";
559
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
560
+ var y = rr();
561
+ y ? a += y : a += be();
562
+ var f;
563
+ e === null ? f = "null" : q(e) ? f = "array" : e !== void 0 && e.$$typeof === d ? (f = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, a);
564
+ }
565
+ var l = er(e, r, t, o, u);
566
+ if (l == null)
567
+ return l;
568
+ if (i) {
569
+ var m = r.children;
570
+ if (m !== void 0)
571
+ if (n)
572
+ if (q(m)) {
573
+ for (var j = 0; j < m.length; j++)
574
+ Ee(m[j], e);
575
+ Object.freeze && Object.freeze(m);
576
+ } else
577
+ g("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(m, e);
580
+ }
581
+ if (A.call(r, "key")) {
582
+ var w = _(e), b = Object.keys(r).filter(function(lr) {
583
+ return lr !== "key";
584
+ }), X = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
585
+ if (!Re[w + X]) {
586
+ var fr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
587
+ g(`A props object containing a "key" prop is being spread into JSX:
188
588
  let props = %s;
189
589
  <%s {...props} />
190
590
  React keys must be passed directly to JSX without using spread:
191
591
  let props = %s;
192
- <%s key={someKey} {...props} />`,
193
- o,
194
- s,
195
- f,
196
- s
197
- ), Y[s + o] = !0);
198
- }
199
- if (s = null, a !== void 0 && (u(a), s = "" + a), m(r) && (u(r.key), s = "" + r.key), "key" in r) {
200
- a = {};
201
- for (var h in r)
202
- h !== "key" && (a[h] = r[h]);
203
- } else a = r;
204
- return s && d(
205
- a,
206
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
- ), M(
208
- e,
209
- s,
210
- a,
211
- l(),
212
- E,
213
- x
214
- );
215
- }
216
- function A(e) {
217
- O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === y && (e._payload.status === "fulfilled" ? O(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
- }
219
- function O(e) {
220
- return typeof e == "object" && e !== null && e.$$typeof === w;
221
- }
222
- var _ = ee, w = /* @__PURE__ */ Symbol.for("react.transitional.element"), W = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), U = /* @__PURE__ */ Symbol.for("react.strict_mode"), q = /* @__PURE__ */ Symbol.for("react.profiler"), z = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), G = /* @__PURE__ */ Symbol.for("react.suspense"), X = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), y = /* @__PURE__ */ Symbol.for("react.lazy"), H = /* @__PURE__ */ Symbol.for("react.activity"), Z = /* @__PURE__ */ Symbol.for("react.client.reference"), T = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, S = Object.prototype.hasOwnProperty, Q = Array.isArray, g = console.createTask ? console.createTask : function() {
223
- return null;
224
- };
225
- _ = {
226
- react_stack_bottom_frame: function(e) {
227
- return e();
592
+ <%s key={someKey} {...props} />`, X, w, fr, w), Re[w + X] = !0;
593
+ }
594
+ }
595
+ return e === s ? ar(l) : nr(l), l;
228
596
  }
229
- };
230
- var P, j = {}, N = _.react_stack_bottom_frame.bind(
231
- _,
232
- c
233
- )(), C = g(n(c)), Y = {};
234
- p.Fragment = R, p.jsx = function(e, r, a) {
235
- var o = 1e4 > T.recentlyCreatedOwnerStacks++;
236
- return k(
237
- e,
238
- r,
239
- a,
240
- !1,
241
- o ? Error("react-stack-top-frame") : N,
242
- o ? g(n(e)) : C
243
- );
244
- }, p.jsxs = function(e, r, a) {
245
- var o = 1e4 > T.recentlyCreatedOwnerStacks++;
246
- return k(
247
- e,
248
- r,
249
- a,
250
- !0,
251
- o ? Error("react-stack-top-frame") : N,
252
- o ? g(n(e)) : C
253
- );
254
- };
255
- })()), p;
597
+ }
598
+ function ir(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 ur = or, sr = ir;
605
+ I.Fragment = s, I.jsx = ur, I.jsxs = sr;
606
+ })()), I;
256
607
  }
257
- var F;
258
- function ae() {
259
- return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = te() : v.exports = ne()), v.exports;
608
+ var Oe;
609
+ function pr() {
610
+ return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? U.exports = dr() : U.exports = vr()), U.exports;
260
611
  }
261
- var oe = ae();
262
- function D(t) {
263
- var i, u, n = "";
264
- if (typeof t == "string" || typeof t == "number") n += t;
265
- else if (typeof t == "object") if (Array.isArray(t)) {
266
- var l = t.length;
267
- for (i = 0; i < l; i++) t[i] && (u = D(t[i])) && (n && (n += " "), n += u);
268
- } else for (u in t) t[u] && (n && (n += " "), n += u);
269
- return n;
612
+ var gr = pr();
613
+ function Ce(c) {
614
+ var d, v, s = "";
615
+ if (typeof c == "string" || typeof c == "number") s += c;
616
+ else if (typeof c == "object") if (Array.isArray(c)) {
617
+ var E = c.length;
618
+ for (d = 0; d < E; d++) c[d] && (v = Ce(c[d])) && (s && (s += " "), s += v);
619
+ } else for (v in c) c[v] && (s && (s += " "), s += v);
620
+ return s;
270
621
  }
271
- function se() {
272
- for (var t, i, u = 0, n = "", l = arguments.length; u < l; u++) (t = arguments[u]) && (i = D(t)) && (n && (n += " "), n += i);
273
- return n;
622
+ function yr() {
623
+ for (var c, d, v = 0, s = "", E = arguments.length; v < E; v++) (c = arguments[v]) && (d = Ce(c)) && (s && (s += " "), s += d);
624
+ return s;
274
625
  }
275
- const ue = {
626
+ const br = {
276
627
  primary: "bg-primary text-white hover:bg-primary-hover focus:ring-primary-light",
277
628
  secondary: "bg-secondary text-white hover:bg-secondary-hover",
278
629
  danger: "bg-danger text-white hover:bg-danger-hover",
279
630
  outline: "border border-primary text-primary hover:bg-primary-light"
280
- }, le = {
631
+ }, hr = {
281
632
  sm: "px-3 py-1.5 text-sm",
282
633
  md: "px-4 py-2 text-sm",
283
634
  lg: "px-6 py-3 text-base"
284
- }, ie = re(
285
- ({ variant: t = "primary", size: i = "md", className: u, ...n }, l) => /* @__PURE__ */ oe.jsx(
635
+ }, mr = cr(
636
+ ({ variant: c = "primary", size: d = "md", className: v, ...s }, E) => /* @__PURE__ */ gr.jsx(
286
637
  "button",
287
638
  {
288
- ref: l,
289
- className: se(
639
+ ref: E,
640
+ className: yr(
290
641
  "inline-flex items-center justify-center rounded-md font-medium transition-all focus:outline-none focus:ring-2 focus:ring-offset-2",
291
- ue[t],
292
- le[i],
293
- n.disabled && "opacity-50 cursor-not-allowed",
294
- u
642
+ br[c],
643
+ hr[d],
644
+ s.disabled && "opacity-50 cursor-not-allowed",
645
+ v
295
646
  ),
296
- ...n
647
+ ...s
297
648
  }
298
649
  )
299
650
  );
300
- ie.displayName = "Button";
651
+ mr.displayName = "Button";
301
652
  export {
302
- ie as Button
653
+ mr as Button
303
654
  };
@@ -1,6 +1,14 @@
1
- (function(f,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],d):(f=typeof globalThis<"u"?globalThis:f||self,d(f.ReactUIKit={},f.require$$0))})(this,(function(f,d){"use strict";var E={exports:{}},p={};var A;function W(){if(A)return p;A=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(n,i,c){var _=null;if(c!==void 0&&(_=""+c),i.key!==void 0&&(_=""+i.key),"key"in i){c={};for(var v in i)v!=="key"&&(c[v]=i[v])}else c=i;return i=c.ref,{$$typeof:t,type:n,key:_,ref:i!==void 0?i:null,props:c}}return p.Fragment=l,p.jsx=u,p.jsxs=u,p}var b={};var w;function q(){return w||(w=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case K:return"Profiler";case Q:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList";case se: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 Z:return"Portal";case re:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case te:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return r=e.displayName||null,r!==null?r:t(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function l(e){return""+e}function u(e){try{l(e);var r=!1}catch{r=!0}if(r){r=console;var o=r.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),l(e)}}function n(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=h.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function _(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function v(e,r){function o(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function X(){var e=t(this.type);return D[e]||(D[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 H(e,r,o,a,y,k){var s=o.ref;return e={$$typeof:I,type:e,key:r,props:o,_owner:a},(s!==void 0?s:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:X}):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:y}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,r,o,a,y,k){var s=r.children;if(s!==void 0)if(a)if(ie(s)){for(a=0;a<s.length;a++)C(s[a]);Object.freeze&&Object.freeze(s)}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 C(s);if($.call(r,"key")){s=t(e);var m=Object.keys(r).filter(function(le){return le!=="key"});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",U[s+a]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(T,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(T=typeof globalThis<"u"?globalThis:T||self,x(T.ReactUIKit={},T.require$$0))})(this,(function(T,x){"use strict";var $={exports:{}},A={};var Q;function je(){if(Q)return A;Q=1;var c=x,d=Symbol.for("react.element"),v=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,R=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function I(O,p,P){var b,E={},w=null,M=null;P!==void 0&&(w=""+P),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(M=p.ref);for(b in p)s.call(p,b)&&!L.hasOwnProperty(b)&&(E[b]=p[b]);if(O&&O.defaultProps)for(b in p=O.defaultProps,p)E[b]===void 0&&(E[b]=p[b]);return{$$typeof:d,type:O,key:w,ref:M,props:E,_owner:R.current}}return A.Fragment=v,A.jsx=I,A.jsxs=I,A}var F={};var ee;function ke(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&(function(){var c=x,d=Symbol.for("react.element"),v=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),O=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ae=Symbol.iterator,Ye="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[Ye];return typeof r=="function"?r:null}var j=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Le("error",e,t)}}function Le(e,r,t){{var n=j.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Me=!1,Ue=!1,Ve=!1,Ne=!1,Be=!1,ie;ie=Symbol.for("react.module.reference");function Je(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===L||Be||e===R||e===P||e===b||Ne||e===M||Me||Ue||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===E||e.$$typeof===I||e.$$typeof===O||e.$$typeof===p||e.$$typeof===ie||e.getModuleId!==void 0))}function qe(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function oe(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&y("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 s:return"Fragment";case v:return"Portal";case L:return"Profiler";case R:return"StrictMode";case P:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case O:var r=e;return oe(r)+".Consumer";case I:var t=e;return oe(t._context)+".Provider";case p:return qe(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case w:{var o=e,u=o._payload,i=o._init;try{return _(i(u))}catch{return null}}}return null}var S=Object.assign,W=0,ue,se,fe,le,ce,de,ve;function pe(){}pe.__reactDisabledLog=!0;function Ke(){{if(W===0){ue=console.log,se=console.info,fe=console.warn,le=console.error,ce=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function ze(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:ue}),info:S({},e,{value:se}),warn:S({},e,{value:fe}),error:S({},e,{value:le}),group:S({},e,{value:ce}),groupCollapsed:S({},e,{value:de}),groupEnd:S({},e,{value:ve})})}W<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=j.ReactCurrentDispatcher,q;function U(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
2
+ `+q+e}}var K=!1,V;{var Ge=typeof WeakMap=="function"?WeakMap:Map;V=new Ge}function ye(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Ke();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(h){n=h}Reflect.construct(e,[],i)}else{try{i.call()}catch(h){n=h}e.call(i.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var a=h.stack.split(`
3
+ `),g=n.stack.split(`
4
+ `),f=a.length-1,l=g.length-1;f>=1&&l>=0&&a[f]!==g[l];)l--;for(;f>=1&&l>=0;f--,l--)if(a[f]!==g[l]){if(f!==1||l!==1)do if(f--,l--,l<0||a[f]!==g[l]){var m=`
5
+ `+a[f].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,m),m}while(f>=1&&l>=0);break}}}finally{K=!1,J.current=u,ze(),Error.prepareStackTrace=o}var D=e?e.displayName||e.name:"",C=D?U(D):"";return typeof e=="function"&&V.set(e,C),C}function Xe(e,r,t){return ye(e,!1)}function He(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,He(e));if(typeof e=="string")return U(e);switch(e){case P:return U("Suspense");case b:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Xe(e.render);case E:return N(e.type,r,t);case w:{var n=e,o=n._payload,u=n._init;try{return N(u(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,ge={},he=j.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Ze(e,r,t,n,o){{var u=Function.call.bind(Y);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var g=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 g.name="Invariant Violation",g}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(B(o),y("%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 ge)&&(ge[a.message]=!0,B(o),y("Failed %s type: %s",t,a.message),B(null))}}}var Qe=Array.isArray;function z(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function me(e){if(rr(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),be(e)}var Re=j.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Ee,_e;function nr(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 ar(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 ir(e,r){typeof e.ref=="string"&&Re.current}function or(e,r){{var t=function(){Ee||(Ee=!0,y("%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 ur(e,r){{var t=function(){_e||(_e=!0,y("%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 sr=function(e,r,t,n,o,u,i){var a={$$typeof:d,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function fr(e,r,t,n,o){{var u,i={},a=null,g=null;t!==void 0&&(me(t),a=""+t),ar(r)&&(me(r.key),a=""+r.key),nr(r)&&(g=r.ref,ir(r,o));for(u in r)Y.call(r,u)&&!tr.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)i[u]===void 0&&(i[u]=f[u])}if(a||g){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&or(i,l),g&&ur(i,l)}return sr(e,a,g,o,n,Re.current,i)}}var G=j.ReactCurrentOwner,Te=j.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var X;X=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function xe(){{if(G.current){var e=_(G.current.type);if(e)return`
6
+
7
+ Check the render method of \``+e+"`."}return""}}function lr(e){return""}var Oe={};function cr(e){{var r=xe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
8
+
9
+ Check the top-level render call using <`+t+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==G.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),k(e),y('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 Se(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&we(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 u=o.call(e),i;!(i=u.next()).done;)H(i.value)&&we(i.value,r)}}}function dr(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===p||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=_(r);Ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=_(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(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),y("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),y("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}var Ce={};function Pe(e,r,t,n,o,u){{var i=Je(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 g=lr();g?a+=g:a+=xe();var f;e===null?f="null":z(e)?f="array":e!==void 0&&e.$$typeof===d?(f="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var l=fr(e,r,t,o,u);if(l==null)return l;if(i){var m=r.children;if(m!==void 0)if(n)if(z(m)){for(var D=0;D<m.length;D++)Se(m[D],e);Object.freeze&&Object.freeze(m)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Se(m,e)}if(Y.call(r,"key")){var C=_(e),h=Object.keys(r).filter(function(mr){return mr!=="key"}),Z=h.length>0?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[C+Z]){var br=h.length>0?"{"+h.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
2
10
  let props = %s;
3
11
  <%s {...props} />
4
12
  React keys must be passed directly to JSX without using spread:
5
13
  let props = %s;
6
- <%s key={someKey} {...props} />`,a,s,m,s),U[s+a]=!0)}if(s=null,o!==void 0&&(u(o),s=""+o),_(r)&&(u(r.key),s=""+r.key),"key"in r){o={};for(var O in r)O!=="key"&&(o[O]=r[O])}else o=r;return s&&v(o,typeof e=="function"?e.displayName||e.name||"Unknown":e),H(e,s,o,i(),y,k)}function C(e){Y(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===g&&(e._payload.status==="fulfilled"?Y(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function Y(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}var R=d,I=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),re=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),h=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,ie=Array.isArray,x=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(e){return e()}};var F,D={},M=R.react_stack_bottom_frame.bind(R,c)(),L=x(n(c)),U={};b.Fragment=T,b.jsx=function(e,r,o){var a=1e4>h.recentlyCreatedOwnerStacks++;return N(e,r,o,!1,a?Error("react-stack-top-frame"):M,a?x(n(e)):L)},b.jsxs=function(e,r,o){var a=1e4>h.recentlyCreatedOwnerStacks++;return N(e,r,o,!0,a?Error("react-stack-top-frame"):M,a?x(n(e)):L)}})()),b}var S;function z(){return S||(S=1,process.env.NODE_ENV==="production"?E.exports=W():E.exports=q()),E.exports}var J=z();function j(t){var l,u,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(l=0;l<i;l++)t[l]&&(u=j(t[l]))&&(n&&(n+=" "),n+=u)}else for(u in t)t[u]&&(n&&(n+=" "),n+=u);return n}function V(){for(var t,l,u=0,n="",i=arguments.length;u<i;u++)(t=arguments[u])&&(l=j(t))&&(n&&(n+=" "),n+=l);return n}const G={primary:"bg-primary text-white hover:bg-primary-hover focus:ring-primary-light",secondary:"bg-secondary text-white hover:bg-secondary-hover",danger:"bg-danger text-white hover:bg-danger-hover",outline:"border border-primary text-primary hover:bg-primary-light"},B={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},P=d.forwardRef(({variant:t="primary",size:l="md",className:u,...n},i)=>J.jsx("button",{ref:i,className:V("inline-flex items-center justify-center rounded-md font-medium transition-all focus:outline-none focus:ring-2 focus:ring-offset-2",G[t],B[l],n.disabled&&"opacity-50 cursor-not-allowed",u),...n}));P.displayName="Button",f.Button=P,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})}));
14
+ <%s key={someKey} {...props} />`,Z,C,br,C),Ce[C+Z]=!0}}return e===s?vr(l):dr(l),l}}function pr(e,r,t){return Pe(e,r,t,!0)}function yr(e,r,t){return Pe(e,r,t,!1)}var gr=yr,hr=pr;F.Fragment=s,F.jsx=gr,F.jsxs=hr})()),F}var re;function De(){return re||(re=1,process.env.NODE_ENV==="production"?$.exports=je():$.exports=ke()),$.exports}var Ae=De();function te(c){var d,v,s="";if(typeof c=="string"||typeof c=="number")s+=c;else if(typeof c=="object")if(Array.isArray(c)){var R=c.length;for(d=0;d<R;d++)c[d]&&(v=te(c[d]))&&(s&&(s+=" "),s+=v)}else for(v in c)c[v]&&(s&&(s+=" "),s+=v);return s}function Fe(){for(var c,d,v=0,s="",R=arguments.length;v<R;v++)(c=arguments[v])&&(d=te(c))&&(s&&(s+=" "),s+=d);return s}const Ie={primary:"bg-primary text-white hover:bg-primary-hover focus:ring-primary-light",secondary:"bg-secondary text-white hover:bg-secondary-hover",danger:"bg-danger text-white hover:bg-danger-hover",outline:"border border-primary text-primary hover:bg-primary-light"},We={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},ne=x.forwardRef(({variant:c="primary",size:d="md",className:v,...s},R)=>Ae.jsx("button",{ref:R,className:Fe("inline-flex items-center justify-center rounded-md font-medium transition-all focus:outline-none focus:ring-2 focus:ring-offset-2",Ie[c],We[d],s.disabled&&"opacity-50 cursor-not-allowed",v),...s}));ne.displayName="Button",T.Button=ne,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raghu5707/react-ui-kit",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/react-ui-kit.umd.cjs",
6
6
  "module": "dist/react-ui-kit.es.js",