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