@sakura-ui/sakura-ui 0.1.21 → 0.2.0

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