@sakura-ui/forms 0.1.1 → 0.1.3

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 (68) hide show
  1. package/dist/components/Checkbox.d.ts +2 -2
  2. package/dist/components/Checkbox.d.ts.map +1 -1
  3. package/dist/components/Checkbox.js +43 -0
  4. package/dist/components/Checkbox.js.map +1 -0
  5. package/dist/components/FieldsetControl.d.ts +2 -2
  6. package/dist/components/FieldsetControl.d.ts.map +1 -1
  7. package/dist/components/FieldsetControl.js +20 -0
  8. package/dist/components/FieldsetControl.js.map +1 -0
  9. package/dist/components/Input.d.ts +2 -2
  10. package/dist/components/Input.d.ts.map +1 -1
  11. package/dist/components/Input.js +27 -0
  12. package/dist/components/Input.js.map +1 -0
  13. package/dist/components/LabelControl.d.ts +2 -2
  14. package/dist/components/LabelControl.d.ts.map +1 -1
  15. package/dist/components/LabelControl.js +18 -0
  16. package/dist/components/LabelControl.js.map +1 -0
  17. package/dist/components/Radio.d.ts +2 -2
  18. package/dist/components/Radio.d.ts.map +1 -1
  19. package/dist/components/Radio.js +43 -0
  20. package/dist/components/Radio.js.map +1 -0
  21. package/dist/components/Select.d.ts +2 -2
  22. package/dist/components/Select.d.ts.map +1 -1
  23. package/dist/components/Select.js +39 -0
  24. package/dist/components/Select.js.map +1 -0
  25. package/dist/components/Textarea.d.ts +2 -2
  26. package/dist/components/Textarea.d.ts.map +1 -1
  27. package/dist/components/Textarea.js +34 -0
  28. package/dist/components/Textarea.js.map +1 -0
  29. package/dist/components/context.js +8 -0
  30. package/dist/components/context.js.map +1 -0
  31. package/dist/components/controlled/CheckboxGroup.d.ts +2 -2
  32. package/dist/components/controlled/CheckboxGroup.d.ts.map +1 -1
  33. package/dist/components/controlled/CheckboxGroup.js +12 -0
  34. package/dist/components/controlled/CheckboxGroup.js.map +1 -0
  35. package/dist/components/controlled/InputItem.js +2 -0
  36. package/dist/components/controlled/InputItem.js.map +1 -0
  37. package/dist/components/controlled/RadioGroup.d.ts +2 -2
  38. package/dist/components/controlled/RadioGroup.d.ts.map +1 -1
  39. package/dist/components/controlled/RadioGroup.js +12 -0
  40. package/dist/components/controlled/RadioGroup.js.map +1 -0
  41. package/dist/components/controlled/SelectControl.d.ts +2 -2
  42. package/dist/components/controlled/SelectControl.d.ts.map +1 -1
  43. package/dist/components/controlled/SelectControl.js +10 -0
  44. package/dist/components/controlled/SelectControl.js.map +1 -0
  45. package/dist/components/controlled/TextareaControl.d.ts +2 -2
  46. package/dist/components/controlled/TextareaControl.d.ts.map +1 -1
  47. package/dist/components/controlled/TextareaControl.js +10 -0
  48. package/dist/components/controlled/TextareaControl.js.map +1 -0
  49. package/dist/components/controlled/index.d.ts +0 -1
  50. package/dist/components/controlled/index.d.ts.map +1 -1
  51. package/dist/components/controlled/index.js +5 -0
  52. package/dist/components/controlled/index.js.map +1 -0
  53. package/dist/components/index.js +8 -0
  54. package/dist/components/index.js.map +1 -0
  55. package/dist/index.cjs.js +79 -79
  56. package/dist/index.cjs.js.map +1 -1
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.es.js +500 -493
  60. package/dist/index.es.js.map +1 -1
  61. package/dist/index.js +3 -0
  62. package/dist/index.js.map +1 -0
  63. package/dist/utils/class.js +2 -0
  64. package/dist/utils/class.js.map +1 -0
  65. package/package.json +23 -23
  66. package/LICENSE +0 -21
  67. package/dist/components/controlled/InputControl.d.ts +0 -10
  68. package/dist/components/controlled/InputControl.d.ts.map +0 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import x from "react";
1
+ import y 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 Ce;
13
- function dr() {
14
- if (Ce)
12
+ var Ne;
13
+ function vr() {
14
+ if (Ne)
15
15
  return W;
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]);
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);
21
+ for (h in o)
22
+ f.call(o, h) && !a.hasOwnProperty(h) && (g[h] = o[h]);
23
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 };
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 };
27
27
  }
28
- return W.Fragment = v, W.jsx = b, W.jsxs = b, W;
28
+ return W.Fragment = m, W.jsx = v, W.jsxs = v, W;
29
29
  }
30
30
  var Y = {};
31
31
  /**
@@ -38,90 +38,90 @@ var Y = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var Pe;
41
- function fr() {
41
+ function mr() {
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 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";
44
+ function Fe(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = F && e[F] || e[Se];
47
+ var r = I && e[I] || e[ke];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function _(e) {
50
+ var D = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function j(e) {
52
52
  {
53
53
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
54
54
  t[n - 1] = arguments[n];
55
- Ne("error", e, t);
55
+ De("error", e, t);
56
56
  }
57
57
  }
58
- function Ne(e, r, t) {
58
+ function De(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) {
60
+ var n = D.ReactDebugCurrentFrame, d = n.getStackAddendum();
61
+ d !== "" && (r += "%s", t = t.concat([d]));
62
+ var x = t.map(function(u) {
63
63
  return String(u);
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
- var ke = !1, Fe = !1, De = !1, Ae = !1, Me = !1, ae;
69
- ae = Symbol.for("react.module.reference");
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
68
+ var Ae = !1, Me = !1, $e = !1, qe = !1, We = !1, ne;
69
+ ne = Symbol.for("react.module.reference");
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
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
- e.$$typeof === ae || e.getModuleId !== void 0));
75
+ e.$$typeof === ne || e.getModuleId !== void 0));
76
76
  }
77
- function qe(e, r, t) {
77
+ function Le(e, r, t) {
78
78
  var n = e.displayName;
79
79
  if (n)
80
80
  return n;
81
- var p = r.displayName || r.name || "";
82
- return p !== "" ? t + "(" + p + ")" : t;
81
+ var d = r.displayName || r.name || "";
82
+ return d !== "" ? t + "(" + d + ")" : t;
83
83
  }
84
- function ne(e) {
84
+ function se(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
87
  function S(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" && j("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 d:
95
+ case f:
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 h:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
110
  case c:
111
111
  var r = e;
112
- return ne(r) + ".Consumer";
113
- case b:
112
+ return se(r) + ".Consumer";
113
+ case v:
114
114
  var t = e;
115
- return ne(t._context) + ".Provider";
115
+ return se(t._context) + ".Provider";
116
116
  case o:
117
- return qe(e, e.render, "ForwardRef");
118
- case R:
117
+ return Le(e, e.render, "ForwardRef");
118
+ case g:
119
119
  var n = e.displayName || null;
120
120
  return n !== null ? n : S(e.type) || "Memo";
121
121
  case C: {
122
- var p = e, h = p._payload, u = p._init;
122
+ var d = e, x = d._payload, u = d._init;
123
123
  try {
124
- return S(u(h));
124
+ return S(u(x));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,18 +129,18 @@ function fr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var N = Object.assign, $ = 0, se, ie, oe, le, ue, ce, de;
133
- function fe() {
132
+ var k = Object.assign, $ = 0, ie, oe, le, ue, ce, de, fe;
133
+ function pe() {
134
134
  }
135
- fe.__reactDisabledLog = !0;
136
- function We() {
135
+ pe.__reactDisabledLog = !0;
136
+ function Ve() {
137
137
  {
138
138
  if ($ === 0) {
139
- se = console.log, ie = console.info, oe = console.warn, le = console.error, ue = console.group, ce = console.groupCollapsed, de = console.groupEnd;
139
+ ie = console.log, oe = console.info, le = console.warn, ue = console.error, ce = console.group, de = console.groupCollapsed, fe = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: fe,
143
+ value: pe,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
@@ -156,7 +156,7 @@ function fr() {
156
156
  $++;
157
157
  }
158
158
  }
159
- function Ye() {
159
+ function Ue() {
160
160
  {
161
161
  if ($--, $ === 0) {
162
162
  var e = {
@@ -165,30 +165,30 @@ function fr() {
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: N({}, e, {
169
- value: se
170
- }),
171
- info: N({}, e, {
168
+ log: k({}, e, {
172
169
  value: ie
173
170
  }),
174
- warn: N({}, e, {
171
+ info: k({}, e, {
175
172
  value: oe
176
173
  }),
177
- error: N({}, e, {
174
+ warn: k({}, e, {
178
175
  value: le
179
176
  }),
180
- group: N({}, e, {
177
+ error: k({}, e, {
181
178
  value: ue
182
179
  }),
183
- groupCollapsed: N({}, e, {
180
+ group: k({}, e, {
184
181
  value: ce
185
182
  }),
186
- groupEnd: N({}, e, {
183
+ groupCollapsed: k({}, e, {
187
184
  value: de
185
+ }),
186
+ groupEnd: k({}, e, {
187
+ value: fe
188
188
  })
189
189
  });
190
190
  }
191
- $ < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ $ < 0 && j("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,21 +197,21 @@ 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 )?)/);
200
+ } catch (d) {
201
+ var n = d.stack.trim().match(/\n( *(at )?)/);
202
202
  z = n && n[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
- var Le = typeof WeakMap == "function" ? WeakMap : Map;
211
- V = new Le();
210
+ var Be = typeof WeakMap == "function" ? WeakMap : Map;
211
+ V = new Be();
212
212
  }
213
- function pe(e, r) {
214
- if (!e || K)
213
+ function ve(e, r) {
214
+ if (!e || H)
215
215
  return "";
216
216
  {
217
217
  var t = V.get(e);
@@ -219,11 +219,11 @@ function fr() {
219
219
  return t;
220
220
  }
221
221
  var n;
222
- K = !0;
223
- var p = Error.prepareStackTrace;
222
+ H = !0;
223
+ var d = 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, Ve();
227
227
  try {
228
228
  if (r) {
229
229
  var u = function() {
@@ -259,32 +259,32 @@ function fr() {
259
259
  } catch (O) {
260
260
  if (O && n && 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 = n.stack.split(`
263
+ `), R = l.length - 1, E = w.length - 1; R >= 1 && E >= 0 && l[R] !== w[E]; )
264
264
  E--;
265
- for (; y >= 1 && E >= 0; y--, E--)
266
- if (l[y] !== T[E]) {
267
- if (y !== 1 || E !== 1)
265
+ for (; R >= 1 && E >= 0; R--, E--)
266
+ if (l[R] !== w[E]) {
267
+ if (R !== 1 || E !== 1)
268
268
  do
269
- if (y--, E--, E < 0 || l[y] !== T[E]) {
270
- var P = `
271
- ` + l[y].replace(" at new ", " at ");
272
- return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, P), P;
269
+ if (R--, E--, E < 0 || l[R] !== w[E]) {
270
+ var N = `
271
+ ` + l[R].replace(" at new ", " at ");
272
+ return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, N), N;
273
273
  }
274
- while (y >= 1 && E >= 0);
274
+ while (R >= 1 && E >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- K = !1, J.current = h, Ye(), Error.prepareStackTrace = p;
279
+ H = !1, J.current = x, Ue(), Error.prepareStackTrace = d;
280
280
  }
281
- var M = e ? e.displayName || e.name : "", we = M ? L(M) : "";
282
- return typeof e == "function" && V.set(e, we), we;
281
+ var M = e ? e.displayName || e.name : "", Ce = M ? L(M) : "";
282
+ return typeof e == "function" && V.set(e, Ce), Ce;
283
283
  }
284
- function Ve(e, r, t) {
285
- return pe(e, !1);
284
+ function Ge(e, r, t) {
285
+ return ve(e, !1);
286
286
  }
287
- function Ue(e) {
287
+ function Je(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
@@ -292,69 +292,69 @@ function fr() {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return pe(e, Ue(e));
295
+ return ve(e, Je(e));
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 h:
302
302
  return L("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case o:
307
- return Ve(e.render);
308
- case R:
307
+ return Ge(e.render);
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 n = e, d = n._payload, x = n._init;
312
312
  try {
313
- return U(h(p), r, t);
313
+ return U(x(d), r, t);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var B = Object.prototype.hasOwnProperty, ve = {}, me = D.ReactDebugCurrentFrame;
320
+ var B = Object.prototype.hasOwnProperty, me = {}, he = 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
- me.setExtraStackFrame(t);
324
+ he.setExtraStackFrame(t);
325
325
  } else
326
- me.setExtraStackFrame(null);
326
+ he.setExtraStackFrame(null);
327
327
  }
328
- function Be(e, r, t, n, p) {
328
+ function ze(e, r, t, n, d) {
329
329
  {
330
- var h = Function.call.bind(B);
330
+ var x = Function.call.bind(B);
331
331
  for (var u in e)
332
- if (h(e, u)) {
332
+ if (x(e, u)) {
333
333
  var l = void 0;
334
334
  try {
335
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;
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;
338
338
  }
339
339
  l = e[u](r, u, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (y) {
341
- l = y;
340
+ } catch (R) {
341
+ l = R;
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(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));
344
344
  }
345
345
  }
346
346
  }
347
- var Ge = Array.isArray;
348
- function H(e) {
349
- return Ge(e);
347
+ var He = Array.isArray;
348
+ function K(e) {
349
+ return He(e);
350
350
  }
351
- function Je(e) {
351
+ function Ke(e) {
352
352
  {
353
353
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return t;
355
355
  }
356
356
  }
357
- function ze(e) {
357
+ function Xe(e) {
358
358
  try {
359
359
  return be(e), !1;
360
360
  } catch {
@@ -364,18 +364,18 @@ function fr() {
364
364
  function be(e) {
365
365
  return "" + e;
366
366
  }
367
- function he(e) {
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);
367
+ function xe(e) {
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);
370
370
  }
371
- var q = D.ReactCurrentOwner, Ke = {
371
+ var q = D.ReactCurrentOwner, Ze = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, xe, ge, X;
376
+ }, ge, ye, X;
377
377
  X = {};
378
- function He(e) {
378
+ function Qe(e) {
379
379
  if (B.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
@@ -383,7 +383,7 @@ function fr() {
383
383
  }
384
384
  return e.ref !== void 0;
385
385
  }
386
- function Xe(e) {
386
+ function er(e) {
387
387
  if (B.call(e, "key")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
389
  if (r && r.isReactWarning)
@@ -391,16 +391,16 @@ function fr() {
391
391
  }
392
392
  return e.key !== void 0;
393
393
  }
394
- function Ze(e, r) {
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] || (_('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] || (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);
398
398
  }
399
399
  }
400
- function Qe(e, r) {
400
+ function tr(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
+ 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));
404
404
  };
405
405
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
406
  get: t,
@@ -408,10 +408,10 @@ function fr() {
408
408
  });
409
409
  }
410
410
  }
411
- function er(e, r) {
411
+ function ar(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
+ 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));
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 nr = function(e, r, t, n, d, x, u) {
423
423
  var l = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: m,
425
+ $$typeof: b,
426
426
  // Built-in properties that belong on the element
427
427
  type: e,
428
428
  key: r,
429
429
  ref: t,
430
430
  props: u,
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,
@@ -445,25 +445,25 @@ function fr() {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: p
448
+ value: d
449
449
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
450
450
  };
451
- function tr(e, r, t, n, p) {
451
+ function sr(e, r, t, n, d) {
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, 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));
455
+ for (x in r)
456
+ B.call(r, x) && !Ze.hasOwnProperty(x) && (u[x] = r[x]);
457
457
  if (e && e.defaultProps) {
458
- var y = e.defaultProps;
459
- for (h in y)
460
- u[h] === void 0 && (u[h] = y[h]);
458
+ var R = e.defaultProps;
459
+ for (x in R)
460
+ u[x] === void 0 && (u[x] = R[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 && tr(u, E), w && ar(u, E);
465
465
  }
466
- return rr(e, l, T, p, n, q.current, u);
466
+ return nr(e, l, w, d, n, q.current, u);
467
467
  }
468
468
  }
469
469
  var Z = D.ReactCurrentOwner, Re = D.ReactDebugCurrentFrame;
@@ -477,9 +477,9 @@ 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 === b;
481
481
  }
482
- function ye() {
482
+ function Ee() {
483
483
  {
484
484
  if (Z.current) {
485
485
  var e = S(Z.current.type);
@@ -491,7 +491,7 @@ Check the render method of \`` + e + "`.";
491
491
  return "";
492
492
  }
493
493
  }
494
- function ar(e) {
494
+ function ir(e) {
495
495
  {
496
496
  if (e !== void 0) {
497
497
  var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
@@ -502,10 +502,10 @@ Check your code at ` + r + ":" + t + ".";
502
502
  return "";
503
503
  }
504
504
  }
505
- var Ee = {};
506
- function nr(e) {
505
+ var _e = {};
506
+ function or(e) {
507
507
  {
508
- var r = ye();
508
+ var r = Ee();
509
509
  if (!r) {
510
510
  var t = typeof e == "string" ? e : e.displayName || e.name;
511
511
  t && (r = `
@@ -515,39 +515,39 @@ Check the top-level render call using <` + t + ">.");
515
515
  return r;
516
516
  }
517
517
  }
518
- function _e(e, r) {
518
+ function Te(e, r) {
519
519
  {
520
520
  if (!e._store || e._store.validated || e.key != null)
521
521
  return;
522
522
  e._store.validated = !0;
523
- var t = nr(r);
524
- if (Ee[t])
523
+ var t = or(r);
524
+ if (_e[t])
525
525
  return;
526
- Ee[t] = !0;
526
+ _e[t] = !0;
527
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);
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);
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
537
  var n = e[t];
538
- ee(n) && _e(n, r);
538
+ ee(n) && Te(n, 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 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);
547
547
  }
548
548
  }
549
549
  }
550
- function sr(e) {
550
+ function lr(e) {
551
551
  {
552
552
  var r = e.type;
553
553
  if (r == null || typeof r == "string")
@@ -557,129 +557,129 @@ 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
565
  var n = S(r);
566
- Be(t, e.props, "prop", n, e);
566
+ ze(t, e.props, "prop", n, 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 d = S(r);
570
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "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 && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
- function ir(e) {
575
+ function ur(e) {
576
576
  {
577
577
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
578
  var n = r[t];
579
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);
580
+ A(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), 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), j("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
585
585
  }
586
586
  }
587
- function je(e, r, t, n, p, h) {
587
+ function we(e, r, t, n, d, x) {
588
588
  {
589
- var u = $e(e);
589
+ var u = Ye(e);
590
590
  if (!u) {
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();
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);
593
+ var w = ir(d);
594
+ w ? l += w : l += Ee();
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);
597
597
  }
598
- var E = tr(e, r, t, p, h);
598
+ var E = sr(e, r, t, d, x);
599
599
  if (E == null)
600
600
  return E;
601
601
  if (u) {
602
- var P = r.children;
603
- if (P !== void 0)
602
+ var N = r.children;
603
+ if (N !== void 0)
604
604
  if (n)
605
- if (H(P)) {
606
- for (var M = 0; M < P.length; M++)
607
- Te(P[M], e);
608
- Object.freeze && Object.freeze(P);
605
+ if (K(N)) {
606
+ for (var M = 0; M < N.length; M++)
607
+ je(N[M], e);
608
+ Object.freeze && Object.freeze(N);
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
+ 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.");
611
611
  else
612
- Te(P, e);
612
+ je(N, e);
613
613
  }
614
- return e === d ? ir(E) : sr(E), E;
614
+ return e === f ? ur(E) : lr(E), E;
615
615
  }
616
616
  }
617
- function or(e, r, t) {
618
- return je(e, r, t, !0);
617
+ function cr(e, r, t) {
618
+ return we(e, r, t, !0);
619
619
  }
620
- function lr(e, r, t) {
621
- return je(e, r, t, !1);
620
+ function dr(e, r, t) {
621
+ return we(e, r, t, !1);
622
622
  }
623
- var ur = lr, cr = or;
624
- Y.Fragment = d, Y.jsx = ur, Y.jsxs = cr;
623
+ var fr = dr, pr = cr;
624
+ Y.Fragment = f, Y.jsx = fr, Y.jsxs = pr;
625
625
  }()), Y;
626
626
  }
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({
627
+ process.env.NODE_ENV === "production" ? re.exports = vr() : re.exports = mr();
628
+ var s = re.exports;
629
+ const P = (...p) => p.filter(Boolean).join(" "), F = y.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 = `
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__ */ i.jsx("label", { htmlFor: s.id, className: I(b, v), children: /* @__PURE__ */ i.jsxs("span", { className: "flex items-center", children: [
663
- /* @__PURE__ */ i.jsx(
664
- "input",
665
- {
666
- className: c,
667
- type: "checkbox",
668
- "aria-describedby": a.helperTextId,
669
- "aria-errormessage": a.errorMessageId,
670
- "aria-invalid": a.isInvalid ?? !1,
671
- ...s,
672
- ref: m
673
- }
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 })
677
- ] }) });
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 = `
634
+ }), Ie = y.forwardRef((p, b) => {
635
+ const { className: m, children: f, ...i } = p, a = y.useContext(F);
636
+ a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
637
+ const v = `
638
+ inline-block
639
+ text-base
640
+ cursor-pointer
641
+ py-2
642
+ mr-4
643
+ `, c = `
644
+ peer
645
+ hidden
646
+ `, o = `
647
+ bg-clip-content
648
+ w-6 h-6
649
+ ml-1
650
+ mr-2
651
+ rounded
652
+ border
653
+ border-solid
654
+ border-sumi-900
655
+ fill-transparent
656
+ peer-checked:fill-white-1000
657
+ peer-checked:bg-sea-600
658
+ peer-checked:border-none
659
+ peer-disabled:border-sumi-500
660
+ `;
661
+ return /* @__PURE__ */ s.jsx("label", { htmlFor: i.id, className: P(v, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
662
+ /* @__PURE__ */ s.jsx(
663
+ "input",
664
+ {
665
+ className: c,
666
+ type: "checkbox",
667
+ "aria-describedby": a.helperTextId,
668
+ "aria-errormessage": a.errorMessageId,
669
+ "aria-invalid": a.isInvalid ?? !1,
670
+ ...i,
671
+ ref: b
672
+ }
673
+ ),
674
+ /* @__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" }) }) }),
675
+ /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: f })
676
+ ] }) });
677
+ });
678
+ Ie.displayName = "Checkbox";
679
+ const Se = y.forwardRef((p, b) => {
680
+ const { className: m, children: f, ...i } = p, a = y.useContext(F);
681
+ a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
682
+ const v = `
683
683
  inline-block
684
684
  text-base
685
685
  cursor-pointer
@@ -703,8 +703,8 @@ 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__ */ s.jsx("label", { htmlFor: i.id, className: P(v, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
707
+ /* @__PURE__ */ s.jsx(
708
708
  "input",
709
709
  {
710
710
  className: c,
@@ -712,341 +712,348 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
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: b
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__ */ s.jsx("span", { className: o }),
720
+ /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: f })
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 = `
727
- peer
728
- cursor-pointer
729
- appearance-none
730
- text-base
731
- w-full
732
- bg-white-100
733
- border
734
- border-solid
735
- py-4 px-4 pr-8
736
- rounded-[8px]
737
- focus:outline
738
- focus:outline-2
739
- focus:outline-wood-500
740
- disabled:bg-transparent
741
- disabled:text-sumi-500
742
- disabled:border-sumi-500
743
- `, o = `
744
- flex items-center
745
- absolute inset-y-0 right-0
746
- px-2
747
- pointer-events-none
748
- peer-disabled:fill-sumi-500
749
- `;
750
- return /* @__PURE__ */ i.jsxs("label", { className: "inline-block relative", children: [
751
- /* @__PURE__ */ i.jsx(
752
- "select",
753
- {
754
- id: s.id ?? a.id,
755
- className: I(c, b, f.className),
756
- "aria-describedby": a.helperTextId,
757
- "aria-errormessage": a.errorMessageId,
758
- "aria-invalid": a.isInvalid ?? !1,
759
- ...s,
760
- ref: m,
761
- children: d
762
- }
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" }) }) })
765
- ] });
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 = `
772
- p-4
773
- rounded-lg
774
- border
775
- border-solid
776
- focus:outline
777
- focus:outline-2
778
- focus:outline-wood-500
779
- disabled:bg-transparent
780
- disabled:text-sumi-500
781
- disabled:border-sumi-500
782
- `;
783
- return /* @__PURE__ */ i.jsx(
784
- "input",
785
- {
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,
792
- ...d,
793
- ref: m
794
- }
795
- );
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 = `
802
- p-4
803
- rounded-lg
804
- border
805
- border-solid
806
- focus:outline
807
- focus:outline-2
808
- focus:outline-wood-500
809
- disabled:bg-transparent
810
- disabled:text-sumi-500
811
- disabled:border-sumi-500
812
- `;
813
- return /* @__PURE__ */ i.jsx(
814
- "textarea",
722
+ });
723
+ Se.displayName = "Radio";
724
+ const hr = y.forwardRef((p, b) => {
725
+ const { className: m, children: f, ...i } = p, a = y.useContext(F);
726
+ a.isRequired && (i.required = !0);
727
+ const v = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
728
+ peer
729
+ cursor-pointer
730
+ appearance-none
731
+ text-base
732
+ w-full
733
+ bg-white-100
734
+ border
735
+ border-solid
736
+ py-4 px-4 pr-8
737
+ rounded-[8px]
738
+ focus:outline
739
+ focus:outline-2
740
+ focus:outline-wood-500
741
+ disabled:bg-transparent
742
+ disabled:text-sumi-500
743
+ disabled:border-sumi-500
744
+ `, o = `
745
+ flex items-center
746
+ absolute inset-y-0 right-0
747
+ px-2
748
+ pointer-events-none
749
+ peer-disabled:fill-sumi-500
750
+ `;
751
+ return /* @__PURE__ */ s.jsxs("label", { className: "inline-block relative", children: [
752
+ /* @__PURE__ */ s.jsx(
753
+ "select",
815
754
  {
816
- id: s.id ?? a.id,
817
- className: I(c, b, v),
755
+ id: i.id ?? a.id,
756
+ className: P(c, v, p.className),
818
757
  "aria-describedby": a.helperTextId,
819
758
  "aria-errormessage": a.errorMessageId,
820
759
  "aria-invalid": a.isInvalid ?? !1,
821
- ...s,
822
- ref: m,
823
- children: d
760
+ ...i,
761
+ ref: b,
762
+ children: f
824
763
  }
825
- );
826
- }
827
- ), te = x.forwardRef((f, m) => {
828
- const v = x.useId(), {
829
- labelText: d,
830
- className: s,
764
+ ),
765
+ /* @__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" }) }) })
766
+ ] });
767
+ }), br = y.forwardRef((p, b) => {
768
+ const { className: m, ...f } = p, i = y.useContext(F);
769
+ i.isRequired && (f.required = !0);
770
+ const a = i.isInvalid ? "border-sun-800" : "border-sumi-900", v = `
771
+ p-4
772
+ rounded-lg
773
+ border
774
+ border-solid
775
+ focus:outline
776
+ focus:outline-2
777
+ focus:outline-wood-500
778
+ disabled:bg-transparent
779
+ disabled:text-sumi-500
780
+ disabled:border-sumi-500
781
+ `;
782
+ return /* @__PURE__ */ s.jsx(
783
+ "input",
784
+ {
785
+ type: "text",
786
+ id: f.id ?? i.id,
787
+ className: P(v, a, m),
788
+ "aria-describedby": i.helperTextId,
789
+ "aria-errormessage": i.errorMessageId,
790
+ "aria-invalid": i.isInvalid ?? !1,
791
+ ref: b,
792
+ ...f
793
+ }
794
+ );
795
+ });
796
+ br.displayName = "Input";
797
+ const Oe = y.forwardRef((p, b) => {
798
+ const { className: m, children: f, onChange: i, maxLength: a, ...v } = p, [c, o] = y.useState(0), _ = (I) => {
799
+ i && i(I), o(I.target.value.length);
800
+ }, h = y.useContext(F);
801
+ h.isRequired && (v.required = !0);
802
+ const g = h.isInvalid ? "border-sun-800" : "border-sumi-900", C = c > (a || 0) ? "text-sun-800" : "text-sumi-700", T = `
803
+ p-4
804
+ rounded-lg
805
+ border
806
+ border-solid
807
+ focus:outline
808
+ focus:outline-2
809
+ focus:outline-wood-500
810
+ disabled:bg-transparent
811
+ disabled:text-sumi-500
812
+ disabled:border-sumi-500
813
+ `;
814
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
815
+ /* @__PURE__ */ s.jsx(
816
+ "textarea",
817
+ {
818
+ id: v.id ?? h.id,
819
+ className: P(T, g, m),
820
+ "aria-describedby": h.helperTextId,
821
+ "aria-errormessage": h.errorMessageId,
822
+ "aria-invalid": h.isInvalid ?? !1,
823
+ onChange: _,
824
+ ...v,
825
+ ref: b,
826
+ children: f
827
+ }
828
+ ),
829
+ a ? /* @__PURE__ */ s.jsxs("p", { className: "text-xs text-sumi-700", children: [
830
+ /* @__PURE__ */ s.jsx("span", { className: C, children: c }),
831
+ "/",
832
+ /* @__PURE__ */ s.jsx("span", { children: a })
833
+ ] }) : ""
834
+ ] });
835
+ });
836
+ Oe.displayName = "Textarea";
837
+ const te = y.forwardRef((p, b) => {
838
+ const m = y.useId(), {
839
+ labelText: f,
840
+ className: i,
831
841
  helperText: a,
832
- errorMessage: b,
842
+ errorMessage: v,
833
843
  isInvalid: c,
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}`,
845
+ children: _,
846
+ ...h
847
+ } = p, g = {
848
+ id: p.htmlFor ?? `input-${m}`,
849
+ helperTextId: `helper-text-${m}`,
850
+ errorMessageId: `error-message-${m}`,
841
851
  isInvalid: c ?? !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__ */ s.jsx(F.Provider, { value: g, children: /* @__PURE__ */ s.jsxs("div", { className: P("mb-4", i), children: [
855
+ /* @__PURE__ */ s.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: P("block mb-2 text-label", c && "text-sun-800"),
859
+ htmlFor: g.id,
860
+ ref: b,
861
+ ...h,
852
862
  children: [
853
- d,
854
- o && /* @__PURE__ */ i.jsx("span", { className: "text-sun-800", children: " *" })
863
+ f,
864
+ o && /* @__PURE__ */ s.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__ */ s.jsx("p", { id: g.helperTextId, className: "text-xs text-sumi-700 mb-2", children: a }),
869
+ _,
870
+ c && /* @__PURE__ */ s.jsx(
861
871
  "p",
862
872
  {
863
- id: R.errorMessageId,
864
- className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
865
- children: b
873
+ id: g.errorMessageId,
874
+ className: P(
875
+ "text-xs text-sun-800",
876
+ a ? "mt-1" : "mt-2"
877
+ ),
878
+ children: v
866
879
  }
867
880
  )
868
881
  ] }) });
869
- }), Ie = x.forwardRef((f, m) => {
870
- const v = x.useId(), {
871
- labelText: d,
872
- className: s,
882
+ });
883
+ te.displayName = "LabelControl";
884
+ const ae = y.forwardRef((p, b) => {
885
+ const m = y.useId(), {
886
+ labelText: f,
887
+ className: i,
873
888
  helperText: a,
874
- errorMessage: b,
889
+ errorMessage: v,
875
890
  isInvalid: c,
876
891
  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}`,
892
+ direction: _,
893
+ children: h,
894
+ ...g
895
+ } = p, T = {
896
+ groupName: g.name ?? `group-${m}`,
897
+ helperTextId: `helper-text-${m}`,
898
+ errorMessageId: `error-message-${m}`,
884
899
  isInvalid: c ?? !1,
885
900
  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(
901
+ }, I = _ ?? "flex-col";
902
+ return /* @__PURE__ */ s.jsx(F.Provider, { value: T, children: /* @__PURE__ */ s.jsxs("fieldset", { className: P("mb-4", i), ref: b, ...g, children: [
903
+ /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
889
904
  "p",
890
905
  {
891
- className: I("block mb-2 text-label", c && "text-sun-800"),
906
+ className: P(
907
+ "block mb-2 text-label",
908
+ c && "text-sun-800"
909
+ ),
892
910
  children: [
893
- d,
894
- o && /* @__PURE__ */ i.jsx("span", { className: "text-sun-800", children: " *" })
911
+ f,
912
+ o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
895
913
  ]
896
914
  }
897
915
  ) }),
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(
916
+ /* @__PURE__ */ s.jsx("div", { className: P("inline-flex", I), children: h }),
917
+ a && /* @__PURE__ */ s.jsx("p", { id: T.helperTextId, className: "text-xs text-sumi-700 mt-2", children: a }),
918
+ c && /* @__PURE__ */ s.jsx(
901
919
  "p",
902
920
  {
903
- id: w.errorMessageId,
904
- className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
905
- children: b
921
+ id: T.errorMessageId,
922
+ className: P(
923
+ "text-xs text-sun-800",
924
+ a ? "mt-1" : "mt-2"
925
+ ),
926
+ children: v
906
927
  }
907
928
  )
908
929
  ] }) });
909
- }), gr = x.forwardRef((f, m) => {
930
+ });
931
+ ae.displayName = "FieldsetControl";
932
+ const xr = y.forwardRef((p, b) => {
910
933
  const {
911
- items: v,
912
- onChange: d,
913
- className: s,
934
+ items: m,
935
+ onChange: f,
936
+ className: i,
914
937
  labelText: a,
915
- helperText: b,
938
+ helperText: v,
916
939
  errorMessage: c,
917
940
  isInvalid: o,
918
- isRequired: j,
919
- ...g
920
- } = f;
921
- return /* @__PURE__ */ i.jsx(
922
- Ie,
941
+ isRequired: _,
942
+ ...h
943
+ } = p;
944
+ return /* @__PURE__ */ s.jsx(
945
+ ae,
923
946
  {
924
- className: s,
947
+ className: i,
925
948
  labelText: a,
926
- helperText: b,
949
+ helperText: v,
927
950
  errorMessage: c,
928
951
  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))
952
+ isRequired: _,
953
+ ref: b,
954
+ ...h,
955
+ children: m.map(({ label: g, value: C }, T) => /* @__PURE__ */ s.jsx(Ie, { value: C, onChange: f, children: g }, T))
933
956
  }
934
957
  );
935
- }), Rr = x.forwardRef((f, m) => {
958
+ });
959
+ xr.displayName = "CheckboxGroup";
960
+ const gr = y.forwardRef((p, b) => {
936
961
  const {
937
- items: v,
938
- onChange: d,
939
- className: s,
962
+ items: m,
963
+ onChange: f,
964
+ className: i,
940
965
  labelText: a,
941
- helperText: b,
966
+ helperText: v,
942
967
  errorMessage: c,
943
968
  isInvalid: o,
944
- isRequired: j,
945
- defaultValue: g,
946
- ...R
947
- } = f;
948
- return /* @__PURE__ */ i.jsx(
949
- Ie,
969
+ isRequired: _,
970
+ defaultValue: h,
971
+ ...g
972
+ } = p;
973
+ return /* @__PURE__ */ s.jsx(
974
+ ae,
950
975
  {
951
- className: s,
976
+ className: i,
952
977
  labelText: a,
953
- helperText: b,
978
+ helperText: v,
954
979
  errorMessage: c,
955
980
  isInvalid: o,
956
- isRequired: j,
957
- ref: m,
958
- ...R,
959
- children: v.map(({ label: C, value: w }, F) => /* @__PURE__ */ i.jsx(
960
- vr,
981
+ isRequired: _,
982
+ ref: b,
983
+ ...g,
984
+ children: m.map(({ label: C, value: T }, I) => /* @__PURE__ */ s.jsx(
985
+ Se,
961
986
  {
962
- value: w,
963
- onChange: d,
964
- defaultChecked: g === w,
987
+ value: T,
988
+ onChange: f,
989
+ defaultChecked: h === T,
965
990
  children: C
966
991
  },
967
- F
992
+ I
968
993
  ))
969
994
  }
970
995
  );
971
- }), yr = x.forwardRef((f, m) => {
972
- const {
973
- className: v,
974
- labelText: d,
975
- helperText: s,
976
- errorMessage: a,
977
- isInvalid: b,
978
- isRequired: c,
979
- ...o
980
- } = f;
981
- return /* @__PURE__ */ i.jsx(
982
- te,
983
- {
984
- className: v,
985
- labelText: d,
986
- helperText: s,
987
- errorMessage: a,
988
- isInvalid: b,
989
- isRequired: c,
990
- children: /* @__PURE__ */ i.jsx(mr, { ref: m, ...o })
991
- }
992
- );
993
- }), Er = x.forwardRef((f, m) => {
996
+ });
997
+ gr.displayName = "RadioGroup";
998
+ const yr = y.forwardRef((p, b) => {
994
999
  const {
995
- className: v,
996
- labelText: d,
997
- helperText: s,
1000
+ className: m,
1001
+ labelText: f,
1002
+ helperText: i,
998
1003
  errorMessage: a,
999
- isInvalid: b,
1004
+ isInvalid: v,
1000
1005
  isRequired: c,
1001
1006
  ...o
1002
- } = f;
1003
- return /* @__PURE__ */ i.jsx(
1007
+ } = p;
1008
+ return /* @__PURE__ */ s.jsx(
1004
1009
  te,
1005
1010
  {
1006
- className: v,
1007
- labelText: d,
1008
- helperText: s,
1011
+ className: m,
1012
+ labelText: f,
1013
+ helperText: i,
1009
1014
  errorMessage: a,
1010
- isInvalid: b,
1015
+ isInvalid: v,
1011
1016
  isRequired: c,
1012
- children: /* @__PURE__ */ i.jsx(br, { ref: m, ...o })
1017
+ children: /* @__PURE__ */ s.jsx(hr, { ref: b, ...o })
1013
1018
  }
1014
1019
  );
1015
- }), _r = x.forwardRef((f, m) => {
1020
+ });
1021
+ yr.displayName = "SelectControl";
1022
+ const Rr = y.forwardRef((p, b) => {
1016
1023
  const {
1017
- className: v,
1018
- labelText: d,
1019
- helperText: s,
1024
+ className: m,
1025
+ labelText: f,
1026
+ helperText: i,
1020
1027
  errorMessage: a,
1021
- isInvalid: b,
1028
+ isInvalid: v,
1022
1029
  isRequired: c,
1023
1030
  ...o
1024
- } = f;
1025
- return /* @__PURE__ */ i.jsx(
1031
+ } = p;
1032
+ return /* @__PURE__ */ s.jsx(
1026
1033
  te,
1027
1034
  {
1028
- className: v,
1029
- labelText: d,
1030
- helperText: s,
1035
+ className: m,
1036
+ labelText: f,
1037
+ helperText: i,
1031
1038
  errorMessage: a,
1032
- isInvalid: b,
1039
+ isInvalid: v,
1033
1040
  isRequired: c,
1034
- children: /* @__PURE__ */ i.jsx(hr, { ref: m, ...o })
1041
+ children: /* @__PURE__ */ s.jsx(Oe, { ref: b, ...o })
1035
1042
  }
1036
1043
  );
1037
1044
  });
1045
+ Rr.displayName = "TextareaControl";
1038
1046
  export {
1039
- pr as Checkbox,
1040
- gr as CheckboxGroup,
1041
- Ie as FieldsetControl,
1047
+ Ie as Checkbox,
1048
+ xr as CheckboxGroup,
1049
+ ae as FieldsetControl,
1042
1050
  br as Input,
1043
- Er as InputControl,
1044
1051
  te as LabelControl,
1045
- vr as Radio,
1046
- Rr as RadioGroup,
1047
- mr as Select,
1052
+ Se as Radio,
1053
+ gr as RadioGroup,
1054
+ hr as Select,
1048
1055
  yr as SelectControl,
1049
- hr as Textarea,
1050
- _r as TextareaControl
1056
+ Oe as Textarea,
1057
+ Rr as TextareaControl
1051
1058
  };
1052
1059
  //# sourceMappingURL=index.es.js.map