@sakura-ui/forms 0.1.2 → 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 +80 -80
  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 +501 -504
  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 R 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 = 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 };
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
+ if (c && c.defaultProps)
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 = m, W.jsx = p, W.jsxs = p, W;
28
+ return W.Fragment = m, W.jsx = v, W.jsxs = v, W;
29
29
  }
30
30
  var Y = {};
31
31
  /**
@@ -38,61 +38,61 @@ 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 = 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) {
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 = S && e[S] || 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 T(e) {
50
+ var D = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function j(e) {
52
52
  {
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);
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
+ De("error", e, t);
56
56
  }
57
57
  }
58
- function Oe(e, r, t) {
58
+ function De(e, r, t) {
59
59
  {
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);
60
+ var n = D.ReactDebugCurrentFrame, d = n.getStackAddendum();
61
+ d !== "" && (r += "%s", t = t.concat([d]));
62
+ var x = t.map(function(u) {
63
+ return String(u);
64
64
  });
65
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 === 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
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) {
78
- var s = e.displayName;
79
- if (s)
80
- return s;
81
- var v = r.displayName || r.name || "";
82
- return v !== "" ? t + "(" + v + ")" : t;
77
+ function Le(e, r, t) {
78
+ var n = e.displayName;
79
+ if (n)
80
+ return n;
81
+ var d = r.displayName || r.name || "";
82
+ return d !== "" ? t + "(" + d + ")" : t;
83
83
  }
84
- function ne(e) {
84
+ function se(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function N(e) {
87
+ function S(e) {
88
88
  if (e == null)
89
89
  return null;
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")
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
97
  case m:
98
98
  return "Portal";
@@ -102,26 +102,26 @@ function fr() {
102
102
  return "StrictMode";
103
103
  case _:
104
104
  return "Suspense";
105
- case b:
105
+ case h:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
- case u:
110
+ case c:
111
111
  var r = e;
112
- return ne(r) + ".Consumer";
113
- case p:
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");
117
+ return Le(e, e.render, "ForwardRef");
118
118
  case g:
119
- var s = e.displayName || null;
120
- return s !== null ? s : N(e.type) || "Memo";
119
+ var n = e.displayName || null;
120
+ return n !== null ? n : S(e.type) || "Memo";
121
121
  case C: {
122
- var v = e, x = v._payload, c = v._init;
122
+ var d = e, x = d._payload, u = d._init;
123
123
  try {
124
- return N(c(x));
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 k = 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 = {
@@ -166,29 +166,29 @@ function fr() {
166
166
  };
167
167
  Object.defineProperties(console, {
168
168
  log: k({}, e, {
169
- value: se
169
+ value: ie
170
170
  }),
171
171
  info: k({}, e, {
172
- value: ie
172
+ value: oe
173
173
  }),
174
174
  warn: k({}, e, {
175
- value: oe
175
+ value: le
176
176
  }),
177
177
  error: k({}, e, {
178
- value: le
178
+ value: ue
179
179
  }),
180
180
  group: k({}, e, {
181
- value: ue
181
+ value: ce
182
182
  }),
183
183
  groupCollapsed: k({}, e, {
184
- value: ce
184
+ value: de
185
185
  }),
186
186
  groupEnd: k({}, e, {
187
- value: de
187
+ value: fe
188
188
  })
189
189
  });
190
190
  }
191
- $ < 0 && T("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,9 +197,9 @@ function fr() {
197
197
  if (z === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (v) {
201
- var s = v.stack.trim().match(/\n( *(at )?)/);
202
- z = s && s[1] || "";
200
+ } catch (d) {
201
+ var n = d.stack.trim().match(/\n( *(at )?)/);
202
+ z = n && n[1] || "";
203
203
  }
204
204
  return `
205
205
  ` + z + e;
@@ -207,10 +207,10 @@ function fr() {
207
207
  }
208
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) {
213
+ function ve(e, r) {
214
214
  if (!e || H)
215
215
  return "";
216
216
  {
@@ -218,73 +218,73 @@ function fr() {
218
218
  if (t !== void 0)
219
219
  return t;
220
220
  }
221
- var s;
221
+ var n;
222
222
  H = !0;
223
- var v = Error.prepareStackTrace;
223
+ var d = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var x;
226
- x = J.current, J.current = null, We();
226
+ x = J.current, J.current = null, Ve();
227
227
  try {
228
228
  if (r) {
229
- var c = function() {
229
+ var u = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(c.prototype, "props", {
232
+ if (Object.defineProperty(u.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(c, []);
238
+ Reflect.construct(u, []);
239
239
  } catch (O) {
240
- s = O;
240
+ n = O;
241
241
  }
242
- Reflect.construct(e, [], c);
242
+ Reflect.construct(e, [], u);
243
243
  } else {
244
244
  try {
245
- c.call();
245
+ u.call();
246
246
  } catch (O) {
247
- s = O;
247
+ n = O;
248
248
  }
249
- e.call(c.prototype);
249
+ e.call(u.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
254
  } catch (O) {
255
- s = O;
255
+ n = O;
256
256
  }
257
257
  e();
258
258
  }
259
259
  } catch (O) {
260
- if (O && s && typeof O.stack == "string") {
260
+ if (O && n && typeof O.stack == "string") {
261
261
  for (var l = O.stack.split(`
262
- `), w = s.stack.split(`
263
- `), y = l.length - 1, E = w.length - 1; y >= 1 && E >= 0 && l[y] !== w[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] !== w[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] !== w[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
- H = !1, J.current = x, Ye(), Error.prepareStackTrace = v;
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,90 +292,90 @@ 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
299
  case _:
300
300
  return L("Suspense");
301
- case b:
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);
307
+ return Ge(e.render);
308
308
  case g:
309
309
  return U(e.type, r, t);
310
310
  case C: {
311
- var s = e, v = s._payload, x = s._init;
311
+ var n = e, d = n._payload, x = n._init;
312
312
  try {
313
- return U(x(v), 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, s, v) {
328
+ function ze(e, r, t, n, d) {
329
329
  {
330
330
  var x = Function.call.bind(B);
331
- for (var c in e)
332
- if (x(e, c)) {
331
+ for (var u in e)
332
+ if (x(e, u)) {
333
333
  var l = void 0;
334
334
  try {
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`.");
335
+ if (typeof e[u] != "function") {
336
+ var w = Error((n || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw w.name = "Invariant Violation", w;
338
338
  }
339
- l = e[c](r, c, s, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (y) {
341
- l = y;
339
+ l = e[u](r, u, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (R) {
341
+ l = R;
342
342
  }
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));
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;
347
+ var He = Array.isArray;
348
348
  function K(e) {
349
- return Ge(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
- return he(e), !1;
359
+ return be(e), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function he(e) {
364
+ function be(e) {
365
365
  return "" + e;
366
366
  }
367
- function be(e) {
368
- if (ze(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);
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, He = {
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 Ke(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
- 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);
396
+ var t = S(q.current.type);
397
+ X[t] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(q.current.type), e.ref), X[t] = !0);
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, 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));
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, 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));
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,15 +419,15 @@ function fr() {
419
419
  });
420
420
  }
421
421
  }
422
- var rr = function(e, r, t, s, v, x, c) {
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: h,
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
- props: c,
430
+ props: u,
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: x
433
433
  };
@@ -440,30 +440,30 @@ function fr() {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: s
443
+ value: n
444
444
  }), Object.defineProperty(l, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: v
448
+ value: d
449
449
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
450
450
  };
451
- function tr(e, r, t, s, v) {
451
+ function sr(e, r, t, n, d) {
452
452
  {
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));
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
455
  for (x in r)
456
- B.call(r, x) && !He.hasOwnProperty(x) && (c[x] = r[x]);
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 (x in y)
460
- c[x] === void 0 && (c[x] = y[x]);
458
+ var R = e.defaultProps;
459
+ for (x in R)
460
+ u[x] === void 0 && (u[x] = R[x]);
461
461
  }
462
462
  if (l || w) {
463
463
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- l && Qe(c, E), w && er(c, E);
464
+ l && tr(u, E), w && ar(u, E);
465
465
  }
466
- return rr(e, l, w, v, s, q.current, c);
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,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 === h;
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
- var e = N(Z.current.type);
485
+ var e = S(Z.current.type);
486
486
  if (e)
487
487
  return `
488
488
 
@@ -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,17 +515,17 @@ 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;
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);
526
+ _e[t] = !0;
527
+ var n = "";
528
+ e && e._owner && e._owner !== Z.current && (n = " It was passed a child from " + S(e._owner.type) + "."), A(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), A(null);
529
529
  }
530
530
  }
531
531
  function je(e, r) {
@@ -534,20 +534,20 @@ Check the top-level render call using <` + t + ">.");
534
534
  return;
535
535
  if (K(e))
536
536
  for (var t = 0; t < e.length; t++) {
537
- var s = e[t];
538
- ee(s) && _e(s, r);
537
+ var n = e[t];
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 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);
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")
@@ -562,131 +562,131 @@ Check the top-level render call using <` + t + ">.");
562
562
  else
563
563
  return;
564
564
  if (t) {
565
- var s = N(r);
566
- Be(t, e.props, "prop", s, e);
565
+ var n = S(r);
566
+ ze(t, e.props, "prop", n, e);
567
567
  } else if (r.PropTypes !== void 0 && !Q) {
568
568
  Q = !0;
569
- var v = N(r);
570
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "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 && T("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
- 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);
578
+ var n = r[t];
579
+ if (n !== "children" && n !== "key") {
580
+ A(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (A(e), T("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 Te(e, r, t, s, v, x) {
587
+ function we(e, r, t, n, d, x) {
588
588
  {
589
- var c = $e(e);
590
- if (!c) {
589
+ var u = Ye(e);
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 w = ar(v);
594
- w ? l += w : l += ye();
595
- var y;
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);
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, v, x);
598
+ var E = sr(e, r, t, d, x);
599
599
  if (E == null)
600
600
  return E;
601
- if (c) {
602
- var P = r.children;
603
- if (P !== void 0)
604
- if (s)
605
- if (K(P)) {
606
- for (var M = 0; M < P.length; M++)
607
- je(P[M], e);
608
- Object.freeze && Object.freeze(P);
601
+ if (u) {
602
+ var N = r.children;
603
+ if (N !== void 0)
604
+ if (n)
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
- 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.");
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
- je(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 Te(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 Te(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 n = re.exports;
629
- const I = (...f) => f.filter(Boolean).join(" "), F = R.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 = 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
- inline-block
640
- text-base
641
- cursor-pointer
642
- py-2
643
- mr-4
644
- `, u = `
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__ */ 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
- "input",
665
- {
666
- className: u,
667
- type: "checkbox",
668
- "aria-describedby": a.helperTextId,
669
- "aria-errormessage": a.errorMessageId,
670
- "aria-invalid": a.isInvalid ?? !1,
671
- ...i,
672
- ref: h
673
- }
674
- ),
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
- ] }) });
678
- }
679
- ), vr = R.forwardRef((f, h) => {
680
- const { className: m, children: d, ...i } = f, a = R.useContext(F);
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
681
  a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
682
- const p = `
682
+ const v = `
683
683
  inline-block
684
684
  text-base
685
685
  cursor-pointer
686
686
  py-2
687
687
  mr-4
688
688
 
689
- `, u = `
689
+ `, c = `
690
690
  peer
691
691
  hidden
692
692
  `, o = `
@@ -703,360 +703,357 @@ const I = (...f) => f.filter(Boolean).join(" "), F = R.createContext({
703
703
  peer-checked:border-sea-600
704
704
  peer-disabled:border-sumi-500
705
705
  `;
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(
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
- className: u,
710
+ className: c,
711
711
  type: "radio",
712
712
  "aria-describedby": a.helperTextId,
713
713
  "aria-errormessage": a.errorMessageId,
714
714
  "aria-invalid": a.isInvalid ?? !1,
715
715
  ...i,
716
- ref: h
716
+ ref: b
717
717
  }
718
718
  ),
719
- /* @__PURE__ */ n.jsx("span", { className: o }),
720
- /* @__PURE__ */ n.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 = 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
- 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__ */ n.jsxs("label", { className: "inline-block relative", children: [
751
- /* @__PURE__ */ n.jsx(
752
- "select",
753
- {
754
- id: i.id ?? a.id,
755
- className: I(u, p, f.className),
756
- "aria-describedby": a.helperTextId,
757
- "aria-errormessage": a.errorMessageId,
758
- "aria-invalid": a.isInvalid ?? !1,
759
- ...i,
760
- ref: h,
761
- children: d
762
- }
763
- ),
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
- ] });
766
- }
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
- 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__ */ n.jsx(
784
- "input",
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",
785
754
  {
786
- type: "text",
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
- ...d,
793
- ref: h
755
+ id: i.id ?? a.id,
756
+ className: P(c, v, p.className),
757
+ "aria-describedby": a.helperTextId,
758
+ "aria-errormessage": a.errorMessageId,
759
+ "aria-invalid": a.isInvalid ?? !1,
760
+ ...i,
761
+ ref: b,
762
+ children: f
794
763
  }
795
- );
796
- }
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 = `
804
- p-4
805
- rounded-lg
806
- border
807
- border-solid
808
- focus:outline
809
- focus:outline-2
810
- focus:outline-wood-500
811
- disabled:bg-transparent
812
- disabled:text-sumi-500
813
- disabled:border-sumi-500
814
- `;
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
- ] });
836
- }
837
- ), te = R.forwardRef((f, h) => {
838
- const m = R.useId(), {
839
- labelText: d,
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
840
  className: i,
841
841
  helperText: a,
842
- errorMessage: p,
843
- isInvalid: u,
842
+ errorMessage: v,
843
+ isInvalid: c,
844
844
  isRequired: o,
845
845
  children: _,
846
- ...b
847
- } = f, g = {
848
- id: f.htmlFor ?? `input-${m}`,
846
+ ...h
847
+ } = p, g = {
848
+ id: p.htmlFor ?? `input-${m}`,
849
849
  helperTextId: `helper-text-${m}`,
850
850
  errorMessageId: `error-message-${m}`,
851
- isInvalid: u ?? !1,
851
+ isInvalid: c ?? !1,
852
852
  isRequired: o ?? !1
853
853
  };
854
- return /* @__PURE__ */ n.jsx(F.Provider, { value: g, children: /* @__PURE__ */ n.jsxs("div", { className: I("mb-4", i), children: [
855
- /* @__PURE__ */ n.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(
856
856
  "label",
857
857
  {
858
- className: I("block mb-2 text-label", u && "text-sun-800"),
858
+ className: P("block mb-2 text-label", c && "text-sun-800"),
859
859
  htmlFor: g.id,
860
- ref: h,
861
- ...b,
860
+ ref: b,
861
+ ...h,
862
862
  children: [
863
- d,
864
- o && /* @__PURE__ */ n.jsx("span", { className: "text-sun-800", children: " *" })
863
+ f,
864
+ o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
865
865
  ]
866
866
  }
867
867
  ),
868
- a && /* @__PURE__ */ n.jsx("p", { id: g.helperTextId, className: "text-xs text-sumi-700 mb-2", children: a }),
868
+ a && /* @__PURE__ */ s.jsx("p", { id: g.helperTextId, className: "text-xs text-sumi-700 mb-2", children: a }),
869
869
  _,
870
- u && /* @__PURE__ */ n.jsx(
870
+ c && /* @__PURE__ */ s.jsx(
871
871
  "p",
872
872
  {
873
873
  id: g.errorMessageId,
874
- className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
875
- children: p
874
+ className: P(
875
+ "text-xs text-sun-800",
876
+ a ? "mt-1" : "mt-2"
877
+ ),
878
+ children: v
876
879
  }
877
880
  )
878
881
  ] }) });
879
- }), Ie = R.forwardRef((f, h) => {
880
- const m = R.useId(), {
881
- labelText: d,
882
+ });
883
+ te.displayName = "LabelControl";
884
+ const ae = y.forwardRef((p, b) => {
885
+ const m = y.useId(), {
886
+ labelText: f,
882
887
  className: i,
883
888
  helperText: a,
884
- errorMessage: p,
885
- isInvalid: u,
889
+ errorMessage: v,
890
+ isInvalid: c,
886
891
  isRequired: o,
887
892
  direction: _,
888
- children: b,
893
+ children: h,
889
894
  ...g
890
- } = f, j = {
895
+ } = p, T = {
891
896
  groupName: g.name ?? `group-${m}`,
892
897
  helperTextId: `helper-text-${m}`,
893
898
  errorMessageId: `error-message-${m}`,
894
- isInvalid: u ?? !1,
899
+ isInvalid: c ?? !1,
895
900
  isRequired: o ?? !1
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(
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(
899
904
  "p",
900
905
  {
901
- className: I("block mb-2 text-label", u && "text-sun-800"),
906
+ className: P(
907
+ "block mb-2 text-label",
908
+ c && "text-sun-800"
909
+ ),
902
910
  children: [
903
- d,
904
- o && /* @__PURE__ */ n.jsx("span", { className: "text-sun-800", children: " *" })
911
+ f,
912
+ o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
905
913
  ]
906
914
  }
907
915
  ) }),
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(
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(
911
919
  "p",
912
920
  {
913
- id: j.errorMessageId,
914
- className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
915
- children: p
921
+ id: T.errorMessageId,
922
+ className: P(
923
+ "text-xs text-sun-800",
924
+ a ? "mt-1" : "mt-2"
925
+ ),
926
+ children: v
916
927
  }
917
928
  )
918
929
  ] }) });
919
- }), gr = R.forwardRef((f, h) => {
930
+ });
931
+ ae.displayName = "FieldsetControl";
932
+ const xr = y.forwardRef((p, b) => {
920
933
  const {
921
934
  items: m,
922
- onChange: d,
935
+ onChange: f,
923
936
  className: i,
924
937
  labelText: a,
925
- helperText: p,
926
- errorMessage: u,
938
+ helperText: v,
939
+ errorMessage: c,
927
940
  isInvalid: o,
928
941
  isRequired: _,
929
- ...b
930
- } = f;
931
- return /* @__PURE__ */ n.jsx(
932
- Ie,
942
+ ...h
943
+ } = p;
944
+ return /* @__PURE__ */ s.jsx(
945
+ ae,
933
946
  {
934
947
  className: i,
935
948
  labelText: a,
936
- helperText: p,
937
- errorMessage: u,
949
+ helperText: v,
950
+ errorMessage: c,
938
951
  isInvalid: o,
939
952
  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))
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))
943
956
  }
944
957
  );
945
- }), Rr = R.forwardRef((f, h) => {
958
+ });
959
+ xr.displayName = "CheckboxGroup";
960
+ const gr = y.forwardRef((p, b) => {
946
961
  const {
947
962
  items: m,
948
- onChange: d,
963
+ onChange: f,
949
964
  className: i,
950
965
  labelText: a,
951
- helperText: p,
952
- errorMessage: u,
966
+ helperText: v,
967
+ errorMessage: c,
953
968
  isInvalid: o,
954
969
  isRequired: _,
955
- defaultValue: b,
970
+ defaultValue: h,
956
971
  ...g
957
- } = f;
958
- return /* @__PURE__ */ n.jsx(
959
- Ie,
972
+ } = p;
973
+ return /* @__PURE__ */ s.jsx(
974
+ ae,
960
975
  {
961
976
  className: i,
962
977
  labelText: a,
963
- helperText: p,
964
- errorMessage: u,
978
+ helperText: v,
979
+ errorMessage: c,
965
980
  isInvalid: o,
966
981
  isRequired: _,
967
- ref: h,
982
+ ref: b,
968
983
  ...g,
969
- children: m.map(({ label: C, value: j }, S) => /* @__PURE__ */ n.jsx(
970
- vr,
984
+ children: m.map(({ label: C, value: T }, I) => /* @__PURE__ */ s.jsx(
985
+ Se,
971
986
  {
972
- value: j,
973
- onChange: d,
974
- defaultChecked: b === j,
987
+ value: T,
988
+ onChange: f,
989
+ defaultChecked: h === T,
975
990
  children: C
976
991
  },
977
- S
992
+ I
978
993
  ))
979
994
  }
980
995
  );
981
- }), yr = R.forwardRef((f, h) => {
982
- const {
983
- className: m,
984
- labelText: d,
985
- helperText: i,
986
- errorMessage: a,
987
- isInvalid: p,
988
- isRequired: u,
989
- ...o
990
- } = f;
991
- return /* @__PURE__ */ n.jsx(
992
- te,
993
- {
994
- className: m,
995
- labelText: d,
996
- helperText: i,
997
- errorMessage: a,
998
- isInvalid: p,
999
- isRequired: u,
1000
- children: /* @__PURE__ */ n.jsx(mr, { ref: h, ...o })
1001
- }
1002
- );
1003
- }), Er = R.forwardRef((f, h) => {
996
+ });
997
+ gr.displayName = "RadioGroup";
998
+ const yr = y.forwardRef((p, b) => {
1004
999
  const {
1005
1000
  className: m,
1006
- labelText: d,
1001
+ labelText: f,
1007
1002
  helperText: i,
1008
1003
  errorMessage: a,
1009
- isInvalid: p,
1010
- isRequired: u,
1004
+ isInvalid: v,
1005
+ isRequired: c,
1011
1006
  ...o
1012
- } = f;
1013
- return /* @__PURE__ */ n.jsx(
1007
+ } = p;
1008
+ return /* @__PURE__ */ s.jsx(
1014
1009
  te,
1015
1010
  {
1016
1011
  className: m,
1017
- labelText: d,
1012
+ labelText: f,
1018
1013
  helperText: i,
1019
1014
  errorMessage: a,
1020
- isInvalid: p,
1021
- isRequired: u,
1022
- children: /* @__PURE__ */ n.jsx(hr, { ref: h, ...o })
1015
+ isInvalid: v,
1016
+ isRequired: c,
1017
+ children: /* @__PURE__ */ s.jsx(hr, { ref: b, ...o })
1023
1018
  }
1024
1019
  );
1025
- }), _r = R.forwardRef((f, h) => {
1020
+ });
1021
+ yr.displayName = "SelectControl";
1022
+ const Rr = y.forwardRef((p, b) => {
1026
1023
  const {
1027
1024
  className: m,
1028
- labelText: d,
1025
+ labelText: f,
1029
1026
  helperText: i,
1030
1027
  errorMessage: a,
1031
- isInvalid: p,
1032
- isRequired: u,
1028
+ isInvalid: v,
1029
+ isRequired: c,
1033
1030
  ...o
1034
- } = f;
1035
- return /* @__PURE__ */ n.jsx(
1031
+ } = p;
1032
+ return /* @__PURE__ */ s.jsx(
1036
1033
  te,
1037
1034
  {
1038
1035
  className: m,
1039
- labelText: d,
1036
+ labelText: f,
1040
1037
  helperText: i,
1041
1038
  errorMessage: a,
1042
- isInvalid: p,
1043
- isRequired: u,
1044
- children: /* @__PURE__ */ n.jsx(br, { ref: h, ...o })
1039
+ isInvalid: v,
1040
+ isRequired: c,
1041
+ children: /* @__PURE__ */ s.jsx(Oe, { ref: b, ...o })
1045
1042
  }
1046
1043
  );
1047
1044
  });
1045
+ Rr.displayName = "TextareaControl";
1048
1046
  export {
1049
- pr as Checkbox,
1050
- gr as CheckboxGroup,
1051
- Ie as FieldsetControl,
1052
- hr as Input,
1053
- Er as InputControl,
1047
+ Ie as Checkbox,
1048
+ xr as CheckboxGroup,
1049
+ ae as FieldsetControl,
1050
+ br as Input,
1054
1051
  te as LabelControl,
1055
- vr as Radio,
1056
- Rr as RadioGroup,
1057
- mr as Select,
1052
+ Se as Radio,
1053
+ gr as RadioGroup,
1054
+ hr as Select,
1058
1055
  yr as SelectControl,
1059
- br as Textarea,
1060
- _r as TextareaControl
1056
+ Oe as Textarea,
1057
+ Rr as TextareaControl
1061
1058
  };
1062
1059
  //# sourceMappingURL=index.es.js.map