@sakura-ui/sakura-ui 0.1.17 → 0.1.20

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 (148) hide show
  1. package/package.json +16 -1
  2. package/packages/config/package.json +23 -28
  3. package/packages/config/src/index.ts +58 -1
  4. package/packages/config/tests/index.test.ts +1 -1
  5. package/packages/config/tsconfig.json +9 -17
  6. package/packages/config/tsconfig.node.json +6 -0
  7. package/packages/config/vite.config.ts +5 -3
  8. package/packages/core/package.json +27 -45
  9. package/packages/core/src/components/Card.tsx +27 -12
  10. package/packages/core/src/components/Icon.tsx +13 -4
  11. package/packages/core/src/components/Link.tsx +4 -13
  12. package/packages/core/src/components/Table.tsx +3 -2
  13. package/packages/core/src/components/buttonStyle.ts +2 -1
  14. package/packages/core/src/components/index.ts +2 -1
  15. package/packages/core/src/index.ts +2 -0
  16. package/packages/core/tsconfig.json +2 -1
  17. package/packages/core/tsconfig.node.json +1 -4
  18. package/packages/core/vite.config.ts +6 -3
  19. package/packages/forms/dist/components/Checkbox.js +1 -1
  20. package/packages/forms/dist/components/Checkbox.js.map +1 -1
  21. package/packages/forms/dist/components/FileInput.js +6 -2
  22. package/packages/forms/dist/components/FileInput.js.map +1 -1
  23. package/packages/forms/dist/components/Input.js +15 -14
  24. package/packages/forms/dist/components/Input.js.map +1 -1
  25. package/packages/forms/dist/components/Radio.js +1 -1
  26. package/packages/forms/dist/components/Radio.js.map +1 -1
  27. package/packages/forms/dist/components/Select.js +27 -26
  28. package/packages/forms/dist/components/Select.js.map +1 -1
  29. package/packages/forms/dist/components/Textarea.js +15 -14
  30. package/packages/forms/dist/components/Textarea.js.map +1 -1
  31. package/packages/forms/dist/index.cjs.js +73 -63
  32. package/packages/forms/dist/index.es.js +270 -261
  33. package/packages/forms/dist/types/components/Checkbox.d.ts.map +1 -0
  34. package/packages/forms/dist/types/components/FieldsetControl.d.ts.map +1 -0
  35. package/packages/forms/dist/types/components/FileInput.d.ts.map +1 -0
  36. package/packages/forms/dist/types/components/Input.d.ts.map +1 -0
  37. package/packages/forms/dist/types/components/LabelControl.d.ts.map +1 -0
  38. package/packages/forms/dist/types/components/Radio.d.ts.map +1 -0
  39. package/packages/forms/dist/types/components/Select.d.ts.map +1 -0
  40. package/packages/forms/dist/types/components/Textarea.d.ts.map +1 -0
  41. package/packages/forms/dist/types/components/context.d.ts.map +1 -0
  42. package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts.map +1 -0
  43. package/packages/forms/dist/types/components/controlled/InputItem.d.ts.map +1 -0
  44. package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts.map +1 -0
  45. package/packages/forms/dist/types/components/controlled/SelectControl.d.ts.map +1 -0
  46. package/packages/forms/dist/types/components/controlled/TextareaControl.d.ts.map +1 -0
  47. package/packages/forms/dist/types/components/controlled/index.d.ts.map +1 -0
  48. package/packages/forms/dist/types/components/index.d.ts.map +1 -0
  49. package/packages/forms/dist/types/index.d.ts.map +1 -0
  50. package/packages/forms/dist/types/utils/class.d.ts.map +1 -0
  51. package/packages/forms/node_modules/.bin/eslint +17 -0
  52. package/packages/forms/node_modules/.bin/tailwind +2 -2
  53. package/packages/forms/node_modules/.bin/tailwindcss +2 -2
  54. package/packages/forms/node_modules/.bin/ts-node +4 -4
  55. package/packages/forms/node_modules/.bin/ts-node-cwd +4 -4
  56. package/packages/forms/node_modules/.bin/ts-node-esm +4 -4
  57. package/packages/forms/node_modules/.bin/ts-node-script +4 -4
  58. package/packages/forms/node_modules/.bin/ts-node-transpile-only +4 -4
  59. package/packages/forms/node_modules/.bin/ts-script +4 -4
  60. package/packages/forms/node_modules/.bin/vitest +17 -0
  61. package/packages/forms/node_modules/.vitest/results.json +1 -0
  62. package/packages/forms/package.json +23 -32
  63. package/packages/forms/src/components/Checkbox.tsx +1 -0
  64. package/packages/forms/src/components/FileInput.tsx +7 -10
  65. package/packages/forms/src/components/Input.tsx +16 -15
  66. package/packages/forms/src/components/Radio.tsx +1 -0
  67. package/packages/forms/src/components/Select.tsx +28 -27
  68. package/packages/forms/src/components/Textarea.tsx +16 -14
  69. package/packages/forms/tsconfig.json +4 -3
  70. package/packages/forms/tsconfig.node.json +1 -4
  71. package/packages/forms/vite.config.ts +6 -3
  72. package/packages/config/jest.config.ts +0 -10
  73. package/packages/core/coverage/clover.xml +0 -258
  74. package/packages/core/coverage/coverage-final.json +0 -2700
  75. package/packages/core/coverage/lcov-report/base.css +0 -362
  76. package/packages/core/coverage/lcov-report/block-navigation.js +0 -85
  77. package/packages/core/coverage/lcov-report/favicon.png +0 -0
  78. package/packages/core/coverage/lcov-report/index.html +0 -216
  79. package/packages/core/coverage/lcov-report/prettify.css +0 -101
  80. package/packages/core/coverage/lcov-report/prettify.js +0 -1004
  81. package/packages/core/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  82. package/packages/core/coverage/lcov-report/sorter.js +0 -191
  83. package/packages/core/coverage/lcov-report/src/components/Button.tsx.html +0 -303
  84. package/packages/core/coverage/lcov-report/src/components/Card.tsx.html +0 -399
  85. package/packages/core/coverage/lcov-report/src/components/Code.tsx.html +0 -144
  86. package/packages/core/coverage/lcov-report/src/components/Heading.tsx.html +0 -405
  87. package/packages/core/coverage/lcov-report/src/components/Icon.tsx.html +0 -183
  88. package/packages/core/coverage/lcov-report/src/components/IconButton.tsx.html +0 -378
  89. package/packages/core/coverage/lcov-report/src/components/InfoCard.tsx.html +0 -240
  90. package/packages/core/coverage/lcov-report/src/components/Link.tsx.html +0 -324
  91. package/packages/core/coverage/lcov-report/src/components/List.tsx.html +0 -204
  92. package/packages/core/coverage/lcov-report/src/components/Pre.tsx.html +0 -153
  93. package/packages/core/coverage/lcov-report/src/components/Table.tsx.html +0 -429
  94. package/packages/core/coverage/lcov-report/src/components/index.html +0 -396
  95. package/packages/core/coverage/lcov-report/src/components/index.ts.html +0 -126
  96. package/packages/core/coverage/lcov-report/src/index.html +0 -176
  97. package/packages/core/coverage/lcov-report/src/index.ts.html +0 -171
  98. package/packages/core/coverage/lcov-report/src/utils/class.ts.html +0 -90
  99. package/packages/core/coverage/lcov-report/src/utils/index.html +0 -176
  100. package/packages/core/coverage/lcov.info +0 -523
  101. package/packages/core/jest.config.ts +0 -11
  102. package/packages/forms/dist/components/Checkbox.d.ts.map +0 -1
  103. package/packages/forms/dist/components/FieldsetControl.d.ts.map +0 -1
  104. package/packages/forms/dist/components/FileInput.d.ts.map +0 -1
  105. package/packages/forms/dist/components/Input.d.ts.map +0 -1
  106. package/packages/forms/dist/components/LabelControl.d.ts.map +0 -1
  107. package/packages/forms/dist/components/Radio.d.ts.map +0 -1
  108. package/packages/forms/dist/components/Select.d.ts.map +0 -1
  109. package/packages/forms/dist/components/Textarea.d.ts.map +0 -1
  110. package/packages/forms/dist/components/context.d.ts.map +0 -1
  111. package/packages/forms/dist/components/controlled/CheckboxGroup.d.ts.map +0 -1
  112. package/packages/forms/dist/components/controlled/InputItem.d.ts.map +0 -1
  113. package/packages/forms/dist/components/controlled/RadioGroup.d.ts.map +0 -1
  114. package/packages/forms/dist/components/controlled/SelectControl.d.ts.map +0 -1
  115. package/packages/forms/dist/components/controlled/TextareaControl.d.ts.map +0 -1
  116. package/packages/forms/dist/components/controlled/index.d.ts.map +0 -1
  117. package/packages/forms/dist/components/index.d.ts.map +0 -1
  118. package/packages/forms/dist/index.cjs.js.map +0 -1
  119. package/packages/forms/dist/index.d.ts.map +0 -1
  120. package/packages/forms/dist/index.es.js.map +0 -1
  121. package/packages/forms/dist/utils/class.d.ts.map +0 -1
  122. package/packages/forms/node_modules/.bin/jest +0 -17
  123. package/packages/forms/node_modules/.bin/npm-run-all +0 -17
  124. package/packages/forms/node_modules/.bin/run-p +0 -17
  125. package/packages/forms/node_modules/.bin/run-s +0 -17
  126. package/packages/forms/node_modules/.bin/ts-jest +0 -17
  127. package/packages/forms/node_modules/.bin/tsc +0 -17
  128. package/packages/forms/node_modules/.bin/tsc-alias +0 -17
  129. package/packages/forms/node_modules/.bin/tsserver +0 -17
  130. package/packages/forms/node_modules/.bin/vite +0 -17
  131. /package/packages/forms/dist/{components → types/components}/Checkbox.d.ts +0 -0
  132. /package/packages/forms/dist/{components → types/components}/FieldsetControl.d.ts +0 -0
  133. /package/packages/forms/dist/{components → types/components}/FileInput.d.ts +0 -0
  134. /package/packages/forms/dist/{components → types/components}/Input.d.ts +0 -0
  135. /package/packages/forms/dist/{components → types/components}/LabelControl.d.ts +0 -0
  136. /package/packages/forms/dist/{components → types/components}/Radio.d.ts +0 -0
  137. /package/packages/forms/dist/{components → types/components}/Select.d.ts +0 -0
  138. /package/packages/forms/dist/{components → types/components}/Textarea.d.ts +0 -0
  139. /package/packages/forms/dist/{components → types/components}/context.d.ts +0 -0
  140. /package/packages/forms/dist/{components → types/components}/controlled/CheckboxGroup.d.ts +0 -0
  141. /package/packages/forms/dist/{components → types/components}/controlled/InputItem.d.ts +0 -0
  142. /package/packages/forms/dist/{components → types/components}/controlled/RadioGroup.d.ts +0 -0
  143. /package/packages/forms/dist/{components → types/components}/controlled/SelectControl.d.ts +0 -0
  144. /package/packages/forms/dist/{components → types/components}/controlled/TextareaControl.d.ts +0 -0
  145. /package/packages/forms/dist/{components → types/components}/controlled/index.d.ts +0 -0
  146. /package/packages/forms/dist/{components → types/components}/index.d.ts +0 -0
  147. /package/packages/forms/dist/{index.d.ts → types/index.d.ts} +0 -0
  148. /package/packages/forms/dist/{utils → types/utils}/class.d.ts +0 -0
@@ -9,23 +9,23 @@ var re = { exports: {} }, W = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Ie;
12
+ var Ne;
13
13
  function vr() {
14
- if (Ie)
14
+ if (Ne)
15
15
  return W;
16
- Ie = 1;
17
- var f = g, b = Symbol.for("react.element"), m = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function p(c, o, _) {
19
- var h, y = {}, j = null, T = null;
20
- _ !== void 0 && (j = "" + _), o.key !== void 0 && (j = "" + o.key), o.ref !== void 0 && (T = o.ref);
16
+ Ne = 1;
17
+ var f = g, m = Symbol.for("react.element"), v = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function b(c, o, T) {
19
+ var h, y = {}, j = null, _ = null;
20
+ T !== void 0 && (j = "" + T), o.key !== void 0 && (j = "" + o.key), o.ref !== void 0 && (_ = o.ref);
21
21
  for (h in o)
22
22
  u.call(o, h) && !a.hasOwnProperty(h) && (y[h] = o[h]);
23
23
  if (c && c.defaultProps)
24
24
  for (h in o = c.defaultProps, o)
25
25
  y[h] === void 0 && (y[h] = o[h]);
26
- return { $$typeof: b, type: c, key: j, ref: T, props: y, _owner: n.current };
26
+ return { $$typeof: m, type: c, key: j, ref: _, props: y, _owner: n.current };
27
27
  }
28
- return W.Fragment = m, W.jsx = p, W.jsxs = p, W;
28
+ return W.Fragment = v, W.jsx = b, W.jsxs = b, W;
29
29
  }
30
30
  var Y = {};
31
31
  /**
@@ -37,38 +37,38 @@ var Y = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Ne;
40
+ var Pe;
41
41
  function mr() {
42
- return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
43
- var f = g, b = Symbol.for("react.element"), m = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, ke = "@@iterator";
42
+ return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var f = g, m = Symbol.for("react.element"), v = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), F = Symbol.iterator, ke = "@@iterator";
44
44
  function Fe(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = P && e[P] || e[ke];
47
+ var r = F && e[F] || e[ke];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var D = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var q = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function w(e) {
52
52
  {
53
53
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
54
54
  t[i - 1] = arguments[i];
55
- De("error", e, t);
55
+ qe("error", e, t);
56
56
  }
57
57
  }
58
- function De(e, r, t) {
58
+ function qe(e, r, t) {
59
59
  {
60
- var i = D.ReactDebugCurrentFrame, v = i.getStackAddendum();
61
- v !== "" && (r += "%s", t = t.concat([v]));
60
+ var i = q.ReactDebugCurrentFrame, p = i.getStackAddendum();
61
+ p !== "" && (r += "%s", t = t.concat([p]));
62
62
  var x = t.map(function(d) {
63
63
  return String(d);
64
64
  });
65
65
  x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
66
66
  }
67
67
  }
68
- var Ae = !1, Me = !1, $e = !1, qe = !1, We = !1, ne;
68
+ var De = !1, Ae = !1, Me = !1, $e = !1, We = !1, ne;
69
69
  ne = Symbol.for("react.module.reference");
70
70
  function Ye(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === a || We || e === n || e === _ || e === h || qe || e === T || Ae || Me || $e || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === p || e.$$typeof === c || e.$$typeof === o || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === a || We || e === n || e === T || e === h || $e || e === _ || De || Ae || Me || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === b || e.$$typeof === c || e.$$typeof === o || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
@@ -78,13 +78,13 @@ function mr() {
78
78
  var i = e.displayName;
79
79
  if (i)
80
80
  return i;
81
- var v = r.displayName || r.name || "";
82
- return v !== "" ? t + "(" + v + ")" : t;
81
+ var p = r.displayName || r.name || "";
82
+ return p !== "" ? t + "(" + p + ")" : t;
83
83
  }
84
84
  function se(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function S(e) {
87
+ function I(e) {
88
88
  if (e == null)
89
89
  return null;
90
90
  if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -94,13 +94,13 @@ function mr() {
94
94
  switch (e) {
95
95
  case u:
96
96
  return "Fragment";
97
- case m:
97
+ case v:
98
98
  return "Portal";
99
99
  case a:
100
100
  return "Profiler";
101
101
  case n:
102
102
  return "StrictMode";
103
- case _:
103
+ case T:
104
104
  return "Suspense";
105
105
  case h:
106
106
  return "SuspenseList";
@@ -110,18 +110,18 @@ function mr() {
110
110
  case c:
111
111
  var r = e;
112
112
  return se(r) + ".Consumer";
113
- case p:
113
+ case b:
114
114
  var t = e;
115
115
  return se(t._context) + ".Provider";
116
116
  case o:
117
117
  return Le(e, e.render, "ForwardRef");
118
118
  case y:
119
119
  var i = e.displayName || null;
120
- return i !== null ? i : S(e.type) || "Memo";
120
+ return i !== null ? i : I(e.type) || "Memo";
121
121
  case j: {
122
- var v = e, x = v._payload, d = v._init;
122
+ var p = e, x = p._payload, d = p._init;
123
123
  try {
124
- return S(d(x));
124
+ return I(d(x));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,13 +129,13 @@ function mr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var F = Object.assign, $ = 0, ie, oe, le, ue, ce, de, fe;
132
+ var k = Object.assign, M = 0, ie, oe, le, ue, ce, de, fe;
133
133
  function pe() {
134
134
  }
135
135
  pe.__reactDisabledLog = !0;
136
136
  function Ve() {
137
137
  {
138
- if ($ === 0) {
138
+ if (M === 0) {
139
139
  ie = console.log, oe = console.info, le = console.warn, ue = console.error, ce = console.group, de = console.groupCollapsed, fe = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
@@ -153,52 +153,52 @@ function mr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- $++;
156
+ M++;
157
157
  }
158
158
  }
159
159
  function Ue() {
160
160
  {
161
- if ($--, $ === 0) {
161
+ if (M--, M === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: F({}, e, {
168
+ log: k({}, e, {
169
169
  value: ie
170
170
  }),
171
- info: F({}, e, {
171
+ info: k({}, e, {
172
172
  value: oe
173
173
  }),
174
- warn: F({}, e, {
174
+ warn: k({}, e, {
175
175
  value: le
176
176
  }),
177
- error: F({}, e, {
177
+ error: k({}, e, {
178
178
  value: ue
179
179
  }),
180
- group: F({}, e, {
180
+ group: k({}, e, {
181
181
  value: ce
182
182
  }),
183
- groupCollapsed: F({}, e, {
183
+ groupCollapsed: k({}, e, {
184
184
  value: de
185
185
  }),
186
- groupEnd: F({}, e, {
186
+ groupEnd: k({}, e, {
187
187
  value: fe
188
188
  })
189
189
  });
190
190
  }
191
- $ < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ M < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var J = D.ReactCurrentDispatcher, z;
194
+ var J = q.ReactCurrentDispatcher, z;
195
195
  function L(e, r, t) {
196
196
  {
197
197
  if (z === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (v) {
201
- var i = v.stack.trim().match(/\n( *(at )?)/);
200
+ } catch (p) {
201
+ var i = p.stack.trim().match(/\n( *(at )?)/);
202
202
  z = i && i[1] || "";
203
203
  }
204
204
  return `
@@ -220,7 +220,7 @@ function mr() {
220
220
  }
221
221
  var i;
222
222
  H = !0;
223
- var v = Error.prepareStackTrace;
223
+ var p = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var x;
226
226
  x = J.current, J.current = null, Ve();
@@ -236,29 +236,29 @@ function mr() {
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
238
  Reflect.construct(d, []);
239
- } catch (O) {
240
- i = O;
239
+ } catch (S) {
240
+ i = S;
241
241
  }
242
242
  Reflect.construct(e, [], d);
243
243
  } else {
244
244
  try {
245
245
  d.call();
246
- } catch (O) {
247
- i = O;
246
+ } catch (S) {
247
+ i = S;
248
248
  }
249
249
  e.call(d.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (O) {
255
- i = O;
254
+ } catch (S) {
255
+ i = S;
256
256
  }
257
257
  e();
258
258
  }
259
- } catch (O) {
260
- if (O && i && typeof O.stack == "string") {
261
- for (var l = O.stack.split(`
259
+ } catch (S) {
260
+ if (S && i && typeof S.stack == "string") {
261
+ for (var l = S.stack.split(`
262
262
  `), C = i.stack.split(`
263
263
  `), R = l.length - 1, E = C.length - 1; R >= 1 && E >= 0 && l[R] !== C[E]; )
264
264
  E--;
@@ -267,18 +267,18 @@ function mr() {
267
267
  if (R !== 1 || E !== 1)
268
268
  do
269
269
  if (R--, E--, E < 0 || l[R] !== C[E]) {
270
- var N = `
270
+ var P = `
271
271
  ` + l[R].replace(" at new ", " at ");
272
- return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, N), N;
272
+ return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, P), P;
273
273
  }
274
274
  while (R >= 1 && E >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- H = !1, J.current = x, Ue(), Error.prepareStackTrace = v;
279
+ H = !1, J.current = x, Ue(), Error.prepareStackTrace = p;
280
280
  }
281
- var M = e ? e.displayName || e.name : "", Ce = M ? L(M) : "";
281
+ var A = e ? e.displayName || e.name : "", Ce = A ? L(A) : "";
282
282
  return typeof e == "function" && V.set(e, Ce), Ce;
283
283
  }
284
284
  function Ge(e, r, t) {
@@ -296,7 +296,7 @@ function mr() {
296
296
  if (typeof e == "string")
297
297
  return L(e);
298
298
  switch (e) {
299
- case _:
299
+ case T:
300
300
  return L("Suspense");
301
301
  case h:
302
302
  return L("SuspenseList");
@@ -308,16 +308,16 @@ function mr() {
308
308
  case y:
309
309
  return U(e.type, r, t);
310
310
  case j: {
311
- var i = e, v = i._payload, x = i._init;
311
+ var i = e, p = i._payload, x = i._init;
312
312
  try {
313
- return U(x(v), r, t);
313
+ return U(x(p), r, t);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var B = Object.prototype.hasOwnProperty, me = {}, be = D.ReactDebugCurrentFrame;
320
+ var B = Object.prototype.hasOwnProperty, me = {}, be = q.ReactDebugCurrentFrame;
321
321
  function G(e) {
322
322
  if (e) {
323
323
  var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
@@ -325,7 +325,7 @@ function mr() {
325
325
  } else
326
326
  be.setExtraStackFrame(null);
327
327
  }
328
- function ze(e, r, t, i, v) {
328
+ function ze(e, r, t, i, p) {
329
329
  {
330
330
  var x = Function.call.bind(B);
331
331
  for (var d in e)
@@ -340,7 +340,7 @@ function mr() {
340
340
  } catch (R) {
341
341
  l = R;
342
342
  }
343
- l && !(l instanceof Error) && (G(v), w("%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).", i || "React class", t, d, typeof l), G(null)), l instanceof Error && !(l.message in me) && (me[l.message] = !0, G(v), w("Failed %s type: %s", t, l.message), G(null));
343
+ l && !(l instanceof Error) && (G(p), w("%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).", i || "React class", t, d, typeof l), G(null)), l instanceof Error && !(l.message in me) && (me[l.message] = !0, G(p), w("Failed %s type: %s", t, l.message), G(null));
344
344
  }
345
345
  }
346
346
  }
@@ -368,7 +368,7 @@ function mr() {
368
368
  if (Xe(e))
369
369
  return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), he(e);
370
370
  }
371
- var q = D.ReactCurrentOwner, Ze = {
371
+ var $ = q.ReactCurrentOwner, Ze = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
@@ -392,9 +392,9 @@ function mr() {
392
392
  return e.key !== void 0;
393
393
  }
394
394
  function rr(e, r) {
395
- if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
396
- var t = S(q.current.type);
397
- X[t] || (w('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);
395
+ if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
396
+ var t = I($.current.type);
397
+ X[t] || (w('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', I($.current.type), e.ref), X[t] = !0);
398
398
  }
399
399
  }
400
400
  function tr(e, r) {
@@ -419,10 +419,10 @@ function mr() {
419
419
  });
420
420
  }
421
421
  }
422
- var nr = function(e, r, t, i, v, x, d) {
422
+ var nr = function(e, r, t, i, p, x, d) {
423
423
  var l = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: b,
425
+ $$typeof: m,
426
426
  // Built-in properties that belong on the element
427
427
  type: e,
428
428
  key: r,
@@ -445,13 +445,13 @@ function mr() {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: v
448
+ value: p
449
449
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
450
450
  };
451
- function sr(e, r, t, i, v) {
451
+ function sr(e, r, t, i, p) {
452
452
  {
453
453
  var x, d = {}, l = null, C = null;
454
- t !== void 0 && (xe(t), l = "" + t), er(r) && (xe(r.key), l = "" + r.key), Qe(r) && (C = r.ref, rr(r, v));
454
+ t !== void 0 && (xe(t), l = "" + t), er(r) && (xe(r.key), l = "" + r.key), Qe(r) && (C = r.ref, rr(r, p));
455
455
  for (x in r)
456
456
  B.call(r, x) && !Ze.hasOwnProperty(x) && (d[x] = r[x]);
457
457
  if (e && e.defaultProps) {
@@ -463,11 +463,11 @@ function mr() {
463
463
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
464
  l && tr(d, E), C && ar(d, E);
465
465
  }
466
- return nr(e, l, C, v, i, q.current, d);
466
+ return nr(e, l, C, p, i, $.current, d);
467
467
  }
468
468
  }
469
- var Z = D.ReactCurrentOwner, Re = D.ReactDebugCurrentFrame;
470
- function A(e) {
469
+ var Z = q.ReactCurrentOwner, Re = q.ReactDebugCurrentFrame;
470
+ function D(e) {
471
471
  if (e) {
472
472
  var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
473
473
  Re.setExtraStackFrame(t);
@@ -477,12 +477,12 @@ function mr() {
477
477
  var Q;
478
478
  Q = !1;
479
479
  function ee(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === b;
480
+ return typeof e == "object" && e !== null && e.$$typeof === m;
481
481
  }
482
482
  function Ee() {
483
483
  {
484
484
  if (Z.current) {
485
- var e = S(Z.current.type);
485
+ var e = I(Z.current.type);
486
486
  if (e)
487
487
  return `
488
488
 
@@ -525,7 +525,7 @@ Check the top-level render call using <` + t + ">.");
525
525
  return;
526
526
  _e[t] = !0;
527
527
  var i = "";
528
- e && e._owner && e._owner !== Z.current && (i = " It was passed a child from " + S(e._owner.type) + "."), A(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), A(null);
528
+ e && e._owner && e._owner !== Z.current && (i = " It was passed a child from " + I(e._owner.type) + "."), D(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), D(null);
529
529
  }
530
530
  }
531
531
  function je(e, r) {
@@ -540,9 +540,9 @@ Check the top-level render call using <` + t + ">.");
540
540
  else if (ee(e))
541
541
  e._store && (e._store.validated = !0);
542
542
  else if (e) {
543
- var v = Fe(e);
544
- if (typeof v == "function" && v !== e.entries)
545
- for (var x = v.call(e), d; !(d = x.next()).done; )
543
+ var p = Fe(e);
544
+ if (typeof p == "function" && p !== e.entries)
545
+ for (var x = p.call(e), d; !(d = x.next()).done; )
546
546
  ee(d.value) && Te(d.value, r);
547
547
  }
548
548
  }
@@ -562,12 +562,12 @@ Check the top-level render call using <` + t + ">.");
562
562
  else
563
563
  return;
564
564
  if (t) {
565
- var i = S(r);
565
+ var i = I(r);
566
566
  ze(t, e.props, "prop", i, e);
567
567
  } else if (r.PropTypes !== void 0 && !Q) {
568
568
  Q = !0;
569
- var v = S(r);
570
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
569
+ var p = I(r);
570
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
571
571
  }
572
572
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
@@ -577,39 +577,39 @@ Check the top-level render call using <` + t + ">.");
577
577
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
578
  var i = r[t];
579
579
  if (i !== "children" && i !== "key") {
580
- A(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), A(null);
580
+ D(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), D(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (A(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
584
+ e.ref !== null && (D(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
585
585
  }
586
586
  }
587
- function we(e, r, t, i, v, x) {
587
+ function we(e, r, t, i, p, x) {
588
588
  {
589
589
  var d = Ye(e);
590
590
  if (!d) {
591
591
  var l = "";
592
592
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
- var C = ir(v);
593
+ var C = ir(p);
594
594
  C ? l += C : l += Ee();
595
595
  var R;
596
- e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof === b ? (R = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, l);
596
+ e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof === m ? (R = "<" + (I(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, l);
597
597
  }
598
- var E = sr(e, r, t, v, x);
598
+ var E = sr(e, r, t, p, x);
599
599
  if (E == null)
600
600
  return E;
601
601
  if (d) {
602
- var N = r.children;
603
- if (N !== void 0)
602
+ var P = r.children;
603
+ if (P !== void 0)
604
604
  if (i)
605
- if (K(N)) {
606
- for (var M = 0; M < N.length; M++)
607
- je(N[M], e);
608
- Object.freeze && Object.freeze(N);
605
+ if (K(P)) {
606
+ for (var A = 0; A < P.length; A++)
607
+ je(P[A], e);
608
+ Object.freeze && Object.freeze(P);
609
609
  } else
610
610
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
611
  else
612
- je(N, e);
612
+ je(P, e);
613
613
  }
614
614
  return e === u ? ur(E) : lr(E), E;
615
615
  }
@@ -626,16 +626,16 @@ Check the top-level render call using <` + t + ">.");
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? re.exports = vr() : re.exports = mr();
628
628
  var s = re.exports;
629
- const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
629
+ const N = (...f) => f.filter(Boolean).join(" "), O = g.createContext({
630
630
  helperTextId: "",
631
631
  errorMessageId: "",
632
632
  isInvalid: !1,
633
633
  isRequired: !1
634
- }), Pe = g.forwardRef(
635
- (f, b) => {
636
- const { className: m, children: u, ...n } = f, a = g.useContext(k);
634
+ }), Ie = g.forwardRef(
635
+ (f, m) => {
636
+ const { className: v, children: u, ...n } = f, a = g.useContext(O);
637
637
  a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
638
- const p = `
638
+ const b = `
639
639
  inline-block
640
640
  text-base
641
641
  cursor-pointer
@@ -662,7 +662,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
662
662
  peer-focus-visible:ring-offset-2
663
663
  peer-focus-visible:ring-wood-500
664
664
  `;
665
- return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: I(p, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
665
+ return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: N(b, v), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
666
666
  /* @__PURE__ */ s.jsx(
667
667
  "input",
668
668
  {
@@ -671,8 +671,9 @@ const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
671
671
  "aria-describedby": a.helperTextId,
672
672
  "aria-errormessage": a.errorMessageId,
673
673
  "aria-invalid": a.isInvalid ?? !1,
674
+ "aria-required": a.isRequired ?? !1,
674
675
  ...n,
675
- ref: b
676
+ ref: m
676
677
  }
677
678
  ),
678
679
  /* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ s.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) }) }),
@@ -680,12 +681,12 @@ const I = (...f) => f.filter(Boolean).join(" "), k = g.createContext({
680
681
  ] }) });
681
682
  }
682
683
  );
683
- Pe.displayName = "Checkbox";
684
+ Ie.displayName = "Checkbox";
684
685
  const Se = g.forwardRef(
685
- (f, b) => {
686
- const { className: m, children: u, ...n } = f, a = g.useContext(k);
686
+ (f, m) => {
687
+ const { className: v, children: u, ...n } = f, a = g.useContext(O);
687
688
  a.isRequired && (n.required = !0), a.groupName && (n.name = a.groupName);
688
- const p = `
689
+ const b = `
689
690
  inline-block
690
691
  text-base
691
692
  cursor-pointer
@@ -711,7 +712,7 @@ const Se = g.forwardRef(
711
712
  peer-focus-visible:ring-offset-2
712
713
  peer-focus-visible:ring-wood-500
713
714
  `;
714
- return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: I(p, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
715
+ return /* @__PURE__ */ s.jsx("label", { htmlFor: n.id, className: N(b, v), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
715
716
  /* @__PURE__ */ s.jsx(
716
717
  "input",
717
718
  {
@@ -720,8 +721,9 @@ const Se = g.forwardRef(
720
721
  "aria-describedby": a.helperTextId,
721
722
  "aria-errormessage": a.errorMessageId,
722
723
  "aria-invalid": a.isInvalid ?? !1,
724
+ "aria-required": a.isRequired ?? !1,
723
725
  ...n,
724
- ref: b
726
+ ref: m
725
727
  }
726
728
  ),
727
729
  /* @__PURE__ */ s.jsx("span", { className: o }),
@@ -731,60 +733,66 @@ const Se = g.forwardRef(
731
733
  );
732
734
  Se.displayName = "Radio";
733
735
  const br = g.forwardRef(
734
- (f, b) => {
735
- const { className: m, children: u, ...n } = f, a = g.useContext(k);
736
+ (f, m) => {
737
+ const { className: v, children: u, ...n } = f, a = g.useContext(O);
736
738
  a.isRequired && (n.required = !0);
737
- const p = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
738
- peer
739
- cursor-pointer
740
- appearance-none
741
- text-base
742
- w-full
743
- bg-white-100
744
- border
745
- border-solid
746
- py-4 px-4 pr-8
747
- rounded-[8px]
748
- outline-offset-2
749
- focus:outline
750
- focus:outline-2
751
- focus:outline-wood-500
752
- disabled:bg-transparent
753
- disabled:text-sumi-500
754
- disabled:border-sumi-500
755
- `, o = `
756
- flex items-center
757
- absolute inset-y-0 right-0
758
- px-2
759
- pointer-events-none
760
- peer-disabled:fill-sumi-500
761
- `;
739
+ const b = `
740
+ peer
741
+ cursor-pointer
742
+ appearance-none
743
+ text-base
744
+ w-full
745
+ bg-white-100
746
+ border
747
+ border-solid
748
+ border-sumi-900
749
+ py-4 px-4 pr-8
750
+ rounded-[8px]
751
+ outline-offset-2
752
+ focus:outline
753
+ focus:outline-2
754
+ focus:outline-wood-500
755
+ disabled:bg-transparent
756
+ disabled:text-sumi-500
757
+ disabled:border-sumi-500
758
+ aria-invalid:border-sun-800
759
+ `, c = `
760
+ flex items-center
761
+ absolute inset-y-0 right-0
762
+ px-2
763
+ pointer-events-none
764
+ peer-disabled:fill-sumi-500
765
+ `;
762
766
  return /* @__PURE__ */ s.jsxs("label", { className: "inline-block relative", children: [
763
767
  /* @__PURE__ */ s.jsx(
764
768
  "select",
765
769
  {
766
770
  id: n.id ?? a.id,
767
- className: I(c, p, f.className),
771
+ className: N(b, f.className),
768
772
  "aria-describedby": a.helperTextId,
769
773
  "aria-errormessage": a.errorMessageId,
770
774
  "aria-invalid": a.isInvalid ?? !1,
775
+ "aria-required": a.isRequired ?? !1,
771
776
  ...n,
772
- ref: b,
777
+ ref: m,
773
778
  children: u
774
779
  }
775
780
  ),
776
- /* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ s.jsx("path", { d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z" }) }) })
781
+ /* @__PURE__ */ s.jsx("span", { className: c, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ s.jsx("path", { d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z" }) }) })
777
782
  ] });
778
783
  }
779
784
  ), hr = g.forwardRef(
780
- (f, b) => {
781
- const { className: m, ...u } = f, n = g.useContext(k);
785
+ (f, m) => {
786
+ const { className: v, ...u } = f, n = g.useContext(O);
782
787
  n.isRequired && (u.required = !0);
783
- const a = n.isInvalid ? "text-sun-800" : "text-sumi-900", p = `
788
+ const a = `
789
+ file:mr-2
784
790
  file:inline-block
785
791
  file:text-button
786
792
  file:text-center
787
793
  file:cursor-pointer
794
+ file:select-none
795
+ file:touch-manipulation
788
796
  file:whitespace-nowrap
789
797
  file:border
790
798
  file:border-solid
@@ -793,7 +801,7 @@ const br = g.forwardRef(
793
801
  file:hover:border-sea-900
794
802
  file:disabled:border-sumi-500
795
803
  file:disabled:cursor-not-allowed
796
- `, c = `
804
+ `, b = `
797
805
  file:text-sea-800
798
806
  file:bg-transparent
799
807
  file:active:bg-sea-200
@@ -802,34 +810,30 @@ const br = g.forwardRef(
802
810
  file:hover:text-sea-900
803
811
  file:disabled:text-sumi-500
804
812
  file:disabled:bg-transparent
805
- `, o = `
813
+ `, c = `
806
814
  file:p-4
807
815
  file:text-button
808
816
  file:rounded-lg
809
- `, _ = `
817
+ `, o = `
810
818
  rounded-lg
811
819
  outline-offset-2
820
+ text-sumi-900
812
821
  focus:outline
813
822
  focus:outline-2
814
823
  focus:outline-wood-600
824
+ aria-invalid:text-sun-800
815
825
  `;
816
826
  return /* @__PURE__ */ s.jsx(
817
827
  "input",
818
828
  {
819
829
  type: "file",
820
830
  id: u.id ?? n.id,
821
- className: I(
822
- p,
823
- c,
824
- o,
825
- _,
826
- a,
827
- m
828
- ),
831
+ className: N(a, b, c, o, v),
829
832
  "aria-describedby": n.helperTextId,
830
833
  "aria-errormessage": n.errorMessageId,
831
834
  "aria-invalid": n.isInvalid ?? !1,
832
- ref: b,
835
+ "aria-required": n.isRequired ?? !1,
836
+ ref: m,
833
837
  ...u
834
838
  }
835
839
  );
@@ -837,32 +841,35 @@ const br = g.forwardRef(
837
841
  );
838
842
  hr.displayName = "FileInput";
839
843
  const xr = g.forwardRef(
840
- (f, b) => {
841
- const { className: m, ...u } = f, n = g.useContext(k);
844
+ (f, m) => {
845
+ const { className: v, ...u } = f, n = g.useContext(O);
842
846
  n.isRequired && (u.required = !0);
843
- const a = n.isInvalid ? "border-sun-800" : "border-sumi-900", p = `
844
- p-4
845
- rounded-lg
846
- border
847
- border-solid
848
- outline-offset-2
849
- focus:outline
850
- focus:outline-2
851
- focus:outline-wood-500
852
- disabled:bg-transparent
853
- disabled:text-sumi-500
854
- disabled:border-sumi-500
855
- `;
847
+ const a = `
848
+ p-4
849
+ rounded-lg
850
+ border
851
+ border-solid
852
+ border-sumi-900
853
+ outline-offset-2
854
+ focus:outline
855
+ focus:outline-2
856
+ focus:outline-wood-500
857
+ disabled:bg-transparent
858
+ disabled:text-sumi-500
859
+ disabled:border-sumi-500
860
+ aria-invalid:border-sun-800
861
+ `;
856
862
  return /* @__PURE__ */ s.jsx(
857
863
  "input",
858
864
  {
859
865
  type: "text",
860
866
  id: u.id ?? n.id,
861
- className: I(p, a, m),
867
+ className: N(a, v),
862
868
  "aria-describedby": n.helperTextId,
863
869
  "aria-errormessage": n.errorMessageId,
864
870
  "aria-invalid": n.isInvalid ?? !1,
865
- ref: b,
871
+ "aria-required": n.isRequired ?? !1,
872
+ ref: m,
866
873
  ...u
867
874
  }
868
875
  );
@@ -870,41 +877,44 @@ const xr = g.forwardRef(
870
877
  );
871
878
  xr.displayName = "Input";
872
879
  const Oe = g.forwardRef(
873
- (f, b) => {
874
- const { className: m, children: u, onChange: n, maxLength: a, ...p } = f, [c, o] = g.useState(0), _ = (P) => {
875
- n && n(P), o(P.target.value.length);
876
- }, h = g.useContext(k);
877
- h.isRequired && (p.required = !0);
878
- const y = h.isInvalid ? "border-sun-800" : "border-sumi-900", j = c > (a || 0) ? "text-sun-800" : "text-sumi-700", T = `
879
- p-4
880
- rounded-lg
881
- border
882
- border-solid
883
- outline-offset-2
884
- focus:outline
885
- focus:outline-2
886
- focus:outline-wood-500
887
- disabled:bg-transparent
888
- disabled:text-sumi-500
889
- disabled:border-sumi-500
890
- `;
880
+ (f, m) => {
881
+ const { className: v, children: u, onChange: n, maxLength: a, ...b } = f, [c, o] = g.useState(0), T = (_) => {
882
+ n && n(_), o(_.target.value.length);
883
+ }, h = g.useContext(O);
884
+ h.isRequired && (b.required = !0);
885
+ const y = c > (a || 0) ? "text-sun-800" : "text-sumi-700", j = `
886
+ p-4
887
+ rounded-lg
888
+ border
889
+ border-solid
890
+ border-sumi-900
891
+ outline-offset-2
892
+ focus:outline
893
+ focus:outline-2
894
+ focus:outline-wood-500
895
+ disabled:bg-transparent
896
+ disabled:text-sumi-500
897
+ disabled:border-sumi-500
898
+ aria-invalid:border-sun-800
899
+ `;
891
900
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
892
901
  /* @__PURE__ */ s.jsx(
893
902
  "textarea",
894
903
  {
895
- id: p.id ?? h.id,
896
- className: I(T, y, m),
904
+ id: b.id ?? h.id,
905
+ className: N(j, v),
897
906
  "aria-describedby": h.helperTextId,
898
907
  "aria-errormessage": h.errorMessageId,
899
908
  "aria-invalid": h.isInvalid ?? !1,
900
- onChange: _,
901
- ...p,
902
- ref: b,
909
+ "aria-required": h.isRequired ?? !1,
910
+ onChange: T,
911
+ ...b,
912
+ ref: m,
903
913
  children: u
904
914
  }
905
915
  ),
906
916
  a ? /* @__PURE__ */ s.jsxs("p", { className: "text-sup text-sumi-700", children: [
907
- /* @__PURE__ */ s.jsx("span", { className: j, children: c }),
917
+ /* @__PURE__ */ s.jsx("span", { className: y, children: c }),
908
918
  "/",
909
919
  /* @__PURE__ */ s.jsx("span", { children: a })
910
920
  ] }) : ""
@@ -912,34 +922,34 @@ const Oe = g.forwardRef(
912
922
  }
913
923
  );
914
924
  Oe.displayName = "Textarea";
915
- const te = g.forwardRef((f, b) => {
916
- const m = g.useId(), {
925
+ const te = g.forwardRef((f, m) => {
926
+ const v = g.useId(), {
917
927
  labelText: u,
918
928
  className: n,
919
929
  helperText: a,
920
- errorMessage: p,
930
+ errorMessage: b,
921
931
  isInvalid: c,
922
932
  isRequired: o,
923
- children: _,
933
+ children: T,
924
934
  ...h
925
935
  } = f, y = {
926
- id: f.htmlFor ?? `input-${m}`,
927
- helperTextId: `helper-text-${m}`,
928
- errorMessageId: `error-message-${m}`,
936
+ id: f.htmlFor ?? `input-${v}`,
937
+ helperTextId: `helper-text-${v}`,
938
+ errorMessageId: `error-message-${v}`,
929
939
  isInvalid: c ?? !1,
930
940
  isRequired: o ?? !1
931
941
  }, j = `
932
942
  text-sup text-sumi-700
933
- `, T = `
943
+ `, _ = `
934
944
  text-sup text-sun-800
935
945
  `;
936
- return /* @__PURE__ */ s.jsx(k.Provider, { value: y, children: /* @__PURE__ */ s.jsxs("div", { className: I("mb-4", n), children: [
946
+ return /* @__PURE__ */ s.jsx(O.Provider, { value: y, children: /* @__PURE__ */ s.jsxs("div", { className: N("mb-4", n), children: [
937
947
  /* @__PURE__ */ s.jsxs(
938
948
  "label",
939
949
  {
940
- className: I("block mb-2 text-label", c && "text-sun-800"),
950
+ className: N("block mb-2 text-label", c && "text-sun-800"),
941
951
  htmlFor: y.id,
942
- ref: b,
952
+ ref: m,
943
953
  ...h,
944
954
  children: [
945
955
  u,
@@ -947,74 +957,74 @@ const te = g.forwardRef((f, b) => {
947
957
  ]
948
958
  }
949
959
  ),
950
- a && /* @__PURE__ */ s.jsx("p", { id: y.helperTextId, className: I(j, "mb-2"), children: a }),
951
- _,
960
+ a && /* @__PURE__ */ s.jsx("p", { id: y.helperTextId, className: N(j, "mb-2"), children: a }),
961
+ T,
952
962
  c && /* @__PURE__ */ s.jsx(
953
963
  "p",
954
964
  {
955
965
  id: y.errorMessageId,
956
- className: I(T, a ? "mt-1" : "mt-2"),
957
- children: p
966
+ className: N(_, a ? "mt-1" : "mt-2"),
967
+ children: b
958
968
  }
959
969
  )
960
970
  ] }) });
961
971
  });
962
972
  te.displayName = "LabelControl";
963
- const ae = g.forwardRef((f, b) => {
964
- const m = g.useId(), {
973
+ const ae = g.forwardRef((f, m) => {
974
+ const v = g.useId(), {
965
975
  labelText: u,
966
976
  className: n,
967
977
  helperText: a,
968
- errorMessage: p,
978
+ errorMessage: b,
969
979
  isInvalid: c,
970
980
  isRequired: o,
971
- direction: _,
981
+ direction: T,
972
982
  children: h,
973
983
  ...y
974
- } = f, T = {
975
- groupName: y.name ?? `group-${m}`,
976
- helperTextId: `helper-text-${m}`,
977
- errorMessageId: `error-message-${m}`,
984
+ } = f, _ = {
985
+ groupName: y.name ?? `group-${v}`,
986
+ helperTextId: `helper-text-${v}`,
987
+ errorMessageId: `error-message-${v}`,
978
988
  isInvalid: c ?? !1,
979
989
  isRequired: o ?? !1
980
- }, P = _ ?? "flex-col";
981
- return /* @__PURE__ */ s.jsx(k.Provider, { value: T, children: /* @__PURE__ */ s.jsxs("fieldset", { className: I("mb-4", n), ref: b, ...y, children: [
990
+ }, F = T ?? "flex-col";
991
+ return /* @__PURE__ */ s.jsx(O.Provider, { value: _, children: /* @__PURE__ */ s.jsxs("fieldset", { className: N("mb-4", n), ref: m, ...y, children: [
982
992
  /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
983
993
  "p",
984
994
  {
985
- className: I("block mb-2 text-label", c && "text-sun-800"),
995
+ className: N("block mb-2 text-label", c && "text-sun-800"),
986
996
  children: [
987
997
  u,
988
998
  o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
989
999
  ]
990
1000
  }
991
1001
  ) }),
992
- /* @__PURE__ */ s.jsx("div", { className: I("inline-flex", P), children: h }),
993
- a && /* @__PURE__ */ s.jsx("p", { id: T.helperTextId, className: "text-sup text-sumi-700 mt-2", children: a }),
1002
+ /* @__PURE__ */ s.jsx("div", { className: N("inline-flex", F), children: h }),
1003
+ a && /* @__PURE__ */ s.jsx("p", { id: _.helperTextId, className: "text-sup text-sumi-700 mt-2", children: a }),
994
1004
  c && /* @__PURE__ */ s.jsx(
995
1005
  "p",
996
1006
  {
997
- id: T.errorMessageId,
998
- className: I(
1007
+ id: _.errorMessageId,
1008
+ className: N(
999
1009
  "text-sup text-sun-800",
1000
1010
  a ? "mt-1" : "mt-2"
1001
1011
  ),
1002
- children: p
1012
+ children: b
1003
1013
  }
1004
1014
  )
1005
1015
  ] }) });
1006
1016
  });
1007
1017
  ae.displayName = "FieldsetControl";
1008
- const gr = g.forwardRef((f, b) => {
1018
+ const gr = g.forwardRef((f, m) => {
1009
1019
  const {
1010
- items: m,
1020
+ items: v,
1011
1021
  onChange: u,
1012
1022
  className: n,
1013
1023
  labelText: a,
1014
- helperText: p,
1024
+ helperText: b,
1015
1025
  errorMessage: c,
1016
1026
  isInvalid: o,
1017
- isRequired: _,
1027
+ isRequired: T,
1018
1028
  ...h
1019
1029
  } = f;
1020
1030
  return /* @__PURE__ */ s.jsx(
@@ -1022,27 +1032,27 @@ const gr = g.forwardRef((f, b) => {
1022
1032
  {
1023
1033
  className: n,
1024
1034
  labelText: a,
1025
- helperText: p,
1035
+ helperText: b,
1026
1036
  errorMessage: c,
1027
1037
  isInvalid: o,
1028
- isRequired: _,
1029
- ref: b,
1038
+ isRequired: T,
1039
+ ref: m,
1030
1040
  ...h,
1031
- children: m.map(({ label: y, value: j }, T) => /* @__PURE__ */ s.jsx(Pe, { value: j, onChange: u, children: y }, T))
1041
+ children: v.map(({ label: y, value: j }, _) => /* @__PURE__ */ s.jsx(Ie, { value: j, onChange: u, children: y }, _))
1032
1042
  }
1033
1043
  );
1034
1044
  });
1035
1045
  gr.displayName = "CheckboxGroup";
1036
- const yr = g.forwardRef((f, b) => {
1046
+ const yr = g.forwardRef((f, m) => {
1037
1047
  const {
1038
- items: m,
1048
+ items: v,
1039
1049
  onChange: u,
1040
1050
  className: n,
1041
1051
  labelText: a,
1042
- helperText: p,
1052
+ helperText: b,
1043
1053
  errorMessage: c,
1044
1054
  isInvalid: o,
1045
- isRequired: _,
1055
+ isRequired: T,
1046
1056
  defaultValue: h,
1047
1057
  ...y
1048
1058
  } = f;
@@ -1051,76 +1061,76 @@ const yr = g.forwardRef((f, b) => {
1051
1061
  {
1052
1062
  className: n,
1053
1063
  labelText: a,
1054
- helperText: p,
1064
+ helperText: b,
1055
1065
  errorMessage: c,
1056
1066
  isInvalid: o,
1057
- isRequired: _,
1058
- ref: b,
1067
+ isRequired: T,
1068
+ ref: m,
1059
1069
  ...y,
1060
- children: m.map(({ label: j, value: T }, P) => /* @__PURE__ */ s.jsx(
1070
+ children: v.map(({ label: j, value: _ }, F) => /* @__PURE__ */ s.jsx(
1061
1071
  Se,
1062
1072
  {
1063
- value: T,
1073
+ value: _,
1064
1074
  onChange: u,
1065
- defaultChecked: h === T,
1075
+ defaultChecked: h === _,
1066
1076
  children: j
1067
1077
  },
1068
- P
1078
+ F
1069
1079
  ))
1070
1080
  }
1071
1081
  );
1072
1082
  });
1073
1083
  yr.displayName = "RadioGroup";
1074
- const Rr = g.forwardRef((f, b) => {
1084
+ const Rr = g.forwardRef((f, m) => {
1075
1085
  const {
1076
- className: m,
1086
+ className: v,
1077
1087
  labelText: u,
1078
1088
  helperText: n,
1079
1089
  errorMessage: a,
1080
- isInvalid: p,
1090
+ isInvalid: b,
1081
1091
  isRequired: c,
1082
1092
  ...o
1083
1093
  } = f;
1084
1094
  return /* @__PURE__ */ s.jsx(
1085
1095
  te,
1086
1096
  {
1087
- className: m,
1097
+ className: v,
1088
1098
  labelText: u,
1089
1099
  helperText: n,
1090
1100
  errorMessage: a,
1091
- isInvalid: p,
1101
+ isInvalid: b,
1092
1102
  isRequired: c,
1093
- children: /* @__PURE__ */ s.jsx(br, { ref: b, ...o })
1103
+ children: /* @__PURE__ */ s.jsx(br, { ref: m, ...o })
1094
1104
  }
1095
1105
  );
1096
1106
  });
1097
1107
  Rr.displayName = "SelectControl";
1098
- const Er = g.forwardRef((f, b) => {
1108
+ const Er = g.forwardRef((f, m) => {
1099
1109
  const {
1100
- className: m,
1110
+ className: v,
1101
1111
  labelText: u,
1102
1112
  helperText: n,
1103
1113
  errorMessage: a,
1104
- isInvalid: p,
1114
+ isInvalid: b,
1105
1115
  isRequired: c,
1106
1116
  ...o
1107
1117
  } = f;
1108
1118
  return /* @__PURE__ */ s.jsx(
1109
1119
  te,
1110
1120
  {
1111
- className: m,
1121
+ className: v,
1112
1122
  labelText: u,
1113
1123
  helperText: n,
1114
1124
  errorMessage: a,
1115
- isInvalid: p,
1125
+ isInvalid: b,
1116
1126
  isRequired: c,
1117
- children: /* @__PURE__ */ s.jsx(Oe, { ref: b, ...o })
1127
+ children: /* @__PURE__ */ s.jsx(Oe, { ref: m, ...o })
1118
1128
  }
1119
1129
  );
1120
1130
  });
1121
1131
  Er.displayName = "TextareaControl";
1122
1132
  export {
1123
- Pe as Checkbox,
1133
+ Ie as Checkbox,
1124
1134
  gr as CheckboxGroup,
1125
1135
  ae as FieldsetControl,
1126
1136
  hr as FileInput,
@@ -1133,4 +1143,3 @@ export {
1133
1143
  Oe as Textarea,
1134
1144
  Er as TextareaControl
1135
1145
  };
1136
- //# sourceMappingURL=index.es.js.map