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