levannta-ui 1.0.0

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