@sakura-ui/sakura-ui 0.1.10 → 0.1.11

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.
Files changed (57) hide show
  1. package/README.md +8 -32
  2. package/package.json +4 -4
  3. package/packages/config/package.json +8 -8
  4. package/packages/config/src/index.ts +1 -1
  5. package/packages/core/package.json +12 -12
  6. package/packages/core/src/components/IconButton.tsx +12 -3
  7. package/packages/forms/coverage/clover.xml +60 -60
  8. package/packages/forms/coverage/coverage-final.json +17 -17
  9. package/packages/forms/coverage/lcov-report/index.html +23 -23
  10. package/packages/forms/coverage/lcov-report/src/components/Checkbox.tsx.html +8 -8
  11. package/packages/forms/coverage/lcov-report/src/components/FieldsetControl.tsx.html +4 -4
  12. package/packages/forms/coverage/lcov-report/src/components/LabelControl.tsx.html +60 -60
  13. package/packages/forms/coverage/lcov-report/src/components/Radio.tsx.html +3 -3
  14. package/packages/forms/coverage/lcov-report/src/components/Select.tsx.html +31 -37
  15. package/packages/forms/coverage/lcov-report/src/components/Text.tsx.html +13 -16
  16. package/packages/forms/coverage/lcov-report/src/components/Textarea.tsx.html +27 -30
  17. package/packages/forms/coverage/lcov-report/src/components/context.ts.html +2 -5
  18. package/packages/forms/coverage/lcov-report/src/components/controlled/CheckboxGroup.tsx.html +3 -3
  19. package/packages/forms/coverage/lcov-report/src/components/controlled/RadioGroup.tsx.html +3 -3
  20. package/packages/forms/coverage/lcov-report/src/components/controlled/SelectControl.tsx.html +3 -3
  21. package/packages/forms/coverage/lcov-report/src/components/controlled/TextControl.tsx.html +3 -3
  22. package/packages/forms/coverage/lcov-report/src/components/controlled/TextareaControl.tsx.html +3 -3
  23. package/packages/forms/coverage/lcov-report/src/components/controlled/index.html +1 -1
  24. package/packages/forms/coverage/lcov-report/src/components/controlled/index.ts.html +1 -1
  25. package/packages/forms/coverage/lcov-report/src/components/index.html +37 -37
  26. package/packages/forms/coverage/lcov-report/src/components/index.ts.html +9 -9
  27. package/packages/forms/coverage/lcov-report/src/index.html +5 -5
  28. package/packages/forms/coverage/lcov-report/src/index.ts.html +9 -9
  29. package/packages/forms/coverage/lcov-report/src/utils/index.html +1 -1
  30. package/packages/forms/coverage/lcov-report/src/utils/index.ts.html +2 -2
  31. package/packages/forms/coverage/lcov.info +83 -91
  32. package/packages/forms/dist/components/Textarea.d.ts.map +1 -1
  33. package/packages/forms/dist/index.cjs.js +15 -15
  34. package/packages/forms/dist/index.cjs.js.map +1 -1
  35. package/packages/forms/dist/index.es.js +351 -341
  36. package/packages/forms/dist/index.es.js.map +1 -1
  37. package/packages/forms/node_modules/.bin/autoprefixer +4 -4
  38. package/packages/forms/node_modules/.bin/browserslist +4 -4
  39. package/packages/forms/node_modules/.bin/jest +4 -4
  40. package/packages/forms/node_modules/.bin/npm-run-all +2 -2
  41. package/packages/forms/node_modules/.bin/run-p +2 -2
  42. package/packages/forms/node_modules/.bin/run-s +2 -2
  43. package/packages/forms/node_modules/.bin/tailwind +2 -2
  44. package/packages/forms/node_modules/.bin/tailwindcss +2 -2
  45. package/packages/forms/node_modules/.bin/ts-jest +4 -4
  46. package/packages/forms/node_modules/.bin/ts-node +4 -4
  47. package/packages/forms/node_modules/.bin/ts-node-cwd +4 -4
  48. package/packages/forms/node_modules/.bin/ts-node-esm +4 -4
  49. package/packages/forms/node_modules/.bin/ts-node-script +4 -4
  50. package/packages/forms/node_modules/.bin/ts-node-transpile-only +4 -4
  51. package/packages/forms/node_modules/.bin/ts-script +4 -4
  52. package/packages/forms/node_modules/.bin/tsc +4 -4
  53. package/packages/forms/node_modules/.bin/tsc-alias +4 -4
  54. package/packages/forms/node_modules/.bin/tsserver +4 -4
  55. package/packages/forms/node_modules/.bin/vite +4 -4
  56. package/packages/forms/package.json +15 -15
  57. package/packages/forms/src/components/Textarea.tsx +33 -12
@@ -1,4 +1,4 @@
1
- import x from "react";
1
+ import R from "react";
2
2
  var re = { exports: {} }, W = {};
3
3
  /**
4
4
  * @license React
@@ -14,18 +14,18 @@ function dr() {
14
14
  if (Ce)
15
15
  return W;
16
16
  Ce = 1;
17
- var f = x, m = Symbol.for("react.element"), v = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, s = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function b(c, o, j) {
19
- var g, R = {}, C = null, w = null;
20
- j !== void 0 && (C = "" + j), o.key !== void 0 && (C = "" + o.key), o.ref !== void 0 && (w = o.ref);
21
- for (g in o)
22
- d.call(o, g) && !a.hasOwnProperty(g) && (R[g] = o[g]);
23
- if (c && c.defaultProps)
24
- for (g in o = c.defaultProps, o)
25
- R[g] === void 0 && (R[g] = o[g]);
26
- return { $$typeof: m, type: c, key: C, ref: w, props: R, _owner: s.current };
17
+ var f = R, h = Symbol.for("react.element"), m = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, i = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function p(u, o, _) {
19
+ var b, g = {}, C = null, j = null;
20
+ _ !== void 0 && (C = "" + _), o.key !== void 0 && (C = "" + o.key), o.ref !== void 0 && (j = o.ref);
21
+ for (b in o)
22
+ d.call(o, b) && !a.hasOwnProperty(b) && (g[b] = o[b]);
23
+ if (u && u.defaultProps)
24
+ for (b in o = u.defaultProps, o)
25
+ g[b] === void 0 && (g[b] = o[b]);
26
+ return { $$typeof: h, type: u, key: C, ref: j, props: g, _owner: i.current };
27
27
  }
28
- return W.Fragment = v, W.jsx = b, W.jsxs = b, W;
28
+ return W.Fragment = m, W.jsx = p, W.jsxs = p, W;
29
29
  }
30
30
  var Y = {};
31
31
  /**
@@ -40,88 +40,88 @@ var Y = {};
40
40
  var Pe;
41
41
  function fr() {
42
42
  return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
43
- var f = x, m = Symbol.for("react.element"), v = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), F = Symbol.iterator, Se = "@@iterator";
44
- function Oe(e) {
43
+ var f = R, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), u = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), S = Symbol.iterator, Se = "@@iterator";
44
+ function Ne(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = F && e[F] || e[Se];
47
+ var r = S && e[S] || e[Se];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
50
  var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function _(e) {
51
+ function T(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];
55
- Ne("error", e, t);
53
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
54
+ t[s - 1] = arguments[s];
55
+ Oe("error", e, t);
56
56
  }
57
57
  }
58
- function Ne(e, r, t) {
58
+ function Oe(e, r, t) {
59
59
  {
60
- var n = D.ReactDebugCurrentFrame, p = n.getStackAddendum();
61
- p !== "" && (r += "%s", t = t.concat([p]));
62
- var h = t.map(function(u) {
63
- return String(u);
60
+ var s = D.ReactDebugCurrentFrame, v = s.getStackAddendum();
61
+ v !== "" && (r += "%s", t = t.concat([v]));
62
+ var x = t.map(function(c) {
63
+ return String(c);
64
64
  });
65
- h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
65
+ x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
66
66
  }
67
67
  }
68
68
  var ke = !1, Fe = !1, De = !1, Ae = !1, Me = !1, ae;
69
69
  ae = Symbol.for("react.module.reference");
70
70
  function $e(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === a || Me || e === s || e === j || e === g || Ae || e === w || ke || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === b || e.$$typeof === c || e.$$typeof === o || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === a || Me || e === i || e === _ || e === b || Ae || e === j || ke || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === g || e.$$typeof === p || e.$$typeof === u || 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 === ae || e.getModuleId !== void 0));
76
76
  }
77
77
  function qe(e, r, t) {
78
- var n = e.displayName;
79
- if (n)
80
- return n;
81
- var p = r.displayName || r.name || "";
82
- return p !== "" ? t + "(" + p + ")" : t;
78
+ var s = e.displayName;
79
+ if (s)
80
+ return s;
81
+ var v = r.displayName || r.name || "";
82
+ return v !== "" ? t + "(" + v + ")" : t;
83
83
  }
84
84
  function ne(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function S(e) {
87
+ function N(e) {
88
88
  if (e == null)
89
89
  return null;
90
- 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")
90
+ if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
94
94
  switch (e) {
95
95
  case d:
96
96
  return "Fragment";
97
- case v:
97
+ case m:
98
98
  return "Portal";
99
99
  case a:
100
100
  return "Profiler";
101
- case s:
101
+ case i:
102
102
  return "StrictMode";
103
- case j:
103
+ case _:
104
104
  return "Suspense";
105
- case g:
105
+ case b:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
- case c:
110
+ case u:
111
111
  var r = e;
112
112
  return ne(r) + ".Consumer";
113
- case b:
113
+ case p:
114
114
  var t = e;
115
115
  return ne(t._context) + ".Provider";
116
116
  case o:
117
117
  return qe(e, e.render, "ForwardRef");
118
- case R:
119
- var n = e.displayName || null;
120
- return n !== null ? n : S(e.type) || "Memo";
118
+ case g:
119
+ var s = e.displayName || null;
120
+ return s !== null ? s : N(e.type) || "Memo";
121
121
  case C: {
122
- var p = e, h = p._payload, u = p._init;
122
+ var v = e, x = v._payload, c = v._init;
123
123
  try {
124
- return S(u(h));
124
+ return N(c(x));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,7 +129,7 @@ function fr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var N = Object.assign, $ = 0, se, ie, oe, le, ue, ce, de;
132
+ var k = Object.assign, $ = 0, se, ie, oe, le, ue, ce, de;
133
133
  function fe() {
134
134
  }
135
135
  fe.__reactDisabledLog = !0;
@@ -165,30 +165,30 @@ function fr() {
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: N({}, e, {
168
+ log: k({}, e, {
169
169
  value: se
170
170
  }),
171
- info: N({}, e, {
171
+ info: k({}, e, {
172
172
  value: ie
173
173
  }),
174
- warn: N({}, e, {
174
+ warn: k({}, e, {
175
175
  value: oe
176
176
  }),
177
- error: N({}, e, {
177
+ error: k({}, e, {
178
178
  value: le
179
179
  }),
180
- group: N({}, e, {
180
+ group: k({}, e, {
181
181
  value: ue
182
182
  }),
183
- groupCollapsed: N({}, e, {
183
+ groupCollapsed: k({}, e, {
184
184
  value: ce
185
185
  }),
186
- groupEnd: N({}, e, {
186
+ groupEnd: k({}, e, {
187
187
  value: de
188
188
  })
189
189
  });
190
190
  }
191
- $ < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ $ < 0 && T("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,76 +197,76 @@ function fr() {
197
197
  if (z === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (p) {
201
- var n = p.stack.trim().match(/\n( *(at )?)/);
202
- z = n && n[1] || "";
200
+ } catch (v) {
201
+ var s = v.stack.trim().match(/\n( *(at )?)/);
202
+ z = s && s[1] || "";
203
203
  }
204
204
  return `
205
205
  ` + z + e;
206
206
  }
207
207
  }
208
- var K = !1, V;
208
+ var H = !1, V;
209
209
  {
210
210
  var Le = typeof WeakMap == "function" ? WeakMap : Map;
211
211
  V = new Le();
212
212
  }
213
213
  function pe(e, r) {
214
- if (!e || K)
214
+ if (!e || H)
215
215
  return "";
216
216
  {
217
217
  var t = V.get(e);
218
218
  if (t !== void 0)
219
219
  return t;
220
220
  }
221
- var n;
222
- K = !0;
223
- var p = Error.prepareStackTrace;
221
+ var s;
222
+ H = !0;
223
+ var v = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
- var h;
226
- h = J.current, J.current = null, We();
225
+ var x;
226
+ x = J.current, J.current = null, We();
227
227
  try {
228
228
  if (r) {
229
- var u = function() {
229
+ var c = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(u.prototype, "props", {
232
+ if (Object.defineProperty(c.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(c, []);
239
239
  } catch (O) {
240
- n = O;
240
+ s = O;
241
241
  }
242
- Reflect.construct(e, [], u);
242
+ Reflect.construct(e, [], c);
243
243
  } else {
244
244
  try {
245
- u.call();
245
+ c.call();
246
246
  } catch (O) {
247
- n = O;
247
+ s = O;
248
248
  }
249
- e.call(u.prototype);
249
+ e.call(c.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
254
  } catch (O) {
255
- n = O;
255
+ s = O;
256
256
  }
257
257
  e();
258
258
  }
259
259
  } catch (O) {
260
- if (O && n && typeof O.stack == "string") {
260
+ if (O && s && typeof O.stack == "string") {
261
261
  for (var l = O.stack.split(`
262
- `), T = n.stack.split(`
263
- `), y = l.length - 1, E = T.length - 1; y >= 1 && E >= 0 && l[y] !== T[E]; )
262
+ `), w = s.stack.split(`
263
+ `), y = l.length - 1, E = w.length - 1; y >= 1 && E >= 0 && l[y] !== w[E]; )
264
264
  E--;
265
265
  for (; y >= 1 && E >= 0; y--, E--)
266
- if (l[y] !== T[E]) {
266
+ if (l[y] !== w[E]) {
267
267
  if (y !== 1 || E !== 1)
268
268
  do
269
- if (y--, E--, E < 0 || l[y] !== T[E]) {
269
+ if (y--, E--, E < 0 || l[y] !== w[E]) {
270
270
  var P = `
271
271
  ` + l[y].replace(" at new ", " at ");
272
272
  return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, P), P;
@@ -276,7 +276,7 @@ function fr() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- K = !1, J.current = h, Ye(), Error.prepareStackTrace = p;
279
+ H = !1, J.current = x, Ye(), Error.prepareStackTrace = v;
280
280
  }
281
281
  var M = e ? e.displayName || e.name : "", we = M ? L(M) : "";
282
282
  return typeof e == "function" && V.set(e, we), we;
@@ -296,21 +296,21 @@ function fr() {
296
296
  if (typeof e == "string")
297
297
  return L(e);
298
298
  switch (e) {
299
- case j:
299
+ case _:
300
300
  return L("Suspense");
301
- case g:
301
+ case b:
302
302
  return L("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case o:
307
307
  return Ve(e.render);
308
- case R:
308
+ case g:
309
309
  return U(e.type, r, t);
310
310
  case C: {
311
- var n = e, p = n._payload, h = n._init;
311
+ var s = e, v = s._payload, x = s._init;
312
312
  try {
313
- return U(h(p), r, t);
313
+ return U(x(v), r, t);
314
314
  } catch {
315
315
  }
316
316
  }
@@ -325,27 +325,27 @@ function fr() {
325
325
  } else
326
326
  me.setExtraStackFrame(null);
327
327
  }
328
- function Be(e, r, t, n, p) {
328
+ function Be(e, r, t, s, v) {
329
329
  {
330
- var h = Function.call.bind(B);
331
- for (var u in e)
332
- if (h(e, u)) {
330
+ var x = Function.call.bind(B);
331
+ for (var c in e)
332
+ if (x(e, c)) {
333
333
  var l = void 0;
334
334
  try {
335
- if (typeof e[u] != "function") {
336
- var T = 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 T.name = "Invariant Violation", T;
335
+ if (typeof e[c] != "function") {
336
+ 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`.");
337
+ throw w.name = "Invariant Violation", w;
338
338
  }
339
- l = e[u](r, u, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ l = e[c](r, c, s, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch (y) {
341
341
  l = y;
342
342
  }
343
- l && !(l instanceof Error) && (G(p), _("%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 ve) && (ve[l.message] = !0, G(p), _("Failed %s type: %s", t, l.message), G(null));
343
+ l && !(l instanceof Error) && (G(v), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", t, c, typeof l), G(null)), l instanceof Error && !(l.message in ve) && (ve[l.message] = !0, G(v), T("Failed %s type: %s", t, l.message), G(null));
344
344
  }
345
345
  }
346
346
  }
347
347
  var Ge = Array.isArray;
348
- function H(e) {
348
+ function K(e) {
349
349
  return Ge(e);
350
350
  }
351
351
  function Je(e) {
@@ -356,26 +356,26 @@ function fr() {
356
356
  }
357
357
  function ze(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
- function he(e) {
367
+ function be(e) {
368
368
  if (ze(e))
369
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), be(e);
369
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), he(e);
370
370
  }
371
- var q = D.ReactCurrentOwner, Ke = {
371
+ var q = D.ReactCurrentOwner, He = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
376
  }, xe, ge, X;
377
377
  X = {};
378
- function He(e) {
378
+ function Ke(e) {
379
379
  if (B.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
@@ -393,14 +393,14 @@ function fr() {
393
393
  }
394
394
  function Ze(e, r) {
395
395
  if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
396
- var t = S(q.current.type);
397
- 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);
396
+ var t = N(q.current.type);
397
+ X[t] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(q.current.type), e.ref), X[t] = !0);
398
398
  }
399
399
  }
400
400
  function Qe(e, r) {
401
401
  {
402
402
  var t = function() {
403
- xe || (xe = !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));
403
+ xe || (xe = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
404
404
  };
405
405
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
406
  get: t,
@@ -411,7 +411,7 @@ function fr() {
411
411
  function er(e, r) {
412
412
  {
413
413
  var t = function() {
414
- ge || (ge = !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));
414
+ ge || (ge = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
415
415
  };
416
416
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
417
  get: t,
@@ -419,17 +419,17 @@ function fr() {
419
419
  });
420
420
  }
421
421
  }
422
- var rr = function(e, r, t, n, p, h, u) {
422
+ var rr = function(e, r, t, s, v, x, c) {
423
423
  var l = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: m,
425
+ $$typeof: h,
426
426
  // Built-in properties that belong on the element
427
427
  type: e,
428
428
  key: r,
429
429
  ref: t,
430
- props: u,
430
+ props: c,
431
431
  // Record the component responsible for creating this element.
432
- _owner: h
432
+ _owner: x
433
433
  };
434
434
  return l._store = {}, Object.defineProperty(l._store, "validated", {
435
435
  configurable: !1,
@@ -440,30 +440,30 @@ function fr() {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: n
443
+ value: s
444
444
  }), Object.defineProperty(l, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: p
448
+ value: v
449
449
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
450
450
  };
451
- function tr(e, r, t, n, p) {
451
+ function tr(e, r, t, s, v) {
452
452
  {
453
- var h, u = {}, l = null, T = null;
454
- t !== void 0 && (he(t), l = "" + t), Xe(r) && (he(r.key), l = "" + r.key), He(r) && (T = r.ref, Ze(r, p));
455
- for (h in r)
456
- B.call(r, h) && !Ke.hasOwnProperty(h) && (u[h] = r[h]);
453
+ var x, c = {}, l = null, w = null;
454
+ t !== void 0 && (be(t), l = "" + t), Xe(r) && (be(r.key), l = "" + r.key), Ke(r) && (w = r.ref, Ze(r, v));
455
+ for (x in r)
456
+ B.call(r, x) && !He.hasOwnProperty(x) && (c[x] = r[x]);
457
457
  if (e && e.defaultProps) {
458
458
  var y = e.defaultProps;
459
- for (h in y)
460
- u[h] === void 0 && (u[h] = y[h]);
459
+ for (x in y)
460
+ c[x] === void 0 && (c[x] = y[x]);
461
461
  }
462
- if (l || T) {
462
+ if (l || w) {
463
463
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- l && Qe(u, E), T && er(u, E);
464
+ l && Qe(c, E), w && er(c, E);
465
465
  }
466
- return rr(e, l, T, p, n, q.current, u);
466
+ return rr(e, l, w, v, s, q.current, c);
467
467
  }
468
468
  }
469
469
  var Z = D.ReactCurrentOwner, Re = D.ReactDebugCurrentFrame;
@@ -477,12 +477,12 @@ function fr() {
477
477
  var Q;
478
478
  Q = !1;
479
479
  function ee(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === m;
480
+ return typeof e == "object" && e !== null && e.$$typeof === h;
481
481
  }
482
482
  function ye() {
483
483
  {
484
484
  if (Z.current) {
485
- var e = S(Z.current.type);
485
+ var e = N(Z.current.type);
486
486
  if (e)
487
487
  return `
488
488
 
@@ -524,26 +524,26 @@ Check the top-level render call using <` + t + ">.");
524
524
  if (Ee[t])
525
525
  return;
526
526
  Ee[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), _('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 s = "";
528
+ e && e._owner && e._owner !== Z.current && (s = " It was passed a child from " + N(e._owner.type) + "."), A(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, s), A(null);
529
529
  }
530
530
  }
531
- function Te(e, r) {
531
+ function je(e, r) {
532
532
  {
533
533
  if (typeof e != "object")
534
534
  return;
535
- if (H(e))
535
+ if (K(e))
536
536
  for (var t = 0; t < e.length; t++) {
537
- var n = e[t];
538
- ee(n) && _e(n, r);
537
+ var s = e[t];
538
+ ee(s) && _e(s, r);
539
539
  }
540
540
  else if (ee(e))
541
541
  e._store && (e._store.validated = !0);
542
542
  else if (e) {
543
- var p = Oe(e);
544
- if (typeof p == "function" && p !== e.entries)
545
- for (var h = p.call(e), u; !(u = h.next()).done; )
546
- ee(u.value) && _e(u.value, r);
543
+ var v = Ne(e);
544
+ if (typeof v == "function" && v !== e.entries)
545
+ for (var x = v.call(e), c; !(c = x.next()).done; )
546
+ ee(c.value) && _e(c.value, r);
547
547
  }
548
548
  }
549
549
  }
@@ -557,91 +557,91 @@ 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 === R))
560
+ r.$$typeof === g))
561
561
  t = r.propTypes;
562
562
  else
563
563
  return;
564
564
  if (t) {
565
- var n = S(r);
566
- Be(t, e.props, "prop", n, e);
565
+ var s = N(r);
566
+ Be(t, e.props, "prop", s, e);
567
567
  } else if (r.PropTypes !== void 0 && !Q) {
568
568
  Q = !0;
569
- var p = S(r);
570
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
569
+ var v = N(r);
570
+ T("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 && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
575
  function ir(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), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
578
+ var s = r[t];
579
+ if (s !== "children" && s !== "key") {
580
+ A(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), A(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (A(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
584
+ e.ref !== null && (A(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
585
585
  }
586
586
  }
587
- function je(e, r, t, n, p, h) {
587
+ function Te(e, r, t, s, v, x) {
588
588
  {
589
- var u = $e(e);
590
- if (!u) {
589
+ var c = $e(e);
590
+ if (!c) {
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 T = ar(p);
594
- T ? l += T : l += ye();
593
+ var w = ar(v);
594
+ w ? l += w : l += ye();
595
595
  var y;
596
- e === null ? y = "null" : H(e) ? y = "array" : e !== void 0 && e.$$typeof === m ? (y = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : y = 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", y, l);
596
+ e === null ? y = "null" : K(e) ? y = "array" : e !== void 0 && e.$$typeof === h ? (y = "<" + (N(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, l);
597
597
  }
598
- var E = tr(e, r, t, p, h);
598
+ var E = tr(e, r, t, v, x);
599
599
  if (E == null)
600
600
  return E;
601
- if (u) {
601
+ if (c) {
602
602
  var P = r.children;
603
603
  if (P !== void 0)
604
- if (n)
605
- if (H(P)) {
604
+ if (s)
605
+ if (K(P)) {
606
606
  for (var M = 0; M < P.length; M++)
607
- Te(P[M], e);
607
+ je(P[M], e);
608
608
  Object.freeze && Object.freeze(P);
609
609
  } else
610
- _("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
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
611
  else
612
- Te(P, e);
612
+ je(P, e);
613
613
  }
614
614
  return e === d ? ir(E) : sr(E), E;
615
615
  }
616
616
  }
617
617
  function or(e, r, t) {
618
- return je(e, r, t, !0);
618
+ return Te(e, r, t, !0);
619
619
  }
620
620
  function lr(e, r, t) {
621
- return je(e, r, t, !1);
621
+ return Te(e, r, t, !1);
622
622
  }
623
623
  var ur = lr, cr = or;
624
624
  Y.Fragment = d, Y.jsx = ur, Y.jsxs = cr;
625
625
  }()), Y;
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? re.exports = dr() : re.exports = fr();
628
- var i = re.exports;
629
- const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
628
+ var n = re.exports;
629
+ const I = (...f) => f.filter(Boolean).join(" "), F = R.createContext({
630
630
  helperTextId: "",
631
631
  errorMessageId: "",
632
632
  isInvalid: !1,
633
633
  isRequired: !1
634
- }), pr = x.forwardRef(
635
- (f, m) => {
636
- const { className: v, children: d, ...s } = f, a = x.useContext(k);
637
- a.isRequired && (s.required = !0), a.groupName && (s.name = a.groupName);
638
- const b = `
634
+ }), pr = R.forwardRef(
635
+ (f, h) => {
636
+ const { className: m, children: d, ...i } = f, a = R.useContext(F);
637
+ a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
638
+ const p = `
639
639
  inline-block
640
640
  text-base
641
641
  cursor-pointer
642
642
  py-2
643
643
  mr-4
644
- `, c = `
644
+ `, u = `
645
645
  peer
646
646
  hidden
647
647
  `, o = `
@@ -659,34 +659,34 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
659
659
  peer-checked:border-none
660
660
  peer-disabled:border-sumi-500
661
661
  `;
662
- return /* @__PURE__ */ i.jsx("label", { htmlFor: s.id, className: I(b, v), children: /* @__PURE__ */ i.jsxs("span", { className: "flex items-center", children: [
663
- /* @__PURE__ */ i.jsx(
662
+ return /* @__PURE__ */ n.jsx("label", { htmlFor: i.id, className: I(p, m), children: /* @__PURE__ */ n.jsxs("span", { className: "flex items-center", children: [
663
+ /* @__PURE__ */ n.jsx(
664
664
  "input",
665
665
  {
666
- className: c,
666
+ className: u,
667
667
  type: "checkbox",
668
668
  "aria-describedby": a.helperTextId,
669
669
  "aria-errormessage": a.errorMessageId,
670
670
  "aria-invalid": a.isInvalid ?? !1,
671
- ...s,
672
- ref: m
671
+ ...i,
672
+ ref: h
673
673
  }
674
674
  ),
675
- /* @__PURE__ */ i.jsx("span", { className: o, children: /* @__PURE__ */ i.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ i.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__ */ i.jsx("span", { className: "peer-disabled:text-sumi-500", children: d })
675
+ /* @__PURE__ */ n.jsx("span", { className: o, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ n.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__ */ n.jsx("span", { className: "peer-disabled:text-sumi-500", children: d })
677
677
  ] }) });
678
678
  }
679
- ), vr = x.forwardRef((f, m) => {
680
- const { className: v, children: d, ...s } = f, a = x.useContext(k);
681
- a.isRequired && (s.required = !0), a.groupName && (s.name = a.groupName);
682
- const b = `
679
+ ), vr = R.forwardRef((f, h) => {
680
+ const { className: m, children: d, ...i } = f, a = R.useContext(F);
681
+ a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
682
+ const p = `
683
683
  inline-block
684
684
  text-base
685
685
  cursor-pointer
686
686
  py-2
687
687
  mr-4
688
688
 
689
- `, c = `
689
+ `, u = `
690
690
  peer
691
691
  hidden
692
692
  `, o = `
@@ -703,27 +703,27 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
703
703
  peer-checked:border-sea-600
704
704
  peer-disabled:border-sumi-500
705
705
  `;
706
- return /* @__PURE__ */ i.jsx("label", { htmlFor: s.id, className: I(b, v), children: /* @__PURE__ */ i.jsxs("span", { className: "flex items-center", children: [
707
- /* @__PURE__ */ i.jsx(
706
+ return /* @__PURE__ */ n.jsx("label", { htmlFor: i.id, className: I(p, m), children: /* @__PURE__ */ n.jsxs("span", { className: "flex items-center", children: [
707
+ /* @__PURE__ */ n.jsx(
708
708
  "input",
709
709
  {
710
- className: c,
710
+ className: u,
711
711
  type: "radio",
712
712
  "aria-describedby": a.helperTextId,
713
713
  "aria-errormessage": a.errorMessageId,
714
714
  "aria-invalid": a.isInvalid ?? !1,
715
- ...s,
716
- ref: m
715
+ ...i,
716
+ ref: h
717
717
  }
718
718
  ),
719
- /* @__PURE__ */ i.jsx("span", { className: o }),
720
- /* @__PURE__ */ i.jsx("span", { className: "peer-disabled:text-sumi-500", children: d })
719
+ /* @__PURE__ */ n.jsx("span", { className: o }),
720
+ /* @__PURE__ */ n.jsx("span", { className: "peer-disabled:text-sumi-500", children: d })
721
721
  ] }) });
722
- }), mr = x.forwardRef(
723
- (f, m) => {
724
- const { className: v, children: d, ...s } = f, a = x.useContext(k);
725
- a.isRequired && (s.required = !0);
726
- const b = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
722
+ }), mr = R.forwardRef(
723
+ (f, h) => {
724
+ const { className: m, children: d, ...i } = f, a = R.useContext(F);
725
+ a.isRequired && (i.required = !0);
726
+ const p = a.isInvalid ? "border-sun-800" : "border-sumi-900", u = `
727
727
  peer
728
728
  cursor-pointer
729
729
  appearance-none
@@ -747,28 +747,28 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
747
747
  pointer-events-none
748
748
  peer-disabled:fill-sumi-500
749
749
  `;
750
- return /* @__PURE__ */ i.jsxs("label", { className: "inline-block relative", children: [
751
- /* @__PURE__ */ i.jsx(
750
+ return /* @__PURE__ */ n.jsxs("label", { className: "inline-block relative", children: [
751
+ /* @__PURE__ */ n.jsx(
752
752
  "select",
753
753
  {
754
- id: s.id ?? a.id,
755
- className: I(c, b, f.className),
754
+ id: i.id ?? a.id,
755
+ className: I(u, p, f.className),
756
756
  "aria-describedby": a.helperTextId,
757
757
  "aria-errormessage": a.errorMessageId,
758
758
  "aria-invalid": a.isInvalid ?? !1,
759
- ...s,
760
- ref: m,
759
+ ...i,
760
+ ref: h,
761
761
  children: d
762
762
  }
763
763
  ),
764
- /* @__PURE__ */ i.jsx("span", { className: o, children: /* @__PURE__ */ i.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ i.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" }) }) })
764
+ /* @__PURE__ */ n.jsx("span", { className: o, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", 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" }) }) })
765
765
  ] });
766
766
  }
767
- ), br = x.forwardRef(
768
- (f, m) => {
769
- const { className: v, ...d } = f, s = x.useContext(k);
770
- s.isRequired && (d.required = !0);
771
- const a = s.isInvalid ? "border-sun-800" : "border-sumi-900", b = `
767
+ ), hr = R.forwardRef(
768
+ (f, h) => {
769
+ const { className: m, ...d } = f, i = R.useContext(F);
770
+ i.isRequired && (d.required = !0);
771
+ const a = i.isInvalid ? "border-sun-800" : "border-sumi-900", p = `
772
772
  p-4
773
773
  rounded-lg
774
774
  border
@@ -780,25 +780,27 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
780
780
  disabled:text-sumi-500
781
781
  disabled:border-sumi-500
782
782
  `;
783
- return /* @__PURE__ */ i.jsx(
783
+ return /* @__PURE__ */ n.jsx(
784
784
  "input",
785
785
  {
786
786
  type: "text",
787
- id: d.id ?? s.id,
788
- className: I(b, a, v),
789
- "aria-describedby": s.helperTextId,
790
- "aria-errormessage": s.errorMessageId,
791
- "aria-invalid": s.isInvalid ?? !1,
787
+ id: d.id ?? i.id,
788
+ className: I(p, a, m),
789
+ "aria-describedby": i.helperTextId,
790
+ "aria-errormessage": i.errorMessageId,
791
+ "aria-invalid": i.isInvalid ?? !1,
792
792
  ...d,
793
- ref: m
793
+ ref: h
794
794
  }
795
795
  );
796
796
  }
797
- ), hr = x.forwardRef(
798
- (f, m) => {
799
- const { className: v, children: d, ...s } = f, a = x.useContext(k);
800
- a.isRequired && (s.required = !0);
801
- const b = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
797
+ ), br = R.forwardRef(
798
+ (f, h) => {
799
+ const { className: m, children: d, onChange: i, maxLength: a, ...p } = f, [u, o] = R.useState(0), _ = (S) => {
800
+ i && i(S), o(S.target.value.length);
801
+ }, b = R.useContext(F);
802
+ b.isRequired && (p.required = !0);
803
+ const g = b.isInvalid ? "border-sun-800" : "border-sumi-900", C = u > (a || 0) ? "text-sun-800" : "text-sumi-700", j = `
802
804
  p-4
803
805
  rounded-lg
804
806
  border
@@ -810,228 +812,236 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
810
812
  disabled:text-sumi-500
811
813
  disabled:border-sumi-500
812
814
  `;
813
- return /* @__PURE__ */ i.jsx(
814
- "textarea",
815
- {
816
- id: s.id ?? a.id,
817
- className: I(c, b, v),
818
- "aria-describedby": a.helperTextId,
819
- "aria-errormessage": a.errorMessageId,
820
- "aria-invalid": a.isInvalid ?? !1,
821
- ...s,
822
- ref: m,
823
- children: d
824
- }
825
- );
815
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
816
+ /* @__PURE__ */ n.jsx(
817
+ "textarea",
818
+ {
819
+ id: p.id ?? b.id,
820
+ className: I(j, g, m),
821
+ "aria-describedby": b.helperTextId,
822
+ "aria-errormessage": b.errorMessageId,
823
+ "aria-invalid": b.isInvalid ?? !1,
824
+ onChange: _,
825
+ ...p,
826
+ ref: h,
827
+ children: d
828
+ }
829
+ ),
830
+ a ? /* @__PURE__ */ n.jsxs("p", { className: "text-xs text-sumi-700", children: [
831
+ /* @__PURE__ */ n.jsx("span", { className: C, children: u }),
832
+ "/",
833
+ /* @__PURE__ */ n.jsx("span", { children: a })
834
+ ] }) : ""
835
+ ] });
826
836
  }
827
- ), te = x.forwardRef((f, m) => {
828
- const v = x.useId(), {
837
+ ), te = R.forwardRef((f, h) => {
838
+ const m = R.useId(), {
829
839
  labelText: d,
830
- className: s,
840
+ className: i,
831
841
  helperText: a,
832
- errorMessage: b,
833
- isInvalid: c,
842
+ errorMessage: p,
843
+ isInvalid: u,
834
844
  isRequired: o,
835
- children: j,
836
- ...g
837
- } = f, R = {
838
- id: f.htmlFor ?? `input-${v}`,
839
- helperTextId: `helper-text-${v}`,
840
- errorMessageId: `error-message-${v}`,
841
- isInvalid: c ?? !1,
845
+ children: _,
846
+ ...b
847
+ } = f, g = {
848
+ id: f.htmlFor ?? `input-${m}`,
849
+ helperTextId: `helper-text-${m}`,
850
+ errorMessageId: `error-message-${m}`,
851
+ isInvalid: u ?? !1,
842
852
  isRequired: o ?? !1
843
853
  };
844
- return /* @__PURE__ */ i.jsx(k.Provider, { value: R, children: /* @__PURE__ */ i.jsxs("div", { className: I("mb-4", s), children: [
845
- /* @__PURE__ */ i.jsxs(
854
+ return /* @__PURE__ */ n.jsx(F.Provider, { value: g, children: /* @__PURE__ */ n.jsxs("div", { className: I("mb-4", i), children: [
855
+ /* @__PURE__ */ n.jsxs(
846
856
  "label",
847
857
  {
848
- className: I("block mb-2 text-label", c && "text-sun-800"),
849
- htmlFor: R.id,
850
- ref: m,
851
- ...g,
858
+ className: I("block mb-2 text-label", u && "text-sun-800"),
859
+ htmlFor: g.id,
860
+ ref: h,
861
+ ...b,
852
862
  children: [
853
863
  d,
854
- o && /* @__PURE__ */ i.jsx("span", { className: "text-sun-800", children: " *" })
864
+ o && /* @__PURE__ */ n.jsx("span", { className: "text-sun-800", children: " *" })
855
865
  ]
856
866
  }
857
867
  ),
858
- a && /* @__PURE__ */ i.jsx("p", { id: R.helperTextId, className: "text-xs text-sumi-700 mb-2", children: a }),
859
- j,
860
- c && /* @__PURE__ */ i.jsx(
868
+ a && /* @__PURE__ */ n.jsx("p", { id: g.helperTextId, className: "text-xs text-sumi-700 mb-2", children: a }),
869
+ _,
870
+ u && /* @__PURE__ */ n.jsx(
861
871
  "p",
862
872
  {
863
- id: R.errorMessageId,
873
+ id: g.errorMessageId,
864
874
  className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
865
- children: b
875
+ children: p
866
876
  }
867
877
  )
868
878
  ] }) });
869
- }), Ie = x.forwardRef((f, m) => {
870
- const v = x.useId(), {
879
+ }), Ie = R.forwardRef((f, h) => {
880
+ const m = R.useId(), {
871
881
  labelText: d,
872
- className: s,
882
+ className: i,
873
883
  helperText: a,
874
- errorMessage: b,
875
- isInvalid: c,
884
+ errorMessage: p,
885
+ isInvalid: u,
876
886
  isRequired: o,
877
- direction: j,
878
- children: g,
879
- ...R
880
- } = f, w = {
881
- groupName: R.name ?? `group-${v}`,
882
- helperTextId: `helper-text-${v}`,
883
- errorMessageId: `error-message-${v}`,
884
- isInvalid: c ?? !1,
887
+ direction: _,
888
+ children: b,
889
+ ...g
890
+ } = f, j = {
891
+ groupName: g.name ?? `group-${m}`,
892
+ helperTextId: `helper-text-${m}`,
893
+ errorMessageId: `error-message-${m}`,
894
+ isInvalid: u ?? !1,
885
895
  isRequired: o ?? !1
886
- }, F = j ?? "flex-col";
887
- return /* @__PURE__ */ i.jsx(k.Provider, { value: w, children: /* @__PURE__ */ i.jsxs("fieldset", { className: I("mb-4", s), ref: m, ...R, children: [
888
- /* @__PURE__ */ i.jsx("legend", { children: /* @__PURE__ */ i.jsxs(
896
+ }, S = _ ?? "flex-col";
897
+ return /* @__PURE__ */ n.jsx(F.Provider, { value: j, children: /* @__PURE__ */ n.jsxs("fieldset", { className: I("mb-4", i), ref: h, ...g, children: [
898
+ /* @__PURE__ */ n.jsx("legend", { children: /* @__PURE__ */ n.jsxs(
889
899
  "p",
890
900
  {
891
- className: I("block mb-2 text-label", c && "text-sun-800"),
901
+ className: I("block mb-2 text-label", u && "text-sun-800"),
892
902
  children: [
893
903
  d,
894
- o && /* @__PURE__ */ i.jsx("span", { className: "text-sun-800", children: " *" })
904
+ o && /* @__PURE__ */ n.jsx("span", { className: "text-sun-800", children: " *" })
895
905
  ]
896
906
  }
897
907
  ) }),
898
- /* @__PURE__ */ i.jsx("div", { className: I("inline-flex", F), children: g }),
899
- a && /* @__PURE__ */ i.jsx("p", { id: w.helperTextId, className: "text-xs text-sumi-700 mt-2", children: a }),
900
- c && /* @__PURE__ */ i.jsx(
908
+ /* @__PURE__ */ n.jsx("div", { className: I("inline-flex", S), children: b }),
909
+ a && /* @__PURE__ */ n.jsx("p", { id: j.helperTextId, className: "text-xs text-sumi-700 mt-2", children: a }),
910
+ u && /* @__PURE__ */ n.jsx(
901
911
  "p",
902
912
  {
903
- id: w.errorMessageId,
913
+ id: j.errorMessageId,
904
914
  className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
905
- children: b
915
+ children: p
906
916
  }
907
917
  )
908
918
  ] }) });
909
- }), gr = x.forwardRef((f, m) => {
919
+ }), gr = R.forwardRef((f, h) => {
910
920
  const {
911
- items: v,
921
+ items: m,
912
922
  onChange: d,
913
- className: s,
923
+ className: i,
914
924
  labelText: a,
915
- helperText: b,
916
- errorMessage: c,
925
+ helperText: p,
926
+ errorMessage: u,
917
927
  isInvalid: o,
918
- isRequired: j,
919
- ...g
928
+ isRequired: _,
929
+ ...b
920
930
  } = f;
921
- return /* @__PURE__ */ i.jsx(
931
+ return /* @__PURE__ */ n.jsx(
922
932
  Ie,
923
933
  {
924
- className: s,
934
+ className: i,
925
935
  labelText: a,
926
- helperText: b,
927
- errorMessage: c,
936
+ helperText: p,
937
+ errorMessage: u,
928
938
  isInvalid: o,
929
- isRequired: j,
930
- ref: m,
931
- ...g,
932
- children: v.map(({ label: R, value: C }, w) => /* @__PURE__ */ i.jsx(pr, { value: C, onChange: d, children: R }, w))
939
+ isRequired: _,
940
+ ref: h,
941
+ ...b,
942
+ children: m.map(({ label: g, value: C }, j) => /* @__PURE__ */ n.jsx(pr, { value: C, onChange: d, children: g }, j))
933
943
  }
934
944
  );
935
- }), Rr = x.forwardRef((f, m) => {
945
+ }), Rr = R.forwardRef((f, h) => {
936
946
  const {
937
- items: v,
947
+ items: m,
938
948
  onChange: d,
939
- className: s,
949
+ className: i,
940
950
  labelText: a,
941
- helperText: b,
942
- errorMessage: c,
951
+ helperText: p,
952
+ errorMessage: u,
943
953
  isInvalid: o,
944
- isRequired: j,
945
- defaultValue: g,
946
- ...R
954
+ isRequired: _,
955
+ defaultValue: b,
956
+ ...g
947
957
  } = f;
948
- return /* @__PURE__ */ i.jsx(
958
+ return /* @__PURE__ */ n.jsx(
949
959
  Ie,
950
960
  {
951
- className: s,
961
+ className: i,
952
962
  labelText: a,
953
- helperText: b,
954
- errorMessage: c,
963
+ helperText: p,
964
+ errorMessage: u,
955
965
  isInvalid: o,
956
- isRequired: j,
957
- ref: m,
958
- ...R,
959
- children: v.map(({ label: C, value: w }, F) => /* @__PURE__ */ i.jsx(
966
+ isRequired: _,
967
+ ref: h,
968
+ ...g,
969
+ children: m.map(({ label: C, value: j }, S) => /* @__PURE__ */ n.jsx(
960
970
  vr,
961
971
  {
962
- value: w,
972
+ value: j,
963
973
  onChange: d,
964
- defaultChecked: g === w,
974
+ defaultChecked: b === j,
965
975
  children: C
966
976
  },
967
- F
977
+ S
968
978
  ))
969
979
  }
970
980
  );
971
- }), yr = x.forwardRef((f, m) => {
981
+ }), yr = R.forwardRef((f, h) => {
972
982
  const {
973
- className: v,
983
+ className: m,
974
984
  labelText: d,
975
- helperText: s,
985
+ helperText: i,
976
986
  errorMessage: a,
977
- isInvalid: b,
978
- isRequired: c,
987
+ isInvalid: p,
988
+ isRequired: u,
979
989
  ...o
980
990
  } = f;
981
- return /* @__PURE__ */ i.jsx(
991
+ return /* @__PURE__ */ n.jsx(
982
992
  te,
983
993
  {
984
- className: v,
994
+ className: m,
985
995
  labelText: d,
986
- helperText: s,
996
+ helperText: i,
987
997
  errorMessage: a,
988
- isInvalid: b,
989
- isRequired: c,
990
- children: /* @__PURE__ */ i.jsx(mr, { ref: m, ...o })
998
+ isInvalid: p,
999
+ isRequired: u,
1000
+ children: /* @__PURE__ */ n.jsx(mr, { ref: h, ...o })
991
1001
  }
992
1002
  );
993
- }), Er = x.forwardRef((f, m) => {
1003
+ }), Er = R.forwardRef((f, h) => {
994
1004
  const {
995
- className: v,
1005
+ className: m,
996
1006
  labelText: d,
997
- helperText: s,
1007
+ helperText: i,
998
1008
  errorMessage: a,
999
- isInvalid: b,
1000
- isRequired: c,
1009
+ isInvalid: p,
1010
+ isRequired: u,
1001
1011
  ...o
1002
1012
  } = f;
1003
- return /* @__PURE__ */ i.jsx(
1013
+ return /* @__PURE__ */ n.jsx(
1004
1014
  te,
1005
1015
  {
1006
- className: v,
1016
+ className: m,
1007
1017
  labelText: d,
1008
- helperText: s,
1018
+ helperText: i,
1009
1019
  errorMessage: a,
1010
- isInvalid: b,
1011
- isRequired: c,
1012
- children: /* @__PURE__ */ i.jsx(br, { ref: m, ...o })
1020
+ isInvalid: p,
1021
+ isRequired: u,
1022
+ children: /* @__PURE__ */ n.jsx(hr, { ref: h, ...o })
1013
1023
  }
1014
1024
  );
1015
- }), _r = x.forwardRef((f, m) => {
1025
+ }), _r = R.forwardRef((f, h) => {
1016
1026
  const {
1017
- className: v,
1027
+ className: m,
1018
1028
  labelText: d,
1019
- helperText: s,
1029
+ helperText: i,
1020
1030
  errorMessage: a,
1021
- isInvalid: b,
1022
- isRequired: c,
1031
+ isInvalid: p,
1032
+ isRequired: u,
1023
1033
  ...o
1024
1034
  } = f;
1025
- return /* @__PURE__ */ i.jsx(
1035
+ return /* @__PURE__ */ n.jsx(
1026
1036
  te,
1027
1037
  {
1028
- className: v,
1038
+ className: m,
1029
1039
  labelText: d,
1030
- helperText: s,
1040
+ helperText: i,
1031
1041
  errorMessage: a,
1032
- isInvalid: b,
1033
- isRequired: c,
1034
- children: /* @__PURE__ */ i.jsx(hr, { ref: m, ...o })
1042
+ isInvalid: p,
1043
+ isRequired: u,
1044
+ children: /* @__PURE__ */ n.jsx(br, { ref: h, ...o })
1035
1045
  }
1036
1046
  );
1037
1047
  });
@@ -1039,14 +1049,14 @@ export {
1039
1049
  pr as Checkbox,
1040
1050
  gr as CheckboxGroup,
1041
1051
  Ie as FieldsetControl,
1042
- br as Input,
1052
+ hr as Input,
1043
1053
  Er as InputControl,
1044
1054
  te as LabelControl,
1045
1055
  vr as Radio,
1046
1056
  Rr as RadioGroup,
1047
1057
  mr as Select,
1048
1058
  yr as SelectControl,
1049
- hr as Textarea,
1059
+ br as Textarea,
1050
1060
  _r as TextareaControl
1051
1061
  };
1052
1062
  //# sourceMappingURL=index.es.js.map