@sakura-ui/forms 0.2.0 → 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
- import y from "react";
2
- var ae = { exports: {} }, Y = {};
1
+ import R from "react";
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: {} }, Y = {};
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 Y;
16
- Se = 1;
17
- var v = y, g = Symbol.for("react.element"), b = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, f = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function i(o, a, R) {
19
- var h, d = {}, j = null, w = null;
20
- R !== void 0 && (j = "" + R), a.key !== void 0 && (j = "" + a.key), a.ref !== void 0 && (w = a.ref);
21
- for (h in a)
22
- x.call(a, h) && !u.hasOwnProperty(h) && (d[h] = a[h]);
23
- if (o && o.defaultProps)
24
- for (h in a = o.defaultProps, a)
25
- d[h] === void 0 && (d[h] = a[h]);
26
- return { $$typeof: g, type: o, key: j, ref: w, props: d, _owner: f.current };
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 };
17
+ function i(o, a, y) {
18
+ var b, c = {}, j = null, w = null;
19
+ y !== void 0 && (j = "" + y), a.key !== void 0 && (j = "" + a.key), a.ref !== void 0 && (w = a.ref);
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 Y.Fragment = b, Y.jsx = i, Y.jsxs = i, Y;
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 v = y, g = Symbol.for("react.element"), b = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = 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 = v.__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, p = n.getStackAddendum();
61
- p !== "" && (r += "%s", t = t.concat([p]));
62
- var m = t.map(function(c) {
63
- return String(c);
56
+ var n = D.ReactDebugCurrentFrame, d = n.getStackAddendum();
57
+ d !== "" && (r += "%s", t = t.concat([d]));
58
+ var g = t.map(function(u) {
59
+ return String(u);
64
60
  });
65
- m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
61
+ g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
66
62
  }
67
63
  }
68
- var Le = !1, Ye = !1, Ve = !1, Ue = !1, ze = !1, se;
69
- se = Symbol.for("react.module.reference");
70
- function Be(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === x || e === u || ze || e === f || e === R || e === h || Ue || e === w || Le || Ye || 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 p = r.displayName || r.name || "";
82
- return p !== "" ? t + "(" + p + ")" : 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
- case b:
93
+ case m:
98
94
  return "Portal";
99
- case u:
95
+ case v:
100
96
  return "Profiler";
101
- case f:
97
+ case p:
102
98
  return "StrictMode";
103
- case R:
99
+ case y:
104
100
  return "Suspense";
105
- case h:
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 p = e, m = p._payload, c = p._init;
118
+ var d = e, g = d._payload, u = d._init;
123
119
  try {
124
- return N(c(m));
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,254 +149,254 @@ 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;
190
+ var H = D.ReactCurrentDispatcher, X;
195
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 (p) {
201
- var n = p.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, z;
204
+ var Z = !1, B;
209
205
  {
210
- var He = typeof WeakMap == "function" ? WeakMap : Map;
211
- z = 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 = z.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 p = Error.prepareStackTrace;
218
+ Z = !0;
219
+ var d = Error.prepareStackTrace;
224
220
  Error.prepareStackTrace = void 0;
225
- var m;
226
- m = J.current, J.current = null, Je();
221
+ var g;
222
+ g = H.current, H.current = null, He();
227
223
  try {
228
224
  if (r) {
229
- var c = function() {
225
+ var u = function() {
230
226
  throw Error();
231
227
  };
232
- if (Object.defineProperty(c.prototype, "props", {
228
+ if (Object.defineProperty(u.prototype, "props", {
233
229
  set: function() {
234
230
  throw Error();
235
231
  }
236
232
  }), typeof Reflect == "object" && Reflect.construct) {
237
233
  try {
238
- Reflect.construct(c, []);
239
- } catch (S) {
240
- n = S;
234
+ Reflect.construct(u, []);
235
+ } catch (I) {
236
+ n = I;
241
237
  }
242
- Reflect.construct(e, [], c);
238
+ Reflect.construct(e, [], u);
243
239
  } else {
244
240
  try {
245
- c.call();
246
- } catch (S) {
247
- n = S;
241
+ u.call();
242
+ } catch (I) {
243
+ n = I;
248
244
  }
249
- e.call(c.prototype);
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" && z.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 = m, Ke(), Error.prepareStackTrace = p;
275
+ Z = !1, H.current = g, Xe(), Error.prepareStackTrace = d;
280
276
  }
281
- var $ = e ? e.displayName || e.name : "", q = $ ? U($) : "";
282
- return typeof e == "function" && z.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
293
  return U(e);
298
294
  switch (e) {
299
- case R:
295
+ case y:
300
296
  return U("Suspense");
301
- case h:
297
+ case b:
302
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, p = n._payload, m = n._init;
307
+ var n = e, d = n._payload, g = n._init;
312
308
  try {
313
- return B(m(p), 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 = {}, he = 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
- he.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
- he.setExtraStackFrame(null);
322
+ xe.setExtraStackFrame(null);
327
323
  }
328
- function Qe(e, r, t, n, p) {
324
+ function rr(e, r, t, n, d) {
329
325
  {
330
- var m = Function.call.bind(W);
331
- for (var c in e)
332
- if (m(e, c)) {
326
+ var g = Function.call.bind(Y);
327
+ for (var u in e)
328
+ if (g(e, u)) {
333
329
  var l = void 0;
334
330
  try {
335
- if (typeof e[c] != "function") {
336
- var I = Error((n || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw I.name = "Invariant Violation", I;
331
+ if (typeof e[u] != "function") {
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
- l = e[c](r, c, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
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(p), 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, c, typeof l), G(null)), l instanceof Error && !(l.message in me) && (me[l.message] = !0, G(p), 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
- return ge(e), !1;
355
+ return he(e), !1;
360
356
  } catch {
361
357
  return !0;
362
358
  }
363
359
  }
364
- function ge(e) {
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)), ge(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 L = 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) {
390
+ function lr(e, r) {
395
391
  if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
396
- var t = N(L.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(L.current.type), e.ref), Z[t] = !0);
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,17 +415,17 @@ function Er() {
419
415
  });
420
416
  }
421
417
  }
422
- var ur = function(e, r, t, n, p, m, c) {
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: g,
421
+ $$typeof: x,
426
422
  // Built-in properties that belong on the element
427
423
  type: e,
428
424
  key: r,
429
425
  ref: t,
430
- props: c,
426
+ props: u,
431
427
  // Record the component responsible for creating this element.
432
- _owner: m
428
+ _owner: g
433
429
  };
434
430
  return l._store = {}, Object.defineProperty(l._store, "validated", {
435
431
  configurable: !1,
@@ -445,44 +441,44 @@ function Er() {
445
441
  configurable: !1,
446
442
  enumerable: !1,
447
443
  writable: !1,
448
- value: p
444
+ value: d
449
445
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
450
446
  };
451
- function cr(e, r, t, n, p) {
447
+ function fr(e, r, t, n, d) {
452
448
  {
453
- var m, c = {}, 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, p));
455
- for (m in r)
456
- W.call(r, m) && !ar.hasOwnProperty(m) && (c[m] = r[m]);
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));
451
+ for (g in r)
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
- for (m in E)
460
- c[m] === void 0 && (c[m] = E[m]);
455
+ for (g in E)
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(c, _), I && lr(c, _);
460
+ l && ur(u, _), C && cr(u, _);
465
461
  }
466
- return ur(e, l, I, p, n, L.current, c);
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 === g;
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 p = Me(e);
536
- if (typeof p == "function" && p !== e.entries)
537
- for (var m = p.call(e), c; !(c = m.next()).done; )
538
- re(c.value) && we(c.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 p = N(r);
562
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "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, p, m) {
575
+ var Ie = {};
576
+ function Se(e, r, t, n, d, g) {
581
577
  {
582
- var c = Be(e);
583
- if (!c) {
578
+ var u = Ge(e);
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 === g ? (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, p, m);
587
+ var _ = fr(e, r, t, d, g);
592
588
  if (_ == null)
593
589
  return _;
594
- if (c) {
595
- var P = r.children;
596
- if (P !== void 0)
590
+ if (u) {
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 hr = mr, gr = br;
631
- V.Fragment = x, V.jsx = hr, V.jsxs = gr;
632
- }()), V;
626
+ var hr = xr, yr = gr;
627
+ z.Fragment = h, z.jsx = hr, z.jsxs = yr;
628
+ }()), z;
629
+ }
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
633
  }
634
- process.env.NODE_ENV === "production" ? ae.exports = Rr() : ae.exports = Er();
635
- var s = ae.exports;
636
- const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
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 = (...v) => v.filter(Boolean).join(" "), O = y.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 = (...v) => v.filter(Boolean).join(" "), O = y.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,15 +702,15 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.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 = y.forwardRef(
711
- (v, g) => {
712
- const { id: b, className: x, size: f = "lg", children: u, ...i } = v, o = b || y.useId(), a = y.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
- const R = {
713
+ const y = {
715
714
  lg: 22 / 24,
716
715
  md: 18 / 24,
717
716
  sm: 18 / 24
@@ -720,10 +719,10 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
720
719
  "label",
721
720
  {
722
721
  htmlFor: o,
723
- className: C(
724
- Oe,
725
- Fe[f],
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 = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
740
739
  "aria-invalid": a.isInvalid ?? !1,
741
740
  "aria-required": a.isRequired ?? !1,
742
741
  ...i,
743
- ref: g
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 = (...v) => v.filter(Boolean).join(" "), O = y.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[f]), 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",
@@ -767,25 +766,25 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
767
766
  viewBox: "0 0 24 24",
768
767
  children: [
769
768
  /* @__PURE__ */ s.jsx("title", { children: "check" }),
770
- /* @__PURE__ */ s.jsx("g", { transform: `scale(${R[f]} ${R[f]})`, 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" }) })
769
+ /* @__PURE__ */ s.jsx("g", { transform: `scale(${y[p]} ${y[p]})`, 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" }) })
771
770
  ]
772
771
  }
773
772
  ) }),
774
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
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 = y.forwardRef(
782
- (v, g) => {
783
- const { id: b, className: x, size: f = "lg", children: u, ...i } = v, o = b || y.useId(), a = y.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
- const R = `
784
+ const y = `
786
785
  peer
787
786
  sr-only
788
- `, h = `
787
+ `, b = `
789
788
  bg-clip-content
790
789
  rounded-full
791
790
  border
@@ -796,8 +795,8 @@ const Ae = y.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,66 +805,66 @@ const Ae = y.forwardRef(
806
805
  "label",
807
806
  {
808
807
  htmlFor: o,
809
- className: C(
810
- Oe,
811
- Fe[f],
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(
816
815
  "input",
817
816
  {
818
817
  id: o,
819
- className: R,
818
+ className: y,
820
819
  type: "radio",
821
820
  "aria-describedby": a.helperTextId,
822
821
  "aria-errormessage": a.errorMessageId,
823
822
  "aria-invalid": a.isInvalid ?? !1,
824
823
  "aria-required": a.isRequired ?? !1,
825
824
  ...i,
826
- ref: g
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(h, d[f], qe[f])
832
+ className: q(b, c[p], Ae[p])
834
833
  }
835
834
  ),
836
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
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 = y.forwardRef(
844
- (v, g) => {
845
- const { id: b, className: x, size: f = "lg", children: u, ...i } = v, o = y.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
- id: b || o.id,
851
- className: C(
849
+ id: m || o.id,
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[f],
860
- v.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: g,
868
- children: u
866
+ ref: x,
867
+ children: v
869
868
  }
870
869
  ),
871
870
  /* @__PURE__ */ s.jsxs(
@@ -900,15 +899,11 @@ const Pr = y.forwardRef(
900
899
  )
901
900
  ] });
902
901
  }
903
- ), _r = y.forwardRef(
904
- (v, g) => {
905
- const { id: b, className: x, ...f } = v, u = y.useContext(O);
906
- return u.isRequired && (f.required = !0), /* @__PURE__ */ s.jsx(
907
- "input",
908
- {
909
- type: "file",
910
- id: b || u.id,
911
- className: C(`
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);
906
+ const o = `
912
907
  file:mr-2
913
908
  file:inline-block
914
909
  file:text-button
@@ -919,26 +914,21 @@ const Pr = y.forwardRef(
919
914
  file:whitespace-nowrap
920
915
  file:border
921
916
  file:border-solid
922
- file:border-sea-800
923
- file:active:border-sea-1200
924
- file:hover:border-sea-900
917
+ file:border-blue-900
918
+ file:hover:border-blue-1000
919
+ file:active:border-blue-1200
925
920
  file:disabled:border-sumi-500
926
921
  file:disabled:cursor-not-allowed
927
- `, `
928
- file:text-sea-800
929
- file:bg-transparent
930
- file:active:bg-sea-200
931
- file:hover:bg-sea-100
922
+ `, a = `
923
+ file:text-sea-900
924
+ file:hover:text-sea-1000
932
925
  file:active:text-sea-1200
933
- file:hover:text-sea-900
926
+ file:bg-transparent
927
+ file:hover:bg-sea-200
928
+ file:active:bg-sea-300
934
929
  file:disabled:text-sumi-500
935
930
  file:disabled:bg-transparent
936
- `, `
937
- file:p-4
938
- file:text-button
939
- file:rounded-lg
940
- file:leading-snug
941
- `, `
931
+ `, y = `
942
932
  text-label
943
933
  text-sumi-900
944
934
  rounded-lg
@@ -947,55 +937,85 @@ const Pr = y.forwardRef(
947
937
  focus:outline-2
948
938
  focus:outline-wood-600
949
939
  aria-invalid:text-sun-800
950
- `, x),
951
- "aria-describedby": u.helperTextId,
952
- "aria-errormessage": u.errorMessageId,
953
- "aria-invalid": u.isInvalid ?? !1,
954
- "aria-required": u.isRequired ?? !1,
955
- ref: g,
956
- ...f
940
+ `, b = {
941
+ // 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
942
+ lg: `
943
+ file:p-4
944
+ file:text-button
945
+ file:rounded-lg
946
+ file:leading-snug
947
+ `,
948
+ // 12(py-3) * 2 + 22(text-button * leading-snug) + boader * 2 = 48px
949
+ md: `
950
+ file:px-4
951
+ file:py-3
952
+ file:text-button
953
+ file:rounded-lg
954
+ file:leading-snug
955
+ `,
956
+ // 8(py-2) * 2 + 22(text-button * leading-snug) + boader * 2 = 40px
957
+ sm: `
958
+ file:px-3
959
+ file:py-2
960
+ file:text-button
961
+ file:rounded-md
962
+ file:leading-snug
963
+ `
964
+ };
965
+ return /* @__PURE__ */ s.jsx(
966
+ "input",
967
+ {
968
+ type: "file",
969
+ id: m || i.id,
970
+ className: M(o, a, b[p], y, h),
971
+ "aria-describedby": i.helperTextId,
972
+ "aria-errormessage": i.errorMessageId,
973
+ "aria-invalid": i.isInvalid ?? !1,
974
+ "aria-required": i.isRequired ?? !1,
975
+ ref: x,
976
+ ...v
957
977
  }
958
978
  );
959
979
  }
960
980
  );
961
- _r.displayName = "FileInput";
962
- const jr = y.forwardRef(
963
- (v, g) => {
964
- const { id: b, className: x, size: f = "lg", ...u } = v, i = y.useContext(O);
965
- return i.isRequired && (u.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(
966
986
  "input",
967
987
  {
968
988
  type: "text",
969
- id: b || i.id,
970
- className: C(
971
- ke,
972
- Ne[f],
973
- x
989
+ id: m || i.id,
990
+ className: q(
991
+ Oe,
992
+ Fe[p],
993
+ h
974
994
  ),
975
995
  "aria-describedby": i.helperTextId,
976
996
  "aria-errormessage": i.errorMessageId,
977
997
  "aria-invalid": i.isInvalid ?? !1,
978
998
  "aria-required": i.isRequired ?? !1,
979
- ref: g,
980
- ...u
999
+ ref: x,
1000
+ ...v
981
1001
  }
982
1002
  );
983
1003
  }
984
1004
  );
985
- jr.displayName = "Input";
986
- const wr = y.forwardRef(
987
- (v, g) => {
988
- const { id: b, className: x, children: f, onChange: u, maxLength: i, ...o } = v, [a, R] = y.useState(0), h = (k) => {
989
- u && u(k), R(k.target.value.length);
990
- }, d = y.useContext(O);
991
- 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);
992
1012
  const j = a > (i || 0) ? "text-sun-800" : "text-sumi-700";
993
1013
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
994
1014
  /* @__PURE__ */ s.jsx(
995
1015
  "textarea",
996
1016
  {
997
- id: b || d.id,
998
- className: C(`
1017
+ id: m || c.id,
1018
+ className: q(`
999
1019
  p-4
1000
1020
  text-label
1001
1021
  rounded-lg
@@ -1010,15 +1030,15 @@ const wr = y.forwardRef(
1010
1030
  disabled:text-sumi-500
1011
1031
  disabled:border-sumi-500
1012
1032
  aria-invalid:border-sun-800
1013
- `, x),
1014
- "aria-describedby": d.helperTextId,
1015
- "aria-errormessage": d.errorMessageId,
1016
- "aria-invalid": d.isInvalid ?? !1,
1017
- "aria-required": d.isRequired ?? !1,
1018
- onChange: h,
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,
1019
1039
  ...o,
1020
- ref: g,
1021
- children: f
1040
+ ref: x,
1041
+ children: p
1022
1042
  }
1023
1043
  ),
1024
1044
  i ? /* @__PURE__ */ s.jsxs("p", { className: "text-label text-sumi-700", children: [
@@ -1029,130 +1049,115 @@ const wr = y.forwardRef(
1029
1049
  ] });
1030
1050
  }
1031
1051
  );
1032
- wr.displayName = "Textarea";
1033
- const Tr = y.forwardRef((v, g) => {
1034
- const b = y.useId(), {
1035
- labelText: x,
1036
- className: f,
1037
- helperText: u,
1052
+ Ir.displayName = "Textarea";
1053
+ const Sr = R.forwardRef((f, x) => {
1054
+ const m = R.useId(), {
1055
+ labelText: h,
1056
+ className: p,
1057
+ helperText: v,
1038
1058
  errorMessage: i,
1039
1059
  isInvalid: o,
1040
1060
  isRequired: a,
1041
- children: R,
1042
- ...h
1043
- } = v, d = {
1044
- id: v.htmlFor ?? `input-${b}`,
1045
- helperTextId: `helper-text-${b}`,
1046
- errorMessageId: `error-message-${b}`,
1061
+ children: y,
1062
+ ...b
1063
+ } = f, c = {
1064
+ id: f.htmlFor ?? `input-${m}`,
1065
+ helperTextId: `helper-text-${m}`,
1066
+ errorMessageId: `error-message-${m}`,
1047
1067
  isInvalid: o ?? !1,
1048
1068
  isRequired: a ?? !1
1049
1069
  };
1050
- return /* @__PURE__ */ s.jsx(O.Provider, { value: d, children: /* @__PURE__ */ s.jsxs("div", { className: C("mb-4", f), children: [
1070
+ return /* @__PURE__ */ s.jsx(N.Provider, { value: c, children: /* @__PURE__ */ s.jsxs("div", { className: q("flex flex-col gap-2", p), children: [
1051
1071
  /* @__PURE__ */ s.jsxs(
1052
1072
  "label",
1053
1073
  {
1054
- className: C("block mb-2 text-label", o && "text-sun-800"),
1055
- htmlFor: d.id,
1056
- ref: g,
1057
- ...h,
1074
+ className: q("block text-label", o && "text-sun-800"),
1075
+ htmlFor: c.id,
1076
+ ref: x,
1077
+ ...b,
1058
1078
  children: [
1059
- x,
1079
+ h,
1060
1080
  a && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
1061
1081
  ]
1062
1082
  }
1063
1083
  ),
1064
- u && /* @__PURE__ */ s.jsx("p", { id: d.helperTextId, className: C(`
1084
+ v && /* @__PURE__ */ s.jsx("p", { id: c.helperTextId, className: `
1065
1085
  text-label text-sumi-700
1066
- `, "mb-2"), children: u }),
1067
- R,
1068
- o && /* @__PURE__ */ s.jsx(
1069
- "p",
1070
- {
1071
- id: d.errorMessageId,
1072
- className: C(`
1086
+ `, children: v }),
1087
+ y,
1088
+ o && /* @__PURE__ */ s.jsx("p", { id: c.errorMessageId, className: `
1073
1089
  text-label text-sun-800
1074
- `, u ? "mt-1" : "mt-2"),
1075
- children: i
1076
- }
1077
- )
1090
+ `, children: i })
1078
1091
  ] }) });
1079
1092
  });
1080
- Tr.displayName = "LabelControl";
1081
- const ne = y.forwardRef((v, g) => {
1082
- const b = y.useId(), {
1083
- labelText: x,
1084
- className: f,
1085
- helperText: u,
1093
+ Sr.displayName = "LabelControl";
1094
+ const se = R.forwardRef((f, x) => {
1095
+ const m = R.useId(), {
1096
+ labelText: h,
1097
+ className: p,
1098
+ helperText: v,
1086
1099
  errorMessage: i,
1087
1100
  isInvalid: o,
1088
1101
  isRequired: a,
1089
- direction: R,
1090
- children: h,
1091
- ...d
1092
- } = v, w = {
1093
- groupName: d.name ?? `group-${b}`,
1094
- helperTextId: `helper-text-${b}`,
1095
- errorMessageId: `error-message-${b}`,
1102
+ direction: y,
1103
+ children: b,
1104
+ ...c
1105
+ } = f, w = {
1106
+ groupName: c.name ?? `group-${m}`,
1107
+ helperTextId: `helper-text-${m}`,
1108
+ errorMessageId: `error-message-${m}`,
1096
1109
  isInvalid: o ?? !1,
1097
1110
  isRequired: a ?? !1
1098
- }, k = R ?? "flex-col";
1099
- return /* @__PURE__ */ s.jsx(O.Provider, { value: w, children: /* @__PURE__ */ s.jsxs("fieldset", { className: C("mb-4", f), ref: g, ...d, children: [
1100
- /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
1101
- "p",
1102
- {
1103
- className: C("block mb-2 text-label", o && "text-sun-800"),
1104
- children: [
1105
- 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,
1106
1121
  a && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
1107
- ]
1108
- }
1109
- ) }),
1110
- /* @__PURE__ */ s.jsx("div", { className: C("inline-flex", k), children: h }),
1111
- u && /* @__PURE__ */ s.jsx("p", { id: w.helperTextId, className: "text-sup text-sumi-700 mt-2", children: u }),
1112
- o && /* @__PURE__ */ s.jsx(
1113
- "p",
1114
- {
1115
- id: w.errorMessageId,
1116
- className: C(
1117
- "text-label text-sun-800",
1118
- u ? "mt-1" : "mt-2"
1119
- ),
1120
- children: i
1121
- }
1122
- )
1123
- ] }) });
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
+ ) });
1124
1129
  });
1125
- ne.displayName = "FieldsetControl";
1126
- const Cr = y.forwardRef((v, g) => {
1130
+ se.displayName = "FieldsetControl";
1131
+ const Pr = R.forwardRef((f, x) => {
1127
1132
  const {
1128
- items: b,
1129
- onChange: x,
1130
- className: f,
1131
- labelText: u,
1133
+ items: m,
1134
+ onChange: h,
1135
+ className: p,
1136
+ labelText: v,
1132
1137
  helperText: i,
1133
1138
  errorMessage: o,
1134
1139
  isInvalid: a,
1135
- isRequired: R,
1136
- size: h,
1137
- ...d
1138
- } = v;
1140
+ isRequired: y,
1141
+ size: b,
1142
+ ...c
1143
+ } = f;
1139
1144
  return /* @__PURE__ */ s.jsx(
1140
- ne,
1145
+ se,
1141
1146
  {
1142
- className: f,
1143
- labelText: u,
1147
+ className: p,
1148
+ labelText: v,
1144
1149
  helperText: i,
1145
1150
  errorMessage: o,
1146
1151
  isInvalid: a,
1147
- isRequired: R,
1148
- ref: g,
1149
- ...d,
1150
- children: b.map(({ label: j, value: w }) => /* @__PURE__ */ s.jsx(
1151
- De,
1152
+ isRequired: y,
1153
+ ref: x,
1154
+ ...c,
1155
+ children: m.map(({ label: j, value: w }) => /* @__PURE__ */ s.jsx(
1156
+ $e,
1152
1157
  {
1153
- size: h,
1158
+ size: b,
1154
1159
  value: w,
1155
- onChange: x,
1160
+ onChange: h,
1156
1161
  children: j
1157
1162
  },
1158
1163
  `${j}-${w}`
@@ -1160,56 +1165,56 @@ const Cr = y.forwardRef((v, g) => {
1160
1165
  }
1161
1166
  );
1162
1167
  });
1163
- Cr.displayName = "CheckboxGroup";
1164
- const Ir = y.forwardRef((v, g) => {
1168
+ Pr.displayName = "CheckboxGroup";
1169
+ const kr = R.forwardRef((f, x) => {
1165
1170
  const {
1166
- items: b,
1167
- onChange: x,
1168
- className: f,
1169
- labelText: u,
1171
+ items: m,
1172
+ onChange: h,
1173
+ className: p,
1174
+ labelText: v,
1170
1175
  helperText: i,
1171
1176
  errorMessage: o,
1172
1177
  isInvalid: a,
1173
- isRequired: R,
1174
- defaultValue: h,
1175
- size: d,
1178
+ isRequired: y,
1179
+ defaultValue: b,
1180
+ size: c,
1176
1181
  ...j
1177
- } = v;
1182
+ } = f;
1178
1183
  return /* @__PURE__ */ s.jsx(
1179
- ne,
1184
+ se,
1180
1185
  {
1181
- className: f,
1182
- labelText: u,
1186
+ className: p,
1187
+ labelText: v,
1183
1188
  helperText: i,
1184
1189
  errorMessage: o,
1185
1190
  isInvalid: a,
1186
- isRequired: R,
1187
- ref: g,
1191
+ isRequired: y,
1192
+ ref: x,
1188
1193
  ...j,
1189
- children: b.map(({ label: w, value: k }) => /* @__PURE__ */ s.jsx(
1190
- Ae,
1194
+ children: m.map(({ label: w, value: P }) => /* @__PURE__ */ s.jsx(
1195
+ Me,
1191
1196
  {
1192
- size: d,
1193
- value: k,
1194
- onChange: x,
1195
- defaultChecked: h === k,
1197
+ size: c,
1198
+ value: P,
1199
+ onChange: h,
1200
+ defaultChecked: b === P,
1196
1201
  children: w
1197
1202
  },
1198
- `${w}-${k}`
1203
+ `${w}-${P}`
1199
1204
  ))
1200
1205
  }
1201
1206
  );
1202
1207
  });
1203
- Ir.displayName = "RadioGroup";
1208
+ kr.displayName = "RadioGroup";
1204
1209
  export {
1205
- De as Checkbox,
1206
- Cr as CheckboxGroup,
1207
- ne as FieldsetControl,
1208
- _r as FileInput,
1209
- jr as Input,
1210
- Tr as LabelControl,
1211
- Ae as Radio,
1212
- Ir as RadioGroup,
1213
- Pr as Select,
1214
- 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
1215
1220
  };