@sigtes/ui 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-4bFnDFTG.js → Button-5NOkO3IC.js} +163 -143
- package/dist/Button-CfO2renX.cjs +22 -0
- package/dist/components.cjs.js +46 -109
- package/dist/components.es.js +4006 -8060
- package/dist/globals.css +1 -1
- package/dist/pages.cjs.js +18 -2
- package/dist/pages.es.js +534 -473
- package/package.json +2 -2
- package/dist/Button-BZQNLEhf.cjs +0 -6
- package/dist/components/form/Form.d.ts +0 -23
|
@@ -1,70 +1,88 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { twMerge as
|
|
6
|
-
var
|
|
7
|
-
|
|
2
|
+
import re from "react";
|
|
3
|
+
import { Slot as te } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as ne } from "class-variance-authority";
|
|
5
|
+
import { twMerge as oe } from "tailwind-merge";
|
|
6
|
+
var _ = { exports: {} }, p = {};
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-jsx-runtime.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var F;
|
|
8
17
|
function ae() {
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
var t =
|
|
12
|
-
function
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
for (var
|
|
17
|
-
|
|
18
|
-
} else
|
|
19
|
-
return
|
|
18
|
+
if (F) return p;
|
|
19
|
+
F = 1;
|
|
20
|
+
var t = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
|
|
21
|
+
function a(o, s, l) {
|
|
22
|
+
var v = null;
|
|
23
|
+
if (l !== void 0 && (v = "" + l), s.key !== void 0 && (v = "" + s.key), "key" in s) {
|
|
24
|
+
l = {};
|
|
25
|
+
for (var b in s)
|
|
26
|
+
b !== "key" && (l[b] = s[b]);
|
|
27
|
+
} else l = s;
|
|
28
|
+
return s = l.ref, {
|
|
20
29
|
$$typeof: t,
|
|
21
|
-
type:
|
|
22
|
-
key:
|
|
23
|
-
ref:
|
|
24
|
-
props:
|
|
30
|
+
type: o,
|
|
31
|
+
key: v,
|
|
32
|
+
ref: s !== void 0 ? s : null,
|
|
33
|
+
props: l
|
|
25
34
|
};
|
|
26
35
|
}
|
|
27
|
-
return
|
|
36
|
+
return p.Fragment = c, p.jsx = a, p.jsxs = a, p;
|
|
28
37
|
}
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
var g = {};
|
|
39
|
+
/**
|
|
40
|
+
* @license React
|
|
41
|
+
* react-jsx-runtime.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/
|
|
48
|
+
var D;
|
|
49
|
+
function se() {
|
|
50
|
+
return D || (D = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
33
51
|
function t(e) {
|
|
34
52
|
if (e == null) return null;
|
|
35
53
|
if (typeof e == "function")
|
|
36
|
-
return e.$$typeof ===
|
|
54
|
+
return e.$$typeof === Q ? null : e.displayName || e.name || null;
|
|
37
55
|
if (typeof e == "string") return e;
|
|
38
56
|
switch (e) {
|
|
39
|
-
case
|
|
57
|
+
case R:
|
|
40
58
|
return "Fragment";
|
|
41
|
-
case
|
|
59
|
+
case V:
|
|
42
60
|
return "Profiler";
|
|
43
|
-
case
|
|
61
|
+
case U:
|
|
44
62
|
return "StrictMode";
|
|
45
|
-
case G:
|
|
46
|
-
return "Suspense";
|
|
47
63
|
case X:
|
|
64
|
+
return "Suspense";
|
|
65
|
+
case B:
|
|
48
66
|
return "SuspenseList";
|
|
49
|
-
case
|
|
67
|
+
case Z:
|
|
50
68
|
return "Activity";
|
|
51
69
|
}
|
|
52
70
|
if (typeof e == "object")
|
|
53
71
|
switch (typeof e.tag == "number" && console.error(
|
|
54
72
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
55
73
|
), e.$$typeof) {
|
|
56
|
-
case
|
|
74
|
+
case W:
|
|
57
75
|
return "Portal";
|
|
76
|
+
case q:
|
|
77
|
+
return (e.displayName || "Context") + ".Provider";
|
|
58
78
|
case J:
|
|
59
|
-
return e.displayName || "Context";
|
|
60
|
-
case V:
|
|
61
79
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
62
|
-
case
|
|
80
|
+
case G:
|
|
63
81
|
var r = e.render;
|
|
64
82
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
65
|
-
case
|
|
83
|
+
case H:
|
|
66
84
|
return r = e.displayName || null, r !== null ? r : t(e.type) || "Memo";
|
|
67
|
-
case
|
|
85
|
+
case S:
|
|
68
86
|
r = e._payload, e = e._init;
|
|
69
87
|
try {
|
|
70
88
|
return t(e(r));
|
|
@@ -73,29 +91,29 @@ function oe() {
|
|
|
73
91
|
}
|
|
74
92
|
return null;
|
|
75
93
|
}
|
|
76
|
-
function
|
|
94
|
+
function c(e) {
|
|
77
95
|
return "" + e;
|
|
78
96
|
}
|
|
79
|
-
function
|
|
97
|
+
function a(e) {
|
|
80
98
|
try {
|
|
81
|
-
|
|
99
|
+
c(e);
|
|
82
100
|
var r = !1;
|
|
83
101
|
} catch {
|
|
84
102
|
r = !0;
|
|
85
103
|
}
|
|
86
104
|
if (r) {
|
|
87
105
|
r = console;
|
|
88
|
-
var n = r.error,
|
|
106
|
+
var n = r.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
89
107
|
return n.call(
|
|
90
108
|
r,
|
|
91
109
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
92
|
-
|
|
93
|
-
),
|
|
110
|
+
i
|
|
111
|
+
), c(e);
|
|
94
112
|
}
|
|
95
113
|
}
|
|
96
|
-
function
|
|
97
|
-
if (e ===
|
|
98
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
114
|
+
function o(e) {
|
|
115
|
+
if (e === R) return "<>";
|
|
116
|
+
if (typeof e == "object" && e !== null && e.$$typeof === S)
|
|
99
117
|
return "<...>";
|
|
100
118
|
try {
|
|
101
119
|
var r = t(e);
|
|
@@ -104,21 +122,21 @@ function oe() {
|
|
|
104
122
|
return "<...>";
|
|
105
123
|
}
|
|
106
124
|
}
|
|
107
|
-
function
|
|
125
|
+
function s() {
|
|
108
126
|
var e = h.A;
|
|
109
127
|
return e === null ? null : e.getOwner();
|
|
110
128
|
}
|
|
111
|
-
function
|
|
129
|
+
function l() {
|
|
112
130
|
return Error("react-stack-top-frame");
|
|
113
131
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
132
|
+
function v(e) {
|
|
133
|
+
if (j.call(e, "key")) {
|
|
116
134
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
117
135
|
if (r && r.isReactWarning) return !1;
|
|
118
136
|
}
|
|
119
137
|
return e.key !== void 0;
|
|
120
138
|
}
|
|
121
|
-
function
|
|
139
|
+
function b(e, r) {
|
|
122
140
|
function n() {
|
|
123
141
|
P || (P = !0, console.error(
|
|
124
142
|
"%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)",
|
|
@@ -130,23 +148,22 @@ function oe() {
|
|
|
130
148
|
configurable: !0
|
|
131
149
|
});
|
|
132
150
|
}
|
|
133
|
-
function
|
|
151
|
+
function M() {
|
|
134
152
|
var e = t(this.type);
|
|
135
|
-
return
|
|
153
|
+
return N[e] || (N[e] = !0, console.error(
|
|
136
154
|
"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."
|
|
137
155
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
138
156
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
return e = {
|
|
157
|
+
function L(e, r, n, i, d, f, k, x) {
|
|
158
|
+
return n = f.ref, e = {
|
|
142
159
|
$$typeof: O,
|
|
143
160
|
type: e,
|
|
144
161
|
key: r,
|
|
145
|
-
props:
|
|
146
|
-
_owner:
|
|
147
|
-
}, (
|
|
162
|
+
props: f,
|
|
163
|
+
_owner: d
|
|
164
|
+
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
148
165
|
enumerable: !1,
|
|
149
|
-
get:
|
|
166
|
+
get: M
|
|
150
167
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
151
168
|
configurable: !1,
|
|
152
169
|
enumerable: !1,
|
|
@@ -161,109 +178,112 @@ function oe() {
|
|
|
161
178
|
configurable: !1,
|
|
162
179
|
enumerable: !1,
|
|
163
180
|
writable: !0,
|
|
164
|
-
value:
|
|
181
|
+
value: k
|
|
165
182
|
}), Object.defineProperty(e, "_debugTask", {
|
|
166
183
|
configurable: !1,
|
|
167
184
|
enumerable: !1,
|
|
168
185
|
writable: !0,
|
|
169
|
-
value:
|
|
186
|
+
value: x
|
|
170
187
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
171
188
|
}
|
|
172
|
-
function
|
|
173
|
-
var
|
|
174
|
-
if (
|
|
175
|
-
if (
|
|
176
|
-
if (
|
|
177
|
-
for (
|
|
178
|
-
|
|
179
|
-
Object.freeze && Object.freeze(
|
|
189
|
+
function w(e, r, n, i, d, f, k, x) {
|
|
190
|
+
var u = r.children;
|
|
191
|
+
if (u !== void 0)
|
|
192
|
+
if (i)
|
|
193
|
+
if (K(u)) {
|
|
194
|
+
for (i = 0; i < u.length; i++)
|
|
195
|
+
A(u[i]);
|
|
196
|
+
Object.freeze && Object.freeze(u);
|
|
180
197
|
} else
|
|
181
198
|
console.error(
|
|
182
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
183
200
|
);
|
|
184
|
-
else
|
|
185
|
-
if (
|
|
186
|
-
|
|
187
|
-
var
|
|
188
|
-
return
|
|
201
|
+
else A(u);
|
|
202
|
+
if (j.call(r, "key")) {
|
|
203
|
+
u = t(e);
|
|
204
|
+
var m = Object.keys(r).filter(function(ee) {
|
|
205
|
+
return ee !== "key";
|
|
189
206
|
});
|
|
190
|
-
|
|
207
|
+
i = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", I[u + i] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
191
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
192
209
|
let props = %s;
|
|
193
210
|
<%s {...props} />
|
|
194
211
|
React keys must be passed directly to JSX without using spread:
|
|
195
212
|
let props = %s;
|
|
196
213
|
<%s key={someKey} {...props} />`,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
),
|
|
214
|
+
i,
|
|
215
|
+
u,
|
|
216
|
+
m,
|
|
217
|
+
u
|
|
218
|
+
), I[u + i] = !0);
|
|
202
219
|
}
|
|
203
|
-
if (
|
|
220
|
+
if (u = null, n !== void 0 && (a(n), u = "" + n), v(r) && (a(r.key), u = "" + r.key), "key" in r) {
|
|
204
221
|
n = {};
|
|
205
|
-
for (var
|
|
206
|
-
|
|
222
|
+
for (var y in r)
|
|
223
|
+
y !== "key" && (n[y] = r[y]);
|
|
207
224
|
} else n = r;
|
|
208
|
-
return
|
|
225
|
+
return u && b(
|
|
209
226
|
n,
|
|
210
227
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
211
|
-
),
|
|
228
|
+
), L(
|
|
212
229
|
e,
|
|
213
|
-
|
|
230
|
+
u,
|
|
231
|
+
f,
|
|
232
|
+
d,
|
|
233
|
+
s(),
|
|
214
234
|
n,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
k
|
|
235
|
+
k,
|
|
236
|
+
x
|
|
218
237
|
);
|
|
219
238
|
}
|
|
220
|
-
function w(e) {
|
|
221
|
-
A(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === R && (e._payload.status === "fulfilled" ? A(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
222
|
-
}
|
|
223
239
|
function A(e) {
|
|
224
|
-
|
|
240
|
+
typeof e == "object" && e !== null && e.$$typeof === O && e._store && (e._store.validated = 1);
|
|
225
241
|
}
|
|
226
|
-
var
|
|
242
|
+
var E = re, O = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), V = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), q = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), h = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, K = Array.isArray, T = console.createTask ? console.createTask : function() {
|
|
227
243
|
return null;
|
|
228
244
|
};
|
|
229
|
-
|
|
245
|
+
E = {
|
|
230
246
|
react_stack_bottom_frame: function(e) {
|
|
231
247
|
return e();
|
|
232
248
|
}
|
|
233
249
|
};
|
|
234
|
-
var P,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
)(),
|
|
238
|
-
|
|
239
|
-
var
|
|
240
|
-
return
|
|
250
|
+
var P, N = {}, C = E.react_stack_bottom_frame.bind(
|
|
251
|
+
E,
|
|
252
|
+
l
|
|
253
|
+
)(), Y = T(o(l)), I = {};
|
|
254
|
+
g.Fragment = R, g.jsx = function(e, r, n, i, d) {
|
|
255
|
+
var f = 1e4 > h.recentlyCreatedOwnerStacks++;
|
|
256
|
+
return w(
|
|
241
257
|
e,
|
|
242
258
|
r,
|
|
243
259
|
n,
|
|
244
260
|
!1,
|
|
245
|
-
|
|
246
|
-
|
|
261
|
+
i,
|
|
262
|
+
d,
|
|
263
|
+
f ? Error("react-stack-top-frame") : C,
|
|
264
|
+
f ? T(o(e)) : Y
|
|
247
265
|
);
|
|
248
|
-
},
|
|
249
|
-
var
|
|
250
|
-
return
|
|
266
|
+
}, g.jsxs = function(e, r, n, i, d) {
|
|
267
|
+
var f = 1e4 > h.recentlyCreatedOwnerStacks++;
|
|
268
|
+
return w(
|
|
251
269
|
e,
|
|
252
270
|
r,
|
|
253
271
|
n,
|
|
254
272
|
!0,
|
|
255
|
-
|
|
256
|
-
|
|
273
|
+
i,
|
|
274
|
+
d,
|
|
275
|
+
f ? Error("react-stack-top-frame") : C,
|
|
276
|
+
f ? T(o(e)) : Y
|
|
257
277
|
);
|
|
258
278
|
};
|
|
259
|
-
})()),
|
|
279
|
+
})()), g;
|
|
260
280
|
}
|
|
261
|
-
var
|
|
262
|
-
function
|
|
263
|
-
return
|
|
281
|
+
var $;
|
|
282
|
+
function ie() {
|
|
283
|
+
return $ || ($ = 1, process.env.NODE_ENV === "production" ? _.exports = ae() : _.exports = se()), _.exports;
|
|
264
284
|
}
|
|
265
|
-
var
|
|
266
|
-
const
|
|
285
|
+
var ue = ie();
|
|
286
|
+
const ce = ne(
|
|
267
287
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
268
288
|
{
|
|
269
289
|
variants: {
|
|
@@ -288,42 +308,42 @@ const ue = te(
|
|
|
288
308
|
}
|
|
289
309
|
}
|
|
290
310
|
);
|
|
291
|
-
function
|
|
292
|
-
var
|
|
293
|
-
if (typeof t == "string" || typeof t == "number")
|
|
311
|
+
function z(t) {
|
|
312
|
+
var c, a, o = "";
|
|
313
|
+
if (typeof t == "string" || typeof t == "number") o += t;
|
|
294
314
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
295
|
-
var
|
|
296
|
-
for (
|
|
297
|
-
} else for (
|
|
298
|
-
return
|
|
315
|
+
var s = t.length;
|
|
316
|
+
for (c = 0; c < s; c++) t[c] && (a = z(t[c])) && (o && (o += " "), o += a);
|
|
317
|
+
} else for (a in t) t[a] && (o && (o += " "), o += a);
|
|
318
|
+
return o;
|
|
299
319
|
}
|
|
300
320
|
function le() {
|
|
301
|
-
for (var t,
|
|
302
|
-
return
|
|
321
|
+
for (var t, c, a = 0, o = "", s = arguments.length; a < s; a++) (t = arguments[a]) && (c = z(t)) && (o && (o += " "), o += c);
|
|
322
|
+
return o;
|
|
303
323
|
}
|
|
304
|
-
function
|
|
305
|
-
return
|
|
324
|
+
function fe(...t) {
|
|
325
|
+
return oe(le(t));
|
|
306
326
|
}
|
|
307
|
-
function
|
|
327
|
+
function pe({
|
|
308
328
|
className: t,
|
|
309
|
-
variant:
|
|
310
|
-
size:
|
|
311
|
-
asChild:
|
|
312
|
-
...
|
|
329
|
+
variant: c,
|
|
330
|
+
size: a,
|
|
331
|
+
asChild: o = !1,
|
|
332
|
+
...s
|
|
313
333
|
}) {
|
|
314
|
-
const
|
|
315
|
-
return /* @__PURE__ */
|
|
316
|
-
|
|
334
|
+
const l = o ? te : "button";
|
|
335
|
+
return /* @__PURE__ */ ue.jsx(
|
|
336
|
+
l,
|
|
317
337
|
{
|
|
318
338
|
"data-slot": "button",
|
|
319
|
-
className: ce(
|
|
320
|
-
...
|
|
339
|
+
className: fe(ce({ variant: c, size: a, className: t })),
|
|
340
|
+
...s
|
|
321
341
|
}
|
|
322
342
|
);
|
|
323
343
|
}
|
|
324
344
|
export {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
345
|
+
pe as B,
|
|
346
|
+
ce as b,
|
|
347
|
+
fe as c,
|
|
348
|
+
ue as j
|
|
329
349
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";"use strict";const oe=require("react"),ae=require("@radix-ui/react-slot"),se=require("class-variance-authority"),ie=require("tailwind-merge");var _={exports:{}},p={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var F;function ue(){if(F)return p;F=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function a(o,s,l){var b=null;if(l!==void 0&&(b=""+l),s.key!==void 0&&(b=""+s.key),"key"in s){l={};for(var m in s)m!=="key"&&(l[m]=s[m])}else l=s;return s=l.ref,{$$typeof:t,type:o,key:b,ref:s!==void 0?s:null,props:l}}return p.Fragment=c,p.jsx=a,p.jsxs=a,p}var g={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var $;function ce(){return $||($=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case G:return"Profiler";case J:return"StrictMode";case Z:return"Suspense";case Q:return"SuspenseList";case ee: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 U:return"Portal";case B:return(e.displayName||"Context")+".Provider";case X:return(e._context.displayName||"Context")+".Consumer";case H:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return r=e.displayName||null,r!==null?r:t(e.type)||"Memo";case S:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function c(e){return""+e}function a(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),c(e)}}function o(e){if(e===R)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===S)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=h.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function b(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function m(e,r){function n(){P||(P=!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))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function V(){var e=t(this.type);return N[e]||(N[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 W(e,r,n,i,d,f,k,x){return n=f.ref,e={$$typeof:O,type:e,key:r,props:f,_owner:d},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:V}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function w(e,r,n,i,d,f,k,x){var u=r.children;if(u!==void 0)if(i)if(te(u)){for(i=0;i<u.length;i++)A(u[i]);Object.freeze&&Object.freeze(u)}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 A(u);if(j.call(r,"key")){u=t(e);var v=Object.keys(r).filter(function(ne){return ne!=="key"});i=0<v.length?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}",I[u+i]||(v=0<v.length?"{"+v.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,i,u,v,u),I[u+i]=!0)}if(u=null,n!==void 0&&(a(n),u=""+n),b(r)&&(a(r.key),u=""+r.key),"key"in r){n={};for(var y in r)y!=="key"&&(n[y]=r[y])}else n=r;return u&&m(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),W(e,u,f,d,s(),n,k,x)}function A(e){typeof e=="object"&&e!==null&&e.$$typeof===O&&e._store&&(e._store.validated=1)}var E=oe,O=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),B=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),re=Symbol.for("react.client.reference"),h=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,te=Array.isArray,T=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(e){return e()}};var P,N={},C=E.react_stack_bottom_frame.bind(E,l)(),Y=T(o(l)),I={};g.Fragment=R,g.jsx=function(e,r,n,i,d){var f=1e4>h.recentlyCreatedOwnerStacks++;return w(e,r,n,!1,i,d,f?Error("react-stack-top-frame"):C,f?T(o(e)):Y)},g.jsxs=function(e,r,n,i,d){var f=1e4>h.recentlyCreatedOwnerStacks++;return w(e,r,n,!0,i,d,f?Error("react-stack-top-frame"):C,f?T(o(e)):Y)}})()),g}var D;function le(){return D||(D=1,process.env.NODE_ENV==="production"?_.exports=ue():_.exports=ce()),_.exports}var M=le();const z=se.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function q(t){var c,a,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(c=0;c<s;c++)t[c]&&(a=q(t[c]))&&(o&&(o+=" "),o+=a)}else for(a in t)t[a]&&(o&&(o+=" "),o+=a);return o}function fe(){for(var t,c,a=0,o="",s=arguments.length;a<s;a++)(t=arguments[a])&&(c=q(t))&&(o&&(o+=" "),o+=c);return o}function L(...t){return ie.twMerge(fe(t))}function de({className:t,variant:c,size:a,asChild:o=!1,...s}){const l=o?ae.Slot:"button";return M.jsx(l,{"data-slot":"button",className:L(z({variant:c,size:a,className:t})),...s})}exports.Button=de;exports.buttonVariants=z;exports.cn=L;exports.jsxRuntimeExports=M;
|