@sakura-ui/forms 0.3.0 → 0.4.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.cjs.js +51 -76
- package/dist/index.es.js +472 -653
- package/package.json +8 -4
package/dist/index.es.js
CHANGED
|
@@ -1,329 +1,148 @@
|
|
|
1
1
|
import R from "react";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var g in i)
|
|
22
|
-
g !== "key" && (o[g] = i[g]);
|
|
23
|
-
} else o = i;
|
|
24
|
-
return i = o.ref, {
|
|
25
|
-
$$typeof: s,
|
|
26
|
-
type: b,
|
|
27
|
-
key: n,
|
|
28
|
-
ref: i !== void 0 ? i : null,
|
|
29
|
-
props: o
|
|
2
|
+
var I = { exports: {} }, E = {};
|
|
3
|
+
var W;
|
|
4
|
+
function fe() {
|
|
5
|
+
if (W) return E;
|
|
6
|
+
W = 1;
|
|
7
|
+
var r = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
|
|
8
|
+
function c(n, a, s) {
|
|
9
|
+
var o = null;
|
|
10
|
+
if (s !== void 0 && (o = "" + s), a.key !== void 0 && (o = "" + a.key), "key" in a) {
|
|
11
|
+
s = {};
|
|
12
|
+
for (var u in a)
|
|
13
|
+
u !== "key" && (s[u] = a[u]);
|
|
14
|
+
} else s = a;
|
|
15
|
+
return a = s.ref, {
|
|
16
|
+
$$typeof: r,
|
|
17
|
+
type: n,
|
|
18
|
+
key: o,
|
|
19
|
+
ref: a !== void 0 ? a : null,
|
|
20
|
+
props: s
|
|
30
21
|
};
|
|
31
22
|
}
|
|
32
|
-
return
|
|
23
|
+
return E.Fragment = i, E.jsx = c, E.jsxs = c, E;
|
|
33
24
|
}
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/
|
|
44
|
-
var Ee;
|
|
45
|
-
function Ye() {
|
|
46
|
-
return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
function s(e) {
|
|
25
|
+
var _ = {};
|
|
26
|
+
var B;
|
|
27
|
+
function pe() {
|
|
28
|
+
return B || (B = 1, process.env.NODE_ENV !== "production" && function() {
|
|
29
|
+
function r(e) {
|
|
48
30
|
if (e == null) return null;
|
|
49
31
|
if (typeof e == "function")
|
|
50
|
-
return e.$$typeof ===
|
|
32
|
+
return e.$$typeof === de ? null : e.displayName || e.name || null;
|
|
51
33
|
if (typeof e == "string") return e;
|
|
52
34
|
switch (e) {
|
|
53
|
-
case
|
|
35
|
+
case k:
|
|
54
36
|
return "Fragment";
|
|
55
|
-
case
|
|
56
|
-
return "Portal";
|
|
57
|
-
case se:
|
|
37
|
+
case re:
|
|
58
38
|
return "Profiler";
|
|
59
|
-
case
|
|
39
|
+
case ee:
|
|
60
40
|
return "StrictMode";
|
|
61
|
-
case
|
|
41
|
+
case ae:
|
|
62
42
|
return "Suspense";
|
|
63
|
-
case
|
|
43
|
+
case oe:
|
|
64
44
|
return "SuspenseList";
|
|
45
|
+
case ne:
|
|
46
|
+
return "Activity";
|
|
65
47
|
}
|
|
66
48
|
if (typeof e == "object")
|
|
67
49
|
switch (typeof e.tag == "number" && console.error(
|
|
68
50
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
51
|
), e.$$typeof) {
|
|
70
|
-
case
|
|
71
|
-
return
|
|
72
|
-
case
|
|
52
|
+
case K:
|
|
53
|
+
return "Portal";
|
|
54
|
+
case te:
|
|
55
|
+
return e.displayName || "Context";
|
|
56
|
+
case se:
|
|
73
57
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
74
|
-
case
|
|
75
|
-
var
|
|
76
|
-
return e = e.displayName, e || (e =
|
|
77
|
-
case
|
|
78
|
-
return
|
|
79
|
-
case
|
|
80
|
-
|
|
58
|
+
case le:
|
|
59
|
+
var l = e.render;
|
|
60
|
+
return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
|
+
case ie:
|
|
62
|
+
return l = e.displayName || null, l !== null ? l : r(e.type) || "Memo";
|
|
63
|
+
case P:
|
|
64
|
+
l = e._payload, e = e._init;
|
|
81
65
|
try {
|
|
82
|
-
return
|
|
66
|
+
return r(e(l));
|
|
83
67
|
} catch {
|
|
84
68
|
}
|
|
85
69
|
}
|
|
86
70
|
return null;
|
|
87
71
|
}
|
|
88
|
-
function
|
|
72
|
+
function i(e) {
|
|
89
73
|
return "" + e;
|
|
90
74
|
}
|
|
91
|
-
function
|
|
75
|
+
function c(e) {
|
|
92
76
|
try {
|
|
93
|
-
|
|
94
|
-
var
|
|
77
|
+
i(e);
|
|
78
|
+
var l = !1;
|
|
95
79
|
} catch {
|
|
96
|
-
|
|
80
|
+
l = !0;
|
|
97
81
|
}
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
var
|
|
101
|
-
return
|
|
102
|
-
|
|
82
|
+
if (l) {
|
|
83
|
+
l = console;
|
|
84
|
+
var p = l.error, b = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
85
|
+
return p.call(
|
|
86
|
+
l,
|
|
103
87
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
-
|
|
105
|
-
),
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
function b() {
|
|
109
|
-
}
|
|
110
|
-
function i() {
|
|
111
|
-
if ($ === 0) {
|
|
112
|
-
ne = console.log, ce = console.info, de = console.warn, ue = console.error, fe = console.group, be = console.groupCollapsed, ge = console.groupEnd;
|
|
113
|
-
var e = {
|
|
114
|
-
configurable: !0,
|
|
115
|
-
enumerable: !0,
|
|
116
|
-
value: b,
|
|
117
|
-
writable: !0
|
|
118
|
-
};
|
|
119
|
-
Object.defineProperties(console, {
|
|
120
|
-
info: e,
|
|
121
|
-
log: e,
|
|
122
|
-
warn: e,
|
|
123
|
-
error: e,
|
|
124
|
-
group: e,
|
|
125
|
-
groupCollapsed: e,
|
|
126
|
-
groupEnd: e
|
|
127
|
-
});
|
|
88
|
+
b
|
|
89
|
+
), i(e);
|
|
128
90
|
}
|
|
129
|
-
$++;
|
|
130
|
-
}
|
|
131
|
-
function o() {
|
|
132
|
-
if ($--, $ === 0) {
|
|
133
|
-
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
-
Object.defineProperties(console, {
|
|
135
|
-
log: S({}, e, { value: ne }),
|
|
136
|
-
info: S({}, e, { value: ce }),
|
|
137
|
-
warn: S({}, e, { value: de }),
|
|
138
|
-
error: S({}, e, { value: ue }),
|
|
139
|
-
group: S({}, e, { value: fe }),
|
|
140
|
-
groupCollapsed: S({}, e, { value: be }),
|
|
141
|
-
groupEnd: S({}, e, { value: ge })
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
0 > $ && console.error(
|
|
145
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
-
);
|
|
147
91
|
}
|
|
148
92
|
function n(e) {
|
|
149
|
-
if (
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
} catch (t) {
|
|
153
|
-
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
-
X = r && r[1] || "", pe = -1 < t.stack.indexOf(`
|
|
155
|
-
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
-
}
|
|
157
|
-
return `
|
|
158
|
-
` + X + e + pe;
|
|
159
|
-
}
|
|
160
|
-
function g(e, r) {
|
|
161
|
-
if (!e || Z) return "";
|
|
162
|
-
var t = Q.get(e);
|
|
163
|
-
if (t !== void 0) return t;
|
|
164
|
-
Z = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
-
var u = null;
|
|
166
|
-
u = I.H, I.H = null, i();
|
|
93
|
+
if (e === k) return "<>";
|
|
94
|
+
if (typeof e == "object" && e !== null && e.$$typeof === P)
|
|
95
|
+
return "<...>";
|
|
167
96
|
try {
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
var C = function() {
|
|
173
|
-
throw Error();
|
|
174
|
-
};
|
|
175
|
-
if (Object.defineProperty(C.prototype, "props", {
|
|
176
|
-
set: function() {
|
|
177
|
-
throw Error();
|
|
178
|
-
}
|
|
179
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
-
try {
|
|
181
|
-
Reflect.construct(C, []);
|
|
182
|
-
} catch (T) {
|
|
183
|
-
var Y = T;
|
|
184
|
-
}
|
|
185
|
-
Reflect.construct(e, [], C);
|
|
186
|
-
} else {
|
|
187
|
-
try {
|
|
188
|
-
C.call();
|
|
189
|
-
} catch (T) {
|
|
190
|
-
Y = T;
|
|
191
|
-
}
|
|
192
|
-
e.call(C.prototype);
|
|
193
|
-
}
|
|
194
|
-
} else {
|
|
195
|
-
try {
|
|
196
|
-
throw Error();
|
|
197
|
-
} catch (T) {
|
|
198
|
-
Y = T;
|
|
199
|
-
}
|
|
200
|
-
(C = e()) && typeof C.catch == "function" && C.catch(function() {
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
} catch (T) {
|
|
204
|
-
if (T && Y && typeof T.stack == "string")
|
|
205
|
-
return [T.stack, Y.stack];
|
|
206
|
-
}
|
|
207
|
-
return [null, null];
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
v.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
-
var x = Object.getOwnPropertyDescriptor(
|
|
212
|
-
v.DetermineComponentFrameRoot,
|
|
213
|
-
"name"
|
|
214
|
-
);
|
|
215
|
-
x && x.configurable && Object.defineProperty(
|
|
216
|
-
v.DetermineComponentFrameRoot,
|
|
217
|
-
"name",
|
|
218
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
-
);
|
|
220
|
-
var a = v.DetermineComponentFrameRoot(), w = a[0], A = a[1];
|
|
221
|
-
if (w && A) {
|
|
222
|
-
var h = w.split(`
|
|
223
|
-
`), P = A.split(`
|
|
224
|
-
`);
|
|
225
|
-
for (a = x = 0; x < h.length && !h[x].includes(
|
|
226
|
-
"DetermineComponentFrameRoot"
|
|
227
|
-
); )
|
|
228
|
-
x++;
|
|
229
|
-
for (; a < P.length && !P[a].includes(
|
|
230
|
-
"DetermineComponentFrameRoot"
|
|
231
|
-
); )
|
|
232
|
-
a++;
|
|
233
|
-
if (x === h.length || a === P.length)
|
|
234
|
-
for (x = h.length - 1, a = P.length - 1; 1 <= x && 0 <= a && h[x] !== P[a]; )
|
|
235
|
-
a--;
|
|
236
|
-
for (; 1 <= x && 0 <= a; x--, a--)
|
|
237
|
-
if (h[x] !== P[a]) {
|
|
238
|
-
if (x !== 1 || a !== 1)
|
|
239
|
-
do
|
|
240
|
-
if (x--, a--, 0 > a || h[x] !== P[a]) {
|
|
241
|
-
var O = `
|
|
242
|
-
` + h[x].replace(
|
|
243
|
-
" at new ",
|
|
244
|
-
" at "
|
|
245
|
-
);
|
|
246
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, O), O;
|
|
247
|
-
}
|
|
248
|
-
while (1 <= x && 0 <= a);
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
} finally {
|
|
253
|
-
Z = !1, I.H = u, o(), Error.prepareStackTrace = t;
|
|
254
|
-
}
|
|
255
|
-
return h = (h = e ? e.displayName || e.name : "") ? n(h) : "", typeof e == "function" && Q.set(e, h), h;
|
|
256
|
-
}
|
|
257
|
-
function c(e) {
|
|
258
|
-
if (e == null) return "";
|
|
259
|
-
if (typeof e == "function") {
|
|
260
|
-
var r = e.prototype;
|
|
261
|
-
return g(
|
|
262
|
-
e,
|
|
263
|
-
!(!r || !r.isReactComponent)
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
if (typeof e == "string") return n(e);
|
|
267
|
-
switch (e) {
|
|
268
|
-
case G:
|
|
269
|
-
return n("Suspense");
|
|
270
|
-
case H:
|
|
271
|
-
return n("SuspenseList");
|
|
97
|
+
var l = r(e);
|
|
98
|
+
return l ? "<" + l + ">" : "<...>";
|
|
99
|
+
} catch {
|
|
100
|
+
return "<...>";
|
|
272
101
|
}
|
|
273
|
-
if (typeof e == "object")
|
|
274
|
-
switch (e.$$typeof) {
|
|
275
|
-
case F:
|
|
276
|
-
return e = g(e.render, !1), e;
|
|
277
|
-
case J:
|
|
278
|
-
return c(e.type);
|
|
279
|
-
case V:
|
|
280
|
-
r = e._payload, e = e._init;
|
|
281
|
-
try {
|
|
282
|
-
return c(e(r));
|
|
283
|
-
} catch {
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return "";
|
|
287
102
|
}
|
|
288
|
-
function
|
|
289
|
-
var e =
|
|
103
|
+
function a() {
|
|
104
|
+
var e = C.A;
|
|
290
105
|
return e === null ? null : e.getOwner();
|
|
291
106
|
}
|
|
292
|
-
function
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
107
|
+
function s() {
|
|
108
|
+
return Error("react-stack-top-frame");
|
|
109
|
+
}
|
|
110
|
+
function o(e) {
|
|
111
|
+
if (M.call(e, "key")) {
|
|
112
|
+
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
|
+
if (l && l.isReactWarning) return !1;
|
|
296
114
|
}
|
|
297
115
|
return e.key !== void 0;
|
|
298
116
|
}
|
|
299
|
-
function
|
|
300
|
-
function
|
|
301
|
-
|
|
117
|
+
function u(e, l) {
|
|
118
|
+
function p() {
|
|
119
|
+
F || (F = !0, console.error(
|
|
302
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)",
|
|
303
|
-
|
|
121
|
+
l
|
|
304
122
|
));
|
|
305
123
|
}
|
|
306
|
-
|
|
307
|
-
get:
|
|
124
|
+
p.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
125
|
+
get: p,
|
|
308
126
|
configurable: !0
|
|
309
127
|
});
|
|
310
128
|
}
|
|
311
|
-
function
|
|
312
|
-
var e =
|
|
313
|
-
return
|
|
129
|
+
function d() {
|
|
130
|
+
var e = r(this.type);
|
|
131
|
+
return Y[e] || (Y[e] = !0, console.error(
|
|
314
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."
|
|
315
133
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
316
134
|
}
|
|
317
|
-
function
|
|
318
|
-
|
|
319
|
-
|
|
135
|
+
function x(e, l, p, b, w, A) {
|
|
136
|
+
var m = p.ref;
|
|
137
|
+
return e = {
|
|
138
|
+
$$typeof: q,
|
|
320
139
|
type: e,
|
|
321
|
-
key:
|
|
322
|
-
props:
|
|
323
|
-
_owner:
|
|
324
|
-
}, (
|
|
140
|
+
key: l,
|
|
141
|
+
props: p,
|
|
142
|
+
_owner: b
|
|
143
|
+
}, (m !== void 0 ? m : null) !== null ? Object.defineProperty(e, "ref", {
|
|
325
144
|
enumerable: !1,
|
|
326
|
-
get:
|
|
145
|
+
get: d
|
|
327
146
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
328
147
|
configurable: !1,
|
|
329
148
|
enumerable: !1,
|
|
@@ -334,168 +153,168 @@ function Ye() {
|
|
|
334
153
|
enumerable: !1,
|
|
335
154
|
writable: !0,
|
|
336
155
|
value: null
|
|
156
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
157
|
+
configurable: !1,
|
|
158
|
+
enumerable: !1,
|
|
159
|
+
writable: !0,
|
|
160
|
+
value: w
|
|
161
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
162
|
+
configurable: !1,
|
|
163
|
+
enumerable: !1,
|
|
164
|
+
writable: !0,
|
|
165
|
+
value: A
|
|
337
166
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
338
167
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
if (
|
|
343
|
-
if (
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
u,
|
|
357
|
-
a
|
|
358
|
-
);
|
|
359
|
-
if (ie.call(r, "key")) {
|
|
360
|
-
a = s(e);
|
|
361
|
-
var w = Object.keys(r).filter(function(h) {
|
|
362
|
-
return h !== "key";
|
|
168
|
+
function f(e, l, p, b, w, A) {
|
|
169
|
+
var m = l.children;
|
|
170
|
+
if (m !== void 0)
|
|
171
|
+
if (b)
|
|
172
|
+
if (ce(m)) {
|
|
173
|
+
for (b = 0; b < m.length; b++)
|
|
174
|
+
g(m[b]);
|
|
175
|
+
Object.freeze && Object.freeze(m);
|
|
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 g(m);
|
|
181
|
+
if (M.call(l, "key")) {
|
|
182
|
+
m = r(e);
|
|
183
|
+
var j = Object.keys(l).filter(function(ue) {
|
|
184
|
+
return ue !== "key";
|
|
363
185
|
});
|
|
364
|
-
|
|
186
|
+
b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", L[m + b] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
187
|
`A props object containing a "key" prop is being spread into JSX:
|
|
366
188
|
let props = %s;
|
|
367
189
|
<%s {...props} />
|
|
368
190
|
React keys must be passed directly to JSX without using spread:
|
|
369
191
|
let props = %s;
|
|
370
192
|
<%s key={someKey} {...props} />`,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
),
|
|
193
|
+
b,
|
|
194
|
+
m,
|
|
195
|
+
j,
|
|
196
|
+
m
|
|
197
|
+
), L[m + b] = !0);
|
|
376
198
|
}
|
|
377
|
-
if (
|
|
378
|
-
|
|
379
|
-
for (var
|
|
380
|
-
|
|
381
|
-
} else
|
|
382
|
-
return
|
|
383
|
-
|
|
199
|
+
if (m = null, p !== void 0 && (c(p), m = "" + p), o(l) && (c(l.key), m = "" + l.key), "key" in l) {
|
|
200
|
+
p = {};
|
|
201
|
+
for (var O in l)
|
|
202
|
+
O !== "key" && (p[O] = l[O]);
|
|
203
|
+
} else p = l;
|
|
204
|
+
return m && u(
|
|
205
|
+
p,
|
|
384
206
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
385
|
-
),
|
|
207
|
+
), x(
|
|
208
|
+
e,
|
|
209
|
+
m,
|
|
210
|
+
p,
|
|
211
|
+
a(),
|
|
212
|
+
w,
|
|
213
|
+
A
|
|
214
|
+
);
|
|
386
215
|
}
|
|
387
|
-
function
|
|
388
|
-
|
|
389
|
-
if (L(e))
|
|
390
|
-
for (var t = 0; t < e.length; t++) {
|
|
391
|
-
var u = e[t];
|
|
392
|
-
W(u) && re(u, r);
|
|
393
|
-
}
|
|
394
|
-
else if (W(e))
|
|
395
|
-
e._store && (e._store.validated = 1);
|
|
396
|
-
else if (e === null || typeof e != "object" ? t = null : (t = ae && e[ae] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
397
|
-
for (; !(e = t.next()).done; )
|
|
398
|
-
W(e.value) && re(e.value, r);
|
|
399
|
-
}
|
|
216
|
+
function g(e) {
|
|
217
|
+
h(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === P && (e._payload.status === "fulfilled" ? h(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
400
218
|
}
|
|
401
|
-
function
|
|
402
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
219
|
+
function h(e) {
|
|
220
|
+
return typeof e == "object" && e !== null && e.$$typeof === q;
|
|
403
221
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
I.getCurrentStack = function() {
|
|
411
|
-
var v = c(e.type);
|
|
412
|
-
return u && (v += u() || ""), v;
|
|
413
|
-
}, console.error(
|
|
414
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
-
r,
|
|
416
|
-
t
|
|
417
|
-
), I.getCurrentStack = u;
|
|
222
|
+
var v = R, q = Symbol.for("react.transitional.element"), K = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), te = Symbol.for("react.context"), le = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), ie = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), de = Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
|
|
223
|
+
return null;
|
|
224
|
+
};
|
|
225
|
+
v = {
|
|
226
|
+
react_stack_bottom_frame: function(e) {
|
|
227
|
+
return e();
|
|
418
228
|
}
|
|
419
|
-
}
|
|
420
|
-
function Ie(e) {
|
|
421
|
-
var r = "", t = m();
|
|
422
|
-
return t && (t = s(t.type)) && (r = `
|
|
423
|
-
|
|
424
|
-
Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
|
|
425
|
-
|
|
426
|
-
Check the top-level render call using <` + e + ">."), r;
|
|
427
|
-
}
|
|
428
|
-
var Se = R, B = Symbol.for("react.transitional.element"), Pe = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), oe = Symbol.for("react.consumer"), le = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), Ae = Symbol.for("react.offscreen"), ae = Symbol.iterator, $e = Symbol.for("react.client.reference"), I = Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ie = Object.prototype.hasOwnProperty, S = Object.assign, Oe = Symbol.for("react.client.reference"), L = Array.isArray, $ = 0, ne, ce, de, ue, fe, be, ge;
|
|
429
|
-
b.__reactDisabledLog = !0;
|
|
430
|
-
var X, pe, Z = !1, Q = new (typeof WeakMap == "function" ? WeakMap : Map)(), qe = Symbol.for("react.client.reference"), xe, me = {}, ve = {}, he = {};
|
|
431
|
-
M.Fragment = U, M.jsx = function(e, r, t, u, v) {
|
|
432
|
-
return D(e, r, t, !1, u, v);
|
|
433
|
-
}, M.jsxs = function(e, r, t, u, v) {
|
|
434
|
-
return D(e, r, t, !0, u, v);
|
|
435
229
|
};
|
|
436
|
-
|
|
230
|
+
var F, Y = {}, z = v.react_stack_bottom_frame.bind(
|
|
231
|
+
v,
|
|
232
|
+
s
|
|
233
|
+
)(), D = S(n(s)), L = {};
|
|
234
|
+
_.Fragment = k, _.jsx = function(e, l, p) {
|
|
235
|
+
var b = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
236
|
+
return f(
|
|
237
|
+
e,
|
|
238
|
+
l,
|
|
239
|
+
p,
|
|
240
|
+
!1,
|
|
241
|
+
b ? Error("react-stack-top-frame") : z,
|
|
242
|
+
b ? S(n(e)) : D
|
|
243
|
+
);
|
|
244
|
+
}, _.jsxs = function(e, l, p) {
|
|
245
|
+
var b = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
246
|
+
return f(
|
|
247
|
+
e,
|
|
248
|
+
l,
|
|
249
|
+
p,
|
|
250
|
+
!0,
|
|
251
|
+
b ? Error("react-stack-top-frame") : z,
|
|
252
|
+
b ? S(n(e)) : D
|
|
253
|
+
);
|
|
254
|
+
};
|
|
255
|
+
}()), _;
|
|
437
256
|
}
|
|
438
|
-
var
|
|
439
|
-
function
|
|
440
|
-
return
|
|
257
|
+
var U;
|
|
258
|
+
function be() {
|
|
259
|
+
return U || (U = 1, process.env.NODE_ENV === "production" ? I.exports = fe() : I.exports = pe()), I.exports;
|
|
441
260
|
}
|
|
442
|
-
var
|
|
443
|
-
const
|
|
444
|
-
var
|
|
445
|
-
((
|
|
446
|
-
|
|
261
|
+
var t = be();
|
|
262
|
+
const y = (...r) => r.filter(Boolean).join(" ");
|
|
263
|
+
var N;
|
|
264
|
+
((r) => {
|
|
265
|
+
r.clickable = `
|
|
447
266
|
px-2
|
|
448
267
|
min-h-[calc(44/16*1rem)]
|
|
449
268
|
border
|
|
450
269
|
border-transparent
|
|
451
270
|
rounded-lg
|
|
452
271
|
hover:bg-solid-grey-50
|
|
453
|
-
`,
|
|
272
|
+
`, r.selected = `
|
|
454
273
|
rounded-full
|
|
455
274
|
bg-yellow-50
|
|
456
275
|
`;
|
|
457
|
-
const
|
|
276
|
+
const i = `
|
|
458
277
|
focus-visible:outline
|
|
459
278
|
focus-visible:outline-4
|
|
460
279
|
focus-visible:outline-black
|
|
461
280
|
focus-visible:ring-yellow-300
|
|
462
281
|
`;
|
|
463
|
-
|
|
464
|
-
${
|
|
282
|
+
r.focusRectCondensed = `
|
|
283
|
+
${i}
|
|
465
284
|
focus-visible:-outline-offset-4
|
|
466
285
|
focus-visible:ring-[calc(6/16*1rem)]
|
|
467
286
|
focus-visible:ring-inset
|
|
468
|
-
`,
|
|
469
|
-
${
|
|
287
|
+
`, r.focusRectCondensedWithBg = `
|
|
288
|
+
${r.focusRectCondensed}
|
|
470
289
|
focus-visible:bg-yellow-300
|
|
471
|
-
`,
|
|
472
|
-
${
|
|
290
|
+
`, r.focusRect = `
|
|
291
|
+
${i}
|
|
473
292
|
focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
474
293
|
focus-visible:ring-[calc(2/16*1rem)]
|
|
475
|
-
`,
|
|
476
|
-
${
|
|
294
|
+
`, r.focusRounded = `
|
|
295
|
+
${r.focusRect}
|
|
477
296
|
focus-visible:rounded
|
|
478
|
-
`,
|
|
479
|
-
${
|
|
297
|
+
`, r.focusCard = `
|
|
298
|
+
${r.focusRect}
|
|
480
299
|
focus-visible:rounded-2xl
|
|
481
300
|
sm:focus-visible:rounded-3xl
|
|
482
|
-
`,
|
|
483
|
-
${
|
|
301
|
+
`, r.focusRectWithBg = `
|
|
302
|
+
${r.focusRect}
|
|
484
303
|
focus-visible:bg-yellow-300
|
|
485
|
-
`,
|
|
486
|
-
${
|
|
304
|
+
`, r.focusRoundedWithBg = `
|
|
305
|
+
${r.focusRectWithBg}
|
|
487
306
|
focus-visible:rounded
|
|
488
|
-
`,
|
|
307
|
+
`, r.hoverUnderline = `
|
|
489
308
|
hover:underline
|
|
490
309
|
hover:underline-offset-[calc(3/16*1rem)]
|
|
491
|
-
`,
|
|
310
|
+
`, r.underline = `
|
|
492
311
|
underline
|
|
493
312
|
underline-offset-[calc(3/16*1rem)]
|
|
494
313
|
hover:decoration-[calc(3/16*1rem)]
|
|
495
|
-
`,
|
|
314
|
+
`, r.underlineNoDeco = `
|
|
496
315
|
underline
|
|
497
316
|
underline-offset-[calc(3/16*1rem)]
|
|
498
|
-
`,
|
|
317
|
+
`, r.popover = `
|
|
499
318
|
min-w-fit
|
|
500
319
|
w-auto
|
|
501
320
|
py-2
|
|
@@ -505,33 +324,33 @@ var k;
|
|
|
505
324
|
border
|
|
506
325
|
border-solid-grey-420
|
|
507
326
|
has-[>:nth-child(7)]:rounded-r-none
|
|
508
|
-
`,
|
|
327
|
+
`, r.popoverPositionBottomRight = `
|
|
509
328
|
absolute
|
|
510
329
|
top-11
|
|
511
330
|
right-0
|
|
512
|
-
`,
|
|
331
|
+
`, r.popoverPositionBottomLeft = `
|
|
513
332
|
absolute
|
|
514
333
|
top-11
|
|
515
334
|
left-0
|
|
516
|
-
`, ((
|
|
517
|
-
|
|
335
|
+
`, ((c) => {
|
|
336
|
+
c.focus = `
|
|
518
337
|
peer-focus-visible:outline
|
|
519
338
|
peer-focus-visible:outline-4
|
|
520
339
|
peer-focus-visible:outline-black
|
|
521
340
|
peer-focus-visible:ring-yellow-300
|
|
522
|
-
`,
|
|
523
|
-
${
|
|
341
|
+
`, c.focusRect = `
|
|
342
|
+
${c.focus}
|
|
524
343
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
525
344
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
526
345
|
`;
|
|
527
|
-
})(
|
|
528
|
-
})(
|
|
529
|
-
const
|
|
346
|
+
})(r.Peer || (r.Peer = {}));
|
|
347
|
+
})(N || (N = {}));
|
|
348
|
+
const T = R.createContext({
|
|
530
349
|
helperTextId: "",
|
|
531
350
|
errorMessageId: "",
|
|
532
351
|
isInvalid: !1,
|
|
533
352
|
isRequired: !1
|
|
534
|
-
}),
|
|
353
|
+
}), G = `
|
|
535
354
|
bg-white
|
|
536
355
|
border
|
|
537
356
|
border-solid
|
|
@@ -540,8 +359,8 @@ const _ = R.createContext({
|
|
|
540
359
|
disabled:text-solid-gray-500
|
|
541
360
|
disabled:border-solid-gray-500
|
|
542
361
|
aria-invalid:border-red-800
|
|
543
|
-
${
|
|
544
|
-
`,
|
|
362
|
+
${N.focusRect}
|
|
363
|
+
`, V = {
|
|
545
364
|
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
|
|
546
365
|
lg: `
|
|
547
366
|
p-4
|
|
@@ -565,13 +384,13 @@ const _ = R.createContext({
|
|
|
565
384
|
rounded-md
|
|
566
385
|
leading-snug
|
|
567
386
|
`
|
|
568
|
-
},
|
|
387
|
+
}, J = `
|
|
569
388
|
inline-block
|
|
570
389
|
cursor-pointer
|
|
571
390
|
border
|
|
572
391
|
border-solid
|
|
573
392
|
border-transparent
|
|
574
|
-
`,
|
|
393
|
+
`, H = {
|
|
575
394
|
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
|
|
576
395
|
lg: `
|
|
577
396
|
pr-8
|
|
@@ -593,23 +412,23 @@ const _ = R.createContext({
|
|
|
593
412
|
text-label
|
|
594
413
|
leading-snug
|
|
595
414
|
`
|
|
596
|
-
},
|
|
415
|
+
}, X = {
|
|
597
416
|
lg: "w-[22px] h-[22px] mr-2",
|
|
598
417
|
md: "w-[18px] h-[18px] mr-1.5",
|
|
599
418
|
sm: "w-[18px] h-[18px] mr-1"
|
|
600
|
-
},
|
|
601
|
-
const { id:
|
|
602
|
-
|
|
603
|
-
const
|
|
419
|
+
}, Z = (r) => {
|
|
420
|
+
const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
|
|
421
|
+
d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
|
|
422
|
+
const x = {
|
|
604
423
|
lg: 22 / 24,
|
|
605
424
|
md: 18 / 24,
|
|
606
425
|
sm: 18 / 24
|
|
607
|
-
},
|
|
426
|
+
}, f = `
|
|
608
427
|
peer
|
|
609
428
|
sr-only
|
|
610
|
-
`,
|
|
429
|
+
`, g = `
|
|
611
430
|
bg-clip-content
|
|
612
|
-
rounded
|
|
431
|
+
rounded-sm
|
|
613
432
|
border
|
|
614
433
|
border-solid
|
|
615
434
|
border-solid-gray-900
|
|
@@ -618,32 +437,32 @@ const _ = R.createContext({
|
|
|
618
437
|
peer-checked:bg-blue-600
|
|
619
438
|
peer-checked:border-none
|
|
620
439
|
peer-disabled:border-solid-gray-500
|
|
621
|
-
${
|
|
440
|
+
${N.Peer.focusRect}
|
|
622
441
|
`;
|
|
623
|
-
return /* @__PURE__ */
|
|
442
|
+
return /* @__PURE__ */ t.jsx(
|
|
624
443
|
"label",
|
|
625
444
|
{
|
|
626
|
-
htmlFor:
|
|
627
|
-
className:
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
445
|
+
htmlFor: u,
|
|
446
|
+
className: y(
|
|
447
|
+
J,
|
|
448
|
+
H[n],
|
|
449
|
+
c
|
|
631
450
|
),
|
|
632
|
-
children: /* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */
|
|
451
|
+
children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
|
|
452
|
+
/* @__PURE__ */ t.jsx(
|
|
634
453
|
"input",
|
|
635
454
|
{
|
|
636
|
-
id:
|
|
637
|
-
className:
|
|
455
|
+
id: u,
|
|
456
|
+
className: f,
|
|
638
457
|
type: "checkbox",
|
|
639
|
-
"aria-describedby":
|
|
640
|
-
"aria-errormessage":
|
|
641
|
-
"aria-invalid":
|
|
642
|
-
"aria-required":
|
|
643
|
-
...
|
|
458
|
+
"aria-describedby": d.helperTextId,
|
|
459
|
+
"aria-errormessage": d.errorMessageId,
|
|
460
|
+
"aria-invalid": d.isInvalid ?? !1,
|
|
461
|
+
"aria-required": d.isRequired ?? !1,
|
|
462
|
+
...s
|
|
644
463
|
}
|
|
645
464
|
),
|
|
646
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ t.jsx("span", { className: y(g, X[n]), children: /* @__PURE__ */ t.jsx(
|
|
647
466
|
"svg",
|
|
648
467
|
{
|
|
649
468
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -651,22 +470,22 @@ const _ = R.createContext({
|
|
|
651
470
|
width: "24",
|
|
652
471
|
height: "24",
|
|
653
472
|
viewBox: "0 0 24 24",
|
|
654
|
-
children: /* @__PURE__ */
|
|
473
|
+
children: /* @__PURE__ */ t.jsx("g", { transform: `scale(${x[n]} ${x[n]})`, children: /* @__PURE__ */ t.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
|
|
655
474
|
}
|
|
656
475
|
) }),
|
|
657
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
|
|
658
477
|
] })
|
|
659
478
|
}
|
|
660
479
|
);
|
|
661
480
|
};
|
|
662
|
-
|
|
663
|
-
const
|
|
664
|
-
const { id:
|
|
665
|
-
|
|
666
|
-
const
|
|
481
|
+
Z.displayName = "Checkbox";
|
|
482
|
+
const Q = (r) => {
|
|
483
|
+
const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
|
|
484
|
+
d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
|
|
485
|
+
const x = `
|
|
667
486
|
peer
|
|
668
487
|
sr-only
|
|
669
|
-
`,
|
|
488
|
+
`, f = `
|
|
670
489
|
bg-clip-content
|
|
671
490
|
rounded-full
|
|
672
491
|
border
|
|
@@ -675,75 +494,75 @@ const _e = (s) => {
|
|
|
675
494
|
peer-checked:bg-blue-600
|
|
676
495
|
peer-checked:border-blue-600
|
|
677
496
|
peer-disabled:border-solid-gray-500
|
|
678
|
-
${
|
|
679
|
-
`,
|
|
497
|
+
${N.Peer.focusRect}
|
|
498
|
+
`, g = {
|
|
680
499
|
lg: "p-1",
|
|
681
500
|
md: "p-[3px]",
|
|
682
501
|
sm: "p-[3px]"
|
|
683
502
|
};
|
|
684
|
-
return /* @__PURE__ */
|
|
503
|
+
return /* @__PURE__ */ t.jsx(
|
|
685
504
|
"label",
|
|
686
505
|
{
|
|
687
|
-
htmlFor:
|
|
688
|
-
className:
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
506
|
+
htmlFor: u,
|
|
507
|
+
className: y(
|
|
508
|
+
J,
|
|
509
|
+
H[n],
|
|
510
|
+
c
|
|
692
511
|
),
|
|
693
|
-
children: /* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
|
|
513
|
+
/* @__PURE__ */ t.jsx(
|
|
695
514
|
"input",
|
|
696
515
|
{
|
|
697
|
-
id:
|
|
698
|
-
className:
|
|
516
|
+
id: u,
|
|
517
|
+
className: x,
|
|
699
518
|
type: "radio",
|
|
700
|
-
"aria-describedby":
|
|
701
|
-
"aria-errormessage":
|
|
702
|
-
"aria-invalid":
|
|
703
|
-
"aria-required":
|
|
704
|
-
...
|
|
519
|
+
"aria-describedby": d.helperTextId,
|
|
520
|
+
"aria-errormessage": d.errorMessageId,
|
|
521
|
+
"aria-invalid": d.isInvalid ?? !1,
|
|
522
|
+
"aria-required": d.isRequired ?? !1,
|
|
523
|
+
...s
|
|
705
524
|
}
|
|
706
525
|
),
|
|
707
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ t.jsx(
|
|
708
527
|
"span",
|
|
709
528
|
{
|
|
710
529
|
"aria-hidden": !0,
|
|
711
|
-
className:
|
|
530
|
+
className: y(f, g[n], X[n])
|
|
712
531
|
}
|
|
713
532
|
),
|
|
714
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
|
|
715
534
|
] })
|
|
716
535
|
}
|
|
717
536
|
);
|
|
718
537
|
};
|
|
719
|
-
|
|
720
|
-
const
|
|
721
|
-
const { id:
|
|
722
|
-
return
|
|
723
|
-
/* @__PURE__ */
|
|
538
|
+
Q.displayName = "Radio";
|
|
539
|
+
const me = (r) => {
|
|
540
|
+
const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useContext(T);
|
|
541
|
+
return o.isRequired && (s.required = !0), /* @__PURE__ */ t.jsxs("div", { className: "inline-block relative", children: [
|
|
542
|
+
/* @__PURE__ */ t.jsx(
|
|
724
543
|
"select",
|
|
725
544
|
{
|
|
726
|
-
id:
|
|
727
|
-
className:
|
|
545
|
+
id: i || o.id,
|
|
546
|
+
className: y(
|
|
728
547
|
`
|
|
729
548
|
!pr-8
|
|
730
549
|
peer
|
|
731
550
|
cursor-pointer
|
|
732
551
|
appearance-none
|
|
733
552
|
`,
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
553
|
+
G,
|
|
554
|
+
V[n],
|
|
555
|
+
c
|
|
737
556
|
),
|
|
738
|
-
"aria-describedby":
|
|
739
|
-
"aria-errormessage":
|
|
740
|
-
"aria-invalid":
|
|
741
|
-
"aria-required":
|
|
742
|
-
...
|
|
743
|
-
children:
|
|
557
|
+
"aria-describedby": o.helperTextId,
|
|
558
|
+
"aria-errormessage": o.errorMessageId,
|
|
559
|
+
"aria-invalid": o.isInvalid ?? !1,
|
|
560
|
+
"aria-required": o.isRequired ?? !1,
|
|
561
|
+
...s,
|
|
562
|
+
children: a
|
|
744
563
|
}
|
|
745
564
|
),
|
|
746
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ t.jsxs(
|
|
747
566
|
"svg",
|
|
748
567
|
{
|
|
749
568
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -762,8 +581,8 @@ const We = (s) => {
|
|
|
762
581
|
height: "16",
|
|
763
582
|
viewBox: "0 0 16 16",
|
|
764
583
|
children: [
|
|
765
|
-
/* @__PURE__ */
|
|
766
|
-
/* @__PURE__ */
|
|
584
|
+
/* @__PURE__ */ t.jsx("title", { children: "arrow down" }),
|
|
585
|
+
/* @__PURE__ */ t.jsx(
|
|
767
586
|
"path",
|
|
768
587
|
{
|
|
769
588
|
d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
|
|
@@ -775,11 +594,11 @@ const We = (s) => {
|
|
|
775
594
|
)
|
|
776
595
|
] });
|
|
777
596
|
};
|
|
778
|
-
|
|
779
|
-
const
|
|
780
|
-
const { id:
|
|
781
|
-
|
|
782
|
-
const
|
|
597
|
+
me.displayName = "Select";
|
|
598
|
+
const xe = (r) => {
|
|
599
|
+
const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
|
|
600
|
+
s.isRequired && (a.required = !0);
|
|
601
|
+
const o = `
|
|
783
602
|
file:mr-2
|
|
784
603
|
file:inline-block
|
|
785
604
|
file:text-button
|
|
@@ -795,7 +614,7 @@ const Be = (s) => {
|
|
|
795
614
|
file:active:border-blue-1200
|
|
796
615
|
file:disabled:border-solid-gray-500
|
|
797
616
|
file:disabled:cursor-not-allowed
|
|
798
|
-
`,
|
|
617
|
+
`, u = `
|
|
799
618
|
file:text-blue-900
|
|
800
619
|
file:hover:text-blue-1000
|
|
801
620
|
file:active:text-blue-1200
|
|
@@ -804,15 +623,15 @@ const Be = (s) => {
|
|
|
804
623
|
file:active:bg-blue-300
|
|
805
624
|
file:disabled:text-solid-gray-500
|
|
806
625
|
file:disabled:bg-transparent
|
|
807
|
-
`,
|
|
626
|
+
`, d = `
|
|
808
627
|
text-label
|
|
809
628
|
text-solid-gray-900
|
|
810
629
|
rounded-lg
|
|
811
630
|
outline-offset-2
|
|
812
631
|
aria-invalid:text-red-800
|
|
813
|
-
${
|
|
814
|
-
${
|
|
815
|
-
`,
|
|
632
|
+
${N.hoverUnderline}
|
|
633
|
+
${N.focusRounded}
|
|
634
|
+
`, x = {
|
|
816
635
|
// 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
|
|
817
636
|
lg: `
|
|
818
637
|
file:p-4
|
|
@@ -837,50 +656,50 @@ const Be = (s) => {
|
|
|
837
656
|
file:leading-snug
|
|
838
657
|
`
|
|
839
658
|
};
|
|
840
|
-
return /* @__PURE__ */
|
|
659
|
+
return /* @__PURE__ */ t.jsx(
|
|
841
660
|
"input",
|
|
842
661
|
{
|
|
843
662
|
type: "file",
|
|
844
|
-
id:
|
|
845
|
-
className:
|
|
846
|
-
"aria-describedby":
|
|
847
|
-
"aria-errormessage":
|
|
848
|
-
"aria-invalid":
|
|
849
|
-
"aria-required":
|
|
663
|
+
id: i || s.id,
|
|
664
|
+
className: y(o, u, x[n], d, c),
|
|
665
|
+
"aria-describedby": s.helperTextId,
|
|
666
|
+
"aria-errormessage": s.errorMessageId,
|
|
667
|
+
"aria-invalid": s.isInvalid ?? !1,
|
|
668
|
+
"aria-required": s.isRequired ?? !1,
|
|
850
669
|
role: "button",
|
|
851
670
|
"aria-label": "File Upload",
|
|
852
|
-
...
|
|
671
|
+
...a
|
|
853
672
|
}
|
|
854
673
|
);
|
|
855
674
|
};
|
|
856
|
-
|
|
857
|
-
const
|
|
858
|
-
const { id:
|
|
859
|
-
return
|
|
675
|
+
xe.displayName = "FileInput";
|
|
676
|
+
const ge = (r) => {
|
|
677
|
+
const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
|
|
678
|
+
return s.isRequired && (a.required = !0), /* @__PURE__ */ t.jsx(
|
|
860
679
|
"input",
|
|
861
680
|
{
|
|
862
681
|
type: "text",
|
|
863
|
-
id:
|
|
864
|
-
className:
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
682
|
+
id: i || s.id,
|
|
683
|
+
className: y(
|
|
684
|
+
G,
|
|
685
|
+
V[n],
|
|
686
|
+
c
|
|
868
687
|
),
|
|
869
|
-
"aria-describedby":
|
|
870
|
-
"aria-errormessage":
|
|
871
|
-
"aria-invalid":
|
|
872
|
-
"aria-required":
|
|
873
|
-
...
|
|
688
|
+
"aria-describedby": s.helperTextId,
|
|
689
|
+
"aria-errormessage": s.errorMessageId,
|
|
690
|
+
"aria-invalid": s.isInvalid ?? !1,
|
|
691
|
+
"aria-required": s.isRequired ?? !1,
|
|
692
|
+
...a
|
|
874
693
|
}
|
|
875
694
|
);
|
|
876
695
|
};
|
|
877
|
-
|
|
878
|
-
const
|
|
879
|
-
const { id:
|
|
880
|
-
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
const
|
|
696
|
+
ge.displayName = "Input";
|
|
697
|
+
const he = (r) => {
|
|
698
|
+
const { id: i, className: c, children: n, onChange: a, maxLength: s, ...o } = r, [u, d] = R.useState(0), x = (v) => {
|
|
699
|
+
a && a(v), d(v.target.value.length);
|
|
700
|
+
}, f = R.useContext(T);
|
|
701
|
+
f.isRequired && (o.required = !0);
|
|
702
|
+
const g = u > (s || 0) ? "text-red-800" : "text-solid-gray-700", h = `
|
|
884
703
|
p-4
|
|
885
704
|
text-label
|
|
886
705
|
rounded-lg
|
|
@@ -891,192 +710,192 @@ const Fe = (s) => {
|
|
|
891
710
|
disabled:text-solid-gray-500
|
|
892
711
|
disabled:border-solid-gray-500
|
|
893
712
|
aria-invalid:border-red-800
|
|
894
|
-
${
|
|
713
|
+
${N.focusRect}
|
|
895
714
|
`;
|
|
896
|
-
return /* @__PURE__ */
|
|
897
|
-
/* @__PURE__ */
|
|
715
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
716
|
+
/* @__PURE__ */ t.jsx(
|
|
898
717
|
"textarea",
|
|
899
718
|
{
|
|
900
|
-
id:
|
|
901
|
-
className:
|
|
902
|
-
"aria-describedby":
|
|
903
|
-
"aria-errormessage":
|
|
904
|
-
"aria-invalid":
|
|
905
|
-
"aria-required":
|
|
906
|
-
onChange:
|
|
907
|
-
...
|
|
908
|
-
children:
|
|
719
|
+
id: i || f.id,
|
|
720
|
+
className: y(h, c),
|
|
721
|
+
"aria-describedby": f.helperTextId,
|
|
722
|
+
"aria-errormessage": f.errorMessageId,
|
|
723
|
+
"aria-invalid": f.isInvalid ?? !1,
|
|
724
|
+
"aria-required": f.isRequired ?? !1,
|
|
725
|
+
onChange: x,
|
|
726
|
+
...o,
|
|
727
|
+
children: n
|
|
909
728
|
}
|
|
910
729
|
),
|
|
911
|
-
|
|
912
|
-
/* @__PURE__ */
|
|
730
|
+
s ? /* @__PURE__ */ t.jsxs("p", { className: "text-label text-solid-gray-700", children: [
|
|
731
|
+
/* @__PURE__ */ t.jsx("span", { className: g, children: u }),
|
|
913
732
|
"/",
|
|
914
|
-
/* @__PURE__ */
|
|
733
|
+
/* @__PURE__ */ t.jsx("span", { children: s })
|
|
915
734
|
] }) : ""
|
|
916
735
|
] });
|
|
917
736
|
};
|
|
918
|
-
|
|
919
|
-
const
|
|
920
|
-
const
|
|
921
|
-
labelText:
|
|
922
|
-
className:
|
|
923
|
-
helperText:
|
|
924
|
-
errorMessage:
|
|
925
|
-
isInvalid:
|
|
926
|
-
isRequired:
|
|
927
|
-
children:
|
|
928
|
-
...
|
|
929
|
-
} =
|
|
930
|
-
id:
|
|
931
|
-
helperTextId: `helper-text-${
|
|
932
|
-
errorMessageId: `error-message-${
|
|
933
|
-
isInvalid:
|
|
934
|
-
isRequired:
|
|
737
|
+
he.displayName = "Textarea";
|
|
738
|
+
const ve = (r) => {
|
|
739
|
+
const i = R.useId(), {
|
|
740
|
+
labelText: c,
|
|
741
|
+
className: n,
|
|
742
|
+
helperText: a,
|
|
743
|
+
errorMessage: s,
|
|
744
|
+
isInvalid: o,
|
|
745
|
+
isRequired: u,
|
|
746
|
+
children: d,
|
|
747
|
+
...x
|
|
748
|
+
} = r, f = {
|
|
749
|
+
id: r.htmlFor ?? `input-${i}`,
|
|
750
|
+
helperTextId: `helper-text-${i}`,
|
|
751
|
+
errorMessageId: `error-message-${i}`,
|
|
752
|
+
isInvalid: o ?? !1,
|
|
753
|
+
isRequired: u ?? !1
|
|
935
754
|
};
|
|
936
|
-
return /* @__PURE__ */
|
|
937
|
-
/* @__PURE__ */
|
|
755
|
+
return /* @__PURE__ */ t.jsx(T.Provider, { value: f, children: /* @__PURE__ */ t.jsxs("div", { className: y("flex flex-col items-start gap-2", n), children: [
|
|
756
|
+
/* @__PURE__ */ t.jsxs(
|
|
938
757
|
"label",
|
|
939
758
|
{
|
|
940
|
-
className:
|
|
941
|
-
htmlFor:
|
|
942
|
-
...
|
|
759
|
+
className: y("block text-label", o && "text-red-800"),
|
|
760
|
+
htmlFor: f.id,
|
|
761
|
+
...x,
|
|
943
762
|
children: [
|
|
944
|
-
|
|
945
|
-
|
|
763
|
+
c,
|
|
764
|
+
u && /* @__PURE__ */ t.jsx("span", { className: "text-label text-red-800", children: " *" })
|
|
946
765
|
]
|
|
947
766
|
}
|
|
948
767
|
),
|
|
949
|
-
|
|
768
|
+
a && /* @__PURE__ */ t.jsx("p", { id: f.helperTextId, className: `
|
|
950
769
|
text-label text-solid-gray-700
|
|
951
|
-
`, children:
|
|
952
|
-
|
|
953
|
-
|
|
770
|
+
`, children: a }),
|
|
771
|
+
d,
|
|
772
|
+
o && /* @__PURE__ */ t.jsx("p", { id: f.errorMessageId, className: `
|
|
954
773
|
text-label text-red-800
|
|
955
|
-
`, children:
|
|
774
|
+
`, children: s })
|
|
956
775
|
] }) });
|
|
957
776
|
};
|
|
958
|
-
|
|
959
|
-
const
|
|
960
|
-
const
|
|
961
|
-
labelText:
|
|
962
|
-
className:
|
|
963
|
-
helperText:
|
|
964
|
-
errorMessage:
|
|
965
|
-
isInvalid:
|
|
966
|
-
isRequired:
|
|
967
|
-
direction:
|
|
968
|
-
children:
|
|
969
|
-
...
|
|
970
|
-
} =
|
|
971
|
-
groupName:
|
|
972
|
-
helperTextId: `helper-text-${
|
|
973
|
-
errorMessageId: `error-message-${
|
|
974
|
-
isInvalid:
|
|
975
|
-
isRequired:
|
|
976
|
-
},
|
|
977
|
-
return /* @__PURE__ */
|
|
777
|
+
ve.displayName = "LabelControl";
|
|
778
|
+
const $ = (r) => {
|
|
779
|
+
const i = R.useId(), {
|
|
780
|
+
labelText: c,
|
|
781
|
+
className: n,
|
|
782
|
+
helperText: a,
|
|
783
|
+
errorMessage: s,
|
|
784
|
+
isInvalid: o,
|
|
785
|
+
isRequired: u,
|
|
786
|
+
direction: d,
|
|
787
|
+
children: x,
|
|
788
|
+
...f
|
|
789
|
+
} = r, h = {
|
|
790
|
+
groupName: f.name ?? `group-${i}`,
|
|
791
|
+
helperTextId: `helper-text-${i}`,
|
|
792
|
+
errorMessageId: `error-message-${i}`,
|
|
793
|
+
isInvalid: o ?? !1,
|
|
794
|
+
isRequired: u ?? !1
|
|
795
|
+
}, v = d ?? "flex-col";
|
|
796
|
+
return /* @__PURE__ */ t.jsx(T.Provider, { value: h, children: /* @__PURE__ */ t.jsxs(
|
|
978
797
|
"fieldset",
|
|
979
798
|
{
|
|
980
|
-
className:
|
|
981
|
-
...
|
|
799
|
+
className: y("flex flex-col items-start gap-2", n),
|
|
800
|
+
...f,
|
|
982
801
|
children: [
|
|
983
|
-
/* @__PURE__ */
|
|
984
|
-
|
|
985
|
-
|
|
802
|
+
/* @__PURE__ */ t.jsx("legend", { children: /* @__PURE__ */ t.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
|
|
803
|
+
c,
|
|
804
|
+
u && /* @__PURE__ */ t.jsx("span", { className: "text-red-800", children: " *" })
|
|
986
805
|
] }) }),
|
|
987
|
-
/* @__PURE__ */
|
|
988
|
-
|
|
989
|
-
|
|
806
|
+
/* @__PURE__ */ t.jsx("div", { className: y("inline-flex", v), children: x }),
|
|
807
|
+
a && /* @__PURE__ */ t.jsx("p", { id: h.helperTextId, className: "text-sup text-solid-gray-700", children: a }),
|
|
808
|
+
o && /* @__PURE__ */ t.jsx("p", { id: h.errorMessageId, className: "text-label text-red-800", children: s })
|
|
990
809
|
]
|
|
991
810
|
}
|
|
992
811
|
) });
|
|
993
812
|
};
|
|
994
|
-
|
|
995
|
-
const
|
|
813
|
+
$.displayName = "FieldsetControl";
|
|
814
|
+
const ye = (r) => {
|
|
996
815
|
const {
|
|
997
|
-
items:
|
|
998
|
-
onChange:
|
|
999
|
-
className:
|
|
1000
|
-
labelText:
|
|
1001
|
-
helperText:
|
|
1002
|
-
errorMessage:
|
|
1003
|
-
isInvalid:
|
|
1004
|
-
isRequired:
|
|
1005
|
-
size:
|
|
1006
|
-
...
|
|
1007
|
-
} =
|
|
1008
|
-
return /* @__PURE__ */
|
|
1009
|
-
|
|
816
|
+
items: i,
|
|
817
|
+
onChange: c,
|
|
818
|
+
className: n,
|
|
819
|
+
labelText: a,
|
|
820
|
+
helperText: s,
|
|
821
|
+
errorMessage: o,
|
|
822
|
+
isInvalid: u,
|
|
823
|
+
isRequired: d,
|
|
824
|
+
size: x,
|
|
825
|
+
...f
|
|
826
|
+
} = r;
|
|
827
|
+
return /* @__PURE__ */ t.jsx(
|
|
828
|
+
$,
|
|
1010
829
|
{
|
|
1011
|
-
className:
|
|
1012
|
-
labelText:
|
|
1013
|
-
helperText:
|
|
1014
|
-
errorMessage:
|
|
1015
|
-
isInvalid:
|
|
1016
|
-
isRequired:
|
|
1017
|
-
...
|
|
1018
|
-
children:
|
|
1019
|
-
|
|
830
|
+
className: n,
|
|
831
|
+
labelText: a,
|
|
832
|
+
helperText: s,
|
|
833
|
+
errorMessage: o,
|
|
834
|
+
isInvalid: u,
|
|
835
|
+
isRequired: d,
|
|
836
|
+
...f,
|
|
837
|
+
children: i.map(({ label: g, value: h }) => /* @__PURE__ */ t.jsx(
|
|
838
|
+
Z,
|
|
1020
839
|
{
|
|
1021
|
-
size:
|
|
1022
|
-
value:
|
|
1023
|
-
onChange:
|
|
1024
|
-
children:
|
|
840
|
+
size: x,
|
|
841
|
+
value: h,
|
|
842
|
+
onChange: c,
|
|
843
|
+
children: g
|
|
1025
844
|
},
|
|
1026
|
-
`${
|
|
845
|
+
`${g}-${h}`
|
|
1027
846
|
))
|
|
1028
847
|
}
|
|
1029
848
|
);
|
|
1030
849
|
};
|
|
1031
|
-
|
|
1032
|
-
const
|
|
850
|
+
ye.displayName = "CheckboxGroup";
|
|
851
|
+
const Re = (r) => {
|
|
1033
852
|
const {
|
|
1034
|
-
items:
|
|
1035
|
-
onChange:
|
|
1036
|
-
className:
|
|
1037
|
-
labelText:
|
|
1038
|
-
helperText:
|
|
1039
|
-
errorMessage:
|
|
1040
|
-
isInvalid:
|
|
1041
|
-
isRequired:
|
|
1042
|
-
defaultValue:
|
|
1043
|
-
size:
|
|
1044
|
-
...
|
|
1045
|
-
} =
|
|
1046
|
-
return /* @__PURE__ */
|
|
1047
|
-
|
|
853
|
+
items: i,
|
|
854
|
+
onChange: c,
|
|
855
|
+
className: n,
|
|
856
|
+
labelText: a,
|
|
857
|
+
helperText: s,
|
|
858
|
+
errorMessage: o,
|
|
859
|
+
isInvalid: u,
|
|
860
|
+
isRequired: d,
|
|
861
|
+
defaultValue: x,
|
|
862
|
+
size: f,
|
|
863
|
+
...g
|
|
864
|
+
} = r;
|
|
865
|
+
return /* @__PURE__ */ t.jsx(
|
|
866
|
+
$,
|
|
1048
867
|
{
|
|
1049
|
-
className:
|
|
1050
|
-
labelText:
|
|
1051
|
-
helperText:
|
|
1052
|
-
errorMessage:
|
|
1053
|
-
isInvalid:
|
|
1054
|
-
isRequired:
|
|
1055
|
-
...
|
|
1056
|
-
children:
|
|
1057
|
-
|
|
868
|
+
className: n,
|
|
869
|
+
labelText: a,
|
|
870
|
+
helperText: s,
|
|
871
|
+
errorMessage: o,
|
|
872
|
+
isInvalid: u,
|
|
873
|
+
isRequired: d,
|
|
874
|
+
...g,
|
|
875
|
+
children: i.map(({ label: h, value: v }) => /* @__PURE__ */ t.jsx(
|
|
876
|
+
Q,
|
|
1058
877
|
{
|
|
1059
|
-
size:
|
|
1060
|
-
value:
|
|
1061
|
-
onChange:
|
|
1062
|
-
defaultChecked:
|
|
1063
|
-
children:
|
|
878
|
+
size: f,
|
|
879
|
+
value: v,
|
|
880
|
+
onChange: c,
|
|
881
|
+
defaultChecked: x === v,
|
|
882
|
+
children: h
|
|
1064
883
|
},
|
|
1065
|
-
`${
|
|
884
|
+
`${h}-${v}`
|
|
1066
885
|
))
|
|
1067
886
|
}
|
|
1068
887
|
);
|
|
1069
888
|
};
|
|
1070
|
-
|
|
889
|
+
Re.displayName = "RadioGroup";
|
|
1071
890
|
export {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
891
|
+
Z as Checkbox,
|
|
892
|
+
ye as CheckboxGroup,
|
|
893
|
+
$ as FieldsetControl,
|
|
894
|
+
xe as FileInput,
|
|
895
|
+
ge as Input,
|
|
896
|
+
ve as LabelControl,
|
|
897
|
+
Q as Radio,
|
|
898
|
+
Re as RadioGroup,
|
|
899
|
+
me as Select,
|
|
900
|
+
he as Textarea
|
|
1082
901
|
};
|