@sakura-ui/sakura-ui 0.1.1 → 0.1.2

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