@sakura-ui/forms 0.1.5 → 0.1.7

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