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