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