@sakura-ui/sakura-ui 0.1.16 → 0.1.17
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/package.json +1 -1
- package/packages/config/package.json +2 -1
- package/packages/config/src/index.ts +8 -0
- package/packages/core/package.json +2 -1
- package/packages/core/src/components/Button.tsx +23 -56
- package/packages/core/src/components/Card.tsx +14 -14
- package/packages/core/src/components/Code.tsx +1 -1
- package/packages/core/src/components/Faq.tsx +3 -5
- package/packages/core/src/components/Heading.tsx +1 -1
- package/packages/core/src/components/Icon.tsx +2 -6
- package/packages/core/src/components/IconButton.tsx +47 -76
- package/packages/core/src/components/InfoCard.tsx +1 -1
- package/packages/core/src/components/Link.tsx +53 -44
- package/packages/core/src/components/List.tsx +1 -1
- package/packages/core/src/components/Pre.tsx +1 -1
- package/packages/core/src/components/Table.tsx +1 -1
- package/packages/core/src/components/buttonStyle.ts +83 -0
- package/packages/core/src/components/index.ts +24 -7
- package/packages/core/src/index.ts +26 -0
- package/packages/core/src/libs/forward-ref.ts +41 -0
- package/packages/core/src/types/component.ts +82 -0
- package/packages/forms/dist/components/Checkbox.d.ts.map +1 -1
- package/packages/forms/dist/components/Checkbox.js +26 -23
- package/packages/forms/dist/components/Checkbox.js.map +1 -1
- package/packages/forms/dist/components/FileInput.d.ts +5 -0
- package/packages/forms/dist/components/FileInput.d.ts.map +1 -0
- package/packages/forms/dist/components/FileInput.js +51 -0
- package/packages/forms/dist/components/FileInput.js.map +1 -0
- package/packages/forms/dist/components/Input.d.ts.map +1 -1
- package/packages/forms/dist/components/Input.js +1 -0
- package/packages/forms/dist/components/Input.js.map +1 -1
- package/packages/forms/dist/components/LabelControl.d.ts.map +1 -1
- package/packages/forms/dist/components/LabelControl.js +7 -1
- package/packages/forms/dist/components/LabelControl.js.map +1 -1
- package/packages/forms/dist/components/Radio.d.ts.map +1 -1
- package/packages/forms/dist/components/Radio.js +25 -23
- package/packages/forms/dist/components/Radio.js.map +1 -1
- package/packages/forms/dist/components/Select.d.ts.map +1 -1
- package/packages/forms/dist/components/Select.js +1 -0
- package/packages/forms/dist/components/Select.js.map +1 -1
- package/packages/forms/dist/components/Textarea.d.ts.map +1 -1
- package/packages/forms/dist/components/Textarea.js +1 -0
- package/packages/forms/dist/components/Textarea.js.map +1 -1
- package/packages/forms/dist/components/index.d.ts +8 -7
- package/packages/forms/dist/components/index.d.ts.map +1 -1
- package/packages/forms/dist/components/index.js +1 -0
- package/packages/forms/dist/components/index.js.map +1 -1
- package/packages/forms/dist/index.cjs.js +103 -59
- package/packages/forms/dist/index.cjs.js.map +1 -1
- package/packages/forms/dist/index.d.ts +2 -1
- package/packages/forms/dist/index.d.ts.map +1 -1
- package/packages/forms/dist/index.es.js +383 -313
- package/packages/forms/dist/index.es.js.map +1 -1
- package/packages/forms/dist/index.js +1 -1
- package/packages/forms/dist/index.js.map +1 -1
- package/packages/forms/package.json +2 -1
- package/packages/forms/src/components/Checkbox.tsx +26 -23
- package/packages/forms/src/components/FileInput.tsx +77 -0
- package/packages/forms/src/components/Input.tsx +1 -0
- package/packages/forms/src/components/LabelControl.tsx +13 -6
- package/packages/forms/src/components/Radio.tsx +27 -23
- package/packages/forms/src/components/Select.tsx +1 -0
- package/packages/forms/src/components/Textarea.tsx +1 -0
- package/packages/forms/src/components/index.ts +8 -7
- package/packages/forms/src/index.ts +12 -0
- /package/packages/core/src/{utils/class.ts → libs/cx.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from "react";
|
|
2
2
|
var re = { exports: {} }, W = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -9,23 +9,23 @@ 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
|
|
12
|
+
var Ie;
|
|
13
13
|
function vr() {
|
|
14
|
-
if (
|
|
14
|
+
if (Ie)
|
|
15
15
|
return W;
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
var h,
|
|
20
|
-
_ !== void 0 && (
|
|
16
|
+
Ie = 1;
|
|
17
|
+
var f = g, b = Symbol.for("react.element"), m = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function p(c, o, _) {
|
|
19
|
+
var h, y = {}, j = null, T = null;
|
|
20
|
+
_ !== void 0 && (j = "" + _), o.key !== void 0 && (j = "" + o.key), o.ref !== void 0 && (T = o.ref);
|
|
21
21
|
for (h in o)
|
|
22
|
-
|
|
22
|
+
u.call(o, h) && !a.hasOwnProperty(h) && (y[h] = o[h]);
|
|
23
23
|
if (c && c.defaultProps)
|
|
24
24
|
for (h in o = c.defaultProps, o)
|
|
25
|
-
|
|
26
|
-
return { $$typeof: b, type: c, key:
|
|
25
|
+
y[h] === void 0 && (y[h] = o[h]);
|
|
26
|
+
return { $$typeof: b, type: c, key: j, ref: T, props: y, _owner: n.current };
|
|
27
27
|
}
|
|
28
|
-
return W.Fragment = m, W.jsx =
|
|
28
|
+
return W.Fragment = m, W.jsx = p, W.jsxs = p, W;
|
|
29
29
|
}
|
|
30
30
|
var Y = {};
|
|
31
31
|
/**
|
|
@@ -37,30 +37,30 @@ var Y = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var Ne;
|
|
41
41
|
function mr() {
|
|
42
|
-
return
|
|
43
|
-
var
|
|
42
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var f = g, b = Symbol.for("react.element"), m = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, ke = "@@iterator";
|
|
44
44
|
function Fe(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = P && e[P] || e[ke];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var D =
|
|
51
|
-
function
|
|
50
|
+
var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function w(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
54
|
-
t[
|
|
53
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
54
|
+
t[i - 1] = arguments[i];
|
|
55
55
|
De("error", e, t);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function De(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var x = t.map(function(
|
|
63
|
-
return String(
|
|
60
|
+
var i = D.ReactDebugCurrentFrame, v = i.getStackAddendum();
|
|
61
|
+
v !== "" && (r += "%s", t = t.concat([v]));
|
|
62
|
+
var x = t.map(function(d) {
|
|
63
|
+
return String(d);
|
|
64
64
|
});
|
|
65
65
|
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
66
66
|
}
|
|
@@ -68,18 +68,18 @@ function mr() {
|
|
|
68
68
|
var Ae = !1, Me = !1, $e = !1, qe = !1, We = !1, ne;
|
|
69
69
|
ne = Symbol.for("react.module.reference");
|
|
70
70
|
function Ye(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === a || We || e === n || e === _ || e === h || qe || e === T || Ae || Me || $e || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === p || e.$$typeof === c || e.$$typeof === o || // 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
75
|
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function Le(e, r, t) {
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
var i = e.displayName;
|
|
79
|
+
if (i)
|
|
80
|
+
return i;
|
|
81
|
+
var v = r.displayName || r.name || "";
|
|
82
|
+
return v !== "" ? t + "(" + v + ")" : t;
|
|
83
83
|
}
|
|
84
84
|
function se(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
@@ -87,18 +87,18 @@ function mr() {
|
|
|
87
87
|
function S(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && w("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 u:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case m:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case a:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case n:
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case _:
|
|
104
104
|
return "Suspense";
|
|
@@ -110,18 +110,18 @@ function mr() {
|
|
|
110
110
|
case c:
|
|
111
111
|
var r = e;
|
|
112
112
|
return se(r) + ".Consumer";
|
|
113
|
-
case
|
|
113
|
+
case p:
|
|
114
114
|
var t = e;
|
|
115
115
|
return se(t._context) + ".Provider";
|
|
116
116
|
case o:
|
|
117
117
|
return Le(e, e.render, "ForwardRef");
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
118
|
+
case y:
|
|
119
|
+
var i = e.displayName || null;
|
|
120
|
+
return i !== null ? i : S(e.type) || "Memo";
|
|
121
|
+
case j: {
|
|
122
|
+
var v = e, x = v._payload, d = v._init;
|
|
123
123
|
try {
|
|
124
|
-
return S(
|
|
124
|
+
return S(d(x));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,7 +129,7 @@ function mr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var F = Object.assign, $ = 0, ie, oe, le, ue, ce, de, fe;
|
|
133
133
|
function pe() {
|
|
134
134
|
}
|
|
135
135
|
pe.__reactDisabledLog = !0;
|
|
@@ -165,30 +165,30 @@ function mr() {
|
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: F({}, e, {
|
|
169
169
|
value: ie
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: F({}, e, {
|
|
172
172
|
value: oe
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: F({}, e, {
|
|
175
175
|
value: le
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: F({}, e, {
|
|
178
178
|
value: ue
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: F({}, e, {
|
|
181
181
|
value: ce
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
183
|
+
groupCollapsed: F({}, e, {
|
|
184
184
|
value: de
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
186
|
+
groupEnd: F({}, e, {
|
|
187
187
|
value: fe
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
$ < 0 &&
|
|
191
|
+
$ < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var J = D.ReactCurrentDispatcher, z;
|
|
@@ -197,9 +197,9 @@ function mr() {
|
|
|
197
197
|
if (z === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
z =
|
|
200
|
+
} catch (v) {
|
|
201
|
+
var i = v.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
z = i && i[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
205
|
` + z + e;
|
|
@@ -218,55 +218,55 @@ function mr() {
|
|
|
218
218
|
if (t !== void 0)
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var i;
|
|
222
222
|
H = !0;
|
|
223
|
-
var
|
|
223
|
+
var v = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var x;
|
|
226
226
|
x = J.current, J.current = null, Ve();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var d = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(d.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(d, []);
|
|
239
239
|
} catch (O) {
|
|
240
|
-
|
|
240
|
+
i = O;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], d);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
d.call();
|
|
246
246
|
} catch (O) {
|
|
247
|
-
|
|
247
|
+
i = O;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(d.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (O) {
|
|
255
|
-
|
|
255
|
+
i = O;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
259
|
} catch (O) {
|
|
260
|
-
if (O &&
|
|
260
|
+
if (O && i && typeof O.stack == "string") {
|
|
261
261
|
for (var l = O.stack.split(`
|
|
262
|
-
`),
|
|
263
|
-
`), R = l.length - 1, E =
|
|
262
|
+
`), C = i.stack.split(`
|
|
263
|
+
`), R = l.length - 1, E = C.length - 1; R >= 1 && E >= 0 && l[R] !== C[E]; )
|
|
264
264
|
E--;
|
|
265
265
|
for (; R >= 1 && E >= 0; R--, E--)
|
|
266
|
-
if (l[R] !==
|
|
266
|
+
if (l[R] !== C[E]) {
|
|
267
267
|
if (R !== 1 || E !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (R--, E--, E < 0 || l[R] !==
|
|
269
|
+
if (R--, E--, E < 0 || l[R] !== C[E]) {
|
|
270
270
|
var N = `
|
|
271
271
|
` + l[R].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, N), N;
|
|
@@ -276,7 +276,7 @@ function mr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
H = !1, J.current = x, Ue(), Error.prepareStackTrace =
|
|
279
|
+
H = !1, J.current = x, Ue(), Error.prepareStackTrace = v;
|
|
280
280
|
}
|
|
281
281
|
var M = e ? e.displayName || e.name : "", Ce = M ? L(M) : "";
|
|
282
282
|
return typeof e == "function" && V.set(e, Ce), Ce;
|
|
@@ -305,42 +305,42 @@ function mr() {
|
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case o:
|
|
307
307
|
return Ge(e.render);
|
|
308
|
-
case
|
|
308
|
+
case y:
|
|
309
309
|
return U(e.type, r, t);
|
|
310
|
-
case
|
|
311
|
-
var
|
|
310
|
+
case j: {
|
|
311
|
+
var i = e, v = i._payload, x = i._init;
|
|
312
312
|
try {
|
|
313
|
-
return U(x(
|
|
313
|
+
return U(x(v), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var B = Object.prototype.hasOwnProperty, me = {},
|
|
320
|
+
var B = Object.prototype.hasOwnProperty, me = {}, be = D.ReactDebugCurrentFrame;
|
|
321
321
|
function G(e) {
|
|
322
322
|
if (e) {
|
|
323
323
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
324
|
-
|
|
324
|
+
be.setExtraStackFrame(t);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
be.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function ze(e, r, t,
|
|
328
|
+
function ze(e, r, t, i, v) {
|
|
329
329
|
{
|
|
330
330
|
var x = Function.call.bind(B);
|
|
331
|
-
for (var
|
|
332
|
-
if (x(e,
|
|
331
|
+
for (var d in e)
|
|
332
|
+
if (x(e, d)) {
|
|
333
333
|
var l = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
335
|
+
if (typeof e[d] != "function") {
|
|
336
|
+
var C = Error((i || "React class") + ": " + t + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw C.name = "Invariant Violation", C;
|
|
338
338
|
}
|
|
339
|
-
l = e[
|
|
339
|
+
l = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (R) {
|
|
341
341
|
l = R;
|
|
342
342
|
}
|
|
343
|
-
l && !(l instanceof Error) && (G(
|
|
343
|
+
l && !(l instanceof Error) && (G(v), w("%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).", i || "React class", t, d, typeof l), G(null)), l instanceof Error && !(l.message in me) && (me[l.message] = !0, G(v), w("Failed %s type: %s", t, l.message), G(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -356,17 +356,17 @@ function mr() {
|
|
|
356
356
|
}
|
|
357
357
|
function Xe(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return he(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function he(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
367
|
function xe(e) {
|
|
368
368
|
if (Xe(e))
|
|
369
|
-
return
|
|
369
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), he(e);
|
|
370
370
|
}
|
|
371
371
|
var q = D.ReactCurrentOwner, Ze = {
|
|
372
372
|
key: !0,
|
|
@@ -394,13 +394,13 @@ function mr() {
|
|
|
394
394
|
function rr(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
|
|
396
396
|
var t = S(q.current.type);
|
|
397
|
-
X[t] || (
|
|
397
|
+
X[t] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(q.current.type), e.ref), X[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function tr(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
ge || (ge = !0,
|
|
403
|
+
ge || (ge = !0, w("%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,
|
|
@@ -411,7 +411,7 @@ function mr() {
|
|
|
411
411
|
function ar(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
ye || (ye = !0,
|
|
414
|
+
ye || (ye = !0, w("%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,7 +419,7 @@ function mr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var nr = function(e, r, t,
|
|
422
|
+
var nr = function(e, r, t, i, v, x, d) {
|
|
423
423
|
var l = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: b,
|
|
@@ -427,7 +427,7 @@ function mr() {
|
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
429
|
ref: t,
|
|
430
|
-
props:
|
|
430
|
+
props: d,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: x
|
|
433
433
|
};
|
|
@@ -440,30 +440,30 @@ function mr() {
|
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
443
|
+
value: i
|
|
444
444
|
}), Object.defineProperty(l, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: v
|
|
449
449
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
450
450
|
};
|
|
451
|
-
function sr(e, r, t,
|
|
451
|
+
function sr(e, r, t, i, v) {
|
|
452
452
|
{
|
|
453
|
-
var x,
|
|
454
|
-
t !== void 0 && (xe(t), l = "" + t), er(r) && (xe(r.key), l = "" + r.key), Qe(r) && (
|
|
453
|
+
var x, d = {}, l = null, C = null;
|
|
454
|
+
t !== void 0 && (xe(t), l = "" + t), er(r) && (xe(r.key), l = "" + r.key), Qe(r) && (C = r.ref, rr(r, v));
|
|
455
455
|
for (x in r)
|
|
456
|
-
B.call(r, x) && !Ze.hasOwnProperty(x) && (
|
|
456
|
+
B.call(r, x) && !Ze.hasOwnProperty(x) && (d[x] = r[x]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var R = e.defaultProps;
|
|
459
459
|
for (x in R)
|
|
460
|
-
|
|
460
|
+
d[x] === void 0 && (d[x] = R[x]);
|
|
461
461
|
}
|
|
462
|
-
if (l ||
|
|
462
|
+
if (l || C) {
|
|
463
463
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
l && tr(
|
|
464
|
+
l && tr(d, E), C && ar(d, E);
|
|
465
465
|
}
|
|
466
|
-
return nr(e, l,
|
|
466
|
+
return nr(e, l, C, v, i, q.current, d);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var Z = D.ReactCurrentOwner, Re = D.ReactDebugCurrentFrame;
|
|
@@ -524,8 +524,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
if (_e[t])
|
|
525
525
|
return;
|
|
526
526
|
_e[t] = !0;
|
|
527
|
-
var
|
|
528
|
-
e && e._owner && e._owner !== Z.current && (
|
|
527
|
+
var i = "";
|
|
528
|
+
e && e._owner && e._owner !== Z.current && (i = " It was passed a child from " + S(e._owner.type) + "."), A(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), A(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function je(e, r) {
|
|
@@ -534,16 +534,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
534
534
|
return;
|
|
535
535
|
if (K(e))
|
|
536
536
|
for (var t = 0; t < e.length; t++) {
|
|
537
|
-
var
|
|
538
|
-
ee(
|
|
537
|
+
var i = e[t];
|
|
538
|
+
ee(i) && Te(i, r);
|
|
539
539
|
}
|
|
540
540
|
else if (ee(e))
|
|
541
541
|
e._store && (e._store.validated = !0);
|
|
542
542
|
else if (e) {
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
for (var x =
|
|
546
|
-
ee(
|
|
543
|
+
var v = Fe(e);
|
|
544
|
+
if (typeof v == "function" && v !== e.entries)
|
|
545
|
+
for (var x = v.call(e), d; !(d = x.next()).done; )
|
|
546
|
+
ee(d.value) && Te(d.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -557,61 +557,61 @@ Check the top-level render call using <` + t + ">.");
|
|
|
557
557
|
t = r.propTypes;
|
|
558
558
|
else if (typeof r == "object" && (r.$$typeof === o || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
|
-
r.$$typeof ===
|
|
560
|
+
r.$$typeof === y))
|
|
561
561
|
t = r.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (t) {
|
|
565
|
-
var
|
|
566
|
-
ze(t, e.props, "prop",
|
|
565
|
+
var i = S(r);
|
|
566
|
+
ze(t, e.props, "prop", i, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !Q) {
|
|
568
568
|
Q = !0;
|
|
569
|
-
var
|
|
570
|
-
|
|
569
|
+
var v = S(r);
|
|
570
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function ur(e) {
|
|
576
576
|
{
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
|
-
var
|
|
579
|
-
if (
|
|
580
|
-
A(e),
|
|
578
|
+
var i = r[t];
|
|
579
|
+
if (i !== "children" && i !== "key") {
|
|
580
|
+
A(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), A(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (A(e),
|
|
584
|
+
e.ref !== null && (A(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function we(e, r, t,
|
|
587
|
+
function we(e, r, t, i, v, x) {
|
|
588
588
|
{
|
|
589
|
-
var
|
|
590
|
-
if (!
|
|
589
|
+
var d = Ye(e);
|
|
590
|
+
if (!d) {
|
|
591
591
|
var l = "";
|
|
592
592
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
-
var
|
|
594
|
-
|
|
593
|
+
var C = ir(v);
|
|
594
|
+
C ? l += C : l += Ee();
|
|
595
595
|
var R;
|
|
596
|
-
e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof === b ? (R = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e,
|
|
596
|
+
e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof === b ? (R = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, l);
|
|
597
597
|
}
|
|
598
|
-
var E = sr(e, r, t,
|
|
598
|
+
var E = sr(e, r, t, v, x);
|
|
599
599
|
if (E == null)
|
|
600
600
|
return E;
|
|
601
|
-
if (
|
|
601
|
+
if (d) {
|
|
602
602
|
var N = r.children;
|
|
603
603
|
if (N !== void 0)
|
|
604
|
-
if (
|
|
604
|
+
if (i)
|
|
605
605
|
if (K(N)) {
|
|
606
606
|
for (var M = 0; M < N.length; M++)
|
|
607
607
|
je(N[M], e);
|
|
608
608
|
Object.freeze && Object.freeze(N);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
w("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
611
|
else
|
|
612
612
|
je(N, e);
|
|
613
613
|
}
|
|
614
|
-
return e ===
|
|
614
|
+
return e === u ? ur(E) : lr(E), E;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function cr(e, r, t) {
|
|
@@ -621,45 +621,48 @@ Check the top-level render call using <` + t + ">.");
|
|
|
621
621
|
return we(e, r, t, !1);
|
|
622
622
|
}
|
|
623
623
|
var fr = dr, pr = cr;
|
|
624
|
-
Y.Fragment =
|
|
624
|
+
Y.Fragment = u, Y.jsx = fr, Y.jsxs = pr;
|
|
625
625
|
}()), Y;
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? re.exports = vr() : re.exports = mr();
|
|
628
628
|
var s = re.exports;
|
|
629
|
-
const
|
|
629
|
+
const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
|
|
630
630
|
helperTextId: "",
|
|
631
631
|
errorMessageId: "",
|
|
632
632
|
isInvalid: !1,
|
|
633
633
|
isRequired: !1
|
|
634
|
-
}),
|
|
635
|
-
(
|
|
636
|
-
const { className: m, children:
|
|
637
|
-
a.isRequired && (
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
634
|
+
}), Pe = g.forwardRef(
|
|
635
|
+
(f, b) => {
|
|
636
|
+
const { className: m, children: u, ...n } = f, a = g.useContext(k);
|
|
637
|
+
a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
|
|
638
|
+
const p = `
|
|
639
|
+
inline-block
|
|
640
|
+
text-base
|
|
641
|
+
cursor-pointer
|
|
642
|
+
py-2
|
|
643
|
+
mr-4
|
|
644
|
+
`, c = `
|
|
645
|
+
peer
|
|
646
|
+
sr-only
|
|
647
|
+
`, o = `
|
|
648
|
+
bg-clip-content
|
|
649
|
+
w-6 h-6
|
|
650
|
+
ml-1
|
|
651
|
+
mr-2
|
|
652
|
+
rounded
|
|
653
|
+
border
|
|
654
|
+
border-solid
|
|
655
|
+
border-sumi-900
|
|
656
|
+
fill-transparent
|
|
657
|
+
peer-checked:fill-white-1000
|
|
658
|
+
peer-checked:bg-sea-600
|
|
659
|
+
peer-checked:border-none
|
|
660
|
+
peer-disabled:border-sumi-500
|
|
661
|
+
peer-focus-visible:ring-2
|
|
662
|
+
peer-focus-visible:ring-offset-2
|
|
663
|
+
peer-focus-visible:ring-wood-500
|
|
664
|
+
`;
|
|
665
|
+
return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: I(p, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
663
666
|
/* @__PURE__ */ s.jsx(
|
|
664
667
|
"input",
|
|
665
668
|
{
|
|
@@ -668,45 +671,47 @@ const P = (...p) => p.filter(Boolean).join(" "), F = y.createContext({
|
|
|
668
671
|
"aria-describedby": a.helperTextId,
|
|
669
672
|
"aria-errormessage": a.errorMessageId,
|
|
670
673
|
"aria-invalid": a.isInvalid ?? !1,
|
|
671
|
-
...
|
|
674
|
+
...n,
|
|
672
675
|
ref: b
|
|
673
676
|
}
|
|
674
677
|
),
|
|
675
678
|
/* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", 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" }) }) }),
|
|
676
|
-
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children:
|
|
679
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
|
|
677
680
|
] }) });
|
|
678
681
|
}
|
|
679
682
|
);
|
|
680
|
-
|
|
681
|
-
const Se =
|
|
682
|
-
(
|
|
683
|
-
const { className: m, children:
|
|
684
|
-
a.isRequired && (
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
683
|
+
Pe.displayName = "Checkbox";
|
|
684
|
+
const Se = g.forwardRef(
|
|
685
|
+
(f, b) => {
|
|
686
|
+
const { className: m, children: u, ...n } = f, a = g.useContext(k);
|
|
687
|
+
a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
|
|
688
|
+
const p = `
|
|
689
|
+
inline-block
|
|
690
|
+
text-base
|
|
691
|
+
cursor-pointer
|
|
692
|
+
py-2
|
|
693
|
+
mr-4
|
|
694
|
+
`, c = `
|
|
695
|
+
peer
|
|
696
|
+
sr-only
|
|
697
|
+
`, o = `
|
|
698
|
+
bg-clip-content
|
|
699
|
+
w-6 h-6
|
|
700
|
+
ml-1
|
|
701
|
+
mr-2
|
|
702
|
+
p-1
|
|
703
|
+
rounded-full
|
|
704
|
+
border
|
|
705
|
+
border-solid
|
|
706
|
+
border-sumi-900
|
|
707
|
+
peer-checked:bg-sea-600
|
|
708
|
+
peer-checked:border-sea-600
|
|
709
|
+
peer-disabled:border-sumi-500
|
|
710
|
+
peer-focus-visible:ring-2
|
|
711
|
+
peer-focus-visible:ring-offset-2
|
|
712
|
+
peer-focus-visible:ring-wood-500
|
|
713
|
+
`;
|
|
714
|
+
return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: I(p, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
710
715
|
/* @__PURE__ */ s.jsx(
|
|
711
716
|
"input",
|
|
712
717
|
{
|
|
@@ -715,21 +720,21 @@ const Se = y.forwardRef(
|
|
|
715
720
|
"aria-describedby": a.helperTextId,
|
|
716
721
|
"aria-errormessage": a.errorMessageId,
|
|
717
722
|
"aria-invalid": a.isInvalid ?? !1,
|
|
718
|
-
...
|
|
723
|
+
...n,
|
|
719
724
|
ref: b
|
|
720
725
|
}
|
|
721
726
|
),
|
|
722
727
|
/* @__PURE__ */ s.jsx("span", { className: o }),
|
|
723
|
-
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children:
|
|
728
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
|
|
724
729
|
] }) });
|
|
725
730
|
}
|
|
726
731
|
);
|
|
727
732
|
Se.displayName = "Radio";
|
|
728
|
-
const
|
|
729
|
-
(
|
|
730
|
-
const { className: m, children:
|
|
731
|
-
a.isRequired && (
|
|
732
|
-
const
|
|
733
|
+
const br = g.forwardRef(
|
|
734
|
+
(f, b) => {
|
|
735
|
+
const { className: m, children: u, ...n } = f, a = g.useContext(k);
|
|
736
|
+
a.isRequired && (n.required = !0);
|
|
737
|
+
const p = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
|
|
733
738
|
peer
|
|
734
739
|
cursor-pointer
|
|
735
740
|
appearance-none
|
|
@@ -740,6 +745,7 @@ const hr = y.forwardRef(
|
|
|
740
745
|
border-solid
|
|
741
746
|
py-4 px-4 pr-8
|
|
742
747
|
rounded-[8px]
|
|
748
|
+
outline-offset-2
|
|
743
749
|
focus:outline
|
|
744
750
|
focus:outline-2
|
|
745
751
|
focus:outline-wood-500
|
|
@@ -757,28 +763,89 @@ const hr = y.forwardRef(
|
|
|
757
763
|
/* @__PURE__ */ s.jsx(
|
|
758
764
|
"select",
|
|
759
765
|
{
|
|
760
|
-
id:
|
|
761
|
-
className:
|
|
766
|
+
id: n.id ?? a.id,
|
|
767
|
+
className: I(c, p, f.className),
|
|
762
768
|
"aria-describedby": a.helperTextId,
|
|
763
769
|
"aria-errormessage": a.errorMessageId,
|
|
764
770
|
"aria-invalid": a.isInvalid ?? !1,
|
|
765
|
-
...
|
|
771
|
+
...n,
|
|
766
772
|
ref: b,
|
|
767
|
-
children:
|
|
773
|
+
children: u
|
|
768
774
|
}
|
|
769
775
|
),
|
|
770
776
|
/* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ s.jsx("path", { d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z" }) }) })
|
|
771
777
|
] });
|
|
772
778
|
}
|
|
773
|
-
),
|
|
774
|
-
(
|
|
775
|
-
const { className: m, ...
|
|
776
|
-
|
|
777
|
-
const a =
|
|
779
|
+
), hr = g.forwardRef(
|
|
780
|
+
(f, b) => {
|
|
781
|
+
const { className: m, ...u } = f, n = g.useContext(k);
|
|
782
|
+
n.isRequired && (u.required = !0);
|
|
783
|
+
const a = n.isInvalid ? "text-sun-800" : "text-sumi-900", p = `
|
|
784
|
+
file:inline-block
|
|
785
|
+
file:text-button
|
|
786
|
+
file:text-center
|
|
787
|
+
file:cursor-pointer
|
|
788
|
+
file:whitespace-nowrap
|
|
789
|
+
file:border
|
|
790
|
+
file:border-solid
|
|
791
|
+
file:border-sea-800
|
|
792
|
+
file:active:border-sea-1200
|
|
793
|
+
file:hover:border-sea-900
|
|
794
|
+
file:disabled:border-sumi-500
|
|
795
|
+
file:disabled:cursor-not-allowed
|
|
796
|
+
`, c = `
|
|
797
|
+
file:text-sea-800
|
|
798
|
+
file:bg-transparent
|
|
799
|
+
file:active:bg-sea-200
|
|
800
|
+
file:hover:bg-sea-100
|
|
801
|
+
file:active:text-sea-1200
|
|
802
|
+
file:hover:text-sea-900
|
|
803
|
+
file:disabled:text-sumi-500
|
|
804
|
+
file:disabled:bg-transparent
|
|
805
|
+
`, o = `
|
|
806
|
+
file:p-4
|
|
807
|
+
file:text-button
|
|
808
|
+
file:rounded-lg
|
|
809
|
+
`, _ = `
|
|
810
|
+
rounded-lg
|
|
811
|
+
outline-offset-2
|
|
812
|
+
focus:outline
|
|
813
|
+
focus:outline-2
|
|
814
|
+
focus:outline-wood-600
|
|
815
|
+
`;
|
|
816
|
+
return /* @__PURE__ */ s.jsx(
|
|
817
|
+
"input",
|
|
818
|
+
{
|
|
819
|
+
type: "file",
|
|
820
|
+
id: u.id ?? n.id,
|
|
821
|
+
className: I(
|
|
822
|
+
p,
|
|
823
|
+
c,
|
|
824
|
+
o,
|
|
825
|
+
_,
|
|
826
|
+
a,
|
|
827
|
+
m
|
|
828
|
+
),
|
|
829
|
+
"aria-describedby": n.helperTextId,
|
|
830
|
+
"aria-errormessage": n.errorMessageId,
|
|
831
|
+
"aria-invalid": n.isInvalid ?? !1,
|
|
832
|
+
ref: b,
|
|
833
|
+
...u
|
|
834
|
+
}
|
|
835
|
+
);
|
|
836
|
+
}
|
|
837
|
+
);
|
|
838
|
+
hr.displayName = "FileInput";
|
|
839
|
+
const xr = g.forwardRef(
|
|
840
|
+
(f, b) => {
|
|
841
|
+
const { className: m, ...u } = f, n = g.useContext(k);
|
|
842
|
+
n.isRequired && (u.required = !0);
|
|
843
|
+
const a = n.isInvalid ? "border-sun-800" : "border-sumi-900", p = `
|
|
778
844
|
p-4
|
|
779
845
|
rounded-lg
|
|
780
846
|
border
|
|
781
847
|
border-solid
|
|
848
|
+
outline-offset-2
|
|
782
849
|
focus:outline
|
|
783
850
|
focus:outline-2
|
|
784
851
|
focus:outline-wood-500
|
|
@@ -790,29 +857,30 @@ const hr = y.forwardRef(
|
|
|
790
857
|
"input",
|
|
791
858
|
{
|
|
792
859
|
type: "text",
|
|
793
|
-
id:
|
|
794
|
-
className:
|
|
795
|
-
"aria-describedby":
|
|
796
|
-
"aria-errormessage":
|
|
797
|
-
"aria-invalid":
|
|
860
|
+
id: u.id ?? n.id,
|
|
861
|
+
className: I(p, a, m),
|
|
862
|
+
"aria-describedby": n.helperTextId,
|
|
863
|
+
"aria-errormessage": n.errorMessageId,
|
|
864
|
+
"aria-invalid": n.isInvalid ?? !1,
|
|
798
865
|
ref: b,
|
|
799
|
-
...
|
|
866
|
+
...u
|
|
800
867
|
}
|
|
801
868
|
);
|
|
802
869
|
}
|
|
803
870
|
);
|
|
804
|
-
|
|
805
|
-
const Oe =
|
|
806
|
-
(
|
|
807
|
-
const { className: m, children:
|
|
808
|
-
|
|
809
|
-
}, h =
|
|
810
|
-
h.isRequired && (
|
|
811
|
-
const
|
|
871
|
+
xr.displayName = "Input";
|
|
872
|
+
const Oe = g.forwardRef(
|
|
873
|
+
(f, b) => {
|
|
874
|
+
const { className: m, children: u, onChange: n, maxLength: a, ...p } = f, [c, o] = g.useState(0), _ = (P) => {
|
|
875
|
+
n && n(P), o(P.target.value.length);
|
|
876
|
+
}, h = g.useContext(k);
|
|
877
|
+
h.isRequired && (p.required = !0);
|
|
878
|
+
const y = h.isInvalid ? "border-sun-800" : "border-sumi-900", j = c > (a || 0) ? "text-sun-800" : "text-sumi-700", T = `
|
|
812
879
|
p-4
|
|
813
880
|
rounded-lg
|
|
814
881
|
border
|
|
815
882
|
border-solid
|
|
883
|
+
outline-offset-2
|
|
816
884
|
focus:outline
|
|
817
885
|
focus:outline-2
|
|
818
886
|
focus:outline-wood-500
|
|
@@ -824,19 +892,19 @@ const Oe = y.forwardRef(
|
|
|
824
892
|
/* @__PURE__ */ s.jsx(
|
|
825
893
|
"textarea",
|
|
826
894
|
{
|
|
827
|
-
id:
|
|
828
|
-
className:
|
|
895
|
+
id: p.id ?? h.id,
|
|
896
|
+
className: I(T, y, m),
|
|
829
897
|
"aria-describedby": h.helperTextId,
|
|
830
898
|
"aria-errormessage": h.errorMessageId,
|
|
831
899
|
"aria-invalid": h.isInvalid ?? !1,
|
|
832
900
|
onChange: _,
|
|
833
|
-
...
|
|
901
|
+
...p,
|
|
834
902
|
ref: b,
|
|
835
|
-
children:
|
|
903
|
+
children: u
|
|
836
904
|
}
|
|
837
905
|
),
|
|
838
906
|
a ? /* @__PURE__ */ s.jsxs("p", { className: "text-sup text-sumi-700", children: [
|
|
839
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
907
|
+
/* @__PURE__ */ s.jsx("span", { className: j, children: c }),
|
|
840
908
|
"/",
|
|
841
909
|
/* @__PURE__ */ s.jsx("span", { children: a })
|
|
842
910
|
] }) : ""
|
|
@@ -844,223 +912,225 @@ const Oe = y.forwardRef(
|
|
|
844
912
|
}
|
|
845
913
|
);
|
|
846
914
|
Oe.displayName = "Textarea";
|
|
847
|
-
const te =
|
|
848
|
-
const m =
|
|
849
|
-
labelText:
|
|
850
|
-
className:
|
|
915
|
+
const te = g.forwardRef((f, b) => {
|
|
916
|
+
const m = g.useId(), {
|
|
917
|
+
labelText: u,
|
|
918
|
+
className: n,
|
|
851
919
|
helperText: a,
|
|
852
|
-
errorMessage:
|
|
920
|
+
errorMessage: p,
|
|
853
921
|
isInvalid: c,
|
|
854
922
|
isRequired: o,
|
|
855
923
|
children: _,
|
|
856
924
|
...h
|
|
857
|
-
} =
|
|
858
|
-
id:
|
|
925
|
+
} = f, y = {
|
|
926
|
+
id: f.htmlFor ?? `input-${m}`,
|
|
859
927
|
helperTextId: `helper-text-${m}`,
|
|
860
928
|
errorMessageId: `error-message-${m}`,
|
|
861
929
|
isInvalid: c ?? !1,
|
|
862
930
|
isRequired: o ?? !1
|
|
863
|
-
}
|
|
864
|
-
|
|
931
|
+
}, j = `
|
|
932
|
+
text-sup text-sumi-700
|
|
933
|
+
`, T = `
|
|
934
|
+
text-sup text-sun-800
|
|
935
|
+
`;
|
|
936
|
+
return /* @__PURE__ */ s.jsx(k.Provider, { value: y, children: /* @__PURE__ */ s.jsxs("div", { className: I("mb-4", n), children: [
|
|
865
937
|
/* @__PURE__ */ s.jsxs(
|
|
866
938
|
"label",
|
|
867
939
|
{
|
|
868
|
-
className:
|
|
869
|
-
htmlFor:
|
|
940
|
+
className: I("block mb-2 text-label", c && "text-sun-800"),
|
|
941
|
+
htmlFor: y.id,
|
|
870
942
|
ref: b,
|
|
871
943
|
...h,
|
|
872
944
|
children: [
|
|
873
|
-
|
|
874
|
-
o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
945
|
+
u,
|
|
946
|
+
o && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
|
|
875
947
|
]
|
|
876
948
|
}
|
|
877
949
|
),
|
|
878
|
-
a && /* @__PURE__ */ s.jsx("p", { id:
|
|
950
|
+
a && /* @__PURE__ */ s.jsx("p", { id: y.helperTextId, className: I(j, "mb-2"), children: a }),
|
|
879
951
|
_,
|
|
880
952
|
c && /* @__PURE__ */ s.jsx(
|
|
881
953
|
"p",
|
|
882
954
|
{
|
|
883
|
-
id:
|
|
884
|
-
className:
|
|
885
|
-
|
|
886
|
-
a ? "mt-1" : "mt-2"
|
|
887
|
-
),
|
|
888
|
-
children: v
|
|
955
|
+
id: y.errorMessageId,
|
|
956
|
+
className: I(T, a ? "mt-1" : "mt-2"),
|
|
957
|
+
children: p
|
|
889
958
|
}
|
|
890
959
|
)
|
|
891
960
|
] }) });
|
|
892
961
|
});
|
|
893
962
|
te.displayName = "LabelControl";
|
|
894
|
-
const ae =
|
|
895
|
-
const m =
|
|
896
|
-
labelText:
|
|
897
|
-
className:
|
|
963
|
+
const ae = g.forwardRef((f, b) => {
|
|
964
|
+
const m = g.useId(), {
|
|
965
|
+
labelText: u,
|
|
966
|
+
className: n,
|
|
898
967
|
helperText: a,
|
|
899
|
-
errorMessage:
|
|
968
|
+
errorMessage: p,
|
|
900
969
|
isInvalid: c,
|
|
901
970
|
isRequired: o,
|
|
902
971
|
direction: _,
|
|
903
972
|
children: h,
|
|
904
|
-
...
|
|
905
|
-
} =
|
|
906
|
-
groupName:
|
|
973
|
+
...y
|
|
974
|
+
} = f, T = {
|
|
975
|
+
groupName: y.name ?? `group-${m}`,
|
|
907
976
|
helperTextId: `helper-text-${m}`,
|
|
908
977
|
errorMessageId: `error-message-${m}`,
|
|
909
978
|
isInvalid: c ?? !1,
|
|
910
979
|
isRequired: o ?? !1
|
|
911
|
-
},
|
|
912
|
-
return /* @__PURE__ */ s.jsx(
|
|
980
|
+
}, P = _ ?? "flex-col";
|
|
981
|
+
return /* @__PURE__ */ s.jsx(k.Provider, { value: T, children: /* @__PURE__ */ s.jsxs("fieldset", { className: I("mb-4", n), ref: b, ...y, children: [
|
|
913
982
|
/* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
|
|
914
983
|
"p",
|
|
915
984
|
{
|
|
916
|
-
className:
|
|
985
|
+
className: I("block mb-2 text-label", c && "text-sun-800"),
|
|
917
986
|
children: [
|
|
918
|
-
|
|
987
|
+
u,
|
|
919
988
|
o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
920
989
|
]
|
|
921
990
|
}
|
|
922
991
|
) }),
|
|
923
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
992
|
+
/* @__PURE__ */ s.jsx("div", { className: I("inline-flex", P), children: h }),
|
|
924
993
|
a && /* @__PURE__ */ s.jsx("p", { id: T.helperTextId, className: "text-sup text-sumi-700 mt-2", children: a }),
|
|
925
994
|
c && /* @__PURE__ */ s.jsx(
|
|
926
995
|
"p",
|
|
927
996
|
{
|
|
928
997
|
id: T.errorMessageId,
|
|
929
|
-
className:
|
|
998
|
+
className: I(
|
|
930
999
|
"text-sup text-sun-800",
|
|
931
1000
|
a ? "mt-1" : "mt-2"
|
|
932
1001
|
),
|
|
933
|
-
children:
|
|
1002
|
+
children: p
|
|
934
1003
|
}
|
|
935
1004
|
)
|
|
936
1005
|
] }) });
|
|
937
1006
|
});
|
|
938
1007
|
ae.displayName = "FieldsetControl";
|
|
939
|
-
const
|
|
1008
|
+
const gr = g.forwardRef((f, b) => {
|
|
940
1009
|
const {
|
|
941
1010
|
items: m,
|
|
942
|
-
onChange:
|
|
943
|
-
className:
|
|
1011
|
+
onChange: u,
|
|
1012
|
+
className: n,
|
|
944
1013
|
labelText: a,
|
|
945
|
-
helperText:
|
|
1014
|
+
helperText: p,
|
|
946
1015
|
errorMessage: c,
|
|
947
1016
|
isInvalid: o,
|
|
948
1017
|
isRequired: _,
|
|
949
1018
|
...h
|
|
950
|
-
} =
|
|
1019
|
+
} = f;
|
|
951
1020
|
return /* @__PURE__ */ s.jsx(
|
|
952
1021
|
ae,
|
|
953
1022
|
{
|
|
954
|
-
className:
|
|
1023
|
+
className: n,
|
|
955
1024
|
labelText: a,
|
|
956
|
-
helperText:
|
|
1025
|
+
helperText: p,
|
|
957
1026
|
errorMessage: c,
|
|
958
1027
|
isInvalid: o,
|
|
959
1028
|
isRequired: _,
|
|
960
1029
|
ref: b,
|
|
961
1030
|
...h,
|
|
962
|
-
children: m.map(({ label:
|
|
1031
|
+
children: m.map(({ label: y, value: j }, T) => /* @__PURE__ */ s.jsx(Pe, { value: j, onChange: u, children: y }, T))
|
|
963
1032
|
}
|
|
964
1033
|
);
|
|
965
1034
|
});
|
|
966
|
-
|
|
967
|
-
const
|
|
1035
|
+
gr.displayName = "CheckboxGroup";
|
|
1036
|
+
const yr = g.forwardRef((f, b) => {
|
|
968
1037
|
const {
|
|
969
1038
|
items: m,
|
|
970
|
-
onChange:
|
|
971
|
-
className:
|
|
1039
|
+
onChange: u,
|
|
1040
|
+
className: n,
|
|
972
1041
|
labelText: a,
|
|
973
|
-
helperText:
|
|
1042
|
+
helperText: p,
|
|
974
1043
|
errorMessage: c,
|
|
975
1044
|
isInvalid: o,
|
|
976
1045
|
isRequired: _,
|
|
977
1046
|
defaultValue: h,
|
|
978
|
-
...
|
|
979
|
-
} =
|
|
1047
|
+
...y
|
|
1048
|
+
} = f;
|
|
980
1049
|
return /* @__PURE__ */ s.jsx(
|
|
981
1050
|
ae,
|
|
982
1051
|
{
|
|
983
|
-
className:
|
|
1052
|
+
className: n,
|
|
984
1053
|
labelText: a,
|
|
985
|
-
helperText:
|
|
1054
|
+
helperText: p,
|
|
986
1055
|
errorMessage: c,
|
|
987
1056
|
isInvalid: o,
|
|
988
1057
|
isRequired: _,
|
|
989
1058
|
ref: b,
|
|
990
|
-
...
|
|
991
|
-
children: m.map(({ label:
|
|
1059
|
+
...y,
|
|
1060
|
+
children: m.map(({ label: j, value: T }, P) => /* @__PURE__ */ s.jsx(
|
|
992
1061
|
Se,
|
|
993
1062
|
{
|
|
994
1063
|
value: T,
|
|
995
|
-
onChange:
|
|
1064
|
+
onChange: u,
|
|
996
1065
|
defaultChecked: h === T,
|
|
997
|
-
children:
|
|
1066
|
+
children: j
|
|
998
1067
|
},
|
|
999
|
-
|
|
1068
|
+
P
|
|
1000
1069
|
))
|
|
1001
1070
|
}
|
|
1002
1071
|
);
|
|
1003
1072
|
});
|
|
1004
|
-
|
|
1005
|
-
const
|
|
1073
|
+
yr.displayName = "RadioGroup";
|
|
1074
|
+
const Rr = g.forwardRef((f, b) => {
|
|
1006
1075
|
const {
|
|
1007
1076
|
className: m,
|
|
1008
|
-
labelText:
|
|
1009
|
-
helperText:
|
|
1077
|
+
labelText: u,
|
|
1078
|
+
helperText: n,
|
|
1010
1079
|
errorMessage: a,
|
|
1011
|
-
isInvalid:
|
|
1080
|
+
isInvalid: p,
|
|
1012
1081
|
isRequired: c,
|
|
1013
1082
|
...o
|
|
1014
|
-
} =
|
|
1083
|
+
} = f;
|
|
1015
1084
|
return /* @__PURE__ */ s.jsx(
|
|
1016
1085
|
te,
|
|
1017
1086
|
{
|
|
1018
1087
|
className: m,
|
|
1019
|
-
labelText:
|
|
1020
|
-
helperText:
|
|
1088
|
+
labelText: u,
|
|
1089
|
+
helperText: n,
|
|
1021
1090
|
errorMessage: a,
|
|
1022
|
-
isInvalid:
|
|
1091
|
+
isInvalid: p,
|
|
1023
1092
|
isRequired: c,
|
|
1024
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1093
|
+
children: /* @__PURE__ */ s.jsx(br, { ref: b, ...o })
|
|
1025
1094
|
}
|
|
1026
1095
|
);
|
|
1027
1096
|
});
|
|
1028
|
-
|
|
1029
|
-
const
|
|
1097
|
+
Rr.displayName = "SelectControl";
|
|
1098
|
+
const Er = g.forwardRef((f, b) => {
|
|
1030
1099
|
const {
|
|
1031
1100
|
className: m,
|
|
1032
|
-
labelText:
|
|
1033
|
-
helperText:
|
|
1101
|
+
labelText: u,
|
|
1102
|
+
helperText: n,
|
|
1034
1103
|
errorMessage: a,
|
|
1035
|
-
isInvalid:
|
|
1104
|
+
isInvalid: p,
|
|
1036
1105
|
isRequired: c,
|
|
1037
1106
|
...o
|
|
1038
|
-
} =
|
|
1107
|
+
} = f;
|
|
1039
1108
|
return /* @__PURE__ */ s.jsx(
|
|
1040
1109
|
te,
|
|
1041
1110
|
{
|
|
1042
1111
|
className: m,
|
|
1043
|
-
labelText:
|
|
1044
|
-
helperText:
|
|
1112
|
+
labelText: u,
|
|
1113
|
+
helperText: n,
|
|
1045
1114
|
errorMessage: a,
|
|
1046
|
-
isInvalid:
|
|
1115
|
+
isInvalid: p,
|
|
1047
1116
|
isRequired: c,
|
|
1048
1117
|
children: /* @__PURE__ */ s.jsx(Oe, { ref: b, ...o })
|
|
1049
1118
|
}
|
|
1050
1119
|
);
|
|
1051
1120
|
});
|
|
1052
|
-
|
|
1121
|
+
Er.displayName = "TextareaControl";
|
|
1053
1122
|
export {
|
|
1054
|
-
|
|
1055
|
-
|
|
1123
|
+
Pe as Checkbox,
|
|
1124
|
+
gr as CheckboxGroup,
|
|
1056
1125
|
ae as FieldsetControl,
|
|
1057
|
-
|
|
1126
|
+
hr as FileInput,
|
|
1127
|
+
xr as Input,
|
|
1058
1128
|
te as LabelControl,
|
|
1059
1129
|
Se as Radio,
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1130
|
+
yr as RadioGroup,
|
|
1131
|
+
br as Select,
|
|
1132
|
+
Rr as SelectControl,
|
|
1063
1133
|
Oe as Textarea,
|
|
1064
|
-
|
|
1134
|
+
Er as TextareaControl
|
|
1065
1135
|
};
|
|
1066
1136
|
//# sourceMappingURL=index.es.js.map
|