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