@sakura-ui/forms 0.1.8 → 0.1.9
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/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/FileInput.d.ts.map +1 -1
- package/dist/components/FileInput.js +4 -2
- package/dist/components/FileInput.js.map +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +15 -14
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Radio.d.ts.map +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/Radio.js.map +1 -1
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js +27 -26
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +15 -14
- package/dist/components/Textarea.js.map +1 -1
- package/dist/index.cjs.js +71 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +268 -260
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -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 Ne;
|
|
13
13
|
function vr() {
|
|
14
|
-
if (
|
|
14
|
+
if (Ne)
|
|
15
15
|
return W;
|
|
16
|
-
|
|
17
|
-
var f = g,
|
|
18
|
-
function
|
|
19
|
-
var h, y = {}, j = null,
|
|
20
|
-
|
|
16
|
+
Ne = 1;
|
|
17
|
+
var f = g, m = Symbol.for("react.element"), v = 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 b(c, o, T) {
|
|
19
|
+
var h, y = {}, j = null, _ = null;
|
|
20
|
+
T !== void 0 && (j = "" + T), o.key !== void 0 && (j = "" + o.key), o.ref !== void 0 && (_ = o.ref);
|
|
21
21
|
for (h in o)
|
|
22
22
|
u.call(o, h) && !a.hasOwnProperty(h) && (y[h] = o[h]);
|
|
23
23
|
if (c && c.defaultProps)
|
|
24
24
|
for (h in o = c.defaultProps, o)
|
|
25
25
|
y[h] === void 0 && (y[h] = o[h]);
|
|
26
|
-
return { $$typeof:
|
|
26
|
+
return { $$typeof: m, type: c, key: j, ref: _, props: y, _owner: n.current };
|
|
27
27
|
}
|
|
28
|
-
return W.Fragment =
|
|
28
|
+
return W.Fragment = v, W.jsx = b, W.jsxs = b, W;
|
|
29
29
|
}
|
|
30
30
|
var Y = {};
|
|
31
31
|
/**
|
|
@@ -37,38 +37,38 @@ 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 Pe;
|
|
41
41
|
function mr() {
|
|
42
|
-
return
|
|
43
|
-
var f = g,
|
|
42
|
+
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var f = g, m = Symbol.for("react.element"), v = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), F = 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 = F && e[F] || e[ke];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var q = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function w(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
54
54
|
t[i - 1] = arguments[i];
|
|
55
|
-
|
|
55
|
+
qe("error", e, t);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function qe(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var i =
|
|
61
|
-
|
|
60
|
+
var i = q.ReactDebugCurrentFrame, p = i.getStackAddendum();
|
|
61
|
+
p !== "" && (r += "%s", t = t.concat([p]));
|
|
62
62
|
var x = t.map(function(d) {
|
|
63
63
|
return String(d);
|
|
64
64
|
});
|
|
65
65
|
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var De = !1, Ae = !1, Me = !1, $e = !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 === u || e === a || We || e === n || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === a || We || e === n || e === T || e === h || $e || e === _ || De || Ae || Me || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === b || 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.
|
|
@@ -78,13 +78,13 @@ function mr() {
|
|
|
78
78
|
var i = e.displayName;
|
|
79
79
|
if (i)
|
|
80
80
|
return i;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var p = r.displayName || r.name || "";
|
|
82
|
+
return p !== "" ? t + "(" + p + ")" : t;
|
|
83
83
|
}
|
|
84
84
|
function se(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function I(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
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")
|
|
@@ -94,13 +94,13 @@ function mr() {
|
|
|
94
94
|
switch (e) {
|
|
95
95
|
case u:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case v:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case a:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case n:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case T:
|
|
104
104
|
return "Suspense";
|
|
105
105
|
case h:
|
|
106
106
|
return "SuspenseList";
|
|
@@ -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 b:
|
|
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
118
|
case y:
|
|
119
119
|
var i = e.displayName || null;
|
|
120
|
-
return i !== null ? i :
|
|
120
|
+
return i !== null ? i : I(e.type) || "Memo";
|
|
121
121
|
case j: {
|
|
122
|
-
var
|
|
122
|
+
var p = e, x = p._payload, d = p._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return I(d(x));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,13 +129,13 @@ function mr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var k = Object.assign, M = 0, ie, oe, le, ue, ce, de, fe;
|
|
133
133
|
function pe() {
|
|
134
134
|
}
|
|
135
135
|
pe.__reactDisabledLog = !0;
|
|
136
136
|
function Ve() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
138
|
+
if (M === 0) {
|
|
139
139
|
ie = console.log, oe = console.info, le = console.warn, ue = console.error, ce = console.group, de = console.groupCollapsed, fe = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
@@ -153,52 +153,52 @@ function mr() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
M++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
function Ue() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (M--, M === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: k({}, e, {
|
|
169
169
|
value: ie
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: k({}, e, {
|
|
172
172
|
value: oe
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: k({}, e, {
|
|
175
175
|
value: le
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: k({}, e, {
|
|
178
178
|
value: ue
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: k({}, e, {
|
|
181
181
|
value: ce
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
183
|
+
groupCollapsed: k({}, e, {
|
|
184
184
|
value: de
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
186
|
+
groupEnd: k({}, e, {
|
|
187
187
|
value: fe
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
M < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var J =
|
|
194
|
+
var J = q.ReactCurrentDispatcher, z;
|
|
195
195
|
function L(e, r, t) {
|
|
196
196
|
{
|
|
197
197
|
if (z === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var i =
|
|
200
|
+
} catch (p) {
|
|
201
|
+
var i = p.stack.trim().match(/\n( *(at )?)/);
|
|
202
202
|
z = i && i[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
@@ -220,7 +220,7 @@ function mr() {
|
|
|
220
220
|
}
|
|
221
221
|
var i;
|
|
222
222
|
H = !0;
|
|
223
|
-
var
|
|
223
|
+
var p = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var x;
|
|
226
226
|
x = J.current, J.current = null, Ve();
|
|
@@ -236,29 +236,29 @@ function mr() {
|
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(d, []);
|
|
239
|
-
} catch (
|
|
240
|
-
i =
|
|
239
|
+
} catch (S) {
|
|
240
|
+
i = S;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(e, [], d);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
d.call();
|
|
246
|
-
} catch (
|
|
247
|
-
i =
|
|
246
|
+
} catch (S) {
|
|
247
|
+
i = S;
|
|
248
248
|
}
|
|
249
249
|
e.call(d.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
i =
|
|
254
|
+
} catch (S) {
|
|
255
|
+
i = S;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var l =
|
|
259
|
+
} catch (S) {
|
|
260
|
+
if (S && i && typeof S.stack == "string") {
|
|
261
|
+
for (var l = S.stack.split(`
|
|
262
262
|
`), C = i.stack.split(`
|
|
263
263
|
`), R = l.length - 1, E = C.length - 1; R >= 1 && E >= 0 && l[R] !== C[E]; )
|
|
264
264
|
E--;
|
|
@@ -267,18 +267,18 @@ function mr() {
|
|
|
267
267
|
if (R !== 1 || E !== 1)
|
|
268
268
|
do
|
|
269
269
|
if (R--, E--, E < 0 || l[R] !== C[E]) {
|
|
270
|
-
var
|
|
270
|
+
var P = `
|
|
271
271
|
` + l[R].replace(" at new ", " at ");
|
|
272
|
-
return e.displayName &&
|
|
272
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, P), P;
|
|
273
273
|
}
|
|
274
274
|
while (R >= 1 && E >= 0);
|
|
275
275
|
break;
|
|
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 = p;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var A = e ? e.displayName || e.name : "", Ce = A ? L(A) : "";
|
|
282
282
|
return typeof e == "function" && V.set(e, Ce), Ce;
|
|
283
283
|
}
|
|
284
284
|
function Ge(e, r, t) {
|
|
@@ -296,7 +296,7 @@ function mr() {
|
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return L(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
299
|
+
case T:
|
|
300
300
|
return L("Suspense");
|
|
301
301
|
case h:
|
|
302
302
|
return L("SuspenseList");
|
|
@@ -308,16 +308,16 @@ function mr() {
|
|
|
308
308
|
case y:
|
|
309
309
|
return U(e.type, r, t);
|
|
310
310
|
case j: {
|
|
311
|
-
var i = e,
|
|
311
|
+
var i = e, p = i._payload, x = i._init;
|
|
312
312
|
try {
|
|
313
|
-
return U(x(
|
|
313
|
+
return U(x(p), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var B = Object.prototype.hasOwnProperty, me = {}, be =
|
|
320
|
+
var B = Object.prototype.hasOwnProperty, me = {}, be = q.ReactDebugCurrentFrame;
|
|
321
321
|
function G(e) {
|
|
322
322
|
if (e) {
|
|
323
323
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
@@ -325,7 +325,7 @@ function mr() {
|
|
|
325
325
|
} else
|
|
326
326
|
be.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function ze(e, r, t, i,
|
|
328
|
+
function ze(e, r, t, i, p) {
|
|
329
329
|
{
|
|
330
330
|
var x = Function.call.bind(B);
|
|
331
331
|
for (var d in e)
|
|
@@ -340,7 +340,7 @@ function mr() {
|
|
|
340
340
|
} catch (R) {
|
|
341
341
|
l = R;
|
|
342
342
|
}
|
|
343
|
-
l && !(l instanceof Error) && (G(
|
|
343
|
+
l && !(l instanceof Error) && (G(p), 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(p), w("Failed %s type: %s", t, l.message), G(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -368,7 +368,7 @@ function mr() {
|
|
|
368
368
|
if (Xe(e))
|
|
369
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
|
-
var
|
|
371
|
+
var $ = q.ReactCurrentOwner, Ze = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -392,9 +392,9 @@ function mr() {
|
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function rr(e, r) {
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var 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',
|
|
395
|
+
if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
|
|
396
|
+
var t = I($.current.type);
|
|
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', I($.current.type), e.ref), X[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function tr(e, r) {
|
|
@@ -419,10 +419,10 @@ function mr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var nr = function(e, r, t, i,
|
|
422
|
+
var nr = function(e, r, t, i, p, x, d) {
|
|
423
423
|
var l = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: m,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
@@ -445,13 +445,13 @@ function mr() {
|
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: p
|
|
449
449
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
450
450
|
};
|
|
451
|
-
function sr(e, r, t, i,
|
|
451
|
+
function sr(e, r, t, i, p) {
|
|
452
452
|
{
|
|
453
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,
|
|
454
|
+
t !== void 0 && (xe(t), l = "" + t), er(r) && (xe(r.key), l = "" + r.key), Qe(r) && (C = r.ref, rr(r, p));
|
|
455
455
|
for (x in r)
|
|
456
456
|
B.call(r, x) && !Ze.hasOwnProperty(x) && (d[x] = r[x]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
@@ -463,11 +463,11 @@ function mr() {
|
|
|
463
463
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
464
|
l && tr(d, E), C && ar(d, E);
|
|
465
465
|
}
|
|
466
|
-
return nr(e, l, C,
|
|
466
|
+
return nr(e, l, C, p, i, $.current, d);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var Z =
|
|
470
|
-
function
|
|
469
|
+
var Z = q.ReactCurrentOwner, Re = q.ReactDebugCurrentFrame;
|
|
470
|
+
function D(e) {
|
|
471
471
|
if (e) {
|
|
472
472
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
473
473
|
Re.setExtraStackFrame(t);
|
|
@@ -477,12 +477,12 @@ 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 === m;
|
|
481
481
|
}
|
|
482
482
|
function Ee() {
|
|
483
483
|
{
|
|
484
484
|
if (Z.current) {
|
|
485
|
-
var e =
|
|
485
|
+
var e = I(Z.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -525,7 +525,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
525
525
|
return;
|
|
526
526
|
_e[t] = !0;
|
|
527
527
|
var i = "";
|
|
528
|
-
e && e._owner && e._owner !== Z.current && (i = " It was passed a child from " +
|
|
528
|
+
e && e._owner && e._owner !== Z.current && (i = " It was passed a child from " + I(e._owner.type) + "."), D(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), D(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function je(e, r) {
|
|
@@ -540,9 +540,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
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 =
|
|
543
|
+
var p = Fe(e);
|
|
544
|
+
if (typeof p == "function" && p !== e.entries)
|
|
545
|
+
for (var x = p.call(e), d; !(d = x.next()).done; )
|
|
546
546
|
ee(d.value) && Te(d.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
@@ -562,12 +562,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (t) {
|
|
565
|
-
var i =
|
|
565
|
+
var i = I(r);
|
|
566
566
|
ze(t, e.props, "prop", i, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !Q) {
|
|
568
568
|
Q = !0;
|
|
569
|
-
var
|
|
570
|
-
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
569
|
+
var p = I(r);
|
|
570
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
571
571
|
}
|
|
572
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
|
}
|
|
@@ -577,39 +577,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
578
|
var i = r[t];
|
|
579
579
|
if (i !== "children" && i !== "key") {
|
|
580
|
-
|
|
580
|
+
D(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), D(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (
|
|
584
|
+
e.ref !== null && (D(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function we(e, r, t, i,
|
|
587
|
+
function we(e, r, t, i, p, x) {
|
|
588
588
|
{
|
|
589
589
|
var d = Ye(e);
|
|
590
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 C = ir(
|
|
593
|
+
var C = ir(p);
|
|
594
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 === m ? (R = "<" + (I(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, p, x);
|
|
599
599
|
if (E == null)
|
|
600
600
|
return E;
|
|
601
601
|
if (d) {
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
602
|
+
var P = r.children;
|
|
603
|
+
if (P !== void 0)
|
|
604
604
|
if (i)
|
|
605
|
-
if (K(
|
|
606
|
-
for (var
|
|
607
|
-
je(
|
|
608
|
-
Object.freeze && Object.freeze(
|
|
605
|
+
if (K(P)) {
|
|
606
|
+
for (var A = 0; A < P.length; A++)
|
|
607
|
+
je(P[A], e);
|
|
608
|
+
Object.freeze && Object.freeze(P);
|
|
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
|
-
je(
|
|
612
|
+
je(P, e);
|
|
613
613
|
}
|
|
614
614
|
return e === u ? ur(E) : lr(E), E;
|
|
615
615
|
}
|
|
@@ -626,16 +626,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
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 N = (...f) => f.filter(Boolean).join(" "), O = g.createContext({
|
|
630
630
|
helperTextId: "",
|
|
631
631
|
errorMessageId: "",
|
|
632
632
|
isInvalid: !1,
|
|
633
633
|
isRequired: !1
|
|
634
|
-
}),
|
|
635
|
-
(f,
|
|
636
|
-
const { className:
|
|
634
|
+
}), Ie = g.forwardRef(
|
|
635
|
+
(f, m) => {
|
|
636
|
+
const { className: v, children: u, ...n } = f, a = g.useContext(O);
|
|
637
637
|
a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
|
|
638
|
-
const
|
|
638
|
+
const b = `
|
|
639
639
|
inline-block
|
|
640
640
|
text-base
|
|
641
641
|
cursor-pointer
|
|
@@ -662,7 +662,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = g.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: n.id, className:
|
|
665
|
+
return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: N(b, v), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
666
666
|
/* @__PURE__ */ s.jsx(
|
|
667
667
|
"input",
|
|
668
668
|
{
|
|
@@ -671,8 +671,9 @@ const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
|
|
|
671
671
|
"aria-describedby": a.helperTextId,
|
|
672
672
|
"aria-errormessage": a.errorMessageId,
|
|
673
673
|
"aria-invalid": a.isInvalid ?? !1,
|
|
674
|
+
"aria-required": a.isRequired ?? !1,
|
|
674
675
|
...n,
|
|
675
|
-
ref:
|
|
676
|
+
ref: m
|
|
676
677
|
}
|
|
677
678
|
),
|
|
678
679
|
/* @__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" }) }) }),
|
|
@@ -680,12 +681,12 @@ const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
|
|
|
680
681
|
] }) });
|
|
681
682
|
}
|
|
682
683
|
);
|
|
683
|
-
|
|
684
|
+
Ie.displayName = "Checkbox";
|
|
684
685
|
const Se = g.forwardRef(
|
|
685
|
-
(f,
|
|
686
|
-
const { className:
|
|
686
|
+
(f, m) => {
|
|
687
|
+
const { className: v, children: u, ...n } = f, a = g.useContext(O);
|
|
687
688
|
a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
|
|
688
|
-
const
|
|
689
|
+
const b = `
|
|
689
690
|
inline-block
|
|
690
691
|
text-base
|
|
691
692
|
cursor-pointer
|
|
@@ -711,7 +712,7 @@ const Se = g.forwardRef(
|
|
|
711
712
|
peer-focus-visible:ring-offset-2
|
|
712
713
|
peer-focus-visible:ring-wood-500
|
|
713
714
|
`;
|
|
714
|
-
return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className:
|
|
715
|
+
return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: N(b, v), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
715
716
|
/* @__PURE__ */ s.jsx(
|
|
716
717
|
"input",
|
|
717
718
|
{
|
|
@@ -720,8 +721,9 @@ const Se = g.forwardRef(
|
|
|
720
721
|
"aria-describedby": a.helperTextId,
|
|
721
722
|
"aria-errormessage": a.errorMessageId,
|
|
722
723
|
"aria-invalid": a.isInvalid ?? !1,
|
|
724
|
+
"aria-required": a.isRequired ?? !1,
|
|
723
725
|
...n,
|
|
724
|
-
ref:
|
|
726
|
+
ref: m
|
|
725
727
|
}
|
|
726
728
|
),
|
|
727
729
|
/* @__PURE__ */ s.jsx("span", { className: o }),
|
|
@@ -731,56 +733,60 @@ const Se = g.forwardRef(
|
|
|
731
733
|
);
|
|
732
734
|
Se.displayName = "Radio";
|
|
733
735
|
const br = g.forwardRef(
|
|
734
|
-
(f,
|
|
735
|
-
const { className:
|
|
736
|
+
(f, m) => {
|
|
737
|
+
const { className: v, children: u, ...n } = f, a = g.useContext(O);
|
|
736
738
|
a.isRequired && (n.required = !0);
|
|
737
|
-
const
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
739
|
+
const b = `
|
|
740
|
+
peer
|
|
741
|
+
cursor-pointer
|
|
742
|
+
appearance-none
|
|
743
|
+
text-base
|
|
744
|
+
w-full
|
|
745
|
+
bg-white-100
|
|
746
|
+
border
|
|
747
|
+
border-solid
|
|
748
|
+
border-sumi-900
|
|
749
|
+
py-4 px-4 pr-8
|
|
750
|
+
rounded-[8px]
|
|
751
|
+
outline-offset-2
|
|
752
|
+
focus:outline
|
|
753
|
+
focus:outline-2
|
|
754
|
+
focus:outline-wood-500
|
|
755
|
+
disabled:bg-transparent
|
|
756
|
+
disabled:text-sumi-500
|
|
757
|
+
disabled:border-sumi-500
|
|
758
|
+
aria-[invalid]:border-sun-800
|
|
759
|
+
`, c = `
|
|
760
|
+
flex items-center
|
|
761
|
+
absolute inset-y-0 right-0
|
|
762
|
+
px-2
|
|
763
|
+
pointer-events-none
|
|
764
|
+
peer-disabled:fill-sumi-500
|
|
765
|
+
`;
|
|
762
766
|
return /* @__PURE__ */ s.jsxs("label", { className: "inline-block relative", children: [
|
|
763
767
|
/* @__PURE__ */ s.jsx(
|
|
764
768
|
"select",
|
|
765
769
|
{
|
|
766
770
|
id: n.id ?? a.id,
|
|
767
|
-
className:
|
|
771
|
+
className: N(b, f.className),
|
|
768
772
|
"aria-describedby": a.helperTextId,
|
|
769
773
|
"aria-errormessage": a.errorMessageId,
|
|
770
774
|
"aria-invalid": a.isInvalid ?? !1,
|
|
775
|
+
"aria-required": a.isRequired ?? !1,
|
|
771
776
|
...n,
|
|
772
|
-
ref:
|
|
777
|
+
ref: m,
|
|
773
778
|
children: u
|
|
774
779
|
}
|
|
775
780
|
),
|
|
776
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
781
|
+
/* @__PURE__ */ s.jsx("span", { className: c, 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
782
|
] });
|
|
778
783
|
}
|
|
779
784
|
), hr = g.forwardRef(
|
|
780
|
-
(f,
|
|
781
|
-
const { className:
|
|
785
|
+
(f, m) => {
|
|
786
|
+
const { className: v, ...u } = f, n = g.useContext(O);
|
|
782
787
|
n.isRequired && (u.required = !0);
|
|
783
|
-
const a =
|
|
788
|
+
const a = `
|
|
789
|
+
file:mr-2
|
|
784
790
|
file:inline-block
|
|
785
791
|
file:text-button
|
|
786
792
|
file:text-center
|
|
@@ -793,7 +799,7 @@ const br = g.forwardRef(
|
|
|
793
799
|
file:hover:border-sea-900
|
|
794
800
|
file:disabled:border-sumi-500
|
|
795
801
|
file:disabled:cursor-not-allowed
|
|
796
|
-
`,
|
|
802
|
+
`, b = `
|
|
797
803
|
file:text-sea-800
|
|
798
804
|
file:bg-transparent
|
|
799
805
|
file:active:bg-sea-200
|
|
@@ -802,34 +808,30 @@ const br = g.forwardRef(
|
|
|
802
808
|
file:hover:text-sea-900
|
|
803
809
|
file:disabled:text-sumi-500
|
|
804
810
|
file:disabled:bg-transparent
|
|
805
|
-
`,
|
|
811
|
+
`, c = `
|
|
806
812
|
file:p-4
|
|
807
813
|
file:text-button
|
|
808
814
|
file:rounded-lg
|
|
809
|
-
`,
|
|
815
|
+
`, o = `
|
|
810
816
|
rounded-lg
|
|
811
817
|
outline-offset-2
|
|
818
|
+
text-sumi-900
|
|
812
819
|
focus:outline
|
|
813
820
|
focus:outline-2
|
|
814
821
|
focus:outline-wood-600
|
|
822
|
+
aria-[invalid]:text-sun-800
|
|
815
823
|
`;
|
|
816
824
|
return /* @__PURE__ */ s.jsx(
|
|
817
825
|
"input",
|
|
818
826
|
{
|
|
819
827
|
type: "file",
|
|
820
828
|
id: u.id ?? n.id,
|
|
821
|
-
className:
|
|
822
|
-
p,
|
|
823
|
-
c,
|
|
824
|
-
o,
|
|
825
|
-
_,
|
|
826
|
-
a,
|
|
827
|
-
m
|
|
828
|
-
),
|
|
829
|
+
className: N(a, b, c, o, v),
|
|
829
830
|
"aria-describedby": n.helperTextId,
|
|
830
831
|
"aria-errormessage": n.errorMessageId,
|
|
831
832
|
"aria-invalid": n.isInvalid ?? !1,
|
|
832
|
-
|
|
833
|
+
"aria-required": n.isRequired ?? !1,
|
|
834
|
+
ref: m,
|
|
833
835
|
...u
|
|
834
836
|
}
|
|
835
837
|
);
|
|
@@ -837,32 +839,35 @@ const br = g.forwardRef(
|
|
|
837
839
|
);
|
|
838
840
|
hr.displayName = "FileInput";
|
|
839
841
|
const xr = g.forwardRef(
|
|
840
|
-
(f,
|
|
841
|
-
const { className:
|
|
842
|
+
(f, m) => {
|
|
843
|
+
const { className: v, ...u } = f, n = g.useContext(O);
|
|
842
844
|
n.isRequired && (u.required = !0);
|
|
843
|
-
const a =
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
845
|
+
const a = `
|
|
846
|
+
p-4
|
|
847
|
+
rounded-lg
|
|
848
|
+
border
|
|
849
|
+
border-solid
|
|
850
|
+
border-sumi-900
|
|
851
|
+
outline-offset-2
|
|
852
|
+
focus:outline
|
|
853
|
+
focus:outline-2
|
|
854
|
+
focus:outline-wood-500
|
|
855
|
+
disabled:bg-transparent
|
|
856
|
+
disabled:text-sumi-500
|
|
857
|
+
disabled:border-sumi-500
|
|
858
|
+
aria-[invalid]:border-sun-800
|
|
859
|
+
`;
|
|
856
860
|
return /* @__PURE__ */ s.jsx(
|
|
857
861
|
"input",
|
|
858
862
|
{
|
|
859
863
|
type: "text",
|
|
860
864
|
id: u.id ?? n.id,
|
|
861
|
-
className:
|
|
865
|
+
className: N(a, v),
|
|
862
866
|
"aria-describedby": n.helperTextId,
|
|
863
867
|
"aria-errormessage": n.errorMessageId,
|
|
864
868
|
"aria-invalid": n.isInvalid ?? !1,
|
|
865
|
-
|
|
869
|
+
"aria-required": n.isRequired ?? !1,
|
|
870
|
+
ref: m,
|
|
866
871
|
...u
|
|
867
872
|
}
|
|
868
873
|
);
|
|
@@ -870,41 +875,44 @@ const xr = g.forwardRef(
|
|
|
870
875
|
);
|
|
871
876
|
xr.displayName = "Input";
|
|
872
877
|
const Oe = g.forwardRef(
|
|
873
|
-
(f,
|
|
874
|
-
const { className:
|
|
875
|
-
n && n(
|
|
876
|
-
}, h = g.useContext(
|
|
877
|
-
h.isRequired && (
|
|
878
|
-
const y =
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
878
|
+
(f, m) => {
|
|
879
|
+
const { className: v, children: u, onChange: n, maxLength: a, ...b } = f, [c, o] = g.useState(0), T = (_) => {
|
|
880
|
+
n && n(_), o(_.target.value.length);
|
|
881
|
+
}, h = g.useContext(O);
|
|
882
|
+
h.isRequired && (b.required = !0);
|
|
883
|
+
const y = c > (a || 0) ? "text-sun-800" : "text-sumi-700", j = `
|
|
884
|
+
p-4
|
|
885
|
+
rounded-lg
|
|
886
|
+
border
|
|
887
|
+
border-solid
|
|
888
|
+
border-sumi-900
|
|
889
|
+
outline-offset-2
|
|
890
|
+
focus:outline
|
|
891
|
+
focus:outline-2
|
|
892
|
+
focus:outline-wood-500
|
|
893
|
+
disabled:bg-transparent
|
|
894
|
+
disabled:text-sumi-500
|
|
895
|
+
disabled:border-sumi-500
|
|
896
|
+
aria-[invalid]:border-sun-800
|
|
897
|
+
`;
|
|
891
898
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
892
899
|
/* @__PURE__ */ s.jsx(
|
|
893
900
|
"textarea",
|
|
894
901
|
{
|
|
895
|
-
id:
|
|
896
|
-
className:
|
|
902
|
+
id: b.id ?? h.id,
|
|
903
|
+
className: N(j, v),
|
|
897
904
|
"aria-describedby": h.helperTextId,
|
|
898
905
|
"aria-errormessage": h.errorMessageId,
|
|
899
906
|
"aria-invalid": h.isInvalid ?? !1,
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
907
|
+
"aria-required": h.isRequired ?? !1,
|
|
908
|
+
onChange: T,
|
|
909
|
+
...b,
|
|
910
|
+
ref: m,
|
|
903
911
|
children: u
|
|
904
912
|
}
|
|
905
913
|
),
|
|
906
914
|
a ? /* @__PURE__ */ s.jsxs("p", { className: "text-sup text-sumi-700", children: [
|
|
907
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
915
|
+
/* @__PURE__ */ s.jsx("span", { className: y, children: c }),
|
|
908
916
|
"/",
|
|
909
917
|
/* @__PURE__ */ s.jsx("span", { children: a })
|
|
910
918
|
] }) : ""
|
|
@@ -912,34 +920,34 @@ const Oe = g.forwardRef(
|
|
|
912
920
|
}
|
|
913
921
|
);
|
|
914
922
|
Oe.displayName = "Textarea";
|
|
915
|
-
const te = g.forwardRef((f,
|
|
916
|
-
const
|
|
923
|
+
const te = g.forwardRef((f, m) => {
|
|
924
|
+
const v = g.useId(), {
|
|
917
925
|
labelText: u,
|
|
918
926
|
className: n,
|
|
919
927
|
helperText: a,
|
|
920
|
-
errorMessage:
|
|
928
|
+
errorMessage: b,
|
|
921
929
|
isInvalid: c,
|
|
922
930
|
isRequired: o,
|
|
923
|
-
children:
|
|
931
|
+
children: T,
|
|
924
932
|
...h
|
|
925
933
|
} = f, y = {
|
|
926
|
-
id: f.htmlFor ?? `input-${
|
|
927
|
-
helperTextId: `helper-text-${
|
|
928
|
-
errorMessageId: `error-message-${
|
|
934
|
+
id: f.htmlFor ?? `input-${v}`,
|
|
935
|
+
helperTextId: `helper-text-${v}`,
|
|
936
|
+
errorMessageId: `error-message-${v}`,
|
|
929
937
|
isInvalid: c ?? !1,
|
|
930
938
|
isRequired: o ?? !1
|
|
931
939
|
}, j = `
|
|
932
940
|
text-sup text-sumi-700
|
|
933
|
-
`,
|
|
941
|
+
`, _ = `
|
|
934
942
|
text-sup text-sun-800
|
|
935
943
|
`;
|
|
936
|
-
return /* @__PURE__ */ s.jsx(
|
|
944
|
+
return /* @__PURE__ */ s.jsx(O.Provider, { value: y, children: /* @__PURE__ */ s.jsxs("div", { className: N("mb-4", n), children: [
|
|
937
945
|
/* @__PURE__ */ s.jsxs(
|
|
938
946
|
"label",
|
|
939
947
|
{
|
|
940
|
-
className:
|
|
948
|
+
className: N("block mb-2 text-label", c && "text-sun-800"),
|
|
941
949
|
htmlFor: y.id,
|
|
942
|
-
ref:
|
|
950
|
+
ref: m,
|
|
943
951
|
...h,
|
|
944
952
|
children: [
|
|
945
953
|
u,
|
|
@@ -947,74 +955,74 @@ const te = g.forwardRef((f, b) => {
|
|
|
947
955
|
]
|
|
948
956
|
}
|
|
949
957
|
),
|
|
950
|
-
a && /* @__PURE__ */ s.jsx("p", { id: y.helperTextId, className:
|
|
951
|
-
|
|
958
|
+
a && /* @__PURE__ */ s.jsx("p", { id: y.helperTextId, className: N(j, "mb-2"), children: a }),
|
|
959
|
+
T,
|
|
952
960
|
c && /* @__PURE__ */ s.jsx(
|
|
953
961
|
"p",
|
|
954
962
|
{
|
|
955
963
|
id: y.errorMessageId,
|
|
956
|
-
className:
|
|
957
|
-
children:
|
|
964
|
+
className: N(_, a ? "mt-1" : "mt-2"),
|
|
965
|
+
children: b
|
|
958
966
|
}
|
|
959
967
|
)
|
|
960
968
|
] }) });
|
|
961
969
|
});
|
|
962
970
|
te.displayName = "LabelControl";
|
|
963
|
-
const ae = g.forwardRef((f,
|
|
964
|
-
const
|
|
971
|
+
const ae = g.forwardRef((f, m) => {
|
|
972
|
+
const v = g.useId(), {
|
|
965
973
|
labelText: u,
|
|
966
974
|
className: n,
|
|
967
975
|
helperText: a,
|
|
968
|
-
errorMessage:
|
|
976
|
+
errorMessage: b,
|
|
969
977
|
isInvalid: c,
|
|
970
978
|
isRequired: o,
|
|
971
|
-
direction:
|
|
979
|
+
direction: T,
|
|
972
980
|
children: h,
|
|
973
981
|
...y
|
|
974
|
-
} = f,
|
|
975
|
-
groupName: y.name ?? `group-${
|
|
976
|
-
helperTextId: `helper-text-${
|
|
977
|
-
errorMessageId: `error-message-${
|
|
982
|
+
} = f, _ = {
|
|
983
|
+
groupName: y.name ?? `group-${v}`,
|
|
984
|
+
helperTextId: `helper-text-${v}`,
|
|
985
|
+
errorMessageId: `error-message-${v}`,
|
|
978
986
|
isInvalid: c ?? !1,
|
|
979
987
|
isRequired: o ?? !1
|
|
980
|
-
},
|
|
981
|
-
return /* @__PURE__ */ s.jsx(
|
|
988
|
+
}, F = T ?? "flex-col";
|
|
989
|
+
return /* @__PURE__ */ s.jsx(O.Provider, { value: _, children: /* @__PURE__ */ s.jsxs("fieldset", { className: N("mb-4", n), ref: m, ...y, children: [
|
|
982
990
|
/* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
|
|
983
991
|
"p",
|
|
984
992
|
{
|
|
985
|
-
className:
|
|
993
|
+
className: N("block mb-2 text-label", c && "text-sun-800"),
|
|
986
994
|
children: [
|
|
987
995
|
u,
|
|
988
996
|
o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
989
997
|
]
|
|
990
998
|
}
|
|
991
999
|
) }),
|
|
992
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
993
|
-
a && /* @__PURE__ */ s.jsx("p", { id:
|
|
1000
|
+
/* @__PURE__ */ s.jsx("div", { className: N("inline-flex", F), children: h }),
|
|
1001
|
+
a && /* @__PURE__ */ s.jsx("p", { id: _.helperTextId, className: "text-sup text-sumi-700 mt-2", children: a }),
|
|
994
1002
|
c && /* @__PURE__ */ s.jsx(
|
|
995
1003
|
"p",
|
|
996
1004
|
{
|
|
997
|
-
id:
|
|
998
|
-
className:
|
|
1005
|
+
id: _.errorMessageId,
|
|
1006
|
+
className: N(
|
|
999
1007
|
"text-sup text-sun-800",
|
|
1000
1008
|
a ? "mt-1" : "mt-2"
|
|
1001
1009
|
),
|
|
1002
|
-
children:
|
|
1010
|
+
children: b
|
|
1003
1011
|
}
|
|
1004
1012
|
)
|
|
1005
1013
|
] }) });
|
|
1006
1014
|
});
|
|
1007
1015
|
ae.displayName = "FieldsetControl";
|
|
1008
|
-
const gr = g.forwardRef((f,
|
|
1016
|
+
const gr = g.forwardRef((f, m) => {
|
|
1009
1017
|
const {
|
|
1010
|
-
items:
|
|
1018
|
+
items: v,
|
|
1011
1019
|
onChange: u,
|
|
1012
1020
|
className: n,
|
|
1013
1021
|
labelText: a,
|
|
1014
|
-
helperText:
|
|
1022
|
+
helperText: b,
|
|
1015
1023
|
errorMessage: c,
|
|
1016
1024
|
isInvalid: o,
|
|
1017
|
-
isRequired:
|
|
1025
|
+
isRequired: T,
|
|
1018
1026
|
...h
|
|
1019
1027
|
} = f;
|
|
1020
1028
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -1022,27 +1030,27 @@ const gr = g.forwardRef((f, b) => {
|
|
|
1022
1030
|
{
|
|
1023
1031
|
className: n,
|
|
1024
1032
|
labelText: a,
|
|
1025
|
-
helperText:
|
|
1033
|
+
helperText: b,
|
|
1026
1034
|
errorMessage: c,
|
|
1027
1035
|
isInvalid: o,
|
|
1028
|
-
isRequired:
|
|
1029
|
-
ref:
|
|
1036
|
+
isRequired: T,
|
|
1037
|
+
ref: m,
|
|
1030
1038
|
...h,
|
|
1031
|
-
children:
|
|
1039
|
+
children: v.map(({ label: y, value: j }, _) => /* @__PURE__ */ s.jsx(Ie, { value: j, onChange: u, children: y }, _))
|
|
1032
1040
|
}
|
|
1033
1041
|
);
|
|
1034
1042
|
});
|
|
1035
1043
|
gr.displayName = "CheckboxGroup";
|
|
1036
|
-
const yr = g.forwardRef((f,
|
|
1044
|
+
const yr = g.forwardRef((f, m) => {
|
|
1037
1045
|
const {
|
|
1038
|
-
items:
|
|
1046
|
+
items: v,
|
|
1039
1047
|
onChange: u,
|
|
1040
1048
|
className: n,
|
|
1041
1049
|
labelText: a,
|
|
1042
|
-
helperText:
|
|
1050
|
+
helperText: b,
|
|
1043
1051
|
errorMessage: c,
|
|
1044
1052
|
isInvalid: o,
|
|
1045
|
-
isRequired:
|
|
1053
|
+
isRequired: T,
|
|
1046
1054
|
defaultValue: h,
|
|
1047
1055
|
...y
|
|
1048
1056
|
} = f;
|
|
@@ -1051,76 +1059,76 @@ const yr = g.forwardRef((f, b) => {
|
|
|
1051
1059
|
{
|
|
1052
1060
|
className: n,
|
|
1053
1061
|
labelText: a,
|
|
1054
|
-
helperText:
|
|
1062
|
+
helperText: b,
|
|
1055
1063
|
errorMessage: c,
|
|
1056
1064
|
isInvalid: o,
|
|
1057
|
-
isRequired:
|
|
1058
|
-
ref:
|
|
1065
|
+
isRequired: T,
|
|
1066
|
+
ref: m,
|
|
1059
1067
|
...y,
|
|
1060
|
-
children:
|
|
1068
|
+
children: v.map(({ label: j, value: _ }, F) => /* @__PURE__ */ s.jsx(
|
|
1061
1069
|
Se,
|
|
1062
1070
|
{
|
|
1063
|
-
value:
|
|
1071
|
+
value: _,
|
|
1064
1072
|
onChange: u,
|
|
1065
|
-
defaultChecked: h ===
|
|
1073
|
+
defaultChecked: h === _,
|
|
1066
1074
|
children: j
|
|
1067
1075
|
},
|
|
1068
|
-
|
|
1076
|
+
F
|
|
1069
1077
|
))
|
|
1070
1078
|
}
|
|
1071
1079
|
);
|
|
1072
1080
|
});
|
|
1073
1081
|
yr.displayName = "RadioGroup";
|
|
1074
|
-
const Rr = g.forwardRef((f,
|
|
1082
|
+
const Rr = g.forwardRef((f, m) => {
|
|
1075
1083
|
const {
|
|
1076
|
-
className:
|
|
1084
|
+
className: v,
|
|
1077
1085
|
labelText: u,
|
|
1078
1086
|
helperText: n,
|
|
1079
1087
|
errorMessage: a,
|
|
1080
|
-
isInvalid:
|
|
1088
|
+
isInvalid: b,
|
|
1081
1089
|
isRequired: c,
|
|
1082
1090
|
...o
|
|
1083
1091
|
} = f;
|
|
1084
1092
|
return /* @__PURE__ */ s.jsx(
|
|
1085
1093
|
te,
|
|
1086
1094
|
{
|
|
1087
|
-
className:
|
|
1095
|
+
className: v,
|
|
1088
1096
|
labelText: u,
|
|
1089
1097
|
helperText: n,
|
|
1090
1098
|
errorMessage: a,
|
|
1091
|
-
isInvalid:
|
|
1099
|
+
isInvalid: b,
|
|
1092
1100
|
isRequired: c,
|
|
1093
|
-
children: /* @__PURE__ */ s.jsx(br, { ref:
|
|
1101
|
+
children: /* @__PURE__ */ s.jsx(br, { ref: m, ...o })
|
|
1094
1102
|
}
|
|
1095
1103
|
);
|
|
1096
1104
|
});
|
|
1097
1105
|
Rr.displayName = "SelectControl";
|
|
1098
|
-
const Er = g.forwardRef((f,
|
|
1106
|
+
const Er = g.forwardRef((f, m) => {
|
|
1099
1107
|
const {
|
|
1100
|
-
className:
|
|
1108
|
+
className: v,
|
|
1101
1109
|
labelText: u,
|
|
1102
1110
|
helperText: n,
|
|
1103
1111
|
errorMessage: a,
|
|
1104
|
-
isInvalid:
|
|
1112
|
+
isInvalid: b,
|
|
1105
1113
|
isRequired: c,
|
|
1106
1114
|
...o
|
|
1107
1115
|
} = f;
|
|
1108
1116
|
return /* @__PURE__ */ s.jsx(
|
|
1109
1117
|
te,
|
|
1110
1118
|
{
|
|
1111
|
-
className:
|
|
1119
|
+
className: v,
|
|
1112
1120
|
labelText: u,
|
|
1113
1121
|
helperText: n,
|
|
1114
1122
|
errorMessage: a,
|
|
1115
|
-
isInvalid:
|
|
1123
|
+
isInvalid: b,
|
|
1116
1124
|
isRequired: c,
|
|
1117
|
-
children: /* @__PURE__ */ s.jsx(Oe, { ref:
|
|
1125
|
+
children: /* @__PURE__ */ s.jsx(Oe, { ref: m, ...o })
|
|
1118
1126
|
}
|
|
1119
1127
|
);
|
|
1120
1128
|
});
|
|
1121
1129
|
Er.displayName = "TextareaControl";
|
|
1122
1130
|
export {
|
|
1123
|
-
|
|
1131
|
+
Ie as Checkbox,
|
|
1124
1132
|
gr as CheckboxGroup,
|
|
1125
1133
|
ae as FieldsetControl,
|
|
1126
1134
|
hr as FileInput,
|