@sakura-ui/forms 0.2.1 → 0.2.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import R from "react";
2
- var ae = { exports: {} }, L = {};
2
+ var K = { exports: {} }, V = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,21 @@ var ae = { exports: {} }, L = {};
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 Se;
13
- function Rr() {
14
- if (Se)
15
- return L;
16
- Se = 1;
17
- var b = R, h = Symbol.for("react.element"), m = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, p = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
12
+ var Pe;
13
+ function _r() {
14
+ if (Pe) return V;
15
+ Pe = 1;
16
+ var f = R, x = Symbol.for("react.element"), m = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, p = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
18
17
  function i(o, a, y) {
19
- var v, d = {}, j = null, w = null;
18
+ var b, c = {}, j = null, w = null;
20
19
  y !== void 0 && (j = "" + y), a.key !== void 0 && (j = "" + a.key), a.ref !== void 0 && (w = a.ref);
21
- for (v in a)
22
- x.call(a, v) && !c.hasOwnProperty(v) && (d[v] = a[v]);
23
- if (o && o.defaultProps)
24
- for (v in a = o.defaultProps, a)
25
- d[v] === void 0 && (d[v] = a[v]);
26
- return { $$typeof: h, type: o, key: j, ref: w, props: d, _owner: p.current };
20
+ for (b in a) h.call(a, b) && !v.hasOwnProperty(b) && (c[b] = a[b]);
21
+ if (o && o.defaultProps) for (b in a = o.defaultProps, a) c[b] === void 0 && (c[b] = a[b]);
22
+ return { $$typeof: x, type: o, key: j, ref: w, props: c, _owner: p.current };
27
23
  }
28
- return L.Fragment = m, L.jsx = i, L.jsxs = i, L;
24
+ return V.Fragment = m, V.jsx = i, V.jsxs = i, V;
29
25
  }
30
- var V = {};
26
+ var z = {};
31
27
  /**
32
28
  * @license React
33
29
  * react-jsx-runtime.development.js
@@ -37,54 +33,54 @@ var V = {};
37
33
  * This source code is licensed under the MIT license found in the
38
34
  * LICENSE file in the root directory of this source tree.
39
35
  */
40
- var Pe;
41
- function Er() {
42
- return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
43
- var b = R, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), k = Symbol.iterator, $e = "@@iterator";
44
- function Me(e) {
36
+ var ke;
37
+ function jr() {
38
+ return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var f = R, x = Symbol.for("react.element"), m = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), P = Symbol.iterator, We = "@@iterator";
40
+ function Ye(e) {
45
41
  if (e === null || typeof e != "object")
46
42
  return null;
47
- var r = k && e[k] || e[$e];
43
+ var r = P && e[P] || e[We];
48
44
  return typeof r == "function" ? r : null;
49
45
  }
50
- var D = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
46
+ var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
47
  function T(e) {
52
48
  {
53
49
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
54
50
  t[n - 1] = arguments[n];
55
- We("error", e, t);
51
+ Le("error", e, t);
56
52
  }
57
53
  }
58
- function We(e, r, t) {
54
+ function Le(e, r, t) {
59
55
  {
60
- var n = D.ReactDebugCurrentFrame, f = n.getStackAddendum();
61
- f !== "" && (r += "%s", t = t.concat([f]));
56
+ var n = D.ReactDebugCurrentFrame, d = n.getStackAddendum();
57
+ d !== "" && (r += "%s", t = t.concat([d]));
62
58
  var g = t.map(function(u) {
63
59
  return String(u);
64
60
  });
65
61
  g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
66
62
  }
67
63
  }
68
- var Ye = !1, Le = !1, Ve = !1, ze = !1, Ue = !1, se;
69
- se = Symbol.for("react.module.reference");
70
- function Be(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === x || e === c || Ue || e === p || e === y || e === v || ze || e === w || Ye || Le || Ve || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === d || e.$$typeof === i || e.$$typeof === o || e.$$typeof === a || // This needs to include all possible module reference object
64
+ var Ve = !1, ze = !1, Ue = !1, Be = !1, Je = !1, ie;
65
+ ie = Symbol.for("react.module.reference");
66
+ function Ge(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === h || e === v || Je || e === p || e === y || e === b || Be || e === w || Ve || ze || Ue || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === c || e.$$typeof === i || e.$$typeof === o || e.$$typeof === a || // This needs to include all possible module reference object
72
68
  // types supported by any Flight configuration anywhere since
73
69
  // we don't know which Flight build this will end up being used
74
70
  // with.
75
- e.$$typeof === se || e.getModuleId !== void 0));
71
+ e.$$typeof === ie || e.getModuleId !== void 0));
76
72
  }
77
- function Ge(e, r, t) {
73
+ function Ke(e, r, t) {
78
74
  var n = e.displayName;
79
75
  if (n)
80
76
  return n;
81
- var f = r.displayName || r.name || "";
82
- return f !== "" ? t + "(" + f + ")" : t;
77
+ var d = r.displayName || r.name || "";
78
+ return d !== "" ? t + "(" + d + ")" : t;
83
79
  }
84
- function ie(e) {
80
+ function oe(e) {
85
81
  return e.displayName || "Context";
86
82
  }
87
- function N(e) {
83
+ function k(e) {
88
84
  if (e == null)
89
85
  return null;
90
86
  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")
@@ -92,36 +88,36 @@ function Er() {
92
88
  if (typeof e == "string")
93
89
  return e;
94
90
  switch (e) {
95
- case x:
91
+ case h:
96
92
  return "Fragment";
97
93
  case m:
98
94
  return "Portal";
99
- case c:
95
+ case v:
100
96
  return "Profiler";
101
97
  case p:
102
98
  return "StrictMode";
103
99
  case y:
104
100
  return "Suspense";
105
- case v:
101
+ case b:
106
102
  return "SuspenseList";
107
103
  }
108
104
  if (typeof e == "object")
109
105
  switch (e.$$typeof) {
110
106
  case o:
111
107
  var r = e;
112
- return ie(r) + ".Consumer";
108
+ return oe(r) + ".Consumer";
113
109
  case i:
114
110
  var t = e;
115
- return ie(t._context) + ".Provider";
111
+ return oe(t._context) + ".Provider";
116
112
  case a:
117
- return Ge(e, e.render, "ForwardRef");
118
- case d:
113
+ return Ke(e, e.render, "ForwardRef");
114
+ case c:
119
115
  var n = e.displayName || null;
120
- return n !== null ? n : N(e.type) || "Memo";
116
+ return n !== null ? n : k(e.type) || "Memo";
121
117
  case j: {
122
- var f = e, g = f._payload, u = f._init;
118
+ var d = e, g = d._payload, u = d._init;
123
119
  try {
124
- return N(u(g));
120
+ return k(u(g));
125
121
  } catch {
126
122
  return null;
127
123
  }
@@ -129,18 +125,18 @@ function Er() {
129
125
  }
130
126
  return null;
131
127
  }
132
- var F = Object.assign, M = 0, oe, le, ue, ce, de, fe, pe;
133
- function ve() {
128
+ var O = Object.assign, W = 0, le, ue, ce, de, fe, pe, ve;
129
+ function be() {
134
130
  }
135
- ve.__reactDisabledLog = !0;
136
- function Je() {
131
+ be.__reactDisabledLog = !0;
132
+ function He() {
137
133
  {
138
- if (M === 0) {
139
- oe = console.log, le = console.info, ue = console.warn, ce = console.error, de = console.group, fe = console.groupCollapsed, pe = console.groupEnd;
134
+ if (W === 0) {
135
+ le = console.log, ue = console.info, ce = console.warn, de = console.error, fe = console.group, pe = console.groupCollapsed, ve = console.groupEnd;
140
136
  var e = {
141
137
  configurable: !0,
142
138
  enumerable: !0,
143
- value: ve,
139
+ value: be,
144
140
  writable: !0
145
141
  };
146
142
  Object.defineProperties(console, {
@@ -153,77 +149,77 @@ function Er() {
153
149
  groupEnd: e
154
150
  });
155
151
  }
156
- M++;
152
+ W++;
157
153
  }
158
154
  }
159
- function Ke() {
155
+ function Xe() {
160
156
  {
161
- if (M--, M === 0) {
157
+ if (W--, W === 0) {
162
158
  var e = {
163
159
  configurable: !0,
164
160
  enumerable: !0,
165
161
  writable: !0
166
162
  };
167
163
  Object.defineProperties(console, {
168
- log: F({}, e, {
169
- value: oe
170
- }),
171
- info: F({}, e, {
164
+ log: O({}, e, {
172
165
  value: le
173
166
  }),
174
- warn: F({}, e, {
167
+ info: O({}, e, {
175
168
  value: ue
176
169
  }),
177
- error: F({}, e, {
170
+ warn: O({}, e, {
178
171
  value: ce
179
172
  }),
180
- group: F({}, e, {
173
+ error: O({}, e, {
181
174
  value: de
182
175
  }),
183
- groupCollapsed: F({}, e, {
176
+ group: O({}, e, {
184
177
  value: fe
185
178
  }),
186
- groupEnd: F({}, e, {
179
+ groupCollapsed: O({}, e, {
187
180
  value: pe
181
+ }),
182
+ groupEnd: O({}, e, {
183
+ value: ve
188
184
  })
189
185
  });
190
186
  }
191
- M < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ W < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
188
  }
193
189
  }
194
- var J = D.ReactCurrentDispatcher, K;
195
- function z(e, r, t) {
190
+ var H = D.ReactCurrentDispatcher, X;
191
+ function U(e, r, t) {
196
192
  {
197
- if (K === void 0)
193
+ if (X === void 0)
198
194
  try {
199
195
  throw Error();
200
- } catch (f) {
201
- var n = f.stack.trim().match(/\n( *(at )?)/);
202
- K = n && n[1] || "";
196
+ } catch (d) {
197
+ var n = d.stack.trim().match(/\n( *(at )?)/);
198
+ X = n && n[1] || "";
203
199
  }
204
200
  return `
205
- ` + K + e;
201
+ ` + X + e;
206
202
  }
207
203
  }
208
- var H = !1, U;
204
+ var Z = !1, B;
209
205
  {
210
- var He = typeof WeakMap == "function" ? WeakMap : Map;
211
- U = new He();
206
+ var Ze = typeof WeakMap == "function" ? WeakMap : Map;
207
+ B = new Ze();
212
208
  }
213
- function be(e, r) {
214
- if (!e || H)
209
+ function me(e, r) {
210
+ if (!e || Z)
215
211
  return "";
216
212
  {
217
- var t = U.get(e);
213
+ var t = B.get(e);
218
214
  if (t !== void 0)
219
215
  return t;
220
216
  }
221
217
  var n;
222
- H = !0;
223
- var f = Error.prepareStackTrace;
218
+ Z = !0;
219
+ var d = Error.prepareStackTrace;
224
220
  Error.prepareStackTrace = void 0;
225
221
  var g;
226
- g = J.current, J.current = null, Je();
222
+ g = H.current, H.current = null, He();
227
223
  try {
228
224
  if (r) {
229
225
  var u = function() {
@@ -236,125 +232,125 @@ function Er() {
236
232
  }), typeof Reflect == "object" && Reflect.construct) {
237
233
  try {
238
234
  Reflect.construct(u, []);
239
- } catch (S) {
240
- n = S;
235
+ } catch (I) {
236
+ n = I;
241
237
  }
242
238
  Reflect.construct(e, [], u);
243
239
  } else {
244
240
  try {
245
241
  u.call();
246
- } catch (S) {
247
- n = S;
242
+ } catch (I) {
243
+ n = I;
248
244
  }
249
245
  e.call(u.prototype);
250
246
  }
251
247
  } else {
252
248
  try {
253
249
  throw Error();
254
- } catch (S) {
255
- n = S;
250
+ } catch (I) {
251
+ n = I;
256
252
  }
257
253
  e();
258
254
  }
259
- } catch (S) {
260
- if (S && n && typeof S.stack == "string") {
261
- for (var l = S.stack.split(`
262
- `), I = n.stack.split(`
263
- `), E = l.length - 1, _ = I.length - 1; E >= 1 && _ >= 0 && l[E] !== I[_]; )
255
+ } catch (I) {
256
+ if (I && n && typeof I.stack == "string") {
257
+ for (var l = I.stack.split(`
258
+ `), C = n.stack.split(`
259
+ `), E = l.length - 1, _ = C.length - 1; E >= 1 && _ >= 0 && l[E] !== C[_]; )
264
260
  _--;
265
261
  for (; E >= 1 && _ >= 0; E--, _--)
266
- if (l[E] !== I[_]) {
262
+ if (l[E] !== C[_]) {
267
263
  if (E !== 1 || _ !== 1)
268
264
  do
269
- if (E--, _--, _ < 0 || l[E] !== I[_]) {
270
- var P = `
265
+ if (E--, _--, _ < 0 || l[E] !== C[_]) {
266
+ var S = `
271
267
  ` + l[E].replace(" at new ", " at ");
272
- return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, P), P;
268
+ return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, S), S;
273
269
  }
274
270
  while (E >= 1 && _ >= 0);
275
271
  break;
276
272
  }
277
273
  }
278
274
  } finally {
279
- H = !1, J.current = g, Ke(), Error.prepareStackTrace = f;
275
+ Z = !1, H.current = g, Xe(), Error.prepareStackTrace = d;
280
276
  }
281
- var $ = e ? e.displayName || e.name : "", q = $ ? z($) : "";
282
- return typeof e == "function" && U.set(e, q), q;
277
+ var $ = e ? e.displayName || e.name : "", F = $ ? U($) : "";
278
+ return typeof e == "function" && B.set(e, F), F;
283
279
  }
284
- function Xe(e, r, t) {
285
- return be(e, !1);
280
+ function Qe(e, r, t) {
281
+ return me(e, !1);
286
282
  }
287
- function Ze(e) {
283
+ function er(e) {
288
284
  var r = e.prototype;
289
285
  return !!(r && r.isReactComponent);
290
286
  }
291
- function B(e, r, t) {
287
+ function J(e, r, t) {
292
288
  if (e == null)
293
289
  return "";
294
290
  if (typeof e == "function")
295
- return be(e, Ze(e));
291
+ return me(e, er(e));
296
292
  if (typeof e == "string")
297
- return z(e);
293
+ return U(e);
298
294
  switch (e) {
299
295
  case y:
300
- return z("Suspense");
301
- case v:
302
- return z("SuspenseList");
296
+ return U("Suspense");
297
+ case b:
298
+ return U("SuspenseList");
303
299
  }
304
300
  if (typeof e == "object")
305
301
  switch (e.$$typeof) {
306
302
  case a:
307
- return Xe(e.render);
308
- case d:
309
- return B(e.type, r, t);
303
+ return Qe(e.render);
304
+ case c:
305
+ return J(e.type, r, t);
310
306
  case j: {
311
- var n = e, f = n._payload, g = n._init;
307
+ var n = e, d = n._payload, g = n._init;
312
308
  try {
313
- return B(g(f), r, t);
309
+ return J(g(d), r, t);
314
310
  } catch {
315
311
  }
316
312
  }
317
313
  }
318
314
  return "";
319
315
  }
320
- var W = Object.prototype.hasOwnProperty, me = {}, ge = D.ReactDebugCurrentFrame;
316
+ var Y = Object.prototype.hasOwnProperty, ge = {}, xe = D.ReactDebugCurrentFrame;
321
317
  function G(e) {
322
318
  if (e) {
323
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
324
- ge.setExtraStackFrame(t);
319
+ var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
320
+ xe.setExtraStackFrame(t);
325
321
  } else
326
- ge.setExtraStackFrame(null);
322
+ xe.setExtraStackFrame(null);
327
323
  }
328
- function Qe(e, r, t, n, f) {
324
+ function rr(e, r, t, n, d) {
329
325
  {
330
- var g = Function.call.bind(W);
326
+ var g = Function.call.bind(Y);
331
327
  for (var u in e)
332
328
  if (g(e, u)) {
333
329
  var l = void 0;
334
330
  try {
335
331
  if (typeof e[u] != "function") {
336
- var I = 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 I.name = "Invariant Violation", I;
332
+ var C = 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`.");
333
+ throw C.name = "Invariant Violation", C;
338
334
  }
339
335
  l = e[u](r, u, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
336
  } catch (E) {
341
337
  l = E;
342
338
  }
343
- l && !(l instanceof Error) && (G(f), 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).", n || "React class", t, u, typeof l), G(null)), l instanceof Error && !(l.message in me) && (me[l.message] = !0, G(f), T("Failed %s type: %s", t, l.message), G(null));
339
+ l && !(l instanceof Error) && (G(d), 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).", n || "React class", t, u, typeof l), G(null)), l instanceof Error && !(l.message in ge) && (ge[l.message] = !0, G(d), T("Failed %s type: %s", t, l.message), G(null));
344
340
  }
345
341
  }
346
342
  }
347
- var er = Array.isArray;
348
- function X(e) {
349
- return er(e);
343
+ var tr = Array.isArray;
344
+ function Q(e) {
345
+ return tr(e);
350
346
  }
351
- function rr(e) {
347
+ function ar(e) {
352
348
  {
353
349
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
350
  return t;
355
351
  }
356
352
  }
357
- function tr(e) {
353
+ function nr(e) {
358
354
  try {
359
355
  return he(e), !1;
360
356
  } catch {
@@ -364,43 +360,43 @@ function Er() {
364
360
  function he(e) {
365
361
  return "" + e;
366
362
  }
367
- function xe(e) {
368
- if (tr(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.", rr(e)), he(e);
363
+ function ye(e) {
364
+ if (nr(e))
365
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(e)), he(e);
370
366
  }
371
- var Y = D.ReactCurrentOwner, ar = {
367
+ var L = D.ReactCurrentOwner, sr = {
372
368
  key: !0,
373
369
  ref: !0,
374
370
  __self: !0,
375
371
  __source: !0
376
- }, ye, Re, Z;
377
- Z = {};
378
- function nr(e) {
379
- if (W.call(e, "ref")) {
372
+ }, Re, Ee, ee;
373
+ ee = {};
374
+ function ir(e) {
375
+ if (Y.call(e, "ref")) {
380
376
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
377
  if (r && r.isReactWarning)
382
378
  return !1;
383
379
  }
384
380
  return e.ref !== void 0;
385
381
  }
386
- function sr(e) {
387
- if (W.call(e, "key")) {
382
+ function or(e) {
383
+ if (Y.call(e, "key")) {
388
384
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
385
  if (r && r.isReactWarning)
390
386
  return !1;
391
387
  }
392
388
  return e.key !== void 0;
393
389
  }
394
- function ir(e, r) {
395
- if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) {
396
- var t = N(Y.current.type);
397
- Z[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(Y.current.type), e.ref), Z[t] = !0);
390
+ function lr(e, r) {
391
+ if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
392
+ var t = k(L.current.type);
393
+ ee[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', k(L.current.type), e.ref), ee[t] = !0);
398
394
  }
399
395
  }
400
- function or(e, r) {
396
+ function ur(e, r) {
401
397
  {
402
398
  var t = function() {
403
- ye || (ye = !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));
399
+ Re || (Re = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
404
400
  };
405
401
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
402
  get: t,
@@ -408,10 +404,10 @@ function Er() {
408
404
  });
409
405
  }
410
406
  }
411
- function lr(e, r) {
407
+ function cr(e, r) {
412
408
  {
413
409
  var t = function() {
414
- Re || (Re = !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));
410
+ Ee || (Ee = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
415
411
  };
416
412
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
413
  get: t,
@@ -419,10 +415,10 @@ function Er() {
419
415
  });
420
416
  }
421
417
  }
422
- var ur = function(e, r, t, n, f, g, u) {
418
+ var dr = function(e, r, t, n, d, g, u) {
423
419
  var l = {
424
420
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: h,
421
+ $$typeof: x,
426
422
  // Built-in properties that belong on the element
427
423
  type: e,
428
424
  key: r,
@@ -445,44 +441,44 @@ function Er() {
445
441
  configurable: !1,
446
442
  enumerable: !1,
447
443
  writable: !1,
448
- value: f
444
+ value: d
449
445
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
450
446
  };
451
- function cr(e, r, t, n, f) {
447
+ function fr(e, r, t, n, d) {
452
448
  {
453
- var g, u = {}, l = null, I = null;
454
- t !== void 0 && (xe(t), l = "" + t), sr(r) && (xe(r.key), l = "" + r.key), nr(r) && (I = r.ref, ir(r, f));
449
+ var g, u = {}, l = null, C = null;
450
+ t !== void 0 && (ye(t), l = "" + t), or(r) && (ye(r.key), l = "" + r.key), ir(r) && (C = r.ref, lr(r, d));
455
451
  for (g in r)
456
- W.call(r, g) && !ar.hasOwnProperty(g) && (u[g] = r[g]);
452
+ Y.call(r, g) && !sr.hasOwnProperty(g) && (u[g] = r[g]);
457
453
  if (e && e.defaultProps) {
458
454
  var E = e.defaultProps;
459
455
  for (g in E)
460
456
  u[g] === void 0 && (u[g] = E[g]);
461
457
  }
462
- if (l || I) {
458
+ if (l || C) {
463
459
  var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- l && or(u, _), I && lr(u, _);
460
+ l && ur(u, _), C && cr(u, _);
465
461
  }
466
- return ur(e, l, I, f, n, Y.current, u);
462
+ return dr(e, l, C, d, n, L.current, u);
467
463
  }
468
464
  }
469
- var Q = D.ReactCurrentOwner, Ee = D.ReactDebugCurrentFrame;
465
+ var re = D.ReactCurrentOwner, _e = D.ReactDebugCurrentFrame;
470
466
  function A(e) {
471
467
  if (e) {
472
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
473
- Ee.setExtraStackFrame(t);
468
+ var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
469
+ _e.setExtraStackFrame(t);
474
470
  } else
475
- Ee.setExtraStackFrame(null);
471
+ _e.setExtraStackFrame(null);
476
472
  }
477
- var ee;
478
- ee = !1;
479
- function re(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === h;
473
+ var te;
474
+ te = !1;
475
+ function ae(e) {
476
+ return typeof e == "object" && e !== null && e.$$typeof === x;
481
477
  }
482
- function _e() {
478
+ function je() {
483
479
  {
484
- if (Q.current) {
485
- var e = N(Q.current.type);
480
+ if (re.current) {
481
+ var e = k(re.current.type);
486
482
  if (e)
487
483
  return `
488
484
 
@@ -491,13 +487,13 @@ Check the render method of \`` + e + "`.";
491
487
  return "";
492
488
  }
493
489
  }
494
- function dr(e) {
490
+ function pr(e) {
495
491
  return "";
496
492
  }
497
- var je = {};
498
- function fr(e) {
493
+ var we = {};
494
+ function vr(e) {
499
495
  {
500
- var r = _e();
496
+ var r = je();
501
497
  if (!r) {
502
498
  var t = typeof e == "string" ? e : e.displayName || e.name;
503
499
  t && (r = `
@@ -507,39 +503,39 @@ Check the top-level render call using <` + t + ">.");
507
503
  return r;
508
504
  }
509
505
  }
510
- function we(e, r) {
506
+ function Te(e, r) {
511
507
  {
512
508
  if (!e._store || e._store.validated || e.key != null)
513
509
  return;
514
510
  e._store.validated = !0;
515
- var t = fr(r);
516
- if (je[t])
511
+ var t = vr(r);
512
+ if (we[t])
517
513
  return;
518
- je[t] = !0;
514
+ we[t] = !0;
519
515
  var n = "";
520
- e && e._owner && e._owner !== Q.current && (n = " 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, n), A(null);
516
+ e && e._owner && e._owner !== re.current && (n = " It was passed a child from " + k(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, n), A(null);
521
517
  }
522
518
  }
523
- function Te(e, r) {
519
+ function Ce(e, r) {
524
520
  {
525
521
  if (typeof e != "object")
526
522
  return;
527
- if (X(e))
523
+ if (Q(e))
528
524
  for (var t = 0; t < e.length; t++) {
529
525
  var n = e[t];
530
- re(n) && we(n, r);
526
+ ae(n) && Te(n, r);
531
527
  }
532
- else if (re(e))
528
+ else if (ae(e))
533
529
  e._store && (e._store.validated = !0);
534
530
  else if (e) {
535
- var f = Me(e);
536
- if (typeof f == "function" && f !== e.entries)
537
- for (var g = f.call(e), u; !(u = g.next()).done; )
538
- re(u.value) && we(u.value, r);
531
+ var d = Ye(e);
532
+ if (typeof d == "function" && d !== e.entries)
533
+ for (var g = d.call(e), u; !(u = g.next()).done; )
534
+ ae(u.value) && Te(u.value, r);
539
535
  }
540
536
  }
541
537
  }
542
- function pr(e) {
538
+ function br(e) {
543
539
  {
544
540
  var r = e.type;
545
541
  if (r == null || typeof r == "string")
@@ -549,22 +545,22 @@ Check the top-level render call using <` + t + ">.");
549
545
  t = r.propTypes;
550
546
  else if (typeof r == "object" && (r.$$typeof === a || // Note: Memo only checks outer props here.
551
547
  // Inner props are checked in the reconciler.
552
- r.$$typeof === d))
548
+ r.$$typeof === c))
553
549
  t = r.propTypes;
554
550
  else
555
551
  return;
556
552
  if (t) {
557
- var n = N(r);
558
- Qe(t, e.props, "prop", n, e);
559
- } else if (r.PropTypes !== void 0 && !ee) {
560
- ee = !0;
561
- var f = N(r);
562
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
553
+ var n = k(r);
554
+ rr(t, e.props, "prop", n, e);
555
+ } else if (r.PropTypes !== void 0 && !te) {
556
+ te = !0;
557
+ var d = k(r);
558
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
563
559
  }
564
560
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
561
  }
566
562
  }
567
- function vr(e) {
563
+ function mr(e) {
568
564
  {
569
565
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
570
566
  var n = r[t];
@@ -576,69 +572,72 @@ Check the top-level render call using <` + t + ">.");
576
572
  e.ref !== null && (A(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
577
573
  }
578
574
  }
579
- var Ce = {};
580
- function Ie(e, r, t, n, f, g) {
575
+ var Ie = {};
576
+ function Se(e, r, t, n, d, g) {
581
577
  {
582
- var u = Be(e);
578
+ var u = Ge(e);
583
579
  if (!u) {
584
580
  var l = "";
585
581
  (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.");
586
- var I = dr();
587
- I ? l += I : l += _e();
582
+ var C = pr();
583
+ C ? l += C : l += je();
588
584
  var E;
589
- e === null ? E = "null" : X(e) ? E = "array" : e !== void 0 && e.$$typeof === h ? (E = "<" + (N(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = 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", E, l);
585
+ e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === x ? (E = "<" + (k(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = 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", E, l);
590
586
  }
591
- var _ = cr(e, r, t, f, g);
587
+ var _ = fr(e, r, t, d, g);
592
588
  if (_ == null)
593
589
  return _;
594
590
  if (u) {
595
- var P = r.children;
596
- if (P !== void 0)
591
+ var S = r.children;
592
+ if (S !== void 0)
597
593
  if (n)
598
- if (X(P)) {
599
- for (var $ = 0; $ < P.length; $++)
600
- Te(P[$], e);
601
- Object.freeze && Object.freeze(P);
594
+ if (Q(S)) {
595
+ for (var $ = 0; $ < S.length; $++)
596
+ Ce(S[$], e);
597
+ Object.freeze && Object.freeze(S);
602
598
  } else
603
599
  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.");
604
600
  else
605
- Te(P, e);
601
+ Ce(S, e);
606
602
  }
607
- if (W.call(r, "key")) {
608
- var q = N(e), S = Object.keys(r).filter(function(yr) {
609
- return yr !== "key";
610
- }), te = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
611
- if (!Ce[q + te]) {
612
- var xr = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
603
+ if (Y.call(r, "key")) {
604
+ var F = k(e), I = Object.keys(r).filter(function(Er) {
605
+ return Er !== "key";
606
+ }), ne = I.length > 0 ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!Ie[F + ne]) {
608
+ var Rr = I.length > 0 ? "{" + I.join(": ..., ") + ": ...}" : "{}";
613
609
  T(`A props object containing a "key" prop is being spread into JSX:
614
610
  let props = %s;
615
611
  <%s {...props} />
616
612
  React keys must be passed directly to JSX without using spread:
617
613
  let props = %s;
618
- <%s key={someKey} {...props} />`, te, q, xr, q), Ce[q + te] = !0;
614
+ <%s key={someKey} {...props} />`, ne, F, Rr, F), Ie[F + ne] = !0;
619
615
  }
620
616
  }
621
- return e === x ? vr(_) : pr(_), _;
617
+ return e === h ? mr(_) : br(_), _;
622
618
  }
623
619
  }
624
- function br(e, r, t) {
625
- return Ie(e, r, t, !0);
620
+ function gr(e, r, t) {
621
+ return Se(e, r, t, !0);
626
622
  }
627
- function mr(e, r, t) {
628
- return Ie(e, r, t, !1);
623
+ function xr(e, r, t) {
624
+ return Se(e, r, t, !1);
629
625
  }
630
- var gr = mr, hr = br;
631
- V.Fragment = x, V.jsx = gr, V.jsxs = hr;
632
- }()), V;
626
+ var hr = xr, yr = gr;
627
+ z.Fragment = h, z.jsx = hr, z.jsxs = yr;
628
+ }()), z;
633
629
  }
634
- process.env.NODE_ENV === "production" ? ae.exports = Rr() : ae.exports = Er();
635
- var s = ae.exports;
636
- const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
630
+ var Ne;
631
+ function wr() {
632
+ return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? K.exports = _r() : K.exports = jr()), K.exports;
633
+ }
634
+ var s = wr();
635
+ const M = (...f) => f.filter(Boolean).join(" "), N = R.createContext({
637
636
  helperTextId: "",
638
637
  errorMessageId: "",
639
638
  isInvalid: !1,
640
639
  isRequired: !1
641
- }), ke = `
640
+ }), Oe = `
642
641
  bg-white
643
642
  border
644
643
  border-solid
@@ -651,7 +650,7 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
651
650
  disabled:text-sumi-500
652
651
  disabled:border-sumi-500
653
652
  aria-invalid:border-sun-800
654
- `, Ne = {
653
+ `, Fe = {
655
654
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
656
655
  lg: `
657
656
  p-4
@@ -675,13 +674,13 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
675
674
  rounded-md
676
675
  leading-snug
677
676
  `
678
- }, Oe = `
677
+ }, qe = `
679
678
  inline-block
680
679
  cursor-pointer
681
680
  border
682
681
  border-solid
683
682
  border-transparent
684
- `, Fe = {
683
+ `, De = {
685
684
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
686
685
  lg: `
687
686
  pr-8
@@ -703,13 +702,13 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
703
702
  text-label
704
703
  leading-snug
705
704
  `
706
- }, qe = {
705
+ }, Ae = {
707
706
  lg: "w-[22px] h-[22px] mr-2",
708
707
  md: "w-[18px] h-[18px] mr-1.5",
709
708
  sm: "w-[18px] h-[18px] mr-1"
710
- }, De = R.forwardRef(
711
- (b, h) => {
712
- const { id: m, className: x, size: p = "lg", children: c, ...i } = b, o = m || R.useId(), a = R.useContext(O);
709
+ }, $e = R.forwardRef(
710
+ (f, x) => {
711
+ const { id: m, className: h, size: p = "lg", children: v, ...i } = f, o = m || R.useId(), a = R.useContext(N);
713
712
  a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
714
713
  const y = {
715
714
  lg: 22 / 24,
@@ -720,10 +719,10 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
720
719
  "label",
721
720
  {
722
721
  htmlFor: o,
723
- className: C(
724
- Oe,
725
- Fe[p],
726
- x
722
+ className: M(
723
+ qe,
724
+ De[p],
725
+ h
727
726
  ),
728
727
  children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
729
728
  /* @__PURE__ */ s.jsx(
@@ -740,10 +739,10 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
740
739
  "aria-invalid": a.isInvalid ?? !1,
741
740
  "aria-required": a.isRequired ?? !1,
742
741
  ...i,
743
- ref: h
742
+ ref: x
744
743
  }
745
744
  ),
746
- /* @__PURE__ */ s.jsx("span", { className: C(`
745
+ /* @__PURE__ */ s.jsx("span", { className: M(`
747
746
  bg-clip-content
748
747
  rounded
749
748
  border
@@ -756,8 +755,8 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
756
755
  peer-disabled:border-sumi-500
757
756
  peer-focus-visible:ring-2
758
757
  peer-focus-visible:ring-offset-2
759
- peer-focus-visible:ring-wood-500
760
- `, qe[p]), children: /* @__PURE__ */ s.jsxs(
758
+ peer-focus-visible:ring-wood-600
759
+ `, Ae[p]), children: /* @__PURE__ */ s.jsxs(
761
760
  "svg",
762
761
  {
763
762
  xmlns: "http://www.w3.org/2000/svg",
@@ -771,21 +770,21 @@ const C = (...b) => b.filter(Boolean).join(" "), O = R.createContext({
771
770
  ]
772
771
  }
773
772
  ) }),
774
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: c })
773
+ /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: v })
775
774
  ] })
776
775
  }
777
776
  );
778
777
  }
779
778
  );
780
- De.displayName = "Checkbox";
781
- const Ae = R.forwardRef(
782
- (b, h) => {
783
- const { id: m, className: x, size: p = "lg", children: c, ...i } = b, o = m || R.useId(), a = R.useContext(O);
779
+ $e.displayName = "Checkbox";
780
+ const q = (...f) => f.filter(Boolean).join(" "), Me = R.forwardRef(
781
+ (f, x) => {
782
+ const { id: m, className: h, size: p = "lg", children: v, ...i } = f, o = m || R.useId(), a = R.useContext(N);
784
783
  a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
785
784
  const y = `
786
785
  peer
787
786
  sr-only
788
- `, v = `
787
+ `, b = `
789
788
  bg-clip-content
790
789
  rounded-full
791
790
  border
@@ -796,8 +795,8 @@ const Ae = R.forwardRef(
796
795
  peer-disabled:border-sumi-500
797
796
  peer-focus-visible:ring-2
798
797
  peer-focus-visible:ring-offset-2
799
- peer-focus-visible:ring-wood-500
800
- `, d = {
798
+ peer-focus-visible:ring-wood-600
799
+ `, c = {
801
800
  lg: "p-1",
802
801
  md: "p-[3px]",
803
802
  sm: "p-[3px]"
@@ -806,10 +805,10 @@ const Ae = R.forwardRef(
806
805
  "label",
807
806
  {
808
807
  htmlFor: o,
809
- className: C(
810
- Oe,
811
- Fe[p],
812
- x
808
+ className: q(
809
+ qe,
810
+ De[p],
811
+ h
813
812
  ),
814
813
  children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
815
814
  /* @__PURE__ */ s.jsx(
@@ -823,49 +822,49 @@ const Ae = R.forwardRef(
823
822
  "aria-invalid": a.isInvalid ?? !1,
824
823
  "aria-required": a.isRequired ?? !1,
825
824
  ...i,
826
- ref: h
825
+ ref: x
827
826
  }
828
827
  ),
829
828
  /* @__PURE__ */ s.jsx(
830
829
  "span",
831
830
  {
832
831
  "aria-hidden": !0,
833
- className: C(v, d[p], qe[p])
832
+ className: q(b, c[p], Ae[p])
834
833
  }
835
834
  ),
836
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: c })
835
+ /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: v })
837
836
  ] })
838
837
  }
839
838
  );
840
839
  }
841
840
  );
842
- Ae.displayName = "Radio";
843
- const Pr = R.forwardRef(
844
- (b, h) => {
845
- const { id: m, className: x, size: p = "lg", children: c, ...i } = b, o = R.useContext(O);
841
+ Me.displayName = "Radio";
842
+ const Or = R.forwardRef(
843
+ (f, x) => {
844
+ const { id: m, className: h, size: p = "lg", children: v, ...i } = f, o = R.useContext(N);
846
845
  return o.isRequired && (i.required = !0), /* @__PURE__ */ s.jsxs("div", { className: "inline-block relative", children: [
847
846
  /* @__PURE__ */ s.jsx(
848
847
  "select",
849
848
  {
850
849
  id: m || o.id,
851
- className: C(
850
+ className: q(
852
851
  `
853
852
  !pr-8
854
853
  peer
855
854
  cursor-pointer
856
855
  appearance-none
857
856
  `,
858
- ke,
859
- Ne[p],
860
- b.className
857
+ Oe,
858
+ Fe[p],
859
+ f.className
861
860
  ),
862
861
  "aria-describedby": o.helperTextId,
863
862
  "aria-errormessage": o.errorMessageId,
864
863
  "aria-invalid": o.isInvalid ?? !1,
865
864
  "aria-required": o.isRequired ?? !1,
866
865
  ...i,
867
- ref: h,
868
- children: c
866
+ ref: x,
867
+ children: v
869
868
  }
870
869
  ),
871
870
  /* @__PURE__ */ s.jsxs(
@@ -900,10 +899,10 @@ const Pr = R.forwardRef(
900
899
  )
901
900
  ] });
902
901
  }
903
- ), _r = R.forwardRef(
904
- (b, h) => {
905
- const { id: m, className: x, size: p = "lg", ...c } = b, i = R.useContext(O);
906
- i.isRequired && (c.required = !0);
902
+ ), Tr = R.forwardRef(
903
+ (f, x) => {
904
+ const { id: m, className: h, size: p = "lg", ...v } = f, i = R.useContext(N);
905
+ i.isRequired && (v.required = !0);
907
906
  const o = `
908
907
  file:mr-2
909
908
  file:inline-block
@@ -938,7 +937,7 @@ const Pr = R.forwardRef(
938
937
  focus:outline-2
939
938
  focus:outline-wood-600
940
939
  aria-invalid:text-sun-800
941
- `, v = {
940
+ `, b = {
942
941
  // 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
943
942
  lg: `
944
943
  file:p-4
@@ -968,55 +967,55 @@ const Pr = R.forwardRef(
968
967
  {
969
968
  type: "file",
970
969
  id: m || i.id,
971
- className: C(o, a, v[p], y, x),
970
+ className: M(o, a, b[p], y, h),
972
971
  "aria-describedby": i.helperTextId,
973
972
  "aria-errormessage": i.errorMessageId,
974
973
  "aria-invalid": i.isInvalid ?? !1,
975
974
  "aria-required": i.isRequired ?? !1,
976
- ref: h,
977
- ...c
975
+ ref: x,
976
+ ...v
978
977
  }
979
978
  );
980
979
  }
981
980
  );
982
- _r.displayName = "FileInput";
983
- const jr = R.forwardRef(
984
- (b, h) => {
985
- const { id: m, className: x, size: p = "lg", ...c } = b, i = R.useContext(O);
986
- return i.isRequired && (c.required = !0), /* @__PURE__ */ s.jsx(
981
+ Tr.displayName = "FileInput";
982
+ const Cr = R.forwardRef(
983
+ (f, x) => {
984
+ const { id: m, className: h, size: p = "lg", ...v } = f, i = R.useContext(N);
985
+ return i.isRequired && (v.required = !0), /* @__PURE__ */ s.jsx(
987
986
  "input",
988
987
  {
989
988
  type: "text",
990
989
  id: m || i.id,
991
- className: C(
992
- ke,
993
- Ne[p],
994
- x
990
+ className: q(
991
+ Oe,
992
+ Fe[p],
993
+ h
995
994
  ),
996
995
  "aria-describedby": i.helperTextId,
997
996
  "aria-errormessage": i.errorMessageId,
998
997
  "aria-invalid": i.isInvalid ?? !1,
999
998
  "aria-required": i.isRequired ?? !1,
1000
- ref: h,
1001
- ...c
999
+ ref: x,
1000
+ ...v
1002
1001
  }
1003
1002
  );
1004
1003
  }
1005
1004
  );
1006
- jr.displayName = "Input";
1007
- const wr = R.forwardRef(
1008
- (b, h) => {
1009
- const { id: m, className: x, children: p, onChange: c, maxLength: i, ...o } = b, [a, y] = R.useState(0), v = (k) => {
1010
- c && c(k), y(k.target.value.length);
1011
- }, d = R.useContext(O);
1012
- d.isRequired && (o.required = !0);
1005
+ Cr.displayName = "Input";
1006
+ const Ir = R.forwardRef(
1007
+ (f, x) => {
1008
+ const { id: m, className: h, children: p, onChange: v, maxLength: i, ...o } = f, [a, y] = R.useState(0), b = (P) => {
1009
+ v && v(P), y(P.target.value.length);
1010
+ }, c = R.useContext(N);
1011
+ c.isRequired && (o.required = !0);
1013
1012
  const j = a > (i || 0) ? "text-sun-800" : "text-sumi-700";
1014
1013
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1015
1014
  /* @__PURE__ */ s.jsx(
1016
1015
  "textarea",
1017
1016
  {
1018
- id: m || d.id,
1019
- className: C(`
1017
+ id: m || c.id,
1018
+ className: q(`
1020
1019
  p-4
1021
1020
  text-label
1022
1021
  rounded-lg
@@ -1031,14 +1030,14 @@ const wr = R.forwardRef(
1031
1030
  disabled:text-sumi-500
1032
1031
  disabled:border-sumi-500
1033
1032
  aria-invalid:border-sun-800
1034
- `, x),
1035
- "aria-describedby": d.helperTextId,
1036
- "aria-errormessage": d.errorMessageId,
1037
- "aria-invalid": d.isInvalid ?? !1,
1038
- "aria-required": d.isRequired ?? !1,
1039
- onChange: v,
1033
+ `, h),
1034
+ "aria-describedby": c.helperTextId,
1035
+ "aria-errormessage": c.errorMessageId,
1036
+ "aria-invalid": c.isInvalid ?? !1,
1037
+ "aria-required": c.isRequired ?? !1,
1038
+ onChange: b,
1040
1039
  ...o,
1041
- ref: h,
1040
+ ref: x,
1042
1041
  children: p
1043
1042
  }
1044
1043
  ),
@@ -1050,130 +1049,115 @@ const wr = R.forwardRef(
1050
1049
  ] });
1051
1050
  }
1052
1051
  );
1053
- wr.displayName = "Textarea";
1054
- const Tr = R.forwardRef((b, h) => {
1052
+ Ir.displayName = "Textarea";
1053
+ const Sr = R.forwardRef((f, x) => {
1055
1054
  const m = R.useId(), {
1056
- labelText: x,
1055
+ labelText: h,
1057
1056
  className: p,
1058
- helperText: c,
1057
+ helperText: v,
1059
1058
  errorMessage: i,
1060
1059
  isInvalid: o,
1061
1060
  isRequired: a,
1062
1061
  children: y,
1063
- ...v
1064
- } = b, d = {
1065
- id: b.htmlFor ?? `input-${m}`,
1062
+ ...b
1063
+ } = f, c = {
1064
+ id: f.htmlFor ?? `input-${m}`,
1066
1065
  helperTextId: `helper-text-${m}`,
1067
1066
  errorMessageId: `error-message-${m}`,
1068
1067
  isInvalid: o ?? !1,
1069
1068
  isRequired: a ?? !1
1070
1069
  };
1071
- return /* @__PURE__ */ s.jsx(O.Provider, { value: d, children: /* @__PURE__ */ s.jsxs("div", { className: C("mb-4", p), children: [
1070
+ return /* @__PURE__ */ s.jsx(N.Provider, { value: c, children: /* @__PURE__ */ s.jsxs("div", { className: q("flex flex-col gap-2", p), children: [
1072
1071
  /* @__PURE__ */ s.jsxs(
1073
1072
  "label",
1074
1073
  {
1075
- className: C("block mb-2 text-label", o && "text-sun-800"),
1076
- htmlFor: d.id,
1077
- ref: h,
1078
- ...v,
1074
+ className: q("block text-label", o && "text-sun-800"),
1075
+ htmlFor: c.id,
1076
+ ref: x,
1077
+ ...b,
1079
1078
  children: [
1080
- x,
1079
+ h,
1081
1080
  a && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
1082
1081
  ]
1083
1082
  }
1084
1083
  ),
1085
- c && /* @__PURE__ */ s.jsx("p", { id: d.helperTextId, className: C(`
1084
+ v && /* @__PURE__ */ s.jsx("p", { id: c.helperTextId, className: `
1086
1085
  text-label text-sumi-700
1087
- `, "mb-2"), children: c }),
1086
+ `, children: v }),
1088
1087
  y,
1089
- o && /* @__PURE__ */ s.jsx(
1090
- "p",
1091
- {
1092
- id: d.errorMessageId,
1093
- className: C(`
1088
+ o && /* @__PURE__ */ s.jsx("p", { id: c.errorMessageId, className: `
1094
1089
  text-label text-sun-800
1095
- `, c ? "mt-1" : "mt-2"),
1096
- children: i
1097
- }
1098
- )
1090
+ `, children: i })
1099
1091
  ] }) });
1100
1092
  });
1101
- Tr.displayName = "LabelControl";
1102
- const ne = R.forwardRef((b, h) => {
1093
+ Sr.displayName = "LabelControl";
1094
+ const se = R.forwardRef((f, x) => {
1103
1095
  const m = R.useId(), {
1104
- labelText: x,
1096
+ labelText: h,
1105
1097
  className: p,
1106
- helperText: c,
1098
+ helperText: v,
1107
1099
  errorMessage: i,
1108
1100
  isInvalid: o,
1109
1101
  isRequired: a,
1110
1102
  direction: y,
1111
- children: v,
1112
- ...d
1113
- } = b, w = {
1114
- groupName: d.name ?? `group-${m}`,
1103
+ children: b,
1104
+ ...c
1105
+ } = f, w = {
1106
+ groupName: c.name ?? `group-${m}`,
1115
1107
  helperTextId: `helper-text-${m}`,
1116
1108
  errorMessageId: `error-message-${m}`,
1117
1109
  isInvalid: o ?? !1,
1118
1110
  isRequired: a ?? !1
1119
- }, k = y ?? "flex-col";
1120
- return /* @__PURE__ */ s.jsx(O.Provider, { value: w, children: /* @__PURE__ */ s.jsxs("fieldset", { className: C("mb-4", p), ref: h, ...d, children: [
1121
- /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
1122
- "p",
1123
- {
1124
- className: C("block mb-2 text-label", o && "text-sun-800"),
1125
- children: [
1126
- x,
1111
+ }, P = y ?? "flex-col";
1112
+ return /* @__PURE__ */ s.jsx(N.Provider, { value: w, children: /* @__PURE__ */ s.jsxs(
1113
+ "fieldset",
1114
+ {
1115
+ className: M("flex flex-col gap-2", p),
1116
+ ref: x,
1117
+ ...c,
1118
+ children: [
1119
+ /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs("p", { className: M("block text-label", o && "text-sun-800"), children: [
1120
+ h,
1127
1121
  a && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
1128
- ]
1129
- }
1130
- ) }),
1131
- /* @__PURE__ */ s.jsx("div", { className: C("inline-flex", k), children: v }),
1132
- c && /* @__PURE__ */ s.jsx("p", { id: w.helperTextId, className: "text-sup text-sumi-700 mt-2", children: c }),
1133
- o && /* @__PURE__ */ s.jsx(
1134
- "p",
1135
- {
1136
- id: w.errorMessageId,
1137
- className: C(
1138
- "text-label text-sun-800",
1139
- c ? "mt-1" : "mt-2"
1140
- ),
1141
- children: i
1142
- }
1143
- )
1144
- ] }) });
1122
+ ] }) }),
1123
+ /* @__PURE__ */ s.jsx("div", { className: M("inline-flex", P), children: b }),
1124
+ v && /* @__PURE__ */ s.jsx("p", { id: w.helperTextId, className: "text-sup text-sumi-700", children: v }),
1125
+ o && /* @__PURE__ */ s.jsx("p", { id: w.errorMessageId, className: "text-label text-sun-800", children: i })
1126
+ ]
1127
+ }
1128
+ ) });
1145
1129
  });
1146
- ne.displayName = "FieldsetControl";
1147
- const Cr = R.forwardRef((b, h) => {
1130
+ se.displayName = "FieldsetControl";
1131
+ const Pr = R.forwardRef((f, x) => {
1148
1132
  const {
1149
1133
  items: m,
1150
- onChange: x,
1134
+ onChange: h,
1151
1135
  className: p,
1152
- labelText: c,
1136
+ labelText: v,
1153
1137
  helperText: i,
1154
1138
  errorMessage: o,
1155
1139
  isInvalid: a,
1156
1140
  isRequired: y,
1157
- size: v,
1158
- ...d
1159
- } = b;
1141
+ size: b,
1142
+ ...c
1143
+ } = f;
1160
1144
  return /* @__PURE__ */ s.jsx(
1161
- ne,
1145
+ se,
1162
1146
  {
1163
1147
  className: p,
1164
- labelText: c,
1148
+ labelText: v,
1165
1149
  helperText: i,
1166
1150
  errorMessage: o,
1167
1151
  isInvalid: a,
1168
1152
  isRequired: y,
1169
- ref: h,
1170
- ...d,
1153
+ ref: x,
1154
+ ...c,
1171
1155
  children: m.map(({ label: j, value: w }) => /* @__PURE__ */ s.jsx(
1172
- De,
1156
+ $e,
1173
1157
  {
1174
- size: v,
1158
+ size: b,
1175
1159
  value: w,
1176
- onChange: x,
1160
+ onChange: h,
1177
1161
  children: j
1178
1162
  },
1179
1163
  `${j}-${w}`
@@ -1181,56 +1165,56 @@ const Cr = R.forwardRef((b, h) => {
1181
1165
  }
1182
1166
  );
1183
1167
  });
1184
- Cr.displayName = "CheckboxGroup";
1185
- const Ir = R.forwardRef((b, h) => {
1168
+ Pr.displayName = "CheckboxGroup";
1169
+ const kr = R.forwardRef((f, x) => {
1186
1170
  const {
1187
1171
  items: m,
1188
- onChange: x,
1172
+ onChange: h,
1189
1173
  className: p,
1190
- labelText: c,
1174
+ labelText: v,
1191
1175
  helperText: i,
1192
1176
  errorMessage: o,
1193
1177
  isInvalid: a,
1194
1178
  isRequired: y,
1195
- defaultValue: v,
1196
- size: d,
1179
+ defaultValue: b,
1180
+ size: c,
1197
1181
  ...j
1198
- } = b;
1182
+ } = f;
1199
1183
  return /* @__PURE__ */ s.jsx(
1200
- ne,
1184
+ se,
1201
1185
  {
1202
1186
  className: p,
1203
- labelText: c,
1187
+ labelText: v,
1204
1188
  helperText: i,
1205
1189
  errorMessage: o,
1206
1190
  isInvalid: a,
1207
1191
  isRequired: y,
1208
- ref: h,
1192
+ ref: x,
1209
1193
  ...j,
1210
- children: m.map(({ label: w, value: k }) => /* @__PURE__ */ s.jsx(
1211
- Ae,
1194
+ children: m.map(({ label: w, value: P }) => /* @__PURE__ */ s.jsx(
1195
+ Me,
1212
1196
  {
1213
- size: d,
1214
- value: k,
1215
- onChange: x,
1216
- defaultChecked: v === k,
1197
+ size: c,
1198
+ value: P,
1199
+ onChange: h,
1200
+ defaultChecked: b === P,
1217
1201
  children: w
1218
1202
  },
1219
- `${w}-${k}`
1203
+ `${w}-${P}`
1220
1204
  ))
1221
1205
  }
1222
1206
  );
1223
1207
  });
1224
- Ir.displayName = "RadioGroup";
1208
+ kr.displayName = "RadioGroup";
1225
1209
  export {
1226
- De as Checkbox,
1227
- Cr as CheckboxGroup,
1228
- ne as FieldsetControl,
1229
- _r as FileInput,
1230
- jr as Input,
1231
- Tr as LabelControl,
1232
- Ae as Radio,
1233
- Ir as RadioGroup,
1234
- Pr as Select,
1235
- wr as Textarea
1210
+ $e as Checkbox,
1211
+ Pr as CheckboxGroup,
1212
+ se as FieldsetControl,
1213
+ Tr as FileInput,
1214
+ Cr as Input,
1215
+ Sr as LabelControl,
1216
+ Me as Radio,
1217
+ kr as RadioGroup,
1218
+ Or as Select,
1219
+ Ir as Textarea
1236
1220
  };