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