@sakura-ui/forms 0.2.1 → 0.2.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import R from "react";
|
|
2
|
-
var
|
|
2
|
+
var K = { exports: {} }, V = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,25 +9,21 @@ var ae = { exports: {} }, L = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var b = R, h = Symbol.for("react.element"), m = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, p = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
12
|
+
var Pe;
|
|
13
|
+
function _r() {
|
|
14
|
+
if (Pe) return V;
|
|
15
|
+
Pe = 1;
|
|
16
|
+
var f = R, x = Symbol.for("react.element"), m = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, p = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
17
|
function i(o, a, y) {
|
|
19
|
-
var
|
|
18
|
+
var b, c = {}, j = null, w = null;
|
|
20
19
|
y !== void 0 && (j = "" + y), a.key !== void 0 && (j = "" + a.key), a.ref !== void 0 && (w = a.ref);
|
|
21
|
-
for (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
for (v in a = o.defaultProps, a)
|
|
25
|
-
d[v] === void 0 && (d[v] = a[v]);
|
|
26
|
-
return { $$typeof: h, type: o, key: j, ref: w, props: d, _owner: p.current };
|
|
20
|
+
for (b in a) h.call(a, b) && !v.hasOwnProperty(b) && (c[b] = a[b]);
|
|
21
|
+
if (o && o.defaultProps) for (b in a = o.defaultProps, a) c[b] === void 0 && (c[b] = a[b]);
|
|
22
|
+
return { $$typeof: x, type: o, key: j, ref: w, props: c, _owner: p.current };
|
|
27
23
|
}
|
|
28
|
-
return
|
|
24
|
+
return V.Fragment = m, V.jsx = i, V.jsxs = i, V;
|
|
29
25
|
}
|
|
30
|
-
var
|
|
26
|
+
var z = {};
|
|
31
27
|
/**
|
|
32
28
|
* @license React
|
|
33
29
|
* react-jsx-runtime.development.js
|
|
@@ -37,54 +33,54 @@ var V = {};
|
|
|
37
33
|
* This source code is licensed under the MIT license found in the
|
|
38
34
|
* LICENSE file in the root directory of this source tree.
|
|
39
35
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var
|
|
44
|
-
function
|
|
36
|
+
var ke;
|
|
37
|
+
function jr() {
|
|
38
|
+
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var f = R, x = Symbol.for("react.element"), m = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), P = Symbol.iterator, We = "@@iterator";
|
|
40
|
+
function Ye(e) {
|
|
45
41
|
if (e === null || typeof e != "object")
|
|
46
42
|
return null;
|
|
47
|
-
var r =
|
|
43
|
+
var r = P && e[P] || e[We];
|
|
48
44
|
return typeof r == "function" ? r : null;
|
|
49
45
|
}
|
|
50
|
-
var D =
|
|
46
|
+
var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
47
|
function T(e) {
|
|
52
48
|
{
|
|
53
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
54
50
|
t[n - 1] = arguments[n];
|
|
55
|
-
|
|
51
|
+
Le("error", e, t);
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
|
-
function
|
|
54
|
+
function Le(e, r, t) {
|
|
59
55
|
{
|
|
60
|
-
var n = D.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
56
|
+
var n = D.ReactDebugCurrentFrame, d = n.getStackAddendum();
|
|
57
|
+
d !== "" && (r += "%s", t = t.concat([d]));
|
|
62
58
|
var g = t.map(function(u) {
|
|
63
59
|
return String(u);
|
|
64
60
|
});
|
|
65
61
|
g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
|
|
66
62
|
}
|
|
67
63
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
64
|
+
var Ve = !1, ze = !1, Ue = !1, Be = !1, Je = !1, ie;
|
|
65
|
+
ie = Symbol.for("react.module.reference");
|
|
66
|
+
function Ge(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === v || Je || e === p || e === y || e === b || Be || e === w || Ve || ze || Ue || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === c || e.$$typeof === i || e.$$typeof === o || e.$$typeof === a || // This needs to include all possible module reference object
|
|
72
68
|
// types supported by any Flight configuration anywhere since
|
|
73
69
|
// we don't know which Flight build this will end up being used
|
|
74
70
|
// with.
|
|
75
|
-
e.$$typeof ===
|
|
71
|
+
e.$$typeof === ie || e.getModuleId !== void 0));
|
|
76
72
|
}
|
|
77
|
-
function
|
|
73
|
+
function Ke(e, r, t) {
|
|
78
74
|
var n = e.displayName;
|
|
79
75
|
if (n)
|
|
80
76
|
return n;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
77
|
+
var d = r.displayName || r.name || "";
|
|
78
|
+
return d !== "" ? t + "(" + d + ")" : t;
|
|
83
79
|
}
|
|
84
|
-
function
|
|
80
|
+
function oe(e) {
|
|
85
81
|
return e.displayName || "Context";
|
|
86
82
|
}
|
|
87
|
-
function
|
|
83
|
+
function k(e) {
|
|
88
84
|
if (e == null)
|
|
89
85
|
return null;
|
|
90
86
|
if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -92,36 +88,36 @@ function Er() {
|
|
|
92
88
|
if (typeof e == "string")
|
|
93
89
|
return e;
|
|
94
90
|
switch (e) {
|
|
95
|
-
case
|
|
91
|
+
case h:
|
|
96
92
|
return "Fragment";
|
|
97
93
|
case m:
|
|
98
94
|
return "Portal";
|
|
99
|
-
case
|
|
95
|
+
case v:
|
|
100
96
|
return "Profiler";
|
|
101
97
|
case p:
|
|
102
98
|
return "StrictMode";
|
|
103
99
|
case y:
|
|
104
100
|
return "Suspense";
|
|
105
|
-
case
|
|
101
|
+
case b:
|
|
106
102
|
return "SuspenseList";
|
|
107
103
|
}
|
|
108
104
|
if (typeof e == "object")
|
|
109
105
|
switch (e.$$typeof) {
|
|
110
106
|
case o:
|
|
111
107
|
var r = e;
|
|
112
|
-
return
|
|
108
|
+
return oe(r) + ".Consumer";
|
|
113
109
|
case i:
|
|
114
110
|
var t = e;
|
|
115
|
-
return
|
|
111
|
+
return oe(t._context) + ".Provider";
|
|
116
112
|
case a:
|
|
117
|
-
return
|
|
118
|
-
case
|
|
113
|
+
return Ke(e, e.render, "ForwardRef");
|
|
114
|
+
case c:
|
|
119
115
|
var n = e.displayName || null;
|
|
120
|
-
return n !== null ? n :
|
|
116
|
+
return n !== null ? n : k(e.type) || "Memo";
|
|
121
117
|
case j: {
|
|
122
|
-
var
|
|
118
|
+
var d = e, g = d._payload, u = d._init;
|
|
123
119
|
try {
|
|
124
|
-
return
|
|
120
|
+
return k(u(g));
|
|
125
121
|
} catch {
|
|
126
122
|
return null;
|
|
127
123
|
}
|
|
@@ -129,18 +125,18 @@ function Er() {
|
|
|
129
125
|
}
|
|
130
126
|
return null;
|
|
131
127
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
128
|
+
var O = Object.assign, W = 0, le, ue, ce, de, fe, pe, ve;
|
|
129
|
+
function be() {
|
|
134
130
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
131
|
+
be.__reactDisabledLog = !0;
|
|
132
|
+
function He() {
|
|
137
133
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
134
|
+
if (W === 0) {
|
|
135
|
+
le = console.log, ue = console.info, ce = console.warn, de = console.error, fe = console.group, pe = console.groupCollapsed, ve = console.groupEnd;
|
|
140
136
|
var e = {
|
|
141
137
|
configurable: !0,
|
|
142
138
|
enumerable: !0,
|
|
143
|
-
value:
|
|
139
|
+
value: be,
|
|
144
140
|
writable: !0
|
|
145
141
|
};
|
|
146
142
|
Object.defineProperties(console, {
|
|
@@ -153,77 +149,77 @@ function Er() {
|
|
|
153
149
|
groupEnd: e
|
|
154
150
|
});
|
|
155
151
|
}
|
|
156
|
-
|
|
152
|
+
W++;
|
|
157
153
|
}
|
|
158
154
|
}
|
|
159
|
-
function
|
|
155
|
+
function Xe() {
|
|
160
156
|
{
|
|
161
|
-
if (
|
|
157
|
+
if (W--, W === 0) {
|
|
162
158
|
var e = {
|
|
163
159
|
configurable: !0,
|
|
164
160
|
enumerable: !0,
|
|
165
161
|
writable: !0
|
|
166
162
|
};
|
|
167
163
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
169
|
-
value: oe
|
|
170
|
-
}),
|
|
171
|
-
info: F({}, e, {
|
|
164
|
+
log: O({}, e, {
|
|
172
165
|
value: le
|
|
173
166
|
}),
|
|
174
|
-
|
|
167
|
+
info: O({}, e, {
|
|
175
168
|
value: ue
|
|
176
169
|
}),
|
|
177
|
-
|
|
170
|
+
warn: O({}, e, {
|
|
178
171
|
value: ce
|
|
179
172
|
}),
|
|
180
|
-
|
|
173
|
+
error: O({}, e, {
|
|
181
174
|
value: de
|
|
182
175
|
}),
|
|
183
|
-
|
|
176
|
+
group: O({}, e, {
|
|
184
177
|
value: fe
|
|
185
178
|
}),
|
|
186
|
-
|
|
179
|
+
groupCollapsed: O({}, e, {
|
|
187
180
|
value: pe
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: O({}, e, {
|
|
183
|
+
value: ve
|
|
188
184
|
})
|
|
189
185
|
});
|
|
190
186
|
}
|
|
191
|
-
|
|
187
|
+
W < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
188
|
}
|
|
193
189
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
190
|
+
var H = D.ReactCurrentDispatcher, X;
|
|
191
|
+
function U(e, r, t) {
|
|
196
192
|
{
|
|
197
|
-
if (
|
|
193
|
+
if (X === void 0)
|
|
198
194
|
try {
|
|
199
195
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var n =
|
|
202
|
-
|
|
196
|
+
} catch (d) {
|
|
197
|
+
var n = d.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
X = n && n[1] || "";
|
|
203
199
|
}
|
|
204
200
|
return `
|
|
205
|
-
` +
|
|
201
|
+
` + X + e;
|
|
206
202
|
}
|
|
207
203
|
}
|
|
208
|
-
var
|
|
204
|
+
var Z = !1, B;
|
|
209
205
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
206
|
+
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
B = new Ze();
|
|
212
208
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!e ||
|
|
209
|
+
function me(e, r) {
|
|
210
|
+
if (!e || Z)
|
|
215
211
|
return "";
|
|
216
212
|
{
|
|
217
|
-
var t =
|
|
213
|
+
var t = B.get(e);
|
|
218
214
|
if (t !== void 0)
|
|
219
215
|
return t;
|
|
220
216
|
}
|
|
221
217
|
var n;
|
|
222
|
-
|
|
223
|
-
var
|
|
218
|
+
Z = !0;
|
|
219
|
+
var d = Error.prepareStackTrace;
|
|
224
220
|
Error.prepareStackTrace = void 0;
|
|
225
221
|
var g;
|
|
226
|
-
g =
|
|
222
|
+
g = H.current, H.current = null, He();
|
|
227
223
|
try {
|
|
228
224
|
if (r) {
|
|
229
225
|
var u = function() {
|
|
@@ -236,125 +232,125 @@ function Er() {
|
|
|
236
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
233
|
try {
|
|
238
234
|
Reflect.construct(u, []);
|
|
239
|
-
} catch (
|
|
240
|
-
n =
|
|
235
|
+
} catch (I) {
|
|
236
|
+
n = I;
|
|
241
237
|
}
|
|
242
238
|
Reflect.construct(e, [], u);
|
|
243
239
|
} else {
|
|
244
240
|
try {
|
|
245
241
|
u.call();
|
|
246
|
-
} catch (
|
|
247
|
-
n =
|
|
242
|
+
} catch (I) {
|
|
243
|
+
n = I;
|
|
248
244
|
}
|
|
249
245
|
e.call(u.prototype);
|
|
250
246
|
}
|
|
251
247
|
} else {
|
|
252
248
|
try {
|
|
253
249
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
n =
|
|
250
|
+
} catch (I) {
|
|
251
|
+
n = I;
|
|
256
252
|
}
|
|
257
253
|
e();
|
|
258
254
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var l =
|
|
262
|
-
`),
|
|
263
|
-
`), E = l.length - 1, _ =
|
|
255
|
+
} catch (I) {
|
|
256
|
+
if (I && n && typeof I.stack == "string") {
|
|
257
|
+
for (var l = I.stack.split(`
|
|
258
|
+
`), C = n.stack.split(`
|
|
259
|
+
`), E = l.length - 1, _ = C.length - 1; E >= 1 && _ >= 0 && l[E] !== C[_]; )
|
|
264
260
|
_--;
|
|
265
261
|
for (; E >= 1 && _ >= 0; E--, _--)
|
|
266
|
-
if (l[E] !==
|
|
262
|
+
if (l[E] !== C[_]) {
|
|
267
263
|
if (E !== 1 || _ !== 1)
|
|
268
264
|
do
|
|
269
|
-
if (E--, _--, _ < 0 || l[E] !==
|
|
270
|
-
var
|
|
265
|
+
if (E--, _--, _ < 0 || l[E] !== C[_]) {
|
|
266
|
+
var S = `
|
|
271
267
|
` + l[E].replace(" at new ", " at ");
|
|
272
|
-
return e.displayName &&
|
|
268
|
+
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, S), S;
|
|
273
269
|
}
|
|
274
270
|
while (E >= 1 && _ >= 0);
|
|
275
271
|
break;
|
|
276
272
|
}
|
|
277
273
|
}
|
|
278
274
|
} finally {
|
|
279
|
-
|
|
275
|
+
Z = !1, H.current = g, Xe(), Error.prepareStackTrace = d;
|
|
280
276
|
}
|
|
281
|
-
var $ = e ? e.displayName || e.name : "",
|
|
282
|
-
return typeof e == "function" &&
|
|
277
|
+
var $ = e ? e.displayName || e.name : "", F = $ ? U($) : "";
|
|
278
|
+
return typeof e == "function" && B.set(e, F), F;
|
|
283
279
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
280
|
+
function Qe(e, r, t) {
|
|
281
|
+
return me(e, !1);
|
|
286
282
|
}
|
|
287
|
-
function
|
|
283
|
+
function er(e) {
|
|
288
284
|
var r = e.prototype;
|
|
289
285
|
return !!(r && r.isReactComponent);
|
|
290
286
|
}
|
|
291
|
-
function
|
|
287
|
+
function J(e, r, t) {
|
|
292
288
|
if (e == null)
|
|
293
289
|
return "";
|
|
294
290
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
291
|
+
return me(e, er(e));
|
|
296
292
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
293
|
+
return U(e);
|
|
298
294
|
switch (e) {
|
|
299
295
|
case y:
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
296
|
+
return U("Suspense");
|
|
297
|
+
case b:
|
|
298
|
+
return U("SuspenseList");
|
|
303
299
|
}
|
|
304
300
|
if (typeof e == "object")
|
|
305
301
|
switch (e.$$typeof) {
|
|
306
302
|
case a:
|
|
307
|
-
return
|
|
308
|
-
case
|
|
309
|
-
return
|
|
303
|
+
return Qe(e.render);
|
|
304
|
+
case c:
|
|
305
|
+
return J(e.type, r, t);
|
|
310
306
|
case j: {
|
|
311
|
-
var n = e,
|
|
307
|
+
var n = e, d = n._payload, g = n._init;
|
|
312
308
|
try {
|
|
313
|
-
return
|
|
309
|
+
return J(g(d), r, t);
|
|
314
310
|
} catch {
|
|
315
311
|
}
|
|
316
312
|
}
|
|
317
313
|
}
|
|
318
314
|
return "";
|
|
319
315
|
}
|
|
320
|
-
var
|
|
316
|
+
var Y = Object.prototype.hasOwnProperty, ge = {}, xe = D.ReactDebugCurrentFrame;
|
|
321
317
|
function G(e) {
|
|
322
318
|
if (e) {
|
|
323
|
-
var r = e._owner, t =
|
|
324
|
-
|
|
319
|
+
var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
|
|
320
|
+
xe.setExtraStackFrame(t);
|
|
325
321
|
} else
|
|
326
|
-
|
|
322
|
+
xe.setExtraStackFrame(null);
|
|
327
323
|
}
|
|
328
|
-
function
|
|
324
|
+
function rr(e, r, t, n, d) {
|
|
329
325
|
{
|
|
330
|
-
var g = Function.call.bind(
|
|
326
|
+
var g = Function.call.bind(Y);
|
|
331
327
|
for (var u in e)
|
|
332
328
|
if (g(e, u)) {
|
|
333
329
|
var l = void 0;
|
|
334
330
|
try {
|
|
335
331
|
if (typeof e[u] != "function") {
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
332
|
+
var C = 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`.");
|
|
333
|
+
throw C.name = "Invariant Violation", C;
|
|
338
334
|
}
|
|
339
335
|
l = e[u](r, u, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
336
|
} catch (E) {
|
|
341
337
|
l = E;
|
|
342
338
|
}
|
|
343
|
-
l && !(l instanceof Error) && (G(
|
|
339
|
+
l && !(l instanceof Error) && (G(d), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, u, typeof l), G(null)), l instanceof Error && !(l.message in ge) && (ge[l.message] = !0, G(d), T("Failed %s type: %s", t, l.message), G(null));
|
|
344
340
|
}
|
|
345
341
|
}
|
|
346
342
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
343
|
+
var tr = Array.isArray;
|
|
344
|
+
function Q(e) {
|
|
345
|
+
return tr(e);
|
|
350
346
|
}
|
|
351
|
-
function
|
|
347
|
+
function ar(e) {
|
|
352
348
|
{
|
|
353
349
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
350
|
return t;
|
|
355
351
|
}
|
|
356
352
|
}
|
|
357
|
-
function
|
|
353
|
+
function nr(e) {
|
|
358
354
|
try {
|
|
359
355
|
return he(e), !1;
|
|
360
356
|
} catch {
|
|
@@ -364,43 +360,43 @@ function Er() {
|
|
|
364
360
|
function he(e) {
|
|
365
361
|
return "" + e;
|
|
366
362
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
363
|
+
function ye(e) {
|
|
364
|
+
if (nr(e))
|
|
365
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(e)), he(e);
|
|
370
366
|
}
|
|
371
|
-
var
|
|
367
|
+
var L = D.ReactCurrentOwner, sr = {
|
|
372
368
|
key: !0,
|
|
373
369
|
ref: !0,
|
|
374
370
|
__self: !0,
|
|
375
371
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
372
|
+
}, Re, Ee, ee;
|
|
373
|
+
ee = {};
|
|
374
|
+
function ir(e) {
|
|
375
|
+
if (Y.call(e, "ref")) {
|
|
380
376
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
377
|
if (r && r.isReactWarning)
|
|
382
378
|
return !1;
|
|
383
379
|
}
|
|
384
380
|
return e.ref !== void 0;
|
|
385
381
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
382
|
+
function or(e) {
|
|
383
|
+
if (Y.call(e, "key")) {
|
|
388
384
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
385
|
if (r && r.isReactWarning)
|
|
390
386
|
return !1;
|
|
391
387
|
}
|
|
392
388
|
return e.key !== void 0;
|
|
393
389
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var t =
|
|
397
|
-
|
|
390
|
+
function lr(e, r) {
|
|
391
|
+
if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
|
|
392
|
+
var t = k(L.current.type);
|
|
393
|
+
ee[t] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(L.current.type), e.ref), ee[t] = !0);
|
|
398
394
|
}
|
|
399
395
|
}
|
|
400
|
-
function
|
|
396
|
+
function ur(e, r) {
|
|
401
397
|
{
|
|
402
398
|
var t = function() {
|
|
403
|
-
|
|
399
|
+
Re || (Re = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
400
|
};
|
|
405
401
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
402
|
get: t,
|
|
@@ -408,10 +404,10 @@ function Er() {
|
|
|
408
404
|
});
|
|
409
405
|
}
|
|
410
406
|
}
|
|
411
|
-
function
|
|
407
|
+
function cr(e, r) {
|
|
412
408
|
{
|
|
413
409
|
var t = function() {
|
|
414
|
-
|
|
410
|
+
Ee || (Ee = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
411
|
};
|
|
416
412
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
413
|
get: t,
|
|
@@ -419,10 +415,10 @@ function Er() {
|
|
|
419
415
|
});
|
|
420
416
|
}
|
|
421
417
|
}
|
|
422
|
-
var
|
|
418
|
+
var dr = function(e, r, t, n, d, g, u) {
|
|
423
419
|
var l = {
|
|
424
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
421
|
+
$$typeof: x,
|
|
426
422
|
// Built-in properties that belong on the element
|
|
427
423
|
type: e,
|
|
428
424
|
key: r,
|
|
@@ -445,44 +441,44 @@ function Er() {
|
|
|
445
441
|
configurable: !1,
|
|
446
442
|
enumerable: !1,
|
|
447
443
|
writable: !1,
|
|
448
|
-
value:
|
|
444
|
+
value: d
|
|
449
445
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
450
446
|
};
|
|
451
|
-
function
|
|
447
|
+
function fr(e, r, t, n, d) {
|
|
452
448
|
{
|
|
453
|
-
var g, u = {}, l = null,
|
|
454
|
-
t !== void 0 && (
|
|
449
|
+
var g, u = {}, l = null, C = null;
|
|
450
|
+
t !== void 0 && (ye(t), l = "" + t), or(r) && (ye(r.key), l = "" + r.key), ir(r) && (C = r.ref, lr(r, d));
|
|
455
451
|
for (g in r)
|
|
456
|
-
|
|
452
|
+
Y.call(r, g) && !sr.hasOwnProperty(g) && (u[g] = r[g]);
|
|
457
453
|
if (e && e.defaultProps) {
|
|
458
454
|
var E = e.defaultProps;
|
|
459
455
|
for (g in E)
|
|
460
456
|
u[g] === void 0 && (u[g] = E[g]);
|
|
461
457
|
}
|
|
462
|
-
if (l ||
|
|
458
|
+
if (l || C) {
|
|
463
459
|
var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
l &&
|
|
460
|
+
l && ur(u, _), C && cr(u, _);
|
|
465
461
|
}
|
|
466
|
-
return
|
|
462
|
+
return dr(e, l, C, d, n, L.current, u);
|
|
467
463
|
}
|
|
468
464
|
}
|
|
469
|
-
var
|
|
465
|
+
var re = D.ReactCurrentOwner, _e = D.ReactDebugCurrentFrame;
|
|
470
466
|
function A(e) {
|
|
471
467
|
if (e) {
|
|
472
|
-
var r = e._owner, t =
|
|
473
|
-
|
|
468
|
+
var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
|
|
469
|
+
_e.setExtraStackFrame(t);
|
|
474
470
|
} else
|
|
475
|
-
|
|
471
|
+
_e.setExtraStackFrame(null);
|
|
476
472
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
473
|
+
var te;
|
|
474
|
+
te = !1;
|
|
475
|
+
function ae(e) {
|
|
476
|
+
return typeof e == "object" && e !== null && e.$$typeof === x;
|
|
481
477
|
}
|
|
482
|
-
function
|
|
478
|
+
function je() {
|
|
483
479
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
480
|
+
if (re.current) {
|
|
481
|
+
var e = k(re.current.type);
|
|
486
482
|
if (e)
|
|
487
483
|
return `
|
|
488
484
|
|
|
@@ -491,13 +487,13 @@ Check the render method of \`` + e + "`.";
|
|
|
491
487
|
return "";
|
|
492
488
|
}
|
|
493
489
|
}
|
|
494
|
-
function
|
|
490
|
+
function pr(e) {
|
|
495
491
|
return "";
|
|
496
492
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
493
|
+
var we = {};
|
|
494
|
+
function vr(e) {
|
|
499
495
|
{
|
|
500
|
-
var r =
|
|
496
|
+
var r = je();
|
|
501
497
|
if (!r) {
|
|
502
498
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
499
|
t && (r = `
|
|
@@ -507,39 +503,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
507
503
|
return r;
|
|
508
504
|
}
|
|
509
505
|
}
|
|
510
|
-
function
|
|
506
|
+
function Te(e, r) {
|
|
511
507
|
{
|
|
512
508
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
509
|
return;
|
|
514
510
|
e._store.validated = !0;
|
|
515
|
-
var t =
|
|
516
|
-
if (
|
|
511
|
+
var t = vr(r);
|
|
512
|
+
if (we[t])
|
|
517
513
|
return;
|
|
518
|
-
|
|
514
|
+
we[t] = !0;
|
|
519
515
|
var n = "";
|
|
520
|
-
e && e._owner && e._owner !==
|
|
516
|
+
e && e._owner && e._owner !== re.current && (n = " It was passed a child from " + k(e._owner.type) + "."), A(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), A(null);
|
|
521
517
|
}
|
|
522
518
|
}
|
|
523
|
-
function
|
|
519
|
+
function Ce(e, r) {
|
|
524
520
|
{
|
|
525
521
|
if (typeof e != "object")
|
|
526
522
|
return;
|
|
527
|
-
if (
|
|
523
|
+
if (Q(e))
|
|
528
524
|
for (var t = 0; t < e.length; t++) {
|
|
529
525
|
var n = e[t];
|
|
530
|
-
|
|
526
|
+
ae(n) && Te(n, r);
|
|
531
527
|
}
|
|
532
|
-
else if (
|
|
528
|
+
else if (ae(e))
|
|
533
529
|
e._store && (e._store.validated = !0);
|
|
534
530
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var g =
|
|
538
|
-
|
|
531
|
+
var d = Ye(e);
|
|
532
|
+
if (typeof d == "function" && d !== e.entries)
|
|
533
|
+
for (var g = d.call(e), u; !(u = g.next()).done; )
|
|
534
|
+
ae(u.value) && Te(u.value, r);
|
|
539
535
|
}
|
|
540
536
|
}
|
|
541
537
|
}
|
|
542
|
-
function
|
|
538
|
+
function br(e) {
|
|
543
539
|
{
|
|
544
540
|
var r = e.type;
|
|
545
541
|
if (r == null || typeof r == "string")
|
|
@@ -549,22 +545,22 @@ Check the top-level render call using <` + t + ">.");
|
|
|
549
545
|
t = r.propTypes;
|
|
550
546
|
else if (typeof r == "object" && (r.$$typeof === a || // Note: Memo only checks outer props here.
|
|
551
547
|
// Inner props are checked in the reconciler.
|
|
552
|
-
r.$$typeof ===
|
|
548
|
+
r.$$typeof === c))
|
|
553
549
|
t = r.propTypes;
|
|
554
550
|
else
|
|
555
551
|
return;
|
|
556
552
|
if (t) {
|
|
557
|
-
var n =
|
|
558
|
-
|
|
559
|
-
} else if (r.PropTypes !== void 0 && !
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
553
|
+
var n = k(r);
|
|
554
|
+
rr(t, e.props, "prop", n, e);
|
|
555
|
+
} else if (r.PropTypes !== void 0 && !te) {
|
|
556
|
+
te = !0;
|
|
557
|
+
var d = k(r);
|
|
558
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
|
|
563
559
|
}
|
|
564
560
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
561
|
}
|
|
566
562
|
}
|
|
567
|
-
function
|
|
563
|
+
function mr(e) {
|
|
568
564
|
{
|
|
569
565
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
570
566
|
var n = r[t];
|
|
@@ -576,69 +572,72 @@ Check the top-level render call using <` + t + ">.");
|
|
|
576
572
|
e.ref !== null && (A(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
577
573
|
}
|
|
578
574
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
575
|
+
var Ie = {};
|
|
576
|
+
function Se(e, r, t, n, d, g) {
|
|
581
577
|
{
|
|
582
|
-
var u =
|
|
578
|
+
var u = Ge(e);
|
|
583
579
|
if (!u) {
|
|
584
580
|
var l = "";
|
|
585
581
|
(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.");
|
|
586
|
-
var
|
|
587
|
-
|
|
582
|
+
var C = pr();
|
|
583
|
+
C ? l += C : l += je();
|
|
588
584
|
var E;
|
|
589
|
-
e === null ? E = "null" :
|
|
585
|
+
e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === x ? (E = "<" + (k(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, l);
|
|
590
586
|
}
|
|
591
|
-
var _ =
|
|
587
|
+
var _ = fr(e, r, t, d, g);
|
|
592
588
|
if (_ == null)
|
|
593
589
|
return _;
|
|
594
590
|
if (u) {
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
591
|
+
var S = r.children;
|
|
592
|
+
if (S !== void 0)
|
|
597
593
|
if (n)
|
|
598
|
-
if (
|
|
599
|
-
for (var $ = 0; $ <
|
|
600
|
-
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
594
|
+
if (Q(S)) {
|
|
595
|
+
for (var $ = 0; $ < S.length; $++)
|
|
596
|
+
Ce(S[$], e);
|
|
597
|
+
Object.freeze && Object.freeze(S);
|
|
602
598
|
} else
|
|
603
599
|
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
600
|
else
|
|
605
|
-
|
|
601
|
+
Ce(S, e);
|
|
606
602
|
}
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
609
|
-
return
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
612
|
-
var
|
|
603
|
+
if (Y.call(r, "key")) {
|
|
604
|
+
var F = k(e), I = Object.keys(r).filter(function(Er) {
|
|
605
|
+
return Er !== "key";
|
|
606
|
+
}), ne = I.length > 0 ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!Ie[F + ne]) {
|
|
608
|
+
var Rr = I.length > 0 ? "{" + I.join(": ..., ") + ": ...}" : "{}";
|
|
613
609
|
T(`A props object containing a "key" prop is being spread into JSX:
|
|
614
610
|
let props = %s;
|
|
615
611
|
<%s {...props} />
|
|
616
612
|
React keys must be passed directly to JSX without using spread:
|
|
617
613
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, ne, F, Rr, F), Ie[F + ne] = !0;
|
|
619
615
|
}
|
|
620
616
|
}
|
|
621
|
-
return e ===
|
|
617
|
+
return e === h ? mr(_) : br(_), _;
|
|
622
618
|
}
|
|
623
619
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
620
|
+
function gr(e, r, t) {
|
|
621
|
+
return Se(e, r, t, !0);
|
|
626
622
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
623
|
+
function xr(e, r, t) {
|
|
624
|
+
return Se(e, r, t, !1);
|
|
629
625
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
}()),
|
|
626
|
+
var hr = xr, yr = gr;
|
|
627
|
+
z.Fragment = h, z.jsx = hr, z.jsxs = yr;
|
|
628
|
+
}()), z;
|
|
633
629
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
630
|
+
var Ne;
|
|
631
|
+
function wr() {
|
|
632
|
+
return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? K.exports = _r() : K.exports = jr()), K.exports;
|
|
633
|
+
}
|
|
634
|
+
var s = wr();
|
|
635
|
+
const M = (...f) => f.filter(Boolean).join(" "), N = R.createContext({
|
|
637
636
|
helperTextId: "",
|
|
638
637
|
errorMessageId: "",
|
|
639
638
|
isInvalid: !1,
|
|
640
639
|
isRequired: !1
|
|
641
|
-
}),
|
|
640
|
+
}), Oe = `
|
|
642
641
|
bg-white
|
|
643
642
|
border
|
|
644
643
|
border-solid
|
|
@@ -651,7 +650,7 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
|
|
|
651
650
|
disabled:text-sumi-500
|
|
652
651
|
disabled:border-sumi-500
|
|
653
652
|
aria-invalid:border-sun-800
|
|
654
|
-
`,
|
|
653
|
+
`, Fe = {
|
|
655
654
|
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
|
|
656
655
|
lg: `
|
|
657
656
|
p-4
|
|
@@ -675,13 +674,13 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
|
|
|
675
674
|
rounded-md
|
|
676
675
|
leading-snug
|
|
677
676
|
`
|
|
678
|
-
},
|
|
677
|
+
}, qe = `
|
|
679
678
|
inline-block
|
|
680
679
|
cursor-pointer
|
|
681
680
|
border
|
|
682
681
|
border-solid
|
|
683
682
|
border-transparent
|
|
684
|
-
`,
|
|
683
|
+
`, De = {
|
|
685
684
|
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
|
|
686
685
|
lg: `
|
|
687
686
|
pr-8
|
|
@@ -703,13 +702,13 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
|
|
|
703
702
|
text-label
|
|
704
703
|
leading-snug
|
|
705
704
|
`
|
|
706
|
-
},
|
|
705
|
+
}, Ae = {
|
|
707
706
|
lg: "w-[22px] h-[22px] mr-2",
|
|
708
707
|
md: "w-[18px] h-[18px] mr-1.5",
|
|
709
708
|
sm: "w-[18px] h-[18px] mr-1"
|
|
710
|
-
},
|
|
711
|
-
(
|
|
712
|
-
const { id: m, className:
|
|
709
|
+
}, $e = R.forwardRef(
|
|
710
|
+
(f, x) => {
|
|
711
|
+
const { id: m, className: h, size: p = "lg", children: v, ...i } = f, o = m || R.useId(), a = R.useContext(N);
|
|
713
712
|
a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
|
|
714
713
|
const y = {
|
|
715
714
|
lg: 22 / 24,
|
|
@@ -720,10 +719,10 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
|
|
|
720
719
|
"label",
|
|
721
720
|
{
|
|
722
721
|
htmlFor: o,
|
|
723
|
-
className:
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
722
|
+
className: M(
|
|
723
|
+
qe,
|
|
724
|
+
De[p],
|
|
725
|
+
h
|
|
727
726
|
),
|
|
728
727
|
children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
729
728
|
/* @__PURE__ */ s.jsx(
|
|
@@ -740,10 +739,10 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
|
|
|
740
739
|
"aria-invalid": a.isInvalid ?? !1,
|
|
741
740
|
"aria-required": a.isRequired ?? !1,
|
|
742
741
|
...i,
|
|
743
|
-
ref:
|
|
742
|
+
ref: x
|
|
744
743
|
}
|
|
745
744
|
),
|
|
746
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
745
|
+
/* @__PURE__ */ s.jsx("span", { className: M(`
|
|
747
746
|
bg-clip-content
|
|
748
747
|
rounded
|
|
749
748
|
border
|
|
@@ -756,8 +755,8 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
|
|
|
756
755
|
peer-disabled:border-sumi-500
|
|
757
756
|
peer-focus-visible:ring-2
|
|
758
757
|
peer-focus-visible:ring-offset-2
|
|
759
|
-
peer-focus-visible:ring-wood-
|
|
760
|
-
`,
|
|
758
|
+
peer-focus-visible:ring-wood-600
|
|
759
|
+
`, Ae[p]), children: /* @__PURE__ */ s.jsxs(
|
|
761
760
|
"svg",
|
|
762
761
|
{
|
|
763
762
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -771,21 +770,21 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
|
|
|
771
770
|
]
|
|
772
771
|
}
|
|
773
772
|
) }),
|
|
774
|
-
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children:
|
|
773
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: v })
|
|
775
774
|
] })
|
|
776
775
|
}
|
|
777
776
|
);
|
|
778
777
|
}
|
|
779
778
|
);
|
|
780
|
-
|
|
781
|
-
const
|
|
782
|
-
(
|
|
783
|
-
const { id: m, className:
|
|
779
|
+
$e.displayName = "Checkbox";
|
|
780
|
+
const q = (...f) => f.filter(Boolean).join(" "), Me = R.forwardRef(
|
|
781
|
+
(f, x) => {
|
|
782
|
+
const { id: m, className: h, size: p = "lg", children: v, ...i } = f, o = m || R.useId(), a = R.useContext(N);
|
|
784
783
|
a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
|
|
785
784
|
const y = `
|
|
786
785
|
peer
|
|
787
786
|
sr-only
|
|
788
|
-
`,
|
|
787
|
+
`, b = `
|
|
789
788
|
bg-clip-content
|
|
790
789
|
rounded-full
|
|
791
790
|
border
|
|
@@ -796,8 +795,8 @@ const Ae = R.forwardRef(
|
|
|
796
795
|
peer-disabled:border-sumi-500
|
|
797
796
|
peer-focus-visible:ring-2
|
|
798
797
|
peer-focus-visible:ring-offset-2
|
|
799
|
-
peer-focus-visible:ring-wood-
|
|
800
|
-
`,
|
|
798
|
+
peer-focus-visible:ring-wood-600
|
|
799
|
+
`, c = {
|
|
801
800
|
lg: "p-1",
|
|
802
801
|
md: "p-[3px]",
|
|
803
802
|
sm: "p-[3px]"
|
|
@@ -806,10 +805,10 @@ const Ae = R.forwardRef(
|
|
|
806
805
|
"label",
|
|
807
806
|
{
|
|
808
807
|
htmlFor: o,
|
|
809
|
-
className:
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
808
|
+
className: q(
|
|
809
|
+
qe,
|
|
810
|
+
De[p],
|
|
811
|
+
h
|
|
813
812
|
),
|
|
814
813
|
children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
815
814
|
/* @__PURE__ */ s.jsx(
|
|
@@ -823,49 +822,49 @@ const Ae = R.forwardRef(
|
|
|
823
822
|
"aria-invalid": a.isInvalid ?? !1,
|
|
824
823
|
"aria-required": a.isRequired ?? !1,
|
|
825
824
|
...i,
|
|
826
|
-
ref:
|
|
825
|
+
ref: x
|
|
827
826
|
}
|
|
828
827
|
),
|
|
829
828
|
/* @__PURE__ */ s.jsx(
|
|
830
829
|
"span",
|
|
831
830
|
{
|
|
832
831
|
"aria-hidden": !0,
|
|
833
|
-
className:
|
|
832
|
+
className: q(b, c[p], Ae[p])
|
|
834
833
|
}
|
|
835
834
|
),
|
|
836
|
-
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children:
|
|
835
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: v })
|
|
837
836
|
] })
|
|
838
837
|
}
|
|
839
838
|
);
|
|
840
839
|
}
|
|
841
840
|
);
|
|
842
|
-
|
|
843
|
-
const
|
|
844
|
-
(
|
|
845
|
-
const { id: m, className:
|
|
841
|
+
Me.displayName = "Radio";
|
|
842
|
+
const Or = R.forwardRef(
|
|
843
|
+
(f, x) => {
|
|
844
|
+
const { id: m, className: h, size: p = "lg", children: v, ...i } = f, o = R.useContext(N);
|
|
846
845
|
return o.isRequired && (i.required = !0), /* @__PURE__ */ s.jsxs("div", { className: "inline-block relative", children: [
|
|
847
846
|
/* @__PURE__ */ s.jsx(
|
|
848
847
|
"select",
|
|
849
848
|
{
|
|
850
849
|
id: m || o.id,
|
|
851
|
-
className:
|
|
850
|
+
className: q(
|
|
852
851
|
`
|
|
853
852
|
!pr-8
|
|
854
853
|
peer
|
|
855
854
|
cursor-pointer
|
|
856
855
|
appearance-none
|
|
857
856
|
`,
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
857
|
+
Oe,
|
|
858
|
+
Fe[p],
|
|
859
|
+
f.className
|
|
861
860
|
),
|
|
862
861
|
"aria-describedby": o.helperTextId,
|
|
863
862
|
"aria-errormessage": o.errorMessageId,
|
|
864
863
|
"aria-invalid": o.isInvalid ?? !1,
|
|
865
864
|
"aria-required": o.isRequired ?? !1,
|
|
866
865
|
...i,
|
|
867
|
-
ref:
|
|
868
|
-
children:
|
|
866
|
+
ref: x,
|
|
867
|
+
children: v
|
|
869
868
|
}
|
|
870
869
|
),
|
|
871
870
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -900,10 +899,10 @@ const Pr = R.forwardRef(
|
|
|
900
899
|
)
|
|
901
900
|
] });
|
|
902
901
|
}
|
|
903
|
-
),
|
|
904
|
-
(
|
|
905
|
-
const { id: m, className:
|
|
906
|
-
i.isRequired && (
|
|
902
|
+
), Tr = R.forwardRef(
|
|
903
|
+
(f, x) => {
|
|
904
|
+
const { id: m, className: h, size: p = "lg", ...v } = f, i = R.useContext(N);
|
|
905
|
+
i.isRequired && (v.required = !0);
|
|
907
906
|
const o = `
|
|
908
907
|
file:mr-2
|
|
909
908
|
file:inline-block
|
|
@@ -938,7 +937,7 @@ const Pr = R.forwardRef(
|
|
|
938
937
|
focus:outline-2
|
|
939
938
|
focus:outline-wood-600
|
|
940
939
|
aria-invalid:text-sun-800
|
|
941
|
-
`,
|
|
940
|
+
`, b = {
|
|
942
941
|
// 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
|
|
943
942
|
lg: `
|
|
944
943
|
file:p-4
|
|
@@ -968,55 +967,55 @@ const Pr = R.forwardRef(
|
|
|
968
967
|
{
|
|
969
968
|
type: "file",
|
|
970
969
|
id: m || i.id,
|
|
971
|
-
className:
|
|
970
|
+
className: M(o, a, b[p], y, h),
|
|
972
971
|
"aria-describedby": i.helperTextId,
|
|
973
972
|
"aria-errormessage": i.errorMessageId,
|
|
974
973
|
"aria-invalid": i.isInvalid ?? !1,
|
|
975
974
|
"aria-required": i.isRequired ?? !1,
|
|
976
|
-
ref:
|
|
977
|
-
...
|
|
975
|
+
ref: x,
|
|
976
|
+
...v
|
|
978
977
|
}
|
|
979
978
|
);
|
|
980
979
|
}
|
|
981
980
|
);
|
|
982
|
-
|
|
983
|
-
const
|
|
984
|
-
(
|
|
985
|
-
const { id: m, className:
|
|
986
|
-
return i.isRequired && (
|
|
981
|
+
Tr.displayName = "FileInput";
|
|
982
|
+
const Cr = R.forwardRef(
|
|
983
|
+
(f, x) => {
|
|
984
|
+
const { id: m, className: h, size: p = "lg", ...v } = f, i = R.useContext(N);
|
|
985
|
+
return i.isRequired && (v.required = !0), /* @__PURE__ */ s.jsx(
|
|
987
986
|
"input",
|
|
988
987
|
{
|
|
989
988
|
type: "text",
|
|
990
989
|
id: m || i.id,
|
|
991
|
-
className:
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
990
|
+
className: q(
|
|
991
|
+
Oe,
|
|
992
|
+
Fe[p],
|
|
993
|
+
h
|
|
995
994
|
),
|
|
996
995
|
"aria-describedby": i.helperTextId,
|
|
997
996
|
"aria-errormessage": i.errorMessageId,
|
|
998
997
|
"aria-invalid": i.isInvalid ?? !1,
|
|
999
998
|
"aria-required": i.isRequired ?? !1,
|
|
1000
|
-
ref:
|
|
1001
|
-
...
|
|
999
|
+
ref: x,
|
|
1000
|
+
...v
|
|
1002
1001
|
}
|
|
1003
1002
|
);
|
|
1004
1003
|
}
|
|
1005
1004
|
);
|
|
1006
|
-
|
|
1007
|
-
const
|
|
1008
|
-
(
|
|
1009
|
-
const { id: m, className:
|
|
1010
|
-
|
|
1011
|
-
},
|
|
1012
|
-
|
|
1005
|
+
Cr.displayName = "Input";
|
|
1006
|
+
const Ir = R.forwardRef(
|
|
1007
|
+
(f, x) => {
|
|
1008
|
+
const { id: m, className: h, children: p, onChange: v, maxLength: i, ...o } = f, [a, y] = R.useState(0), b = (P) => {
|
|
1009
|
+
v && v(P), y(P.target.value.length);
|
|
1010
|
+
}, c = R.useContext(N);
|
|
1011
|
+
c.isRequired && (o.required = !0);
|
|
1013
1012
|
const j = a > (i || 0) ? "text-sun-800" : "text-sumi-700";
|
|
1014
1013
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1015
1014
|
/* @__PURE__ */ s.jsx(
|
|
1016
1015
|
"textarea",
|
|
1017
1016
|
{
|
|
1018
|
-
id: m ||
|
|
1019
|
-
className:
|
|
1017
|
+
id: m || c.id,
|
|
1018
|
+
className: q(`
|
|
1020
1019
|
p-4
|
|
1021
1020
|
text-label
|
|
1022
1021
|
rounded-lg
|
|
@@ -1031,14 +1030,14 @@ const wr = R.forwardRef(
|
|
|
1031
1030
|
disabled:text-sumi-500
|
|
1032
1031
|
disabled:border-sumi-500
|
|
1033
1032
|
aria-invalid:border-sun-800
|
|
1034
|
-
`,
|
|
1035
|
-
"aria-describedby":
|
|
1036
|
-
"aria-errormessage":
|
|
1037
|
-
"aria-invalid":
|
|
1038
|
-
"aria-required":
|
|
1039
|
-
onChange:
|
|
1033
|
+
`, h),
|
|
1034
|
+
"aria-describedby": c.helperTextId,
|
|
1035
|
+
"aria-errormessage": c.errorMessageId,
|
|
1036
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
1037
|
+
"aria-required": c.isRequired ?? !1,
|
|
1038
|
+
onChange: b,
|
|
1040
1039
|
...o,
|
|
1041
|
-
ref:
|
|
1040
|
+
ref: x,
|
|
1042
1041
|
children: p
|
|
1043
1042
|
}
|
|
1044
1043
|
),
|
|
@@ -1050,130 +1049,115 @@ const wr = R.forwardRef(
|
|
|
1050
1049
|
] });
|
|
1051
1050
|
}
|
|
1052
1051
|
);
|
|
1053
|
-
|
|
1054
|
-
const
|
|
1052
|
+
Ir.displayName = "Textarea";
|
|
1053
|
+
const Sr = R.forwardRef((f, x) => {
|
|
1055
1054
|
const m = R.useId(), {
|
|
1056
|
-
labelText:
|
|
1055
|
+
labelText: h,
|
|
1057
1056
|
className: p,
|
|
1058
|
-
helperText:
|
|
1057
|
+
helperText: v,
|
|
1059
1058
|
errorMessage: i,
|
|
1060
1059
|
isInvalid: o,
|
|
1061
1060
|
isRequired: a,
|
|
1062
1061
|
children: y,
|
|
1063
|
-
...
|
|
1064
|
-
} =
|
|
1065
|
-
id:
|
|
1062
|
+
...b
|
|
1063
|
+
} = f, c = {
|
|
1064
|
+
id: f.htmlFor ?? `input-${m}`,
|
|
1066
1065
|
helperTextId: `helper-text-${m}`,
|
|
1067
1066
|
errorMessageId: `error-message-${m}`,
|
|
1068
1067
|
isInvalid: o ?? !1,
|
|
1069
1068
|
isRequired: a ?? !1
|
|
1070
1069
|
};
|
|
1071
|
-
return /* @__PURE__ */ s.jsx(
|
|
1070
|
+
return /* @__PURE__ */ s.jsx(N.Provider, { value: c, children: /* @__PURE__ */ s.jsxs("div", { className: q("flex flex-col gap-2", p), children: [
|
|
1072
1071
|
/* @__PURE__ */ s.jsxs(
|
|
1073
1072
|
"label",
|
|
1074
1073
|
{
|
|
1075
|
-
className:
|
|
1076
|
-
htmlFor:
|
|
1077
|
-
ref:
|
|
1078
|
-
...
|
|
1074
|
+
className: q("block text-label", o && "text-sun-800"),
|
|
1075
|
+
htmlFor: c.id,
|
|
1076
|
+
ref: x,
|
|
1077
|
+
...b,
|
|
1079
1078
|
children: [
|
|
1080
|
-
|
|
1079
|
+
h,
|
|
1081
1080
|
a && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
|
|
1082
1081
|
]
|
|
1083
1082
|
}
|
|
1084
1083
|
),
|
|
1085
|
-
|
|
1084
|
+
v && /* @__PURE__ */ s.jsx("p", { id: c.helperTextId, className: `
|
|
1086
1085
|
text-label text-sumi-700
|
|
1087
|
-
`,
|
|
1086
|
+
`, children: v }),
|
|
1088
1087
|
y,
|
|
1089
|
-
o && /* @__PURE__ */ s.jsx(
|
|
1090
|
-
"p",
|
|
1091
|
-
{
|
|
1092
|
-
id: d.errorMessageId,
|
|
1093
|
-
className: C(`
|
|
1088
|
+
o && /* @__PURE__ */ s.jsx("p", { id: c.errorMessageId, className: `
|
|
1094
1089
|
text-label text-sun-800
|
|
1095
|
-
`,
|
|
1096
|
-
children: i
|
|
1097
|
-
}
|
|
1098
|
-
)
|
|
1090
|
+
`, children: i })
|
|
1099
1091
|
] }) });
|
|
1100
1092
|
});
|
|
1101
|
-
|
|
1102
|
-
const
|
|
1093
|
+
Sr.displayName = "LabelControl";
|
|
1094
|
+
const se = R.forwardRef((f, x) => {
|
|
1103
1095
|
const m = R.useId(), {
|
|
1104
|
-
labelText:
|
|
1096
|
+
labelText: h,
|
|
1105
1097
|
className: p,
|
|
1106
|
-
helperText:
|
|
1098
|
+
helperText: v,
|
|
1107
1099
|
errorMessage: i,
|
|
1108
1100
|
isInvalid: o,
|
|
1109
1101
|
isRequired: a,
|
|
1110
1102
|
direction: y,
|
|
1111
|
-
children:
|
|
1112
|
-
...
|
|
1113
|
-
} =
|
|
1114
|
-
groupName:
|
|
1103
|
+
children: b,
|
|
1104
|
+
...c
|
|
1105
|
+
} = f, w = {
|
|
1106
|
+
groupName: c.name ?? `group-${m}`,
|
|
1115
1107
|
helperTextId: `helper-text-${m}`,
|
|
1116
1108
|
errorMessageId: `error-message-${m}`,
|
|
1117
1109
|
isInvalid: o ?? !1,
|
|
1118
1110
|
isRequired: a ?? !1
|
|
1119
|
-
},
|
|
1120
|
-
return /* @__PURE__ */ s.jsx(
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1111
|
+
}, P = y ?? "flex-col";
|
|
1112
|
+
return /* @__PURE__ */ s.jsx(N.Provider, { value: w, children: /* @__PURE__ */ s.jsxs(
|
|
1113
|
+
"fieldset",
|
|
1114
|
+
{
|
|
1115
|
+
className: M("flex flex-col gap-2", p),
|
|
1116
|
+
ref: x,
|
|
1117
|
+
...c,
|
|
1118
|
+
children: [
|
|
1119
|
+
/* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs("p", { className: M("block text-label", o && "text-sun-800"), children: [
|
|
1120
|
+
h,
|
|
1127
1121
|
a && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
1128
|
-
]
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
{
|
|
1136
|
-
id: w.errorMessageId,
|
|
1137
|
-
className: C(
|
|
1138
|
-
"text-label text-sun-800",
|
|
1139
|
-
c ? "mt-1" : "mt-2"
|
|
1140
|
-
),
|
|
1141
|
-
children: i
|
|
1142
|
-
}
|
|
1143
|
-
)
|
|
1144
|
-
] }) });
|
|
1122
|
+
] }) }),
|
|
1123
|
+
/* @__PURE__ */ s.jsx("div", { className: M("inline-flex", P), children: b }),
|
|
1124
|
+
v && /* @__PURE__ */ s.jsx("p", { id: w.helperTextId, className: "text-sup text-sumi-700", children: v }),
|
|
1125
|
+
o && /* @__PURE__ */ s.jsx("p", { id: w.errorMessageId, className: "text-label text-sun-800", children: i })
|
|
1126
|
+
]
|
|
1127
|
+
}
|
|
1128
|
+
) });
|
|
1145
1129
|
});
|
|
1146
|
-
|
|
1147
|
-
const
|
|
1130
|
+
se.displayName = "FieldsetControl";
|
|
1131
|
+
const Pr = R.forwardRef((f, x) => {
|
|
1148
1132
|
const {
|
|
1149
1133
|
items: m,
|
|
1150
|
-
onChange:
|
|
1134
|
+
onChange: h,
|
|
1151
1135
|
className: p,
|
|
1152
|
-
labelText:
|
|
1136
|
+
labelText: v,
|
|
1153
1137
|
helperText: i,
|
|
1154
1138
|
errorMessage: o,
|
|
1155
1139
|
isInvalid: a,
|
|
1156
1140
|
isRequired: y,
|
|
1157
|
-
size:
|
|
1158
|
-
...
|
|
1159
|
-
} =
|
|
1141
|
+
size: b,
|
|
1142
|
+
...c
|
|
1143
|
+
} = f;
|
|
1160
1144
|
return /* @__PURE__ */ s.jsx(
|
|
1161
|
-
|
|
1145
|
+
se,
|
|
1162
1146
|
{
|
|
1163
1147
|
className: p,
|
|
1164
|
-
labelText:
|
|
1148
|
+
labelText: v,
|
|
1165
1149
|
helperText: i,
|
|
1166
1150
|
errorMessage: o,
|
|
1167
1151
|
isInvalid: a,
|
|
1168
1152
|
isRequired: y,
|
|
1169
|
-
ref:
|
|
1170
|
-
...
|
|
1153
|
+
ref: x,
|
|
1154
|
+
...c,
|
|
1171
1155
|
children: m.map(({ label: j, value: w }) => /* @__PURE__ */ s.jsx(
|
|
1172
|
-
|
|
1156
|
+
$e,
|
|
1173
1157
|
{
|
|
1174
|
-
size:
|
|
1158
|
+
size: b,
|
|
1175
1159
|
value: w,
|
|
1176
|
-
onChange:
|
|
1160
|
+
onChange: h,
|
|
1177
1161
|
children: j
|
|
1178
1162
|
},
|
|
1179
1163
|
`${j}-${w}`
|
|
@@ -1181,56 +1165,56 @@ const Cr = R.forwardRef((b, h) => {
|
|
|
1181
1165
|
}
|
|
1182
1166
|
);
|
|
1183
1167
|
});
|
|
1184
|
-
|
|
1185
|
-
const
|
|
1168
|
+
Pr.displayName = "CheckboxGroup";
|
|
1169
|
+
const kr = R.forwardRef((f, x) => {
|
|
1186
1170
|
const {
|
|
1187
1171
|
items: m,
|
|
1188
|
-
onChange:
|
|
1172
|
+
onChange: h,
|
|
1189
1173
|
className: p,
|
|
1190
|
-
labelText:
|
|
1174
|
+
labelText: v,
|
|
1191
1175
|
helperText: i,
|
|
1192
1176
|
errorMessage: o,
|
|
1193
1177
|
isInvalid: a,
|
|
1194
1178
|
isRequired: y,
|
|
1195
|
-
defaultValue:
|
|
1196
|
-
size:
|
|
1179
|
+
defaultValue: b,
|
|
1180
|
+
size: c,
|
|
1197
1181
|
...j
|
|
1198
|
-
} =
|
|
1182
|
+
} = f;
|
|
1199
1183
|
return /* @__PURE__ */ s.jsx(
|
|
1200
|
-
|
|
1184
|
+
se,
|
|
1201
1185
|
{
|
|
1202
1186
|
className: p,
|
|
1203
|
-
labelText:
|
|
1187
|
+
labelText: v,
|
|
1204
1188
|
helperText: i,
|
|
1205
1189
|
errorMessage: o,
|
|
1206
1190
|
isInvalid: a,
|
|
1207
1191
|
isRequired: y,
|
|
1208
|
-
ref:
|
|
1192
|
+
ref: x,
|
|
1209
1193
|
...j,
|
|
1210
|
-
children: m.map(({ label: w, value:
|
|
1211
|
-
|
|
1194
|
+
children: m.map(({ label: w, value: P }) => /* @__PURE__ */ s.jsx(
|
|
1195
|
+
Me,
|
|
1212
1196
|
{
|
|
1213
|
-
size:
|
|
1214
|
-
value:
|
|
1215
|
-
onChange:
|
|
1216
|
-
defaultChecked:
|
|
1197
|
+
size: c,
|
|
1198
|
+
value: P,
|
|
1199
|
+
onChange: h,
|
|
1200
|
+
defaultChecked: b === P,
|
|
1217
1201
|
children: w
|
|
1218
1202
|
},
|
|
1219
|
-
`${w}-${
|
|
1203
|
+
`${w}-${P}`
|
|
1220
1204
|
))
|
|
1221
1205
|
}
|
|
1222
1206
|
);
|
|
1223
1207
|
});
|
|
1224
|
-
|
|
1208
|
+
kr.displayName = "RadioGroup";
|
|
1225
1209
|
export {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1210
|
+
$e as Checkbox,
|
|
1211
|
+
Pr as CheckboxGroup,
|
|
1212
|
+
se as FieldsetControl,
|
|
1213
|
+
Tr as FileInput,
|
|
1214
|
+
Cr as Input,
|
|
1215
|
+
Sr as LabelControl,
|
|
1216
|
+
Me as Radio,
|
|
1217
|
+
kr as RadioGroup,
|
|
1218
|
+
Or as Select,
|
|
1219
|
+
Ir as Textarea
|
|
1236
1220
|
};
|