@sakura-ui/forms 0.2.0 → 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.cjs.js +53 -41
- package/dist/index.es.js +483 -478
- package/dist/types/components/FieldsetControl.d.ts.map +1 -1
- package/dist/types/components/FileInput.d.ts +3 -1
- package/dist/types/components/FileInput.d.ts.map +1 -1
- package/dist/types/components/LabelControl.d.ts.map +1 -1
- package/package.json +12 -9
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import R from "react";
|
|
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: {} }, Y = {};
|
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
|
|
23
|
-
if (o && o.defaultProps)
|
|
24
|
-
for (h in a = o.defaultProps, a)
|
|
25
|
-
d[h] === void 0 && (d[h] = a[h]);
|
|
26
|
-
return { $$typeof: g, type: o, key: j, ref: w, props: d, _owner: f.current };
|
|
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 };
|
|
17
|
+
function i(o, a, y) {
|
|
18
|
+
var b, c = {}, j = null, w = null;
|
|
19
|
+
y !== void 0 && (j = "" + y), a.key !== void 0 && (j = "" + a.key), a.ref !== void 0 && (w = a.ref);
|
|
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
|
-
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
56
|
+
var n = D.ReactDebugCurrentFrame, d = n.getStackAddendum();
|
|
57
|
+
d !== "" && (r += "%s", t = t.concat([d]));
|
|
58
|
+
var g = t.map(function(u) {
|
|
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
|
-
case
|
|
93
|
+
case m:
|
|
98
94
|
return "Portal";
|
|
99
|
-
case
|
|
95
|
+
case v:
|
|
100
96
|
return "Profiler";
|
|
101
|
-
case
|
|
97
|
+
case p:
|
|
102
98
|
return "StrictMode";
|
|
103
|
-
case
|
|
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,254 +149,254 @@ 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
|
|
190
|
+
var H = D.ReactCurrentDispatcher, X;
|
|
195
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
|
-
var
|
|
226
|
-
|
|
221
|
+
var g;
|
|
222
|
+
g = H.current, H.current = null, He();
|
|
227
223
|
try {
|
|
228
224
|
if (r) {
|
|
229
|
-
var
|
|
225
|
+
var u = function() {
|
|
230
226
|
throw Error();
|
|
231
227
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(u.prototype, "props", {
|
|
233
229
|
set: function() {
|
|
234
230
|
throw Error();
|
|
235
231
|
}
|
|
236
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
233
|
try {
|
|
238
|
-
Reflect.construct(
|
|
239
|
-
} catch (
|
|
240
|
-
n =
|
|
234
|
+
Reflect.construct(u, []);
|
|
235
|
+
} catch (I) {
|
|
236
|
+
n = I;
|
|
241
237
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], u);
|
|
243
239
|
} else {
|
|
244
240
|
try {
|
|
245
|
-
|
|
246
|
-
} catch (
|
|
247
|
-
n =
|
|
241
|
+
u.call();
|
|
242
|
+
} catch (I) {
|
|
243
|
+
n = I;
|
|
248
244
|
}
|
|
249
|
-
e.call(
|
|
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
293
|
return U(e);
|
|
298
294
|
switch (e) {
|
|
299
|
-
case
|
|
295
|
+
case y:
|
|
300
296
|
return U("Suspense");
|
|
301
|
-
case
|
|
297
|
+
case b:
|
|
302
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
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
326
|
+
var g = Function.call.bind(Y);
|
|
327
|
+
for (var u in e)
|
|
328
|
+
if (g(e, u)) {
|
|
333
329
|
var l = void 0;
|
|
334
330
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
331
|
+
if (typeof e[u] != "function") {
|
|
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
|
-
l = e[
|
|
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
|
-
return
|
|
355
|
+
return he(e), !1;
|
|
360
356
|
} catch {
|
|
361
357
|
return !0;
|
|
362
358
|
}
|
|
363
359
|
}
|
|
364
|
-
function
|
|
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 L = D.ReactCurrentOwner,
|
|
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
|
|
390
|
+
function lr(e, r) {
|
|
395
391
|
if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
|
|
396
|
-
var t =
|
|
397
|
-
|
|
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,17 +415,17 @@ 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,
|
|
429
425
|
ref: t,
|
|
430
|
-
props:
|
|
426
|
+
props: u,
|
|
431
427
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
428
|
+
_owner: g
|
|
433
429
|
};
|
|
434
430
|
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
435
431
|
configurable: !1,
|
|
@@ -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
|
|
454
|
-
t !== void 0 && (
|
|
455
|
-
for (
|
|
456
|
-
|
|
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));
|
|
451
|
+
for (g in r)
|
|
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
|
-
for (
|
|
460
|
-
|
|
455
|
+
for (g in E)
|
|
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
|
|
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
|
|
583
|
-
if (!
|
|
578
|
+
var u = Ge(e);
|
|
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
|
-
if (
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
590
|
+
if (u) {
|
|
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 hr =
|
|
631
|
-
|
|
632
|
-
}()),
|
|
626
|
+
var hr = xr, yr = gr;
|
|
627
|
+
z.Fragment = h, z.jsx = hr, z.jsxs = yr;
|
|
628
|
+
}()), z;
|
|
629
|
+
}
|
|
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
633
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
|
|
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 = (...v) => v.filter(Boolean).join(" "), O = y.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 = (...v) => v.filter(Boolean).join(" "), O = y.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,15 +702,15 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.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:
|
|
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
|
-
const
|
|
713
|
+
const y = {
|
|
715
714
|
lg: 22 / 24,
|
|
716
715
|
md: 18 / 24,
|
|
717
716
|
sm: 18 / 24
|
|
@@ -720,10 +719,10 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.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 = (...v) => v.filter(Boolean).join(" "), O = y.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 = (...v) => v.filter(Boolean).join(" "), O = y.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",
|
|
@@ -767,25 +766,25 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
|
|
|
767
766
|
viewBox: "0 0 24 24",
|
|
768
767
|
children: [
|
|
769
768
|
/* @__PURE__ */ s.jsx("title", { children: "check" }),
|
|
770
|
-
/* @__PURE__ */ s.jsx("g", { transform: `scale(${
|
|
769
|
+
/* @__PURE__ */ s.jsx("g", { transform: `scale(${y[p]} ${y[p]})`, children: /* @__PURE__ */ s.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
|
|
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:
|
|
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
|
-
const
|
|
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 = y.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,66 +805,66 @@ const Ae = y.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(
|
|
816
815
|
"input",
|
|
817
816
|
{
|
|
818
817
|
id: o,
|
|
819
|
-
className:
|
|
818
|
+
className: y,
|
|
820
819
|
type: "radio",
|
|
821
820
|
"aria-describedby": a.helperTextId,
|
|
822
821
|
"aria-errormessage": a.errorMessageId,
|
|
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:
|
|
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
|
-
id:
|
|
851
|
-
className:
|
|
849
|
+
id: m || o.id,
|
|
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,15 +899,11 @@ const Pr = y.forwardRef(
|
|
|
900
899
|
)
|
|
901
900
|
] });
|
|
902
901
|
}
|
|
903
|
-
),
|
|
904
|
-
(
|
|
905
|
-
const { id:
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
{
|
|
909
|
-
type: "file",
|
|
910
|
-
id: b || u.id,
|
|
911
|
-
className: C(`
|
|
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);
|
|
906
|
+
const o = `
|
|
912
907
|
file:mr-2
|
|
913
908
|
file:inline-block
|
|
914
909
|
file:text-button
|
|
@@ -919,26 +914,21 @@ const Pr = y.forwardRef(
|
|
|
919
914
|
file:whitespace-nowrap
|
|
920
915
|
file:border
|
|
921
916
|
file:border-solid
|
|
922
|
-
file:border-
|
|
923
|
-
file:
|
|
924
|
-
file:
|
|
917
|
+
file:border-blue-900
|
|
918
|
+
file:hover:border-blue-1000
|
|
919
|
+
file:active:border-blue-1200
|
|
925
920
|
file:disabled:border-sumi-500
|
|
926
921
|
file:disabled:cursor-not-allowed
|
|
927
|
-
`, `
|
|
928
|
-
file:text-sea-
|
|
929
|
-
file:
|
|
930
|
-
file:active:bg-sea-200
|
|
931
|
-
file:hover:bg-sea-100
|
|
922
|
+
`, a = `
|
|
923
|
+
file:text-sea-900
|
|
924
|
+
file:hover:text-sea-1000
|
|
932
925
|
file:active:text-sea-1200
|
|
933
|
-
file:
|
|
926
|
+
file:bg-transparent
|
|
927
|
+
file:hover:bg-sea-200
|
|
928
|
+
file:active:bg-sea-300
|
|
934
929
|
file:disabled:text-sumi-500
|
|
935
930
|
file:disabled:bg-transparent
|
|
936
|
-
`, `
|
|
937
|
-
file:p-4
|
|
938
|
-
file:text-button
|
|
939
|
-
file:rounded-lg
|
|
940
|
-
file:leading-snug
|
|
941
|
-
`, `
|
|
931
|
+
`, y = `
|
|
942
932
|
text-label
|
|
943
933
|
text-sumi-900
|
|
944
934
|
rounded-lg
|
|
@@ -947,55 +937,85 @@ const Pr = y.forwardRef(
|
|
|
947
937
|
focus:outline-2
|
|
948
938
|
focus:outline-wood-600
|
|
949
939
|
aria-invalid:text-sun-800
|
|
950
|
-
`,
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
940
|
+
`, b = {
|
|
941
|
+
// 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
|
|
942
|
+
lg: `
|
|
943
|
+
file:p-4
|
|
944
|
+
file:text-button
|
|
945
|
+
file:rounded-lg
|
|
946
|
+
file:leading-snug
|
|
947
|
+
`,
|
|
948
|
+
// 12(py-3) * 2 + 22(text-button * leading-snug) + boader * 2 = 48px
|
|
949
|
+
md: `
|
|
950
|
+
file:px-4
|
|
951
|
+
file:py-3
|
|
952
|
+
file:text-button
|
|
953
|
+
file:rounded-lg
|
|
954
|
+
file:leading-snug
|
|
955
|
+
`,
|
|
956
|
+
// 8(py-2) * 2 + 22(text-button * leading-snug) + boader * 2 = 40px
|
|
957
|
+
sm: `
|
|
958
|
+
file:px-3
|
|
959
|
+
file:py-2
|
|
960
|
+
file:text-button
|
|
961
|
+
file:rounded-md
|
|
962
|
+
file:leading-snug
|
|
963
|
+
`
|
|
964
|
+
};
|
|
965
|
+
return /* @__PURE__ */ s.jsx(
|
|
966
|
+
"input",
|
|
967
|
+
{
|
|
968
|
+
type: "file",
|
|
969
|
+
id: m || i.id,
|
|
970
|
+
className: M(o, a, b[p], y, h),
|
|
971
|
+
"aria-describedby": i.helperTextId,
|
|
972
|
+
"aria-errormessage": i.errorMessageId,
|
|
973
|
+
"aria-invalid": i.isInvalid ?? !1,
|
|
974
|
+
"aria-required": i.isRequired ?? !1,
|
|
975
|
+
ref: x,
|
|
976
|
+
...v
|
|
957
977
|
}
|
|
958
978
|
);
|
|
959
979
|
}
|
|
960
980
|
);
|
|
961
|
-
|
|
962
|
-
const
|
|
963
|
-
(
|
|
964
|
-
const { id:
|
|
965
|
-
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(
|
|
966
986
|
"input",
|
|
967
987
|
{
|
|
968
988
|
type: "text",
|
|
969
|
-
id:
|
|
970
|
-
className:
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
989
|
+
id: m || i.id,
|
|
990
|
+
className: q(
|
|
991
|
+
Oe,
|
|
992
|
+
Fe[p],
|
|
993
|
+
h
|
|
974
994
|
),
|
|
975
995
|
"aria-describedby": i.helperTextId,
|
|
976
996
|
"aria-errormessage": i.errorMessageId,
|
|
977
997
|
"aria-invalid": i.isInvalid ?? !1,
|
|
978
998
|
"aria-required": i.isRequired ?? !1,
|
|
979
|
-
ref:
|
|
980
|
-
...
|
|
999
|
+
ref: x,
|
|
1000
|
+
...v
|
|
981
1001
|
}
|
|
982
1002
|
);
|
|
983
1003
|
}
|
|
984
1004
|
);
|
|
985
|
-
|
|
986
|
-
const
|
|
987
|
-
(
|
|
988
|
-
const { id:
|
|
989
|
-
|
|
990
|
-
},
|
|
991
|
-
|
|
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);
|
|
992
1012
|
const j = a > (i || 0) ? "text-sun-800" : "text-sumi-700";
|
|
993
1013
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
994
1014
|
/* @__PURE__ */ s.jsx(
|
|
995
1015
|
"textarea",
|
|
996
1016
|
{
|
|
997
|
-
id:
|
|
998
|
-
className:
|
|
1017
|
+
id: m || c.id,
|
|
1018
|
+
className: q(`
|
|
999
1019
|
p-4
|
|
1000
1020
|
text-label
|
|
1001
1021
|
rounded-lg
|
|
@@ -1010,15 +1030,15 @@ const wr = y.forwardRef(
|
|
|
1010
1030
|
disabled:text-sumi-500
|
|
1011
1031
|
disabled:border-sumi-500
|
|
1012
1032
|
aria-invalid:border-sun-800
|
|
1013
|
-
`,
|
|
1014
|
-
"aria-describedby":
|
|
1015
|
-
"aria-errormessage":
|
|
1016
|
-
"aria-invalid":
|
|
1017
|
-
"aria-required":
|
|
1018
|
-
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,
|
|
1019
1039
|
...o,
|
|
1020
|
-
ref:
|
|
1021
|
-
children:
|
|
1040
|
+
ref: x,
|
|
1041
|
+
children: p
|
|
1022
1042
|
}
|
|
1023
1043
|
),
|
|
1024
1044
|
i ? /* @__PURE__ */ s.jsxs("p", { className: "text-label text-sumi-700", children: [
|
|
@@ -1029,130 +1049,115 @@ const wr = y.forwardRef(
|
|
|
1029
1049
|
] });
|
|
1030
1050
|
}
|
|
1031
1051
|
);
|
|
1032
|
-
|
|
1033
|
-
const
|
|
1034
|
-
const
|
|
1035
|
-
labelText:
|
|
1036
|
-
className:
|
|
1037
|
-
helperText:
|
|
1052
|
+
Ir.displayName = "Textarea";
|
|
1053
|
+
const Sr = R.forwardRef((f, x) => {
|
|
1054
|
+
const m = R.useId(), {
|
|
1055
|
+
labelText: h,
|
|
1056
|
+
className: p,
|
|
1057
|
+
helperText: v,
|
|
1038
1058
|
errorMessage: i,
|
|
1039
1059
|
isInvalid: o,
|
|
1040
1060
|
isRequired: a,
|
|
1041
|
-
children:
|
|
1042
|
-
...
|
|
1043
|
-
} =
|
|
1044
|
-
id:
|
|
1045
|
-
helperTextId: `helper-text-${
|
|
1046
|
-
errorMessageId: `error-message-${
|
|
1061
|
+
children: y,
|
|
1062
|
+
...b
|
|
1063
|
+
} = f, c = {
|
|
1064
|
+
id: f.htmlFor ?? `input-${m}`,
|
|
1065
|
+
helperTextId: `helper-text-${m}`,
|
|
1066
|
+
errorMessageId: `error-message-${m}`,
|
|
1047
1067
|
isInvalid: o ?? !1,
|
|
1048
1068
|
isRequired: a ?? !1
|
|
1049
1069
|
};
|
|
1050
|
-
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: [
|
|
1051
1071
|
/* @__PURE__ */ s.jsxs(
|
|
1052
1072
|
"label",
|
|
1053
1073
|
{
|
|
1054
|
-
className:
|
|
1055
|
-
htmlFor:
|
|
1056
|
-
ref:
|
|
1057
|
-
...
|
|
1074
|
+
className: q("block text-label", o && "text-sun-800"),
|
|
1075
|
+
htmlFor: c.id,
|
|
1076
|
+
ref: x,
|
|
1077
|
+
...b,
|
|
1058
1078
|
children: [
|
|
1059
|
-
|
|
1079
|
+
h,
|
|
1060
1080
|
a && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
|
|
1061
1081
|
]
|
|
1062
1082
|
}
|
|
1063
1083
|
),
|
|
1064
|
-
|
|
1084
|
+
v && /* @__PURE__ */ s.jsx("p", { id: c.helperTextId, className: `
|
|
1065
1085
|
text-label text-sumi-700
|
|
1066
|
-
`,
|
|
1067
|
-
|
|
1068
|
-
o && /* @__PURE__ */ s.jsx(
|
|
1069
|
-
"p",
|
|
1070
|
-
{
|
|
1071
|
-
id: d.errorMessageId,
|
|
1072
|
-
className: C(`
|
|
1086
|
+
`, children: v }),
|
|
1087
|
+
y,
|
|
1088
|
+
o && /* @__PURE__ */ s.jsx("p", { id: c.errorMessageId, className: `
|
|
1073
1089
|
text-label text-sun-800
|
|
1074
|
-
`,
|
|
1075
|
-
children: i
|
|
1076
|
-
}
|
|
1077
|
-
)
|
|
1090
|
+
`, children: i })
|
|
1078
1091
|
] }) });
|
|
1079
1092
|
});
|
|
1080
|
-
|
|
1081
|
-
const
|
|
1082
|
-
const
|
|
1083
|
-
labelText:
|
|
1084
|
-
className:
|
|
1085
|
-
helperText:
|
|
1093
|
+
Sr.displayName = "LabelControl";
|
|
1094
|
+
const se = R.forwardRef((f, x) => {
|
|
1095
|
+
const m = R.useId(), {
|
|
1096
|
+
labelText: h,
|
|
1097
|
+
className: p,
|
|
1098
|
+
helperText: v,
|
|
1086
1099
|
errorMessage: i,
|
|
1087
1100
|
isInvalid: o,
|
|
1088
1101
|
isRequired: a,
|
|
1089
|
-
direction:
|
|
1090
|
-
children:
|
|
1091
|
-
...
|
|
1092
|
-
} =
|
|
1093
|
-
groupName:
|
|
1094
|
-
helperTextId: `helper-text-${
|
|
1095
|
-
errorMessageId: `error-message-${
|
|
1102
|
+
direction: y,
|
|
1103
|
+
children: b,
|
|
1104
|
+
...c
|
|
1105
|
+
} = f, w = {
|
|
1106
|
+
groupName: c.name ?? `group-${m}`,
|
|
1107
|
+
helperTextId: `helper-text-${m}`,
|
|
1108
|
+
errorMessageId: `error-message-${m}`,
|
|
1096
1109
|
isInvalid: o ?? !1,
|
|
1097
1110
|
isRequired: a ?? !1
|
|
1098
|
-
},
|
|
1099
|
-
return /* @__PURE__ */ s.jsx(
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
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,
|
|
1106
1121
|
a && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
1107
|
-
]
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
{
|
|
1115
|
-
id: w.errorMessageId,
|
|
1116
|
-
className: C(
|
|
1117
|
-
"text-label text-sun-800",
|
|
1118
|
-
u ? "mt-1" : "mt-2"
|
|
1119
|
-
),
|
|
1120
|
-
children: i
|
|
1121
|
-
}
|
|
1122
|
-
)
|
|
1123
|
-
] }) });
|
|
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
|
+
) });
|
|
1124
1129
|
});
|
|
1125
|
-
|
|
1126
|
-
const
|
|
1130
|
+
se.displayName = "FieldsetControl";
|
|
1131
|
+
const Pr = R.forwardRef((f, x) => {
|
|
1127
1132
|
const {
|
|
1128
|
-
items:
|
|
1129
|
-
onChange:
|
|
1130
|
-
className:
|
|
1131
|
-
labelText:
|
|
1133
|
+
items: m,
|
|
1134
|
+
onChange: h,
|
|
1135
|
+
className: p,
|
|
1136
|
+
labelText: v,
|
|
1132
1137
|
helperText: i,
|
|
1133
1138
|
errorMessage: o,
|
|
1134
1139
|
isInvalid: a,
|
|
1135
|
-
isRequired:
|
|
1136
|
-
size:
|
|
1137
|
-
...
|
|
1138
|
-
} =
|
|
1140
|
+
isRequired: y,
|
|
1141
|
+
size: b,
|
|
1142
|
+
...c
|
|
1143
|
+
} = f;
|
|
1139
1144
|
return /* @__PURE__ */ s.jsx(
|
|
1140
|
-
|
|
1145
|
+
se,
|
|
1141
1146
|
{
|
|
1142
|
-
className:
|
|
1143
|
-
labelText:
|
|
1147
|
+
className: p,
|
|
1148
|
+
labelText: v,
|
|
1144
1149
|
helperText: i,
|
|
1145
1150
|
errorMessage: o,
|
|
1146
1151
|
isInvalid: a,
|
|
1147
|
-
isRequired:
|
|
1148
|
-
ref:
|
|
1149
|
-
...
|
|
1150
|
-
children:
|
|
1151
|
-
|
|
1152
|
+
isRequired: y,
|
|
1153
|
+
ref: x,
|
|
1154
|
+
...c,
|
|
1155
|
+
children: m.map(({ label: j, value: w }) => /* @__PURE__ */ s.jsx(
|
|
1156
|
+
$e,
|
|
1152
1157
|
{
|
|
1153
|
-
size:
|
|
1158
|
+
size: b,
|
|
1154
1159
|
value: w,
|
|
1155
|
-
onChange:
|
|
1160
|
+
onChange: h,
|
|
1156
1161
|
children: j
|
|
1157
1162
|
},
|
|
1158
1163
|
`${j}-${w}`
|
|
@@ -1160,56 +1165,56 @@ const Cr = y.forwardRef((v, g) => {
|
|
|
1160
1165
|
}
|
|
1161
1166
|
);
|
|
1162
1167
|
});
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1168
|
+
Pr.displayName = "CheckboxGroup";
|
|
1169
|
+
const kr = R.forwardRef((f, x) => {
|
|
1165
1170
|
const {
|
|
1166
|
-
items:
|
|
1167
|
-
onChange:
|
|
1168
|
-
className:
|
|
1169
|
-
labelText:
|
|
1171
|
+
items: m,
|
|
1172
|
+
onChange: h,
|
|
1173
|
+
className: p,
|
|
1174
|
+
labelText: v,
|
|
1170
1175
|
helperText: i,
|
|
1171
1176
|
errorMessage: o,
|
|
1172
1177
|
isInvalid: a,
|
|
1173
|
-
isRequired:
|
|
1174
|
-
defaultValue:
|
|
1175
|
-
size:
|
|
1178
|
+
isRequired: y,
|
|
1179
|
+
defaultValue: b,
|
|
1180
|
+
size: c,
|
|
1176
1181
|
...j
|
|
1177
|
-
} =
|
|
1182
|
+
} = f;
|
|
1178
1183
|
return /* @__PURE__ */ s.jsx(
|
|
1179
|
-
|
|
1184
|
+
se,
|
|
1180
1185
|
{
|
|
1181
|
-
className:
|
|
1182
|
-
labelText:
|
|
1186
|
+
className: p,
|
|
1187
|
+
labelText: v,
|
|
1183
1188
|
helperText: i,
|
|
1184
1189
|
errorMessage: o,
|
|
1185
1190
|
isInvalid: a,
|
|
1186
|
-
isRequired:
|
|
1187
|
-
ref:
|
|
1191
|
+
isRequired: y,
|
|
1192
|
+
ref: x,
|
|
1188
1193
|
...j,
|
|
1189
|
-
children:
|
|
1190
|
-
|
|
1194
|
+
children: m.map(({ label: w, value: P }) => /* @__PURE__ */ s.jsx(
|
|
1195
|
+
Me,
|
|
1191
1196
|
{
|
|
1192
|
-
size:
|
|
1193
|
-
value:
|
|
1194
|
-
onChange:
|
|
1195
|
-
defaultChecked:
|
|
1197
|
+
size: c,
|
|
1198
|
+
value: P,
|
|
1199
|
+
onChange: h,
|
|
1200
|
+
defaultChecked: b === P,
|
|
1196
1201
|
children: w
|
|
1197
1202
|
},
|
|
1198
|
-
`${w}-${
|
|
1203
|
+
`${w}-${P}`
|
|
1199
1204
|
))
|
|
1200
1205
|
}
|
|
1201
1206
|
);
|
|
1202
1207
|
});
|
|
1203
|
-
|
|
1208
|
+
kr.displayName = "RadioGroup";
|
|
1204
1209
|
export {
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
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
|
|
1215
1220
|
};
|