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