@sakura-ui/forms 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,12 +1,12 @@
1
- import x from "react";
2
- var s = {}, cr = {
1
+ import g from "react";
2
+ var n = {}, ur = {
3
3
  get exports() {
4
- return s;
4
+ return n;
5
5
  },
6
6
  set exports(l) {
7
- s = l;
7
+ n = l;
8
8
  }
9
- }, W = {};
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 we;
20
- function fr() {
21
- if (we)
22
- return W;
23
- we = 1;
24
- var l = x, p = Symbol.for("react.element"), m = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, i = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function h(f, u, j) {
26
- var g, y = {}, C = null, w = null;
27
- j !== void 0 && (C = "" + j), u.key !== void 0 && (C = "" + u.key), u.ref !== void 0 && (w = u.ref);
28
- for (g in u)
29
- d.call(u, g) && !n.hasOwnProperty(g) && (y[g] = u[g]);
30
- if (f && f.defaultProps)
31
- for (g in u = f.defaultProps, u)
32
- y[g] === void 0 && (y[g] = u[g]);
33
- return { $$typeof: p, type: f, key: C, ref: w, props: y, _owner: i.current };
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 W.Fragment = m, W.jsx = h, W.jsxs = h, W;
35
+ return A.Fragment = h, A.jsx = v, A.jsxs = v, A;
36
36
  }
37
- var Y = {};
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 = x, p = Symbol.for("react.element"), m = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), F = Symbol.iterator, Ie = "@@iterator";
51
- function Se(e) {
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 = F && e[F] || e[Ie];
54
+ var r = re && e[re] || e[Pe];
55
55
  return typeof r == "function" ? r : null;
56
56
  }
57
- var D = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
- function _(e) {
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), a = 1; a < r; a++)
61
- t[a - 1] = arguments[a];
62
- Oe("error", e, t);
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 Oe(e, r, t) {
65
+ function Se(e, r, t) {
66
66
  {
67
- var a = D.ReactDebugCurrentFrame, v = a.getStackAddendum();
68
- v !== "" && (r += "%s", t = t.concat([v]));
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 Ne = !1, ke = !1, Fe = !1, De = !1, Me = !1, te;
75
+ var Oe = !1, Ie = !1, ke = !1, Fe = !1, De = !1, te;
76
76
  te = Symbol.for("react.module.reference");
77
- function Ae(e) {
78
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === n || Me || e === i || e === j || e === g || De || e === w || Ne || ke || Fe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === y || e.$$typeof === h || e.$$typeof === f || e.$$typeof === u || // This needs to include all possible module reference object
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 $e(e, r, t) {
85
- var a = e.displayName;
86
- if (a)
87
- return a;
88
- var v = r.displayName || r.name || "";
89
- return v !== "" ? t + "(" + v + ")" : t;
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 S(e) {
94
+ function N(e) {
95
95
  if (e == null)
96
96
  return null;
97
- if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
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 d:
102
+ case p:
103
103
  return "Fragment";
104
- case m:
104
+ case h:
105
105
  return "Portal";
106
- case n:
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 g:
112
+ case x:
113
113
  return "SuspenseList";
114
114
  }
115
115
  if (typeof e == "object")
116
116
  switch (e.$$typeof) {
117
- case f:
117
+ case d:
118
118
  var r = e;
119
119
  return ne(r) + ".Consumer";
120
- case h:
120
+ case v:
121
121
  var t = e;
122
122
  return ne(t._context) + ".Provider";
123
123
  case u:
124
- return $e(e, e.render, "ForwardRef");
125
- case y:
126
- var a = e.displayName || null;
127
- return a !== null ? a : S(e.type) || "Memo";
128
- case C: {
129
- var v = e, b = v._payload, c = v._init;
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 S(c(b));
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 N = Object.assign, $ = 0, ae, se, ie, oe, le, ue, ce;
140
- function fe() {
139
+ var O = Object.assign, $ = 0, ae, se, ie, oe, le, ue, ce;
140
+ function de() {
141
141
  }
142
- fe.__reactDisabledLog = !0;
143
- function qe() {
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: fe,
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 We() {
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: N({}, e, {
175
+ log: O({}, e, {
176
176
  value: ae
177
177
  }),
178
- info: N({}, e, {
178
+ info: O({}, e, {
179
179
  value: se
180
180
  }),
181
- warn: N({}, e, {
181
+ warn: O({}, e, {
182
182
  value: ie
183
183
  }),
184
- error: N({}, e, {
184
+ error: O({}, e, {
185
185
  value: oe
186
186
  }),
187
- group: N({}, e, {
187
+ group: O({}, e, {
188
188
  value: le
189
189
  }),
190
- groupCollapsed: N({}, e, {
190
+ groupCollapsed: O({}, e, {
191
191
  value: ue
192
192
  }),
193
- groupEnd: N({}, e, {
193
+ groupEnd: O({}, e, {
194
194
  value: ce
195
195
  })
196
196
  });
197
197
  }
198
- $ < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
+ $ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
199
  }
200
200
  }
201
- var J = D.ReactCurrentDispatcher, z;
202
- function L(e, r, t) {
201
+ var G = k.ReactCurrentDispatcher, J;
202
+ function Y(e, r, t) {
203
203
  {
204
- if (z === void 0)
204
+ if (J === void 0)
205
205
  try {
206
206
  throw Error();
207
- } catch (v) {
208
- var a = v.stack.trim().match(/\n( *(at )?)/);
209
- z = a && a[1] || "";
207
+ } catch (m) {
208
+ var s = m.stack.trim().match(/\n( *(at )?)/);
209
+ J = s && s[1] || "";
210
210
  }
211
211
  return `
212
- ` + z + e;
212
+ ` + J + e;
213
213
  }
214
214
  }
215
- var K = !1, V;
215
+ var z = !1, L;
216
216
  {
217
- var Ye = typeof WeakMap == "function" ? WeakMap : Map;
218
- V = new Ye();
217
+ var We = typeof WeakMap == "function" ? WeakMap : Map;
218
+ L = new We();
219
219
  }
220
- function de(e, r) {
221
- if (!e || K)
220
+ function fe(e, r) {
221
+ if (!e || z)
222
222
  return "";
223
223
  {
224
- var t = V.get(e);
224
+ var t = L.get(e);
225
225
  if (t !== void 0)
226
226
  return t;
227
227
  }
228
- var a;
229
- K = !0;
230
- var v = Error.prepareStackTrace;
228
+ var s;
229
+ z = !0;
230
+ var m = Error.prepareStackTrace;
231
231
  Error.prepareStackTrace = void 0;
232
232
  var b;
233
- b = J.current, J.current = null, qe();
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 (O) {
247
- a = O;
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 (O) {
254
- a = O;
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 (O) {
262
- a = O;
261
+ } catch (S) {
262
+ s = S;
263
263
  }
264
264
  e();
265
265
  }
266
- } catch (O) {
267
- if (O && a && typeof O.stack == "string") {
268
- for (var o = O.stack.split(`
269
- `), T = a.stack.split(`
270
- `), R = o.length - 1, E = T.length - 1; R >= 1 && E >= 0 && o[R] !== T[E]; )
271
- E--;
272
- for (; R >= 1 && E >= 0; R--, E--)
273
- if (o[R] !== T[E]) {
274
- if (R !== 1 || E !== 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--, E--, E < 0 || o[R] !== T[E]) {
277
- var P = `
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 && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, P), P;
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 && E >= 0);
281
+ while (R >= 1 && y >= 0);
282
282
  break;
283
283
  }
284
284
  }
285
285
  } finally {
286
- K = !1, J.current = b, We(), Error.prepareStackTrace = v;
286
+ z = !1, G.current = b, qe(), Error.prepareStackTrace = m;
287
287
  }
288
- var A = e ? e.displayName || e.name : "", je = A ? L(A) : "";
289
- return typeof e == "function" && V.set(e, je), je;
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 Le(e, r, t) {
292
- return de(e, !1);
291
+ function Ye(e, r, t) {
292
+ return fe(e, !1);
293
293
  }
294
- function Ve(e) {
294
+ function Le(e) {
295
295
  var r = e.prototype;
296
296
  return !!(r && r.isReactComponent);
297
297
  }
298
- function U(e, r, t) {
298
+ function V(e, r, t) {
299
299
  if (e == null)
300
300
  return "";
301
301
  if (typeof e == "function")
302
- return de(e, Ve(e));
302
+ return fe(e, Le(e));
303
303
  if (typeof e == "string")
304
- return L(e);
304
+ return Y(e);
305
305
  switch (e) {
306
306
  case j:
307
- return L("Suspense");
308
- case g:
309
- return L("SuspenseList");
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 Le(e.render);
315
- case y:
316
- return U(e.type, r, t);
317
- case C: {
318
- var a = e, v = a._payload, b = a._init;
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 U(b(v), r, t);
320
+ return V(b(m), r, t);
321
321
  } catch {
322
322
  }
323
323
  }
324
324
  }
325
325
  return "";
326
326
  }
327
- var B = Object.prototype.hasOwnProperty, ve = {}, pe = D.ReactDebugCurrentFrame;
328
- function G(e) {
327
+ var U = Object.prototype.hasOwnProperty, pe = {}, ve = k.ReactDebugCurrentFrame;
328
+ function B(e) {
329
329
  if (e) {
330
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
331
- pe.setExtraStackFrame(t);
330
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
331
+ ve.setExtraStackFrame(t);
332
332
  } else
333
- pe.setExtraStackFrame(null);
333
+ ve.setExtraStackFrame(null);
334
334
  }
335
- function Ue(e, r, t, a, v) {
335
+ function Ve(e, r, t, s, m) {
336
336
  {
337
- var b = Function.call.bind(B);
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 T = Error((a || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
- throw T.name = "Invariant Violation", T;
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, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
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) && (G(v), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, c, typeof o), G(null)), o instanceof Error && !(o.message in ve) && (ve[o.message] = !0, G(v), _("Failed %s type: %s", t, o.message), G(null));
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 Be = Array.isArray;
355
- function H(e) {
356
- return Be(e);
354
+ var Ue = Array.isArray;
355
+ function K(e) {
356
+ return Ue(e);
357
357
  }
358
- function Ge(e) {
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 Je(e) {
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 (Je(e))
376
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), me(e);
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 q = D.ReactCurrentOwner, ze = {
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, X;
384
- X = {};
385
- function Ke(e) {
386
- if (B.call(e, "ref")) {
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 He(e) {
394
- if (B.call(e, "key")) {
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 Xe(e, r) {
402
- if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
403
- var t = S(q.current.type);
404
- X[t] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(q.current.type), e.ref), X[t] = !0);
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 Ze(e, r) {
407
+ function Xe(e, r) {
408
408
  {
409
409
  var t = function() {
410
- be || (be = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
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 Qe(e, r) {
418
+ function Ze(e, r) {
419
419
  {
420
420
  var t = function() {
421
- xe || (xe = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
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 er = function(e, r, t, a, v, b, c) {
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: p,
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: a
450
+ value: s
451
451
  }), Object.defineProperty(o, "_source", {
452
452
  configurable: !1,
453
453
  enumerable: !1,
454
454
  writable: !1,
455
- value: v
455
+ value: m
456
456
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
457
457
  };
458
- function rr(e, r, t, a, v) {
458
+ function er(e, r, t, s, m) {
459
459
  {
460
- var b, c = {}, o = null, T = null;
461
- t !== void 0 && (he(t), o = "" + t), He(r) && (he(r.key), o = "" + r.key), Ke(r) && (T = r.ref, Xe(r, v));
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
- B.call(r, b) && !ze.hasOwnProperty(b) && (c[b] = r[b]);
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 || T) {
470
- var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
471
- o && Ze(c, E), T && Qe(c, E);
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 er(e, o, T, v, a, q.current, c);
473
+ return Qe(e, o, w, m, s, M.current, c);
474
474
  }
475
475
  }
476
- var Z = D.ReactCurrentOwner, ge = D.ReactDebugCurrentFrame;
477
- function M(e) {
476
+ var X = k.ReactCurrentOwner, ge = k.ReactDebugCurrentFrame;
477
+ function F(e) {
478
478
  if (e) {
479
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
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 Q;
485
- Q = !1;
486
- function ee(e) {
487
- return typeof e == "object" && e !== null && e.$$typeof === p;
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 (Z.current) {
492
- var e = S(Z.current.type);
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 tr(e) {
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 nr(e) {
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 Ee(e, r) {
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 = nr(r);
530
+ var t = tr(r);
531
531
  if (ye[t])
532
532
  return;
533
533
  ye[t] = !0;
534
- var a = "";
535
- e && e._owner && e._owner !== Z.current && (a = " It was passed a child from " + S(e._owner.type) + "."), M(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), M(null);
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 _e(e, r) {
538
+ function Ee(e, r) {
539
539
  {
540
540
  if (typeof e != "object")
541
541
  return;
542
- if (H(e))
542
+ if (K(e))
543
543
  for (var t = 0; t < e.length; t++) {
544
- var a = e[t];
545
- ee(a) && Ee(a, r);
544
+ var s = e[t];
545
+ Q(s) && _e(s, r);
546
546
  }
547
- else if (ee(e))
547
+ else if (Q(e))
548
548
  e._store && (e._store.validated = !0);
549
549
  else if (e) {
550
- var v = Se(e);
551
- if (typeof v == "function" && v !== e.entries)
552
- for (var b = v.call(e), c; !(c = b.next()).done; )
553
- ee(c.value) && Ee(c.value, r);
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 ar(e) {
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 === y))
567
+ r.$$typeof === _))
568
568
  t = r.propTypes;
569
569
  else
570
570
  return;
571
571
  if (t) {
572
- var a = S(r);
573
- Ue(t, e.props, "prop", a, e);
574
- } else if (r.PropTypes !== void 0 && !Q) {
575
- Q = !0;
576
- var v = S(r);
577
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
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 && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 sr(e) {
582
+ function ar(e) {
583
583
  {
584
584
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
585
- var a = r[t];
586
- if (a !== "children" && a !== "key") {
587
- M(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), M(null);
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 && (M(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
591
+ e.ref !== null && (F(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
592
592
  }
593
593
  }
594
- function Te(e, r, t, a, v, b) {
594
+ function we(e, r, t, s, m, b) {
595
595
  {
596
- var c = Ae(e);
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 T = tr(v);
601
- T ? o += T : o += Re();
600
+ var w = rr(m);
601
+ w ? o += w : o += Re();
602
602
  var R;
603
- e === null ? R = "null" : H(e) ? R = "array" : e !== void 0 && e.$$typeof === p ? (R = "<" + (S(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, o);
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 E = rr(e, r, t, v, b);
606
- if (E == null)
607
- return E;
605
+ var y = er(e, r, t, m, b);
606
+ if (y == null)
607
+ return y;
608
608
  if (c) {
609
- var P = r.children;
610
- if (P !== void 0)
611
- if (a)
612
- if (H(P)) {
613
- for (var A = 0; A < P.length; A++)
614
- _e(P[A], e);
615
- Object.freeze && Object.freeze(P);
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
- _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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
- _e(P, e);
619
+ Ee(C, e);
620
620
  }
621
- return e === d ? sr(E) : ar(E), E;
621
+ return e === p ? ar(y) : nr(y), y;
622
622
  }
623
623
  }
624
- function ir(e, r, t) {
625
- return Te(e, r, t, !0);
624
+ function sr(e, r, t) {
625
+ return we(e, r, t, !0);
626
626
  }
627
- function or(e, r, t) {
628
- return Te(e, r, t, !1);
627
+ function ir(e, r, t) {
628
+ return we(e, r, t, !1);
629
629
  }
630
- var lr = or, ur = ir;
631
- Y.Fragment = d, Y.jsx = lr, Y.jsxs = ur;
632
- }()), Y;
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 = fr() : l.exports = dr();
636
- })(cr);
637
- const I = (...l) => l.filter(Boolean).join(" "), k = x.createContext({
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
- }), vr = x.forwardRef(
643
- (l, p) => {
644
- const { className: m, children: d, ...i } = l, n = x.useContext(k);
645
- n.isRequired && (i.required = !0), n.groupName && (i.name = n.groupName);
646
- const h = `
647
- inline-block
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
- mr-4
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__ */ s.jsx("label", { htmlFor: i.id, className: I(h, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
669
- /* @__PURE__ */ s.jsx(
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: f,
672
+ className: d,
673
673
  type: "checkbox",
674
- "aria-describedby": n.helperTextId,
675
- "aria-errormessage": n.errorMessageId,
676
- "aria-invalid": n.isInvalid ?? !1,
674
+ "aria-describedby": a.helperTextId,
675
+ "aria-errormessage": a.errorMessageId,
677
676
  ...i,
678
- ref: p
677
+ ref: f
679
678
  }
680
679
  ),
681
- /* @__PURE__ */ s.jsx("span", { className: u, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ s.jsx(
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
- d
687
+ p
689
688
  ] }) });
690
689
  }
691
- ), pr = x.forwardRef((l, p) => {
692
- const { className: m, children: d, ...i } = l, n = x.useContext(k);
693
- n.isRequired && (i.required = !0), n.groupName && (i.name = n.groupName);
694
- const h = `
695
- inline-block
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
- mr-4
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__ */ s.jsx("label", { htmlFor: i.id, className: I(h, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
717
- /* @__PURE__ */ s.jsx(
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: f,
719
+ className: d,
721
720
  type: "radio",
722
- "aria-describedby": n.helperTextId,
723
- "aria-errormessage": n.errorMessageId,
724
- "aria-invalid": n.isInvalid ?? !1,
721
+ "aria-describedby": a.helperTextId,
722
+ "aria-errormessage": a.errorMessageId,
725
723
  ...i,
726
- ref: p
724
+ ref: f
727
725
  }
728
726
  ),
729
- /* @__PURE__ */ s.jsx("span", { className: u }),
730
- d
727
+ /* @__PURE__ */ n.jsx("span", { className: u }),
728
+ p
731
729
  ] }) });
732
- }), mr = x.forwardRef(
733
- (l, p) => {
734
- const { className: m, children: d, ...i } = l, n = x.useContext(k);
735
- n.isRequired && (i.required = !0);
736
- const h = n.isInvalid ? "border-sun-800" : "border-sumi-900", f = `
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__ */ s.jsxs("span", { className: "inline-block relative", children: [
751
- /* @__PURE__ */ s.jsx(
747
+ return /* @__PURE__ */ n.jsxs("div", { className: "inline-block relative", children: [
748
+ /* @__PURE__ */ n.jsx(
752
749
  "select",
753
750
  {
754
- className: I(f, h, l.className),
755
- "aria-describedby": n.helperTextId,
756
- "aria-errormessage": n.errorMessageId,
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: p,
760
- children: d
755
+ ref: f,
756
+ children: p
761
757
  }
762
758
  ),
763
- /* @__PURE__ */ s.jsx("span", { className: "flex items-center absolute inset-y-0 right-0 px-2 pointer-events-none", children: /* @__PURE__ */ s.jsx(
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__ */ 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" })
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
- ), hr = x.forwardRef(
776
- (l, p) => {
777
- const { className: m, ...d } = l, i = x.useContext(k);
778
- i.isRequired && (d.required = !0);
779
- const n = i.isInvalid ? "border-sun-800" : "border-sumi-900", h = `
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__ */ s.jsx(
789
+ return /* @__PURE__ */ n.jsx(
794
790
  "input",
795
791
  {
796
792
  type: "text",
797
- className: I(h, n, m),
793
+ className: T(v, a, h),
798
794
  "aria-describedby": i.helperTextId,
799
795
  "aria-errormessage": i.errorMessageId,
800
- "aria-invalid": i.isInvalid ?? !1,
801
- ...d,
802
- ref: p
796
+ ...p,
797
+ ref: f
803
798
  }
804
799
  );
805
800
  }
806
- ), br = x.forwardRef(
807
- (l, p) => {
808
- const { className: m, children: d, ...i } = l, n = x.useContext(k);
809
- n.isRequired && (i.required = !0);
810
- const h = n.isInvalid ? "border-sun-800" : "border-sumi-900", f = `
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__ */ s.jsx(
819
+ return /* @__PURE__ */ n.jsx(
825
820
  "textarea",
826
821
  {
827
- className: I(f, h, m),
828
- "aria-describedby": n.helperTextId,
829
- "aria-errormessage": n.errorMessageId,
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: p,
833
- children: d
826
+ ref: f,
827
+ children: p
834
828
  }
835
829
  );
836
830
  }
837
- ), re = x.forwardRef(
838
- (l, p) => {
839
- const m = x.useId(), {
840
- labelText: d,
831
+ ), ee = g.forwardRef(
832
+ (l, f) => {
833
+ const h = g.useId(), {
834
+ labelText: p,
841
835
  className: i,
842
- helperText: n,
843
- errorMessage: h,
844
- isInvalid: f,
836
+ helperText: a,
837
+ errorMessage: v,
838
+ isInvalid: d,
845
839
  isRequired: u,
846
840
  children: j,
847
- ...g
848
- } = l, y = {
849
- helperTextId: `helper-text-${m}`,
850
- errorMessageId: `error-message-${m}`,
851
- isInvalid: f ?? !1,
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__ */ s.jsx(k.Provider, { value: y, children: /* @__PURE__ */ s.jsxs("div", { className: I("mb-4", i), ref: p, ...g, children: [
855
- /* @__PURE__ */ s.jsxs("label", { children: [
856
- /* @__PURE__ */ s.jsxs("span", { className: I("block mb-2", f && "text-sun-800"), children: [
857
- d,
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
- n && /* @__PURE__ */ s.jsx("p", { id: y.helperTextId, className: "text-sm text-sumi-700 mt-2", children: n }),
863
- f && /* @__PURE__ */ s.jsx(
853
+ j,
854
+ a && /* @__PURE__ */ n.jsx(
864
855
  "p",
865
856
  {
866
- id: y.errorMessageId,
867
- className: I(
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
- n ? "mt-1" : "mt-2"
868
+ a ? "mt-1" : "mt-2"
870
869
  ),
871
- children: h
870
+ children: v
872
871
  }
873
872
  )
874
- ] }) });
873
+ ] }) }) });
875
874
  }
876
- ), Pe = x.forwardRef((l, p) => {
877
- const m = x.useId(), {
878
- labelText: d,
875
+ ), xr = g.forwardRef((l, f) => {
876
+ const h = g.useId(), {
877
+ labelText: p,
879
878
  className: i,
880
- helperText: n,
881
- errorMessage: h,
882
- isInvalid: f,
879
+ helperText: a,
880
+ errorMessage: v,
881
+ isInvalid: d,
883
882
  isRequired: u,
884
- direction: j,
885
- children: g,
886
- ...y
887
- } = l, w = {
888
- groupName: y.name ?? `group-${m}`,
889
- helperTextId: `helper-text-${m}`,
890
- errorMessageId: `error-message-${m}`,
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
- }, F = j ?? "flex-col";
894
- return /* @__PURE__ */ s.jsx(k.Provider, { value: w, children: /* @__PURE__ */ s.jsxs("fieldset", { className: I("mb-4", i), ref: p, ...y, children: [
895
- /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs("p", { className: I("block mb-2", f && "text-sun-800"), children: [
896
- d,
897
- u && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
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
- /* @__PURE__ */ s.jsx("div", { className: I("inline-flex", F), children: g }),
900
- n && /* @__PURE__ */ s.jsx("p", { id: w.helperTextId, className: "text-sm text-sumi-700 mt-2", children: n }),
901
- f && /* @__PURE__ */ s.jsx(
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: w.errorMessageId,
905
- className: I("text-sm text-sun-800", n ? "mt-1" : "mt-2"),
906
- children: h
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 = x.forwardRef((l, p) => {
911
- const {
912
- items: m,
913
- onChange: d,
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: i,
926
- labelText: n,
927
- helperText: h,
928
- errorMessage: f,
929
- isInvalid: u,
930
- isRequired: j,
931
- ref: p,
932
- ...g,
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
- }), Rr = x.forwardRef((l, p) => {
937
- const {
938
- items: m,
939
- onChange: d,
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: i,
953
- labelText: n,
954
- helperText: h,
955
- errorMessage: f,
956
- isInvalid: u,
957
- isRequired: j,
958
- ref: p,
959
- ...y,
960
- children: m.map(({ label: C, value: w }, F) => /* @__PURE__ */ s.jsx(
961
- pr,
962
- {
963
- value: w,
964
- onChange: d,
965
- defaultChecked: g === w,
966
- children: C
967
- },
968
- F
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
- }), yr = x.forwardRef((l, p) => {
947
+ }, yr = g.forwardRef((l, f) => {
973
948
  const {
974
- className: m,
975
- labelText: d,
949
+ className: h,
950
+ labelText: p,
976
951
  helperText: i,
977
- errorMessage: n,
978
- isInvalid: h,
979
- isRequired: f,
952
+ errorMessage: a,
953
+ isInvalid: v,
954
+ isRequired: d,
980
955
  ...u
981
956
  } = l;
982
- return /* @__PURE__ */ s.jsx(
983
- re,
957
+ return /* @__PURE__ */ n.jsx(
958
+ ee,
984
959
  {
985
- className: m,
986
- labelText: d,
960
+ className: h,
961
+ labelText: p,
987
962
  helperText: i,
988
- errorMessage: n,
989
- isInvalid: h,
990
- isRequired: f,
991
- children: /* @__PURE__ */ s.jsx(mr, { ref: p, ...u })
963
+ errorMessage: a,
964
+ isInvalid: v,
965
+ isRequired: d,
966
+ children: /* @__PURE__ */ n.jsx(vr, { ref: f, ...u })
992
967
  }
993
968
  );
994
- }), Er = x.forwardRef(
995
- (l, p) => {
969
+ }), _r = g.forwardRef(
970
+ (l, f) => {
996
971
  const {
997
- className: m,
998
- labelText: d,
972
+ className: h,
973
+ labelText: p,
999
974
  helperText: i,
1000
- errorMessage: n,
1001
- isInvalid: h,
1002
- isRequired: f,
975
+ errorMessage: a,
976
+ isInvalid: v,
977
+ isRequired: d,
1003
978
  ...u
1004
979
  } = l;
1005
- return /* @__PURE__ */ s.jsx(
1006
- re,
980
+ return /* @__PURE__ */ n.jsx(
981
+ ee,
1007
982
  {
1008
- className: m,
1009
- labelText: d,
983
+ className: h,
984
+ labelText: p,
1010
985
  helperText: i,
1011
- errorMessage: n,
1012
- isInvalid: h,
1013
- isRequired: f,
1014
- children: /* @__PURE__ */ s.jsx(hr, { ref: p, ...u })
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
- ), _r = x.forwardRef((l, p) => {
993
+ ), Er = g.forwardRef((l, f) => {
1019
994
  const {
1020
- className: m,
1021
- labelText: d,
995
+ className: h,
996
+ labelText: p,
1022
997
  helperText: i,
1023
- errorMessage: n,
1024
- isInvalid: h,
1025
- isRequired: f,
998
+ errorMessage: a,
999
+ isInvalid: v,
1000
+ isRequired: d,
1026
1001
  ...u
1027
1002
  } = l;
1028
- return /* @__PURE__ */ s.jsx(
1029
- re,
1003
+ return /* @__PURE__ */ n.jsx(
1004
+ ee,
1030
1005
  {
1031
- className: m,
1032
- labelText: d,
1006
+ className: h,
1007
+ labelText: p,
1033
1008
  helperText: i,
1034
- errorMessage: n,
1035
- isInvalid: h,
1036
- isRequired: f,
1037
- children: /* @__PURE__ */ s.jsx(br, { ref: p, ...u })
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
- vr as Checkbox,
1017
+ fr as Checkbox,
1043
1018
  gr as CheckboxGroup,
1044
- Pe as FieldsetControl,
1045
- re as LabelControl,
1019
+ xr as FieldsetControl,
1020
+ ee as LabelControl,
1046
1021
  pr as Radio,
1047
1022
  Rr as RadioGroup,
1048
- mr as Select,
1023
+ vr as Select,
1049
1024
  yr as SelectControl,
1050
- hr as Text,
1051
- Er as TextControl,
1052
- br as Textarea,
1053
- _r as TextareaControl
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