@sakura-ui/forms 0.1.6 → 0.1.7
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/FileInput.d.ts +5 -0
- package/dist/components/FileInput.d.ts.map +1 -0
- package/dist/components/FileInput.js +51 -0
- package/dist/components/FileInput.js.map +1 -0
- package/dist/components/LabelControl.d.ts.map +1 -1
- package/dist/components/LabelControl.js +7 -1
- package/dist/components/LabelControl.js.map +1 -1
- package/dist/components/index.d.ts +8 -7
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs.js +51 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +348 -286
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from "react";
|
|
2
2
|
var re = { exports: {} }, W = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -9,23 +9,23 @@ var re = { exports: {} }, W = {};
|
|
|
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
|
|
12
|
+
var Ie;
|
|
13
13
|
function vr() {
|
|
14
|
-
if (
|
|
14
|
+
if (Ie)
|
|
15
15
|
return W;
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
_ !== void 0 && (
|
|
21
|
-
for (
|
|
22
|
-
|
|
16
|
+
Ie = 1;
|
|
17
|
+
var f = g, b = Symbol.for("react.element"), m = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function p(c, o, _) {
|
|
19
|
+
var h, y = {}, j = null, T = null;
|
|
20
|
+
_ !== void 0 && (j = "" + _), o.key !== void 0 && (j = "" + o.key), o.ref !== void 0 && (T = o.ref);
|
|
21
|
+
for (h in o)
|
|
22
|
+
u.call(o, h) && !a.hasOwnProperty(h) && (y[h] = o[h]);
|
|
23
23
|
if (c && c.defaultProps)
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
return { $$typeof:
|
|
24
|
+
for (h in o = c.defaultProps, o)
|
|
25
|
+
y[h] === void 0 && (y[h] = o[h]);
|
|
26
|
+
return { $$typeof: b, type: c, key: j, ref: T, props: y, _owner: n.current };
|
|
27
27
|
}
|
|
28
|
-
return W.Fragment = m, W.jsx =
|
|
28
|
+
return W.Fragment = m, W.jsx = p, W.jsxs = p, W;
|
|
29
29
|
}
|
|
30
30
|
var Y = {};
|
|
31
31
|
/**
|
|
@@ -37,30 +37,30 @@ var Y = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var Ne;
|
|
41
41
|
function mr() {
|
|
42
|
-
return
|
|
43
|
-
var
|
|
42
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var f = g, b = Symbol.for("react.element"), m = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, ke = "@@iterator";
|
|
44
44
|
function Fe(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = P && e[P] || e[ke];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var D =
|
|
51
|
-
function
|
|
50
|
+
var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function w(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
54
|
-
t[
|
|
53
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
54
|
+
t[i - 1] = arguments[i];
|
|
55
55
|
De("error", e, t);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function De(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var x = t.map(function(
|
|
63
|
-
return String(
|
|
60
|
+
var i = D.ReactDebugCurrentFrame, v = i.getStackAddendum();
|
|
61
|
+
v !== "" && (r += "%s", t = t.concat([v]));
|
|
62
|
+
var x = t.map(function(d) {
|
|
63
|
+
return String(d);
|
|
64
64
|
});
|
|
65
65
|
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
66
66
|
}
|
|
@@ -68,18 +68,18 @@ function mr() {
|
|
|
68
68
|
var Ae = !1, Me = !1, $e = !1, qe = !1, We = !1, ne;
|
|
69
69
|
ne = Symbol.for("react.module.reference");
|
|
70
70
|
function Ye(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === a || We || e === n || e === _ || e === h || qe || e === T || Ae || Me || $e || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === p || e.$$typeof === c || 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 === ne || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function Le(e, r, t) {
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
var i = e.displayName;
|
|
79
|
+
if (i)
|
|
80
|
+
return i;
|
|
81
|
+
var v = r.displayName || r.name || "";
|
|
82
|
+
return v !== "" ? t + "(" + v + ")" : t;
|
|
83
83
|
}
|
|
84
84
|
function se(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
@@ -87,22 +87,22 @@ function mr() {
|
|
|
87
87
|
function S(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && w("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
|
-
case
|
|
95
|
+
case u:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case m:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case a:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case n:
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case _:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case h:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
@@ -110,18 +110,18 @@ function mr() {
|
|
|
110
110
|
case c:
|
|
111
111
|
var r = e;
|
|
112
112
|
return se(r) + ".Consumer";
|
|
113
|
-
case
|
|
113
|
+
case p:
|
|
114
114
|
var t = e;
|
|
115
115
|
return se(t._context) + ".Provider";
|
|
116
116
|
case o:
|
|
117
117
|
return Le(e, e.render, "ForwardRef");
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
118
|
+
case y:
|
|
119
|
+
var i = e.displayName || null;
|
|
120
|
+
return i !== null ? i : S(e.type) || "Memo";
|
|
121
|
+
case j: {
|
|
122
|
+
var v = e, x = v._payload, d = v._init;
|
|
123
123
|
try {
|
|
124
|
-
return S(
|
|
124
|
+
return S(d(x));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,7 +129,7 @@ function mr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var F = Object.assign, $ = 0, ie, oe, le, ue, ce, de, fe;
|
|
133
133
|
function pe() {
|
|
134
134
|
}
|
|
135
135
|
pe.__reactDisabledLog = !0;
|
|
@@ -165,30 +165,30 @@ function mr() {
|
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: F({}, e, {
|
|
169
169
|
value: ie
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: F({}, e, {
|
|
172
172
|
value: oe
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: F({}, e, {
|
|
175
175
|
value: le
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: F({}, e, {
|
|
178
178
|
value: ue
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: F({}, e, {
|
|
181
181
|
value: ce
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
183
|
+
groupCollapsed: F({}, e, {
|
|
184
184
|
value: de
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
186
|
+
groupEnd: F({}, e, {
|
|
187
187
|
value: fe
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
$ < 0 &&
|
|
191
|
+
$ < 0 && w("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,9 +197,9 @@ function mr() {
|
|
|
197
197
|
if (z === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
z =
|
|
200
|
+
} catch (v) {
|
|
201
|
+
var i = v.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
z = i && i[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
205
|
` + z + e;
|
|
@@ -218,55 +218,55 @@ function mr() {
|
|
|
218
218
|
if (t !== void 0)
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var i;
|
|
222
222
|
H = !0;
|
|
223
|
-
var
|
|
223
|
+
var v = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var x;
|
|
226
226
|
x = J.current, J.current = null, Ve();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var d = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(d.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(d, []);
|
|
239
239
|
} catch (O) {
|
|
240
|
-
|
|
240
|
+
i = O;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], d);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
d.call();
|
|
246
246
|
} catch (O) {
|
|
247
|
-
|
|
247
|
+
i = O;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(d.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (O) {
|
|
255
|
-
|
|
255
|
+
i = O;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
259
|
} catch (O) {
|
|
260
|
-
if (O &&
|
|
260
|
+
if (O && i && typeof O.stack == "string") {
|
|
261
261
|
for (var l = O.stack.split(`
|
|
262
|
-
`),
|
|
263
|
-
`), R = l.length - 1, E =
|
|
262
|
+
`), C = i.stack.split(`
|
|
263
|
+
`), R = l.length - 1, E = C.length - 1; R >= 1 && E >= 0 && l[R] !== C[E]; )
|
|
264
264
|
E--;
|
|
265
265
|
for (; R >= 1 && E >= 0; R--, E--)
|
|
266
|
-
if (l[R] !==
|
|
266
|
+
if (l[R] !== C[E]) {
|
|
267
267
|
if (R !== 1 || E !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (R--, E--, E < 0 || l[R] !==
|
|
269
|
+
if (R--, E--, E < 0 || l[R] !== C[E]) {
|
|
270
270
|
var N = `
|
|
271
271
|
` + l[R].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, N), N;
|
|
@@ -276,7 +276,7 @@ function mr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
H = !1, J.current = x, Ue(), Error.prepareStackTrace =
|
|
279
|
+
H = !1, J.current = x, Ue(), Error.prepareStackTrace = v;
|
|
280
280
|
}
|
|
281
281
|
var M = e ? e.displayName || e.name : "", Ce = M ? L(M) : "";
|
|
282
282
|
return typeof e == "function" && V.set(e, Ce), Ce;
|
|
@@ -298,19 +298,19 @@ function mr() {
|
|
|
298
298
|
switch (e) {
|
|
299
299
|
case _:
|
|
300
300
|
return L("Suspense");
|
|
301
|
-
case
|
|
301
|
+
case h:
|
|
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 Ge(e.render);
|
|
308
|
-
case
|
|
308
|
+
case y:
|
|
309
309
|
return U(e.type, r, t);
|
|
310
|
-
case
|
|
311
|
-
var
|
|
310
|
+
case j: {
|
|
311
|
+
var i = e, v = i._payload, x = i._init;
|
|
312
312
|
try {
|
|
313
|
-
return U(x(
|
|
313
|
+
return U(x(v), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -325,22 +325,22 @@ function mr() {
|
|
|
325
325
|
} else
|
|
326
326
|
be.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function ze(e, r, t,
|
|
328
|
+
function ze(e, r, t, i, v) {
|
|
329
329
|
{
|
|
330
330
|
var x = Function.call.bind(B);
|
|
331
|
-
for (var
|
|
332
|
-
if (x(e,
|
|
331
|
+
for (var d in e)
|
|
332
|
+
if (x(e, d)) {
|
|
333
333
|
var l = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
335
|
+
if (typeof e[d] != "function") {
|
|
336
|
+
var C = Error((i || "React class") + ": " + t + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw C.name = "Invariant Violation", C;
|
|
338
338
|
}
|
|
339
|
-
l = e[
|
|
339
|
+
l = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (R) {
|
|
341
341
|
l = R;
|
|
342
342
|
}
|
|
343
|
-
l && !(l instanceof Error) && (G(
|
|
343
|
+
l && !(l instanceof Error) && (G(v), w("%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).", i || "React class", t, d, typeof l), G(null)), l instanceof Error && !(l.message in me) && (me[l.message] = !0, G(v), w("Failed %s type: %s", t, l.message), G(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,7 +366,7 @@ function mr() {
|
|
|
366
366
|
}
|
|
367
367
|
function xe(e) {
|
|
368
368
|
if (Xe(e))
|
|
369
|
-
return
|
|
369
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), he(e);
|
|
370
370
|
}
|
|
371
371
|
var q = D.ReactCurrentOwner, Ze = {
|
|
372
372
|
key: !0,
|
|
@@ -394,13 +394,13 @@ function mr() {
|
|
|
394
394
|
function rr(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
|
|
396
396
|
var t = S(q.current.type);
|
|
397
|
-
X[t] || (
|
|
397
|
+
X[t] || (w('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', S(q.current.type), e.ref), X[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function tr(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
ge || (ge = !0,
|
|
403
|
+
ge || (ge = !0, w("%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 mr() {
|
|
|
411
411
|
function ar(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
ye || (ye = !0,
|
|
414
|
+
ye || (ye = !0, w("%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,15 +419,15 @@ function mr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var nr = function(e, r, t,
|
|
422
|
+
var nr = function(e, r, t, i, v, x, d) {
|
|
423
423
|
var l = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: b,
|
|
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: d,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: x
|
|
433
433
|
};
|
|
@@ -440,30 +440,30 @@ function mr() {
|
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
443
|
+
value: i
|
|
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 sr(e, r, t,
|
|
451
|
+
function sr(e, r, t, i, v) {
|
|
452
452
|
{
|
|
453
|
-
var x,
|
|
454
|
-
t !== void 0 && (xe(t), l = "" + t), er(r) && (xe(r.key), l = "" + r.key), Qe(r) && (
|
|
453
|
+
var x, d = {}, l = null, C = null;
|
|
454
|
+
t !== void 0 && (xe(t), l = "" + t), er(r) && (xe(r.key), l = "" + r.key), Qe(r) && (C = r.ref, rr(r, v));
|
|
455
455
|
for (x in r)
|
|
456
|
-
B.call(r, x) && !Ze.hasOwnProperty(x) && (
|
|
456
|
+
B.call(r, x) && !Ze.hasOwnProperty(x) && (d[x] = r[x]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var R = e.defaultProps;
|
|
459
459
|
for (x in R)
|
|
460
|
-
|
|
460
|
+
d[x] === void 0 && (d[x] = R[x]);
|
|
461
461
|
}
|
|
462
|
-
if (l ||
|
|
462
|
+
if (l || C) {
|
|
463
463
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
l && tr(
|
|
464
|
+
l && tr(d, E), C && ar(d, E);
|
|
465
465
|
}
|
|
466
|
-
return nr(e, l,
|
|
466
|
+
return nr(e, l, C, v, i, q.current, d);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var Z = D.ReactCurrentOwner, Re = D.ReactDebugCurrentFrame;
|
|
@@ -477,7 +477,7 @@ function mr() {
|
|
|
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 === b;
|
|
481
481
|
}
|
|
482
482
|
function Ee() {
|
|
483
483
|
{
|
|
@@ -524,8 +524,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
if (_e[t])
|
|
525
525
|
return;
|
|
526
526
|
_e[t] = !0;
|
|
527
|
-
var
|
|
528
|
-
e && e._owner && e._owner !== Z.current && (
|
|
527
|
+
var i = "";
|
|
528
|
+
e && e._owner && e._owner !== Z.current && (i = " It was passed a child from " + S(e._owner.type) + "."), A(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), A(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function je(e, r) {
|
|
@@ -534,16 +534,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
534
534
|
return;
|
|
535
535
|
if (K(e))
|
|
536
536
|
for (var t = 0; t < e.length; t++) {
|
|
537
|
-
var
|
|
538
|
-
ee(
|
|
537
|
+
var i = e[t];
|
|
538
|
+
ee(i) && Te(i, 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 x =
|
|
546
|
-
ee(
|
|
543
|
+
var v = Fe(e);
|
|
544
|
+
if (typeof v == "function" && v !== e.entries)
|
|
545
|
+
for (var x = v.call(e), d; !(d = x.next()).done; )
|
|
546
|
+
ee(d.value) && Te(d.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -557,61 +557,61 @@ 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 === y))
|
|
561
561
|
t = r.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (t) {
|
|
565
|
-
var
|
|
566
|
-
ze(t, e.props, "prop",
|
|
565
|
+
var i = S(r);
|
|
566
|
+
ze(t, e.props, "prop", i, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !Q) {
|
|
568
568
|
Q = !0;
|
|
569
|
-
var
|
|
570
|
-
|
|
569
|
+
var v = S(r);
|
|
570
|
+
w("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 && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function ur(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 i = r[t];
|
|
579
|
+
if (i !== "children" && i !== "key") {
|
|
580
|
+
A(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), A(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (A(e),
|
|
584
|
+
e.ref !== null && (A(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function we(e, r, t,
|
|
587
|
+
function we(e, r, t, i, v, x) {
|
|
588
588
|
{
|
|
589
|
-
var
|
|
590
|
-
if (!
|
|
589
|
+
var d = Ye(e);
|
|
590
|
+
if (!d) {
|
|
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 C = ir(v);
|
|
594
|
+
C ? l += C : l += Ee();
|
|
595
595
|
var R;
|
|
596
|
-
e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof ===
|
|
596
|
+
e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof === b ? (R = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, l);
|
|
597
597
|
}
|
|
598
|
-
var E = sr(e, r, t,
|
|
598
|
+
var E = sr(e, r, t, v, x);
|
|
599
599
|
if (E == null)
|
|
600
600
|
return E;
|
|
601
|
-
if (
|
|
601
|
+
if (d) {
|
|
602
602
|
var N = r.children;
|
|
603
603
|
if (N !== void 0)
|
|
604
|
-
if (
|
|
604
|
+
if (i)
|
|
605
605
|
if (K(N)) {
|
|
606
606
|
for (var M = 0; M < N.length; M++)
|
|
607
607
|
je(N[M], e);
|
|
608
608
|
Object.freeze && Object.freeze(N);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
w("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(N, e);
|
|
613
613
|
}
|
|
614
|
-
return e ===
|
|
614
|
+
return e === u ? ur(E) : lr(E), E;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function cr(e, r, t) {
|
|
@@ -621,21 +621,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
621
621
|
return we(e, r, t, !1);
|
|
622
622
|
}
|
|
623
623
|
var fr = dr, pr = cr;
|
|
624
|
-
Y.Fragment =
|
|
624
|
+
Y.Fragment = u, Y.jsx = fr, Y.jsxs = pr;
|
|
625
625
|
}()), Y;
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? re.exports = vr() : re.exports = mr();
|
|
628
628
|
var s = re.exports;
|
|
629
|
-
const
|
|
629
|
+
const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
|
|
630
630
|
helperTextId: "",
|
|
631
631
|
errorMessageId: "",
|
|
632
632
|
isInvalid: !1,
|
|
633
633
|
isRequired: !1
|
|
634
|
-
}),
|
|
635
|
-
(
|
|
636
|
-
const { className: m, children:
|
|
637
|
-
a.isRequired && (
|
|
638
|
-
const
|
|
634
|
+
}), Pe = g.forwardRef(
|
|
635
|
+
(f, b) => {
|
|
636
|
+
const { className: m, children: u, ...n } = f, a = g.useContext(k);
|
|
637
|
+
a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
|
|
638
|
+
const p = `
|
|
639
639
|
inline-block
|
|
640
640
|
text-base
|
|
641
641
|
cursor-pointer
|
|
@@ -662,7 +662,7 @@ const P = (...p) => p.filter(Boolean).join(" "), F = y.createContext({
|
|
|
662
662
|
peer-focus-visible:ring-offset-2
|
|
663
663
|
peer-focus-visible:ring-wood-500
|
|
664
664
|
`;
|
|
665
|
-
return /* @__PURE__ */ s.jsx("label", { htmlFor:
|
|
665
|
+
return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: I(p, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
666
666
|
/* @__PURE__ */ s.jsx(
|
|
667
667
|
"input",
|
|
668
668
|
{
|
|
@@ -671,21 +671,21 @@ const P = (...p) => p.filter(Boolean).join(" "), F = y.createContext({
|
|
|
671
671
|
"aria-describedby": a.helperTextId,
|
|
672
672
|
"aria-errormessage": a.errorMessageId,
|
|
673
673
|
"aria-invalid": a.isInvalid ?? !1,
|
|
674
|
-
...
|
|
675
|
-
ref:
|
|
674
|
+
...n,
|
|
675
|
+
ref: b
|
|
676
676
|
}
|
|
677
677
|
),
|
|
678
678
|
/* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ s.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" }) }) }),
|
|
679
|
-
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children:
|
|
679
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
|
|
680
680
|
] }) });
|
|
681
681
|
}
|
|
682
682
|
);
|
|
683
|
-
|
|
684
|
-
const Se =
|
|
685
|
-
(
|
|
686
|
-
const { className: m, children:
|
|
687
|
-
a.isRequired && (
|
|
688
|
-
const
|
|
683
|
+
Pe.displayName = "Checkbox";
|
|
684
|
+
const Se = g.forwardRef(
|
|
685
|
+
(f, b) => {
|
|
686
|
+
const { className: m, children: u, ...n } = f, a = g.useContext(k);
|
|
687
|
+
a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
|
|
688
|
+
const p = `
|
|
689
689
|
inline-block
|
|
690
690
|
text-base
|
|
691
691
|
cursor-pointer
|
|
@@ -711,7 +711,7 @@ const Se = y.forwardRef(
|
|
|
711
711
|
peer-focus-visible:ring-offset-2
|
|
712
712
|
peer-focus-visible:ring-wood-500
|
|
713
713
|
`;
|
|
714
|
-
return /* @__PURE__ */ s.jsx("label", { htmlFor:
|
|
714
|
+
return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: I(p, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
715
715
|
/* @__PURE__ */ s.jsx(
|
|
716
716
|
"input",
|
|
717
717
|
{
|
|
@@ -720,21 +720,21 @@ const Se = y.forwardRef(
|
|
|
720
720
|
"aria-describedby": a.helperTextId,
|
|
721
721
|
"aria-errormessage": a.errorMessageId,
|
|
722
722
|
"aria-invalid": a.isInvalid ?? !1,
|
|
723
|
-
...
|
|
724
|
-
ref:
|
|
723
|
+
...n,
|
|
724
|
+
ref: b
|
|
725
725
|
}
|
|
726
726
|
),
|
|
727
727
|
/* @__PURE__ */ s.jsx("span", { className: o }),
|
|
728
|
-
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children:
|
|
728
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
|
|
729
729
|
] }) });
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
Se.displayName = "Radio";
|
|
733
|
-
const br =
|
|
734
|
-
(
|
|
735
|
-
const { className: m, children:
|
|
736
|
-
a.isRequired && (
|
|
737
|
-
const
|
|
733
|
+
const br = g.forwardRef(
|
|
734
|
+
(f, b) => {
|
|
735
|
+
const { className: m, children: u, ...n } = f, a = g.useContext(k);
|
|
736
|
+
a.isRequired && (n.required = !0);
|
|
737
|
+
const p = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
|
|
738
738
|
peer
|
|
739
739
|
cursor-pointer
|
|
740
740
|
appearance-none
|
|
@@ -763,24 +763,84 @@ const br = y.forwardRef(
|
|
|
763
763
|
/* @__PURE__ */ s.jsx(
|
|
764
764
|
"select",
|
|
765
765
|
{
|
|
766
|
-
id:
|
|
767
|
-
className:
|
|
766
|
+
id: n.id ?? a.id,
|
|
767
|
+
className: I(c, p, f.className),
|
|
768
768
|
"aria-describedby": a.helperTextId,
|
|
769
769
|
"aria-errormessage": a.errorMessageId,
|
|
770
770
|
"aria-invalid": a.isInvalid ?? !1,
|
|
771
|
-
...
|
|
772
|
-
ref:
|
|
773
|
-
children:
|
|
771
|
+
...n,
|
|
772
|
+
ref: b,
|
|
773
|
+
children: u
|
|
774
774
|
}
|
|
775
775
|
),
|
|
776
776
|
/* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ s.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" }) }) })
|
|
777
777
|
] });
|
|
778
778
|
}
|
|
779
|
-
), hr =
|
|
780
|
-
(
|
|
781
|
-
const { className: m, ...
|
|
782
|
-
|
|
783
|
-
const a =
|
|
779
|
+
), hr = g.forwardRef(
|
|
780
|
+
(f, b) => {
|
|
781
|
+
const { className: m, ...u } = f, n = g.useContext(k);
|
|
782
|
+
n.isRequired && (u.required = !0);
|
|
783
|
+
const a = n.isInvalid ? "text-sun-800" : "text-sumi-900", p = `
|
|
784
|
+
file:inline-block
|
|
785
|
+
file:text-button
|
|
786
|
+
file:text-center
|
|
787
|
+
file:cursor-pointer
|
|
788
|
+
file:whitespace-nowrap
|
|
789
|
+
file:border
|
|
790
|
+
file:border-solid
|
|
791
|
+
file:border-sea-800
|
|
792
|
+
file:active:border-sea-1200
|
|
793
|
+
file:hover:border-sea-900
|
|
794
|
+
file:disabled:border-sumi-500
|
|
795
|
+
file:disabled:cursor-not-allowed
|
|
796
|
+
`, c = `
|
|
797
|
+
file:text-sea-800
|
|
798
|
+
file:bg-transparent
|
|
799
|
+
file:active:bg-sea-200
|
|
800
|
+
file:hover:bg-sea-100
|
|
801
|
+
file:active:text-sea-1200
|
|
802
|
+
file:hover:text-sea-900
|
|
803
|
+
file:disabled:text-sumi-500
|
|
804
|
+
file:disabled:bg-transparent
|
|
805
|
+
`, o = `
|
|
806
|
+
file:p-4
|
|
807
|
+
file:text-button
|
|
808
|
+
file:rounded-lg
|
|
809
|
+
`, _ = `
|
|
810
|
+
rounded-lg
|
|
811
|
+
outline-offset-2
|
|
812
|
+
focus:outline
|
|
813
|
+
focus:outline-2
|
|
814
|
+
focus:outline-wood-600
|
|
815
|
+
`;
|
|
816
|
+
return /* @__PURE__ */ s.jsx(
|
|
817
|
+
"input",
|
|
818
|
+
{
|
|
819
|
+
type: "file",
|
|
820
|
+
id: u.id ?? n.id,
|
|
821
|
+
className: I(
|
|
822
|
+
p,
|
|
823
|
+
c,
|
|
824
|
+
o,
|
|
825
|
+
_,
|
|
826
|
+
a,
|
|
827
|
+
m
|
|
828
|
+
),
|
|
829
|
+
"aria-describedby": n.helperTextId,
|
|
830
|
+
"aria-errormessage": n.errorMessageId,
|
|
831
|
+
"aria-invalid": n.isInvalid ?? !1,
|
|
832
|
+
ref: b,
|
|
833
|
+
...u
|
|
834
|
+
}
|
|
835
|
+
);
|
|
836
|
+
}
|
|
837
|
+
);
|
|
838
|
+
hr.displayName = "FileInput";
|
|
839
|
+
const xr = g.forwardRef(
|
|
840
|
+
(f, b) => {
|
|
841
|
+
const { className: m, ...u } = f, n = g.useContext(k);
|
|
842
|
+
n.isRequired && (u.required = !0);
|
|
843
|
+
const a = n.isInvalid ? "border-sun-800" : "border-sumi-900", p = `
|
|
784
844
|
p-4
|
|
785
845
|
rounded-lg
|
|
786
846
|
border
|
|
@@ -797,25 +857,25 @@ const br = y.forwardRef(
|
|
|
797
857
|
"input",
|
|
798
858
|
{
|
|
799
859
|
type: "text",
|
|
800
|
-
id:
|
|
801
|
-
className:
|
|
802
|
-
"aria-describedby":
|
|
803
|
-
"aria-errormessage":
|
|
804
|
-
"aria-invalid":
|
|
805
|
-
ref:
|
|
806
|
-
...
|
|
860
|
+
id: u.id ?? n.id,
|
|
861
|
+
className: I(p, a, m),
|
|
862
|
+
"aria-describedby": n.helperTextId,
|
|
863
|
+
"aria-errormessage": n.errorMessageId,
|
|
864
|
+
"aria-invalid": n.isInvalid ?? !1,
|
|
865
|
+
ref: b,
|
|
866
|
+
...u
|
|
807
867
|
}
|
|
808
868
|
);
|
|
809
869
|
}
|
|
810
870
|
);
|
|
811
|
-
|
|
812
|
-
const Oe =
|
|
813
|
-
(
|
|
814
|
-
const { className: m, children:
|
|
815
|
-
|
|
816
|
-
},
|
|
817
|
-
|
|
818
|
-
const
|
|
871
|
+
xr.displayName = "Input";
|
|
872
|
+
const Oe = g.forwardRef(
|
|
873
|
+
(f, b) => {
|
|
874
|
+
const { className: m, children: u, onChange: n, maxLength: a, ...p } = f, [c, o] = g.useState(0), _ = (P) => {
|
|
875
|
+
n && n(P), o(P.target.value.length);
|
|
876
|
+
}, h = g.useContext(k);
|
|
877
|
+
h.isRequired && (p.required = !0);
|
|
878
|
+
const y = h.isInvalid ? "border-sun-800" : "border-sumi-900", j = c > (a || 0) ? "text-sun-800" : "text-sumi-700", T = `
|
|
819
879
|
p-4
|
|
820
880
|
rounded-lg
|
|
821
881
|
border
|
|
@@ -832,19 +892,19 @@ const Oe = y.forwardRef(
|
|
|
832
892
|
/* @__PURE__ */ s.jsx(
|
|
833
893
|
"textarea",
|
|
834
894
|
{
|
|
835
|
-
id:
|
|
836
|
-
className:
|
|
837
|
-
"aria-describedby":
|
|
838
|
-
"aria-errormessage":
|
|
839
|
-
"aria-invalid":
|
|
895
|
+
id: p.id ?? h.id,
|
|
896
|
+
className: I(T, y, m),
|
|
897
|
+
"aria-describedby": h.helperTextId,
|
|
898
|
+
"aria-errormessage": h.errorMessageId,
|
|
899
|
+
"aria-invalid": h.isInvalid ?? !1,
|
|
840
900
|
onChange: _,
|
|
841
|
-
...
|
|
842
|
-
ref:
|
|
843
|
-
children:
|
|
901
|
+
...p,
|
|
902
|
+
ref: b,
|
|
903
|
+
children: u
|
|
844
904
|
}
|
|
845
905
|
),
|
|
846
906
|
a ? /* @__PURE__ */ s.jsxs("p", { className: "text-sup text-sumi-700", children: [
|
|
847
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
907
|
+
/* @__PURE__ */ s.jsx("span", { className: j, children: c }),
|
|
848
908
|
"/",
|
|
849
909
|
/* @__PURE__ */ s.jsx("span", { children: a })
|
|
850
910
|
] }) : ""
|
|
@@ -852,223 +912,225 @@ const Oe = y.forwardRef(
|
|
|
852
912
|
}
|
|
853
913
|
);
|
|
854
914
|
Oe.displayName = "Textarea";
|
|
855
|
-
const te =
|
|
856
|
-
const m =
|
|
857
|
-
labelText:
|
|
858
|
-
className:
|
|
915
|
+
const te = g.forwardRef((f, b) => {
|
|
916
|
+
const m = g.useId(), {
|
|
917
|
+
labelText: u,
|
|
918
|
+
className: n,
|
|
859
919
|
helperText: a,
|
|
860
|
-
errorMessage:
|
|
920
|
+
errorMessage: p,
|
|
861
921
|
isInvalid: c,
|
|
862
922
|
isRequired: o,
|
|
863
923
|
children: _,
|
|
864
|
-
...
|
|
865
|
-
} =
|
|
866
|
-
id:
|
|
924
|
+
...h
|
|
925
|
+
} = f, y = {
|
|
926
|
+
id: f.htmlFor ?? `input-${m}`,
|
|
867
927
|
helperTextId: `helper-text-${m}`,
|
|
868
928
|
errorMessageId: `error-message-${m}`,
|
|
869
929
|
isInvalid: c ?? !1,
|
|
870
930
|
isRequired: o ?? !1
|
|
871
|
-
}
|
|
872
|
-
|
|
931
|
+
}, j = `
|
|
932
|
+
text-sup text-sumi-700
|
|
933
|
+
`, T = `
|
|
934
|
+
text-sup text-sun-800
|
|
935
|
+
`;
|
|
936
|
+
return /* @__PURE__ */ s.jsx(k.Provider, { value: y, children: /* @__PURE__ */ s.jsxs("div", { className: I("mb-4", n), children: [
|
|
873
937
|
/* @__PURE__ */ s.jsxs(
|
|
874
938
|
"label",
|
|
875
939
|
{
|
|
876
|
-
className:
|
|
877
|
-
htmlFor:
|
|
878
|
-
ref:
|
|
879
|
-
...
|
|
940
|
+
className: I("block mb-2 text-label", c && "text-sun-800"),
|
|
941
|
+
htmlFor: y.id,
|
|
942
|
+
ref: b,
|
|
943
|
+
...h,
|
|
880
944
|
children: [
|
|
881
|
-
|
|
882
|
-
o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
945
|
+
u,
|
|
946
|
+
o && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
|
|
883
947
|
]
|
|
884
948
|
}
|
|
885
949
|
),
|
|
886
|
-
a && /* @__PURE__ */ s.jsx("p", { id:
|
|
950
|
+
a && /* @__PURE__ */ s.jsx("p", { id: y.helperTextId, className: I(j, "mb-2"), children: a }),
|
|
887
951
|
_,
|
|
888
952
|
c && /* @__PURE__ */ s.jsx(
|
|
889
953
|
"p",
|
|
890
954
|
{
|
|
891
|
-
id:
|
|
892
|
-
className:
|
|
893
|
-
|
|
894
|
-
a ? "mt-1" : "mt-2"
|
|
895
|
-
),
|
|
896
|
-
children: v
|
|
955
|
+
id: y.errorMessageId,
|
|
956
|
+
className: I(T, a ? "mt-1" : "mt-2"),
|
|
957
|
+
children: p
|
|
897
958
|
}
|
|
898
959
|
)
|
|
899
960
|
] }) });
|
|
900
961
|
});
|
|
901
962
|
te.displayName = "LabelControl";
|
|
902
|
-
const ae =
|
|
903
|
-
const m =
|
|
904
|
-
labelText:
|
|
905
|
-
className:
|
|
963
|
+
const ae = g.forwardRef((f, b) => {
|
|
964
|
+
const m = g.useId(), {
|
|
965
|
+
labelText: u,
|
|
966
|
+
className: n,
|
|
906
967
|
helperText: a,
|
|
907
|
-
errorMessage:
|
|
968
|
+
errorMessage: p,
|
|
908
969
|
isInvalid: c,
|
|
909
970
|
isRequired: o,
|
|
910
971
|
direction: _,
|
|
911
|
-
children:
|
|
912
|
-
...
|
|
913
|
-
} =
|
|
914
|
-
groupName:
|
|
972
|
+
children: h,
|
|
973
|
+
...y
|
|
974
|
+
} = f, T = {
|
|
975
|
+
groupName: y.name ?? `group-${m}`,
|
|
915
976
|
helperTextId: `helper-text-${m}`,
|
|
916
977
|
errorMessageId: `error-message-${m}`,
|
|
917
978
|
isInvalid: c ?? !1,
|
|
918
979
|
isRequired: o ?? !1
|
|
919
|
-
},
|
|
920
|
-
return /* @__PURE__ */ s.jsx(
|
|
980
|
+
}, P = _ ?? "flex-col";
|
|
981
|
+
return /* @__PURE__ */ s.jsx(k.Provider, { value: T, children: /* @__PURE__ */ s.jsxs("fieldset", { className: I("mb-4", n), ref: b, ...y, children: [
|
|
921
982
|
/* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
|
|
922
983
|
"p",
|
|
923
984
|
{
|
|
924
|
-
className:
|
|
985
|
+
className: I("block mb-2 text-label", c && "text-sun-800"),
|
|
925
986
|
children: [
|
|
926
|
-
|
|
987
|
+
u,
|
|
927
988
|
o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
928
989
|
]
|
|
929
990
|
}
|
|
930
991
|
) }),
|
|
931
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
992
|
+
/* @__PURE__ */ s.jsx("div", { className: I("inline-flex", P), children: h }),
|
|
932
993
|
a && /* @__PURE__ */ s.jsx("p", { id: T.helperTextId, className: "text-sup text-sumi-700 mt-2", children: a }),
|
|
933
994
|
c && /* @__PURE__ */ s.jsx(
|
|
934
995
|
"p",
|
|
935
996
|
{
|
|
936
997
|
id: T.errorMessageId,
|
|
937
|
-
className:
|
|
998
|
+
className: I(
|
|
938
999
|
"text-sup text-sun-800",
|
|
939
1000
|
a ? "mt-1" : "mt-2"
|
|
940
1001
|
),
|
|
941
|
-
children:
|
|
1002
|
+
children: p
|
|
942
1003
|
}
|
|
943
1004
|
)
|
|
944
1005
|
] }) });
|
|
945
1006
|
});
|
|
946
1007
|
ae.displayName = "FieldsetControl";
|
|
947
|
-
const
|
|
1008
|
+
const gr = g.forwardRef((f, b) => {
|
|
948
1009
|
const {
|
|
949
1010
|
items: m,
|
|
950
|
-
onChange:
|
|
951
|
-
className:
|
|
1011
|
+
onChange: u,
|
|
1012
|
+
className: n,
|
|
952
1013
|
labelText: a,
|
|
953
|
-
helperText:
|
|
1014
|
+
helperText: p,
|
|
954
1015
|
errorMessage: c,
|
|
955
1016
|
isInvalid: o,
|
|
956
1017
|
isRequired: _,
|
|
957
|
-
...
|
|
958
|
-
} =
|
|
1018
|
+
...h
|
|
1019
|
+
} = f;
|
|
959
1020
|
return /* @__PURE__ */ s.jsx(
|
|
960
1021
|
ae,
|
|
961
1022
|
{
|
|
962
|
-
className:
|
|
1023
|
+
className: n,
|
|
963
1024
|
labelText: a,
|
|
964
|
-
helperText:
|
|
1025
|
+
helperText: p,
|
|
965
1026
|
errorMessage: c,
|
|
966
1027
|
isInvalid: o,
|
|
967
1028
|
isRequired: _,
|
|
968
|
-
ref:
|
|
969
|
-
...
|
|
970
|
-
children: m.map(({ label:
|
|
1029
|
+
ref: b,
|
|
1030
|
+
...h,
|
|
1031
|
+
children: m.map(({ label: y, value: j }, T) => /* @__PURE__ */ s.jsx(Pe, { value: j, onChange: u, children: y }, T))
|
|
971
1032
|
}
|
|
972
1033
|
);
|
|
973
1034
|
});
|
|
974
|
-
|
|
975
|
-
const
|
|
1035
|
+
gr.displayName = "CheckboxGroup";
|
|
1036
|
+
const yr = g.forwardRef((f, b) => {
|
|
976
1037
|
const {
|
|
977
1038
|
items: m,
|
|
978
|
-
onChange:
|
|
979
|
-
className:
|
|
1039
|
+
onChange: u,
|
|
1040
|
+
className: n,
|
|
980
1041
|
labelText: a,
|
|
981
|
-
helperText:
|
|
1042
|
+
helperText: p,
|
|
982
1043
|
errorMessage: c,
|
|
983
1044
|
isInvalid: o,
|
|
984
1045
|
isRequired: _,
|
|
985
|
-
defaultValue:
|
|
986
|
-
...
|
|
987
|
-
} =
|
|
1046
|
+
defaultValue: h,
|
|
1047
|
+
...y
|
|
1048
|
+
} = f;
|
|
988
1049
|
return /* @__PURE__ */ s.jsx(
|
|
989
1050
|
ae,
|
|
990
1051
|
{
|
|
991
|
-
className:
|
|
1052
|
+
className: n,
|
|
992
1053
|
labelText: a,
|
|
993
|
-
helperText:
|
|
1054
|
+
helperText: p,
|
|
994
1055
|
errorMessage: c,
|
|
995
1056
|
isInvalid: o,
|
|
996
1057
|
isRequired: _,
|
|
997
|
-
ref:
|
|
998
|
-
...
|
|
999
|
-
children: m.map(({ label:
|
|
1058
|
+
ref: b,
|
|
1059
|
+
...y,
|
|
1060
|
+
children: m.map(({ label: j, value: T }, P) => /* @__PURE__ */ s.jsx(
|
|
1000
1061
|
Se,
|
|
1001
1062
|
{
|
|
1002
1063
|
value: T,
|
|
1003
|
-
onChange:
|
|
1004
|
-
defaultChecked:
|
|
1005
|
-
children:
|
|
1064
|
+
onChange: u,
|
|
1065
|
+
defaultChecked: h === T,
|
|
1066
|
+
children: j
|
|
1006
1067
|
},
|
|
1007
|
-
|
|
1068
|
+
P
|
|
1008
1069
|
))
|
|
1009
1070
|
}
|
|
1010
1071
|
);
|
|
1011
1072
|
});
|
|
1012
|
-
|
|
1013
|
-
const
|
|
1073
|
+
yr.displayName = "RadioGroup";
|
|
1074
|
+
const Rr = g.forwardRef((f, b) => {
|
|
1014
1075
|
const {
|
|
1015
1076
|
className: m,
|
|
1016
|
-
labelText:
|
|
1017
|
-
helperText:
|
|
1077
|
+
labelText: u,
|
|
1078
|
+
helperText: n,
|
|
1018
1079
|
errorMessage: a,
|
|
1019
|
-
isInvalid:
|
|
1080
|
+
isInvalid: p,
|
|
1020
1081
|
isRequired: c,
|
|
1021
1082
|
...o
|
|
1022
|
-
} =
|
|
1083
|
+
} = f;
|
|
1023
1084
|
return /* @__PURE__ */ s.jsx(
|
|
1024
1085
|
te,
|
|
1025
1086
|
{
|
|
1026
1087
|
className: m,
|
|
1027
|
-
labelText:
|
|
1028
|
-
helperText:
|
|
1088
|
+
labelText: u,
|
|
1089
|
+
helperText: n,
|
|
1029
1090
|
errorMessage: a,
|
|
1030
|
-
isInvalid:
|
|
1091
|
+
isInvalid: p,
|
|
1031
1092
|
isRequired: c,
|
|
1032
|
-
children: /* @__PURE__ */ s.jsx(br, { ref:
|
|
1093
|
+
children: /* @__PURE__ */ s.jsx(br, { ref: b, ...o })
|
|
1033
1094
|
}
|
|
1034
1095
|
);
|
|
1035
1096
|
});
|
|
1036
|
-
|
|
1037
|
-
const
|
|
1097
|
+
Rr.displayName = "SelectControl";
|
|
1098
|
+
const Er = g.forwardRef((f, b) => {
|
|
1038
1099
|
const {
|
|
1039
1100
|
className: m,
|
|
1040
|
-
labelText:
|
|
1041
|
-
helperText:
|
|
1101
|
+
labelText: u,
|
|
1102
|
+
helperText: n,
|
|
1042
1103
|
errorMessage: a,
|
|
1043
|
-
isInvalid:
|
|
1104
|
+
isInvalid: p,
|
|
1044
1105
|
isRequired: c,
|
|
1045
1106
|
...o
|
|
1046
|
-
} =
|
|
1107
|
+
} = f;
|
|
1047
1108
|
return /* @__PURE__ */ s.jsx(
|
|
1048
1109
|
te,
|
|
1049
1110
|
{
|
|
1050
1111
|
className: m,
|
|
1051
|
-
labelText:
|
|
1052
|
-
helperText:
|
|
1112
|
+
labelText: u,
|
|
1113
|
+
helperText: n,
|
|
1053
1114
|
errorMessage: a,
|
|
1054
|
-
isInvalid:
|
|
1115
|
+
isInvalid: p,
|
|
1055
1116
|
isRequired: c,
|
|
1056
|
-
children: /* @__PURE__ */ s.jsx(Oe, { ref:
|
|
1117
|
+
children: /* @__PURE__ */ s.jsx(Oe, { ref: b, ...o })
|
|
1057
1118
|
}
|
|
1058
1119
|
);
|
|
1059
1120
|
});
|
|
1060
|
-
|
|
1121
|
+
Er.displayName = "TextareaControl";
|
|
1061
1122
|
export {
|
|
1062
|
-
|
|
1063
|
-
|
|
1123
|
+
Pe as Checkbox,
|
|
1124
|
+
gr as CheckboxGroup,
|
|
1064
1125
|
ae as FieldsetControl,
|
|
1065
|
-
hr as
|
|
1126
|
+
hr as FileInput,
|
|
1127
|
+
xr as Input,
|
|
1066
1128
|
te as LabelControl,
|
|
1067
1129
|
Se as Radio,
|
|
1068
|
-
|
|
1130
|
+
yr as RadioGroup,
|
|
1069
1131
|
br as Select,
|
|
1070
|
-
|
|
1132
|
+
Rr as SelectControl,
|
|
1071
1133
|
Oe as Textarea,
|
|
1072
|
-
|
|
1134
|
+
Er as TextareaControl
|
|
1073
1135
|
};
|
|
1074
1136
|
//# sourceMappingURL=index.es.js.map
|