@sakura-ui/forms 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/index.cjs.js +15 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +351 -341
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import R from "react";
|
|
2
2
|
var re = { exports: {} }, W = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -14,18 +14,18 @@ function dr() {
|
|
|
14
14
|
if (Ce)
|
|
15
15
|
return W;
|
|
16
16
|
Ce = 1;
|
|
17
|
-
var f =
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
d.call(o,
|
|
23
|
-
if (
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
return { $$typeof:
|
|
17
|
+
var f = R, h = Symbol.for("react.element"), m = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, i = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function p(u, o, _) {
|
|
19
|
+
var b, g = {}, C = null, j = null;
|
|
20
|
+
_ !== void 0 && (C = "" + _), o.key !== void 0 && (C = "" + o.key), o.ref !== void 0 && (j = o.ref);
|
|
21
|
+
for (b in o)
|
|
22
|
+
d.call(o, b) && !a.hasOwnProperty(b) && (g[b] = o[b]);
|
|
23
|
+
if (u && u.defaultProps)
|
|
24
|
+
for (b in o = u.defaultProps, o)
|
|
25
|
+
g[b] === void 0 && (g[b] = o[b]);
|
|
26
|
+
return { $$typeof: h, type: u, key: C, ref: j, props: g, _owner: i.current };
|
|
27
27
|
}
|
|
28
|
-
return W.Fragment =
|
|
28
|
+
return W.Fragment = m, W.jsx = p, W.jsxs = p, W;
|
|
29
29
|
}
|
|
30
30
|
var Y = {};
|
|
31
31
|
/**
|
|
@@ -40,88 +40,88 @@ var Y = {};
|
|
|
40
40
|
var Pe;
|
|
41
41
|
function fr() {
|
|
42
42
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var f =
|
|
44
|
-
function
|
|
43
|
+
var f = R, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), u = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), S = Symbol.iterator, Se = "@@iterator";
|
|
44
|
+
function Ne(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = S && e[S] || e[Se];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function T(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
54
|
-
t[
|
|
55
|
-
|
|
53
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
54
|
+
t[s - 1] = arguments[s];
|
|
55
|
+
Oe("error", e, t);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Oe(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
60
|
+
var s = D.ReactDebugCurrentFrame, v = s.getStackAddendum();
|
|
61
|
+
v !== "" && (r += "%s", t = t.concat([v]));
|
|
62
|
+
var x = t.map(function(c) {
|
|
63
|
+
return String(c);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
var ke = !1, Fe = !1, De = !1, Ae = !1, Me = !1, ae;
|
|
69
69
|
ae = Symbol.for("react.module.reference");
|
|
70
70
|
function $e(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e === a || Me || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === a || Me || e === i || e === _ || e === b || Ae || e === j || ke || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === g || e.$$typeof === p || e.$$typeof === u || e.$$typeof === o || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
75
|
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function qe(e, r, t) {
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
var s = e.displayName;
|
|
79
|
+
if (s)
|
|
80
|
+
return s;
|
|
81
|
+
var v = r.displayName || r.name || "";
|
|
82
|
+
return v !== "" ? t + "(" + v + ")" : t;
|
|
83
83
|
}
|
|
84
84
|
function ne(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function N(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
95
|
case d:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case m:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case a:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case i:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case _:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case b:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case u:
|
|
111
111
|
var r = e;
|
|
112
112
|
return ne(r) + ".Consumer";
|
|
113
|
-
case
|
|
113
|
+
case p:
|
|
114
114
|
var t = e;
|
|
115
115
|
return ne(t._context) + ".Provider";
|
|
116
116
|
case o:
|
|
117
117
|
return qe(e, e.render, "ForwardRef");
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
118
|
+
case g:
|
|
119
|
+
var s = e.displayName || null;
|
|
120
|
+
return s !== null ? s : N(e.type) || "Memo";
|
|
121
121
|
case C: {
|
|
122
|
-
var
|
|
122
|
+
var v = e, x = v._payload, c = v._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return N(c(x));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,7 +129,7 @@ function fr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var k = Object.assign, $ = 0, se, ie, oe, le, ue, ce, de;
|
|
133
133
|
function fe() {
|
|
134
134
|
}
|
|
135
135
|
fe.__reactDisabledLog = !0;
|
|
@@ -165,30 +165,30 @@ function fr() {
|
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: k({}, e, {
|
|
169
169
|
value: se
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: k({}, e, {
|
|
172
172
|
value: ie
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: k({}, e, {
|
|
175
175
|
value: oe
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: k({}, e, {
|
|
178
178
|
value: le
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: k({}, e, {
|
|
181
181
|
value: ue
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
183
|
+
groupCollapsed: k({}, e, {
|
|
184
184
|
value: ce
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
186
|
+
groupEnd: k({}, e, {
|
|
187
187
|
value: de
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
$ < 0 &&
|
|
191
|
+
$ < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var J = D.ReactCurrentDispatcher, z;
|
|
@@ -197,76 +197,76 @@ function fr() {
|
|
|
197
197
|
if (z === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
z =
|
|
200
|
+
} catch (v) {
|
|
201
|
+
var s = v.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
z = s && s[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
205
|
` + z + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var H = !1, V;
|
|
209
209
|
{
|
|
210
210
|
var Le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
V = new Le();
|
|
212
212
|
}
|
|
213
213
|
function pe(e, r) {
|
|
214
|
-
if (!e ||
|
|
214
|
+
if (!e || H)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
217
|
var t = V.get(e);
|
|
218
218
|
if (t !== void 0)
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
var
|
|
221
|
+
var s;
|
|
222
|
+
H = !0;
|
|
223
|
+
var v = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var x;
|
|
226
|
+
x = J.current, J.current = null, We();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var c = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(c.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(c, []);
|
|
239
239
|
} catch (O) {
|
|
240
|
-
|
|
240
|
+
s = O;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], c);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
c.call();
|
|
246
246
|
} catch (O) {
|
|
247
|
-
|
|
247
|
+
s = O;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(c.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (O) {
|
|
255
|
-
|
|
255
|
+
s = O;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
259
|
} catch (O) {
|
|
260
|
-
if (O &&
|
|
260
|
+
if (O && s && typeof O.stack == "string") {
|
|
261
261
|
for (var l = O.stack.split(`
|
|
262
|
-
`),
|
|
263
|
-
`), y = l.length - 1, E =
|
|
262
|
+
`), w = s.stack.split(`
|
|
263
|
+
`), y = l.length - 1, E = w.length - 1; y >= 1 && E >= 0 && l[y] !== w[E]; )
|
|
264
264
|
E--;
|
|
265
265
|
for (; y >= 1 && E >= 0; y--, E--)
|
|
266
|
-
if (l[y] !==
|
|
266
|
+
if (l[y] !== w[E]) {
|
|
267
267
|
if (y !== 1 || E !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (y--, E--, E < 0 || l[y] !==
|
|
269
|
+
if (y--, E--, E < 0 || l[y] !== w[E]) {
|
|
270
270
|
var P = `
|
|
271
271
|
` + l[y].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, P), P;
|
|
@@ -276,7 +276,7 @@ function fr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
H = !1, J.current = x, Ye(), Error.prepareStackTrace = v;
|
|
280
280
|
}
|
|
281
281
|
var M = e ? e.displayName || e.name : "", we = M ? L(M) : "";
|
|
282
282
|
return typeof e == "function" && V.set(e, we), we;
|
|
@@ -296,21 +296,21 @@ function fr() {
|
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return L(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
299
|
+
case _:
|
|
300
300
|
return L("Suspense");
|
|
301
|
-
case
|
|
301
|
+
case b:
|
|
302
302
|
return L("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case o:
|
|
307
307
|
return Ve(e.render);
|
|
308
|
-
case
|
|
308
|
+
case g:
|
|
309
309
|
return U(e.type, r, t);
|
|
310
310
|
case C: {
|
|
311
|
-
var
|
|
311
|
+
var s = e, v = s._payload, x = s._init;
|
|
312
312
|
try {
|
|
313
|
-
return U(
|
|
313
|
+
return U(x(v), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -325,27 +325,27 @@ function fr() {
|
|
|
325
325
|
} else
|
|
326
326
|
me.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Be(e, r, t,
|
|
328
|
+
function Be(e, r, t, s, v) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
330
|
+
var x = Function.call.bind(B);
|
|
331
|
+
for (var c in e)
|
|
332
|
+
if (x(e, c)) {
|
|
333
333
|
var l = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
335
|
+
if (typeof e[c] != "function") {
|
|
336
|
+
var w = Error((s || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw w.name = "Invariant Violation", w;
|
|
338
338
|
}
|
|
339
|
-
l = e[
|
|
339
|
+
l = e[c](r, c, s, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (y) {
|
|
341
341
|
l = y;
|
|
342
342
|
}
|
|
343
|
-
l && !(l instanceof Error) && (G(
|
|
343
|
+
l && !(l instanceof Error) && (G(v), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", t, c, typeof l), G(null)), l instanceof Error && !(l.message in ve) && (ve[l.message] = !0, G(v), T("Failed %s type: %s", t, l.message), G(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var Ge = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function K(e) {
|
|
349
349
|
return Ge(e);
|
|
350
350
|
}
|
|
351
351
|
function Je(e) {
|
|
@@ -356,26 +356,26 @@ function fr() {
|
|
|
356
356
|
}
|
|
357
357
|
function ze(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return he(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function he(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function be(e) {
|
|
368
368
|
if (ze(e))
|
|
369
|
-
return
|
|
369
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), he(e);
|
|
370
370
|
}
|
|
371
|
-
var q = D.ReactCurrentOwner,
|
|
371
|
+
var q = D.ReactCurrentOwner, He = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
376
|
}, xe, ge, X;
|
|
377
377
|
X = {};
|
|
378
|
-
function
|
|
378
|
+
function Ke(e) {
|
|
379
379
|
if (B.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
@@ -393,14 +393,14 @@ function fr() {
|
|
|
393
393
|
}
|
|
394
394
|
function Ze(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
|
|
396
|
-
var t =
|
|
397
|
-
X[t] || (
|
|
396
|
+
var t = N(q.current.type);
|
|
397
|
+
X[t] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(q.current.type), e.ref), X[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function Qe(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
xe || (xe = !0,
|
|
403
|
+
xe || (xe = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
405
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: t,
|
|
@@ -411,7 +411,7 @@ function fr() {
|
|
|
411
411
|
function er(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
ge || (ge = !0,
|
|
414
|
+
ge || (ge = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
416
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: t,
|
|
@@ -419,17 +419,17 @@ function fr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var rr = function(e, r, t,
|
|
422
|
+
var rr = function(e, r, t, s, v, x, c) {
|
|
423
423
|
var l = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: h,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
429
|
ref: t,
|
|
430
|
-
props:
|
|
430
|
+
props: c,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: x
|
|
433
433
|
};
|
|
434
434
|
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -440,30 +440,30 @@ function fr() {
|
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
443
|
+
value: s
|
|
444
444
|
}), Object.defineProperty(l, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: v
|
|
449
449
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
450
450
|
};
|
|
451
|
-
function tr(e, r, t,
|
|
451
|
+
function tr(e, r, t, s, v) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
t !== void 0 && (
|
|
455
|
-
for (
|
|
456
|
-
B.call(r,
|
|
453
|
+
var x, c = {}, l = null, w = null;
|
|
454
|
+
t !== void 0 && (be(t), l = "" + t), Xe(r) && (be(r.key), l = "" + r.key), Ke(r) && (w = r.ref, Ze(r, v));
|
|
455
|
+
for (x in r)
|
|
456
|
+
B.call(r, x) && !He.hasOwnProperty(x) && (c[x] = r[x]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var y = e.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
|
|
459
|
+
for (x in y)
|
|
460
|
+
c[x] === void 0 && (c[x] = y[x]);
|
|
461
461
|
}
|
|
462
|
-
if (l ||
|
|
462
|
+
if (l || w) {
|
|
463
463
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
l && Qe(
|
|
464
|
+
l && Qe(c, E), w && er(c, E);
|
|
465
465
|
}
|
|
466
|
-
return rr(e, l,
|
|
466
|
+
return rr(e, l, w, v, s, q.current, c);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var Z = D.ReactCurrentOwner, Re = D.ReactDebugCurrentFrame;
|
|
@@ -477,12 +477,12 @@ function fr() {
|
|
|
477
477
|
var Q;
|
|
478
478
|
Q = !1;
|
|
479
479
|
function ee(e) {
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === h;
|
|
481
481
|
}
|
|
482
482
|
function ye() {
|
|
483
483
|
{
|
|
484
484
|
if (Z.current) {
|
|
485
|
-
var e =
|
|
485
|
+
var e = N(Z.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -524,26 +524,26 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
if (Ee[t])
|
|
525
525
|
return;
|
|
526
526
|
Ee[t] = !0;
|
|
527
|
-
var
|
|
528
|
-
e && e._owner && e._owner !== Z.current && (
|
|
527
|
+
var s = "";
|
|
528
|
+
e && e._owner && e._owner !== Z.current && (s = " It was passed a child from " + N(e._owner.type) + "."), A(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, s), A(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function je(e, r) {
|
|
532
532
|
{
|
|
533
533
|
if (typeof e != "object")
|
|
534
534
|
return;
|
|
535
|
-
if (
|
|
535
|
+
if (K(e))
|
|
536
536
|
for (var t = 0; t < e.length; t++) {
|
|
537
|
-
var
|
|
538
|
-
ee(
|
|
537
|
+
var s = e[t];
|
|
538
|
+
ee(s) && _e(s, r);
|
|
539
539
|
}
|
|
540
540
|
else if (ee(e))
|
|
541
541
|
e._store && (e._store.validated = !0);
|
|
542
542
|
else if (e) {
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
for (var
|
|
546
|
-
ee(
|
|
543
|
+
var v = Ne(e);
|
|
544
|
+
if (typeof v == "function" && v !== e.entries)
|
|
545
|
+
for (var x = v.call(e), c; !(c = x.next()).done; )
|
|
546
|
+
ee(c.value) && _e(c.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -557,91 +557,91 @@ Check the top-level render call using <` + t + ">.");
|
|
|
557
557
|
t = r.propTypes;
|
|
558
558
|
else if (typeof r == "object" && (r.$$typeof === o || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
|
-
r.$$typeof ===
|
|
560
|
+
r.$$typeof === g))
|
|
561
561
|
t = r.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (t) {
|
|
565
|
-
var
|
|
566
|
-
Be(t, e.props, "prop",
|
|
565
|
+
var s = N(r);
|
|
566
|
+
Be(t, e.props, "prop", s, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !Q) {
|
|
568
568
|
Q = !0;
|
|
569
|
-
var
|
|
570
|
-
|
|
569
|
+
var v = N(r);
|
|
570
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function ir(e) {
|
|
576
576
|
{
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
|
-
var
|
|
579
|
-
if (
|
|
580
|
-
A(e),
|
|
578
|
+
var s = r[t];
|
|
579
|
+
if (s !== "children" && s !== "key") {
|
|
580
|
+
A(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), A(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (A(e),
|
|
584
|
+
e.ref !== null && (A(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Te(e, r, t, s, v, x) {
|
|
588
588
|
{
|
|
589
|
-
var
|
|
590
|
-
if (!
|
|
589
|
+
var c = $e(e);
|
|
590
|
+
if (!c) {
|
|
591
591
|
var l = "";
|
|
592
592
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
-
var
|
|
594
|
-
|
|
593
|
+
var w = ar(v);
|
|
594
|
+
w ? l += w : l += ye();
|
|
595
595
|
var y;
|
|
596
|
-
e === null ? y = "null" :
|
|
596
|
+
e === null ? y = "null" : K(e) ? y = "array" : e !== void 0 && e.$$typeof === h ? (y = "<" + (N(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, l);
|
|
597
597
|
}
|
|
598
|
-
var E = tr(e, r, t,
|
|
598
|
+
var E = tr(e, r, t, v, x);
|
|
599
599
|
if (E == null)
|
|
600
600
|
return E;
|
|
601
|
-
if (
|
|
601
|
+
if (c) {
|
|
602
602
|
var P = r.children;
|
|
603
603
|
if (P !== void 0)
|
|
604
|
-
if (
|
|
605
|
-
if (
|
|
604
|
+
if (s)
|
|
605
|
+
if (K(P)) {
|
|
606
606
|
for (var M = 0; M < P.length; M++)
|
|
607
|
-
|
|
607
|
+
je(P[M], e);
|
|
608
608
|
Object.freeze && Object.freeze(P);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
611
|
else
|
|
612
|
-
|
|
612
|
+
je(P, e);
|
|
613
613
|
}
|
|
614
614
|
return e === d ? ir(E) : sr(E), E;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function or(e, r, t) {
|
|
618
|
-
return
|
|
618
|
+
return Te(e, r, t, !0);
|
|
619
619
|
}
|
|
620
620
|
function lr(e, r, t) {
|
|
621
|
-
return
|
|
621
|
+
return Te(e, r, t, !1);
|
|
622
622
|
}
|
|
623
623
|
var ur = lr, cr = or;
|
|
624
624
|
Y.Fragment = d, Y.jsx = ur, Y.jsxs = cr;
|
|
625
625
|
}()), Y;
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? re.exports = dr() : re.exports = fr();
|
|
628
|
-
var
|
|
629
|
-
const I = (...f) => f.filter(Boolean).join(" "),
|
|
628
|
+
var n = re.exports;
|
|
629
|
+
const I = (...f) => f.filter(Boolean).join(" "), F = R.createContext({
|
|
630
630
|
helperTextId: "",
|
|
631
631
|
errorMessageId: "",
|
|
632
632
|
isInvalid: !1,
|
|
633
633
|
isRequired: !1
|
|
634
|
-
}), pr =
|
|
635
|
-
(f,
|
|
636
|
-
const { className:
|
|
637
|
-
a.isRequired && (
|
|
638
|
-
const
|
|
634
|
+
}), pr = R.forwardRef(
|
|
635
|
+
(f, h) => {
|
|
636
|
+
const { className: m, children: d, ...i } = f, a = R.useContext(F);
|
|
637
|
+
a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
|
|
638
|
+
const p = `
|
|
639
639
|
inline-block
|
|
640
640
|
text-base
|
|
641
641
|
cursor-pointer
|
|
642
642
|
py-2
|
|
643
643
|
mr-4
|
|
644
|
-
`,
|
|
644
|
+
`, u = `
|
|
645
645
|
peer
|
|
646
646
|
hidden
|
|
647
647
|
`, o = `
|
|
@@ -659,34 +659,34 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
659
659
|
peer-checked:border-none
|
|
660
660
|
peer-disabled:border-sumi-500
|
|
661
661
|
`;
|
|
662
|
-
return /* @__PURE__ */
|
|
663
|
-
/* @__PURE__ */
|
|
662
|
+
return /* @__PURE__ */ n.jsx("label", { htmlFor: i.id, className: I(p, m), children: /* @__PURE__ */ n.jsxs("span", { className: "flex items-center", children: [
|
|
663
|
+
/* @__PURE__ */ n.jsx(
|
|
664
664
|
"input",
|
|
665
665
|
{
|
|
666
|
-
className:
|
|
666
|
+
className: u,
|
|
667
667
|
type: "checkbox",
|
|
668
668
|
"aria-describedby": a.helperTextId,
|
|
669
669
|
"aria-errormessage": a.errorMessageId,
|
|
670
670
|
"aria-invalid": a.isInvalid ?? !1,
|
|
671
|
-
...
|
|
672
|
-
ref:
|
|
671
|
+
...i,
|
|
672
|
+
ref: h
|
|
673
673
|
}
|
|
674
674
|
),
|
|
675
|
-
/* @__PURE__ */
|
|
676
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ n.jsx("span", { className: o, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ n.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" }) }) }),
|
|
676
|
+
/* @__PURE__ */ n.jsx("span", { className: "peer-disabled:text-sumi-500", children: d })
|
|
677
677
|
] }) });
|
|
678
678
|
}
|
|
679
|
-
), vr =
|
|
680
|
-
const { className:
|
|
681
|
-
a.isRequired && (
|
|
682
|
-
const
|
|
679
|
+
), vr = R.forwardRef((f, h) => {
|
|
680
|
+
const { className: m, children: d, ...i } = f, a = R.useContext(F);
|
|
681
|
+
a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
|
|
682
|
+
const p = `
|
|
683
683
|
inline-block
|
|
684
684
|
text-base
|
|
685
685
|
cursor-pointer
|
|
686
686
|
py-2
|
|
687
687
|
mr-4
|
|
688
688
|
|
|
689
|
-
`,
|
|
689
|
+
`, u = `
|
|
690
690
|
peer
|
|
691
691
|
hidden
|
|
692
692
|
`, o = `
|
|
@@ -703,27 +703,27 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
703
703
|
peer-checked:border-sea-600
|
|
704
704
|
peer-disabled:border-sumi-500
|
|
705
705
|
`;
|
|
706
|
-
return /* @__PURE__ */
|
|
707
|
-
/* @__PURE__ */
|
|
706
|
+
return /* @__PURE__ */ n.jsx("label", { htmlFor: i.id, className: I(p, m), children: /* @__PURE__ */ n.jsxs("span", { className: "flex items-center", children: [
|
|
707
|
+
/* @__PURE__ */ n.jsx(
|
|
708
708
|
"input",
|
|
709
709
|
{
|
|
710
|
-
className:
|
|
710
|
+
className: u,
|
|
711
711
|
type: "radio",
|
|
712
712
|
"aria-describedby": a.helperTextId,
|
|
713
713
|
"aria-errormessage": a.errorMessageId,
|
|
714
714
|
"aria-invalid": a.isInvalid ?? !1,
|
|
715
|
-
...
|
|
716
|
-
ref:
|
|
715
|
+
...i,
|
|
716
|
+
ref: h
|
|
717
717
|
}
|
|
718
718
|
),
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
/* @__PURE__ */
|
|
719
|
+
/* @__PURE__ */ n.jsx("span", { className: o }),
|
|
720
|
+
/* @__PURE__ */ n.jsx("span", { className: "peer-disabled:text-sumi-500", children: d })
|
|
721
721
|
] }) });
|
|
722
|
-
}), mr =
|
|
723
|
-
(f,
|
|
724
|
-
const { className:
|
|
725
|
-
a.isRequired && (
|
|
726
|
-
const
|
|
722
|
+
}), mr = R.forwardRef(
|
|
723
|
+
(f, h) => {
|
|
724
|
+
const { className: m, children: d, ...i } = f, a = R.useContext(F);
|
|
725
|
+
a.isRequired && (i.required = !0);
|
|
726
|
+
const p = a.isInvalid ? "border-sun-800" : "border-sumi-900", u = `
|
|
727
727
|
peer
|
|
728
728
|
cursor-pointer
|
|
729
729
|
appearance-none
|
|
@@ -747,28 +747,28 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
747
747
|
pointer-events-none
|
|
748
748
|
peer-disabled:fill-sumi-500
|
|
749
749
|
`;
|
|
750
|
-
return /* @__PURE__ */
|
|
751
|
-
/* @__PURE__ */
|
|
750
|
+
return /* @__PURE__ */ n.jsxs("label", { className: "inline-block relative", children: [
|
|
751
|
+
/* @__PURE__ */ n.jsx(
|
|
752
752
|
"select",
|
|
753
753
|
{
|
|
754
|
-
id:
|
|
755
|
-
className: I(
|
|
754
|
+
id: i.id ?? a.id,
|
|
755
|
+
className: I(u, p, f.className),
|
|
756
756
|
"aria-describedby": a.helperTextId,
|
|
757
757
|
"aria-errormessage": a.errorMessageId,
|
|
758
758
|
"aria-invalid": a.isInvalid ?? !1,
|
|
759
|
-
...
|
|
760
|
-
ref:
|
|
759
|
+
...i,
|
|
760
|
+
ref: h,
|
|
761
761
|
children: d
|
|
762
762
|
}
|
|
763
763
|
),
|
|
764
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ n.jsx("span", { className: o, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ n.jsx("path", { d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z" }) }) })
|
|
765
765
|
] });
|
|
766
766
|
}
|
|
767
|
-
),
|
|
768
|
-
(f,
|
|
769
|
-
const { className:
|
|
770
|
-
|
|
771
|
-
const a =
|
|
767
|
+
), hr = R.forwardRef(
|
|
768
|
+
(f, h) => {
|
|
769
|
+
const { className: m, ...d } = f, i = R.useContext(F);
|
|
770
|
+
i.isRequired && (d.required = !0);
|
|
771
|
+
const a = i.isInvalid ? "border-sun-800" : "border-sumi-900", p = `
|
|
772
772
|
p-4
|
|
773
773
|
rounded-lg
|
|
774
774
|
border
|
|
@@ -780,25 +780,27 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
780
780
|
disabled:text-sumi-500
|
|
781
781
|
disabled:border-sumi-500
|
|
782
782
|
`;
|
|
783
|
-
return /* @__PURE__ */
|
|
783
|
+
return /* @__PURE__ */ n.jsx(
|
|
784
784
|
"input",
|
|
785
785
|
{
|
|
786
786
|
type: "text",
|
|
787
|
-
id: d.id ??
|
|
788
|
-
className: I(
|
|
789
|
-
"aria-describedby":
|
|
790
|
-
"aria-errormessage":
|
|
791
|
-
"aria-invalid":
|
|
787
|
+
id: d.id ?? i.id,
|
|
788
|
+
className: I(p, a, m),
|
|
789
|
+
"aria-describedby": i.helperTextId,
|
|
790
|
+
"aria-errormessage": i.errorMessageId,
|
|
791
|
+
"aria-invalid": i.isInvalid ?? !1,
|
|
792
792
|
...d,
|
|
793
|
-
ref:
|
|
793
|
+
ref: h
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
),
|
|
798
|
-
(f,
|
|
799
|
-
const { className:
|
|
800
|
-
|
|
801
|
-
|
|
797
|
+
), br = R.forwardRef(
|
|
798
|
+
(f, h) => {
|
|
799
|
+
const { className: m, children: d, onChange: i, maxLength: a, ...p } = f, [u, o] = R.useState(0), _ = (S) => {
|
|
800
|
+
i && i(S), o(S.target.value.length);
|
|
801
|
+
}, b = R.useContext(F);
|
|
802
|
+
b.isRequired && (p.required = !0);
|
|
803
|
+
const g = b.isInvalid ? "border-sun-800" : "border-sumi-900", C = u > (a || 0) ? "text-sun-800" : "text-sumi-700", j = `
|
|
802
804
|
p-4
|
|
803
805
|
rounded-lg
|
|
804
806
|
border
|
|
@@ -810,228 +812,236 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
810
812
|
disabled:text-sumi-500
|
|
811
813
|
disabled:border-sumi-500
|
|
812
814
|
`;
|
|
813
|
-
return /* @__PURE__ */
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
815
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
816
|
+
/* @__PURE__ */ n.jsx(
|
|
817
|
+
"textarea",
|
|
818
|
+
{
|
|
819
|
+
id: p.id ?? b.id,
|
|
820
|
+
className: I(j, g, m),
|
|
821
|
+
"aria-describedby": b.helperTextId,
|
|
822
|
+
"aria-errormessage": b.errorMessageId,
|
|
823
|
+
"aria-invalid": b.isInvalid ?? !1,
|
|
824
|
+
onChange: _,
|
|
825
|
+
...p,
|
|
826
|
+
ref: h,
|
|
827
|
+
children: d
|
|
828
|
+
}
|
|
829
|
+
),
|
|
830
|
+
a ? /* @__PURE__ */ n.jsxs("p", { className: "text-xs text-sumi-700", children: [
|
|
831
|
+
/* @__PURE__ */ n.jsx("span", { className: C, children: u }),
|
|
832
|
+
"/",
|
|
833
|
+
/* @__PURE__ */ n.jsx("span", { children: a })
|
|
834
|
+
] }) : ""
|
|
835
|
+
] });
|
|
826
836
|
}
|
|
827
|
-
), te =
|
|
828
|
-
const
|
|
837
|
+
), te = R.forwardRef((f, h) => {
|
|
838
|
+
const m = R.useId(), {
|
|
829
839
|
labelText: d,
|
|
830
|
-
className:
|
|
840
|
+
className: i,
|
|
831
841
|
helperText: a,
|
|
832
|
-
errorMessage:
|
|
833
|
-
isInvalid:
|
|
842
|
+
errorMessage: p,
|
|
843
|
+
isInvalid: u,
|
|
834
844
|
isRequired: o,
|
|
835
|
-
children:
|
|
836
|
-
...
|
|
837
|
-
} = f,
|
|
838
|
-
id: f.htmlFor ?? `input-${
|
|
839
|
-
helperTextId: `helper-text-${
|
|
840
|
-
errorMessageId: `error-message-${
|
|
841
|
-
isInvalid:
|
|
845
|
+
children: _,
|
|
846
|
+
...b
|
|
847
|
+
} = f, g = {
|
|
848
|
+
id: f.htmlFor ?? `input-${m}`,
|
|
849
|
+
helperTextId: `helper-text-${m}`,
|
|
850
|
+
errorMessageId: `error-message-${m}`,
|
|
851
|
+
isInvalid: u ?? !1,
|
|
842
852
|
isRequired: o ?? !1
|
|
843
853
|
};
|
|
844
|
-
return /* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ n.jsx(F.Provider, { value: g, children: /* @__PURE__ */ n.jsxs("div", { className: I("mb-4", i), children: [
|
|
855
|
+
/* @__PURE__ */ n.jsxs(
|
|
846
856
|
"label",
|
|
847
857
|
{
|
|
848
|
-
className: I("block mb-2 text-label",
|
|
849
|
-
htmlFor:
|
|
850
|
-
ref:
|
|
851
|
-
...
|
|
858
|
+
className: I("block mb-2 text-label", u && "text-sun-800"),
|
|
859
|
+
htmlFor: g.id,
|
|
860
|
+
ref: h,
|
|
861
|
+
...b,
|
|
852
862
|
children: [
|
|
853
863
|
d,
|
|
854
|
-
o && /* @__PURE__ */
|
|
864
|
+
o && /* @__PURE__ */ n.jsx("span", { className: "text-sun-800", children: " *" })
|
|
855
865
|
]
|
|
856
866
|
}
|
|
857
867
|
),
|
|
858
|
-
a && /* @__PURE__ */
|
|
859
|
-
|
|
860
|
-
|
|
868
|
+
a && /* @__PURE__ */ n.jsx("p", { id: g.helperTextId, className: "text-xs text-sumi-700 mb-2", children: a }),
|
|
869
|
+
_,
|
|
870
|
+
u && /* @__PURE__ */ n.jsx(
|
|
861
871
|
"p",
|
|
862
872
|
{
|
|
863
|
-
id:
|
|
873
|
+
id: g.errorMessageId,
|
|
864
874
|
className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
|
|
865
|
-
children:
|
|
875
|
+
children: p
|
|
866
876
|
}
|
|
867
877
|
)
|
|
868
878
|
] }) });
|
|
869
|
-
}), Ie =
|
|
870
|
-
const
|
|
879
|
+
}), Ie = R.forwardRef((f, h) => {
|
|
880
|
+
const m = R.useId(), {
|
|
871
881
|
labelText: d,
|
|
872
|
-
className:
|
|
882
|
+
className: i,
|
|
873
883
|
helperText: a,
|
|
874
|
-
errorMessage:
|
|
875
|
-
isInvalid:
|
|
884
|
+
errorMessage: p,
|
|
885
|
+
isInvalid: u,
|
|
876
886
|
isRequired: o,
|
|
877
|
-
direction:
|
|
878
|
-
children:
|
|
879
|
-
...
|
|
880
|
-
} = f,
|
|
881
|
-
groupName:
|
|
882
|
-
helperTextId: `helper-text-${
|
|
883
|
-
errorMessageId: `error-message-${
|
|
884
|
-
isInvalid:
|
|
887
|
+
direction: _,
|
|
888
|
+
children: b,
|
|
889
|
+
...g
|
|
890
|
+
} = f, j = {
|
|
891
|
+
groupName: g.name ?? `group-${m}`,
|
|
892
|
+
helperTextId: `helper-text-${m}`,
|
|
893
|
+
errorMessageId: `error-message-${m}`,
|
|
894
|
+
isInvalid: u ?? !1,
|
|
885
895
|
isRequired: o ?? !1
|
|
886
|
-
},
|
|
887
|
-
return /* @__PURE__ */
|
|
888
|
-
/* @__PURE__ */
|
|
896
|
+
}, S = _ ?? "flex-col";
|
|
897
|
+
return /* @__PURE__ */ n.jsx(F.Provider, { value: j, children: /* @__PURE__ */ n.jsxs("fieldset", { className: I("mb-4", i), ref: h, ...g, children: [
|
|
898
|
+
/* @__PURE__ */ n.jsx("legend", { children: /* @__PURE__ */ n.jsxs(
|
|
889
899
|
"p",
|
|
890
900
|
{
|
|
891
|
-
className: I("block mb-2 text-label",
|
|
901
|
+
className: I("block mb-2 text-label", u && "text-sun-800"),
|
|
892
902
|
children: [
|
|
893
903
|
d,
|
|
894
|
-
o && /* @__PURE__ */
|
|
904
|
+
o && /* @__PURE__ */ n.jsx("span", { className: "text-sun-800", children: " *" })
|
|
895
905
|
]
|
|
896
906
|
}
|
|
897
907
|
) }),
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
a && /* @__PURE__ */
|
|
900
|
-
|
|
908
|
+
/* @__PURE__ */ n.jsx("div", { className: I("inline-flex", S), children: b }),
|
|
909
|
+
a && /* @__PURE__ */ n.jsx("p", { id: j.helperTextId, className: "text-xs text-sumi-700 mt-2", children: a }),
|
|
910
|
+
u && /* @__PURE__ */ n.jsx(
|
|
901
911
|
"p",
|
|
902
912
|
{
|
|
903
|
-
id:
|
|
913
|
+
id: j.errorMessageId,
|
|
904
914
|
className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
|
|
905
|
-
children:
|
|
915
|
+
children: p
|
|
906
916
|
}
|
|
907
917
|
)
|
|
908
918
|
] }) });
|
|
909
|
-
}), gr =
|
|
919
|
+
}), gr = R.forwardRef((f, h) => {
|
|
910
920
|
const {
|
|
911
|
-
items:
|
|
921
|
+
items: m,
|
|
912
922
|
onChange: d,
|
|
913
|
-
className:
|
|
923
|
+
className: i,
|
|
914
924
|
labelText: a,
|
|
915
|
-
helperText:
|
|
916
|
-
errorMessage:
|
|
925
|
+
helperText: p,
|
|
926
|
+
errorMessage: u,
|
|
917
927
|
isInvalid: o,
|
|
918
|
-
isRequired:
|
|
919
|
-
...
|
|
928
|
+
isRequired: _,
|
|
929
|
+
...b
|
|
920
930
|
} = f;
|
|
921
|
-
return /* @__PURE__ */
|
|
931
|
+
return /* @__PURE__ */ n.jsx(
|
|
922
932
|
Ie,
|
|
923
933
|
{
|
|
924
|
-
className:
|
|
934
|
+
className: i,
|
|
925
935
|
labelText: a,
|
|
926
|
-
helperText:
|
|
927
|
-
errorMessage:
|
|
936
|
+
helperText: p,
|
|
937
|
+
errorMessage: u,
|
|
928
938
|
isInvalid: o,
|
|
929
|
-
isRequired:
|
|
930
|
-
ref:
|
|
931
|
-
...
|
|
932
|
-
children:
|
|
939
|
+
isRequired: _,
|
|
940
|
+
ref: h,
|
|
941
|
+
...b,
|
|
942
|
+
children: m.map(({ label: g, value: C }, j) => /* @__PURE__ */ n.jsx(pr, { value: C, onChange: d, children: g }, j))
|
|
933
943
|
}
|
|
934
944
|
);
|
|
935
|
-
}), Rr =
|
|
945
|
+
}), Rr = R.forwardRef((f, h) => {
|
|
936
946
|
const {
|
|
937
|
-
items:
|
|
947
|
+
items: m,
|
|
938
948
|
onChange: d,
|
|
939
|
-
className:
|
|
949
|
+
className: i,
|
|
940
950
|
labelText: a,
|
|
941
|
-
helperText:
|
|
942
|
-
errorMessage:
|
|
951
|
+
helperText: p,
|
|
952
|
+
errorMessage: u,
|
|
943
953
|
isInvalid: o,
|
|
944
|
-
isRequired:
|
|
945
|
-
defaultValue:
|
|
946
|
-
...
|
|
954
|
+
isRequired: _,
|
|
955
|
+
defaultValue: b,
|
|
956
|
+
...g
|
|
947
957
|
} = f;
|
|
948
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */ n.jsx(
|
|
949
959
|
Ie,
|
|
950
960
|
{
|
|
951
|
-
className:
|
|
961
|
+
className: i,
|
|
952
962
|
labelText: a,
|
|
953
|
-
helperText:
|
|
954
|
-
errorMessage:
|
|
963
|
+
helperText: p,
|
|
964
|
+
errorMessage: u,
|
|
955
965
|
isInvalid: o,
|
|
956
|
-
isRequired:
|
|
957
|
-
ref:
|
|
958
|
-
...
|
|
959
|
-
children:
|
|
966
|
+
isRequired: _,
|
|
967
|
+
ref: h,
|
|
968
|
+
...g,
|
|
969
|
+
children: m.map(({ label: C, value: j }, S) => /* @__PURE__ */ n.jsx(
|
|
960
970
|
vr,
|
|
961
971
|
{
|
|
962
|
-
value:
|
|
972
|
+
value: j,
|
|
963
973
|
onChange: d,
|
|
964
|
-
defaultChecked:
|
|
974
|
+
defaultChecked: b === j,
|
|
965
975
|
children: C
|
|
966
976
|
},
|
|
967
|
-
|
|
977
|
+
S
|
|
968
978
|
))
|
|
969
979
|
}
|
|
970
980
|
);
|
|
971
|
-
}), yr =
|
|
981
|
+
}), yr = R.forwardRef((f, h) => {
|
|
972
982
|
const {
|
|
973
|
-
className:
|
|
983
|
+
className: m,
|
|
974
984
|
labelText: d,
|
|
975
|
-
helperText:
|
|
985
|
+
helperText: i,
|
|
976
986
|
errorMessage: a,
|
|
977
|
-
isInvalid:
|
|
978
|
-
isRequired:
|
|
987
|
+
isInvalid: p,
|
|
988
|
+
isRequired: u,
|
|
979
989
|
...o
|
|
980
990
|
} = f;
|
|
981
|
-
return /* @__PURE__ */
|
|
991
|
+
return /* @__PURE__ */ n.jsx(
|
|
982
992
|
te,
|
|
983
993
|
{
|
|
984
|
-
className:
|
|
994
|
+
className: m,
|
|
985
995
|
labelText: d,
|
|
986
|
-
helperText:
|
|
996
|
+
helperText: i,
|
|
987
997
|
errorMessage: a,
|
|
988
|
-
isInvalid:
|
|
989
|
-
isRequired:
|
|
990
|
-
children: /* @__PURE__ */
|
|
998
|
+
isInvalid: p,
|
|
999
|
+
isRequired: u,
|
|
1000
|
+
children: /* @__PURE__ */ n.jsx(mr, { ref: h, ...o })
|
|
991
1001
|
}
|
|
992
1002
|
);
|
|
993
|
-
}), Er =
|
|
1003
|
+
}), Er = R.forwardRef((f, h) => {
|
|
994
1004
|
const {
|
|
995
|
-
className:
|
|
1005
|
+
className: m,
|
|
996
1006
|
labelText: d,
|
|
997
|
-
helperText:
|
|
1007
|
+
helperText: i,
|
|
998
1008
|
errorMessage: a,
|
|
999
|
-
isInvalid:
|
|
1000
|
-
isRequired:
|
|
1009
|
+
isInvalid: p,
|
|
1010
|
+
isRequired: u,
|
|
1001
1011
|
...o
|
|
1002
1012
|
} = f;
|
|
1003
|
-
return /* @__PURE__ */
|
|
1013
|
+
return /* @__PURE__ */ n.jsx(
|
|
1004
1014
|
te,
|
|
1005
1015
|
{
|
|
1006
|
-
className:
|
|
1016
|
+
className: m,
|
|
1007
1017
|
labelText: d,
|
|
1008
|
-
helperText:
|
|
1018
|
+
helperText: i,
|
|
1009
1019
|
errorMessage: a,
|
|
1010
|
-
isInvalid:
|
|
1011
|
-
isRequired:
|
|
1012
|
-
children: /* @__PURE__ */
|
|
1020
|
+
isInvalid: p,
|
|
1021
|
+
isRequired: u,
|
|
1022
|
+
children: /* @__PURE__ */ n.jsx(hr, { ref: h, ...o })
|
|
1013
1023
|
}
|
|
1014
1024
|
);
|
|
1015
|
-
}), _r =
|
|
1025
|
+
}), _r = R.forwardRef((f, h) => {
|
|
1016
1026
|
const {
|
|
1017
|
-
className:
|
|
1027
|
+
className: m,
|
|
1018
1028
|
labelText: d,
|
|
1019
|
-
helperText:
|
|
1029
|
+
helperText: i,
|
|
1020
1030
|
errorMessage: a,
|
|
1021
|
-
isInvalid:
|
|
1022
|
-
isRequired:
|
|
1031
|
+
isInvalid: p,
|
|
1032
|
+
isRequired: u,
|
|
1023
1033
|
...o
|
|
1024
1034
|
} = f;
|
|
1025
|
-
return /* @__PURE__ */
|
|
1035
|
+
return /* @__PURE__ */ n.jsx(
|
|
1026
1036
|
te,
|
|
1027
1037
|
{
|
|
1028
|
-
className:
|
|
1038
|
+
className: m,
|
|
1029
1039
|
labelText: d,
|
|
1030
|
-
helperText:
|
|
1040
|
+
helperText: i,
|
|
1031
1041
|
errorMessage: a,
|
|
1032
|
-
isInvalid:
|
|
1033
|
-
isRequired:
|
|
1034
|
-
children: /* @__PURE__ */
|
|
1042
|
+
isInvalid: p,
|
|
1043
|
+
isRequired: u,
|
|
1044
|
+
children: /* @__PURE__ */ n.jsx(br, { ref: h, ...o })
|
|
1035
1045
|
}
|
|
1036
1046
|
);
|
|
1037
1047
|
});
|
|
@@ -1039,14 +1049,14 @@ export {
|
|
|
1039
1049
|
pr as Checkbox,
|
|
1040
1050
|
gr as CheckboxGroup,
|
|
1041
1051
|
Ie as FieldsetControl,
|
|
1042
|
-
|
|
1052
|
+
hr as Input,
|
|
1043
1053
|
Er as InputControl,
|
|
1044
1054
|
te as LabelControl,
|
|
1045
1055
|
vr as Radio,
|
|
1046
1056
|
Rr as RadioGroup,
|
|
1047
1057
|
mr as Select,
|
|
1048
1058
|
yr as SelectControl,
|
|
1049
|
-
|
|
1059
|
+
br as Textarea,
|
|
1050
1060
|
_r as TextareaControl
|
|
1051
1061
|
};
|
|
1052
1062
|
//# sourceMappingURL=index.es.js.map
|