@sakura-ui/sakura-ui 0.2.0 → 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 (215) hide show
  1. package/README.md +16 -6
  2. package/package.json +21 -15
  3. package/packages/core/package.json +26 -15
  4. package/packages/core/src/components/Button.tsx +33 -32
  5. package/packages/core/src/components/Card.tsx +29 -17
  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 +54 -43
  11. package/packages/core/src/components/LangSelector.tsx +135 -0
  12. package/packages/core/src/components/Link.tsx +38 -66
  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 +31 -25
  21. package/packages/core/src/components/buttonStyle.ts +42 -31
  22. package/packages/core/src/components/index.ts +13 -25
  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 -28
  33. package/packages/core/src/type.d.ts +1 -0
  34. package/packages/core/tests/Button.test.tsx +20 -10
  35. package/packages/core/tests/Card.test.tsx +16 -11
  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 +1 -0
  39. package/packages/core/tsconfig.node.json +3 -2
  40. package/packages/forms/.turbo/turbo-build.log +22 -0
  41. package/packages/forms/dist/index.cjs.js +199 -120
  42. package/packages/forms/dist/index.es.js +890 -1023
  43. package/packages/forms/dist/types/components/Checkbox.d.ts +9 -4
  44. package/packages/forms/dist/types/components/Checkbox.d.ts.map +1 -1
  45. package/packages/forms/dist/types/components/FieldsetControl.d.ts +14 -9
  46. package/packages/forms/dist/types/components/FieldsetControl.d.ts.map +1 -1
  47. package/packages/forms/dist/types/components/FileInput.d.ts +10 -3
  48. package/packages/forms/dist/types/components/FileInput.d.ts.map +1 -1
  49. package/packages/forms/dist/types/components/Input.d.ts +9 -4
  50. package/packages/forms/dist/types/components/Input.d.ts.map +1 -1
  51. package/packages/forms/dist/types/components/LabelControl.d.ts +13 -8
  52. package/packages/forms/dist/types/components/LabelControl.d.ts.map +1 -1
  53. package/packages/forms/dist/types/components/Radio.d.ts +9 -4
  54. package/packages/forms/dist/types/components/Radio.d.ts.map +1 -1
  55. package/packages/forms/dist/types/components/Select.d.ts +9 -4
  56. package/packages/forms/dist/types/components/Select.d.ts.map +1 -1
  57. package/packages/forms/dist/types/components/Textarea.d.ts +8 -3
  58. package/packages/forms/dist/types/components/Textarea.d.ts.map +1 -1
  59. package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts +16 -11
  60. package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts.map +1 -1
  61. package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts +17 -12
  62. package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts.map +1 -1
  63. package/packages/forms/dist/types/components/index.d.ts +8 -8
  64. package/packages/forms/dist/types/components/index.d.ts.map +1 -1
  65. package/packages/forms/dist/types/components/inputStyle.d.ts +1 -1
  66. package/packages/forms/dist/types/components/inputStyle.d.ts.map +1 -1
  67. package/packages/forms/dist/types/index.d.ts +0 -1
  68. package/packages/forms/dist/types/index.d.ts.map +1 -1
  69. package/packages/forms/node_modules/.bin/autoprefixer +2 -2
  70. package/packages/forms/node_modules/.bin/tailwind +2 -2
  71. package/packages/forms/node_modules/.bin/tailwindcss +2 -2
  72. package/packages/forms/node_modules/.bin/ts-node +4 -4
  73. package/packages/forms/node_modules/.bin/ts-node-cwd +4 -4
  74. package/packages/forms/node_modules/.bin/ts-node-esm +4 -4
  75. package/packages/forms/node_modules/.bin/ts-node-script +4 -4
  76. package/packages/forms/node_modules/.bin/ts-node-transpile-only +4 -4
  77. package/packages/forms/node_modules/.bin/ts-script +4 -4
  78. package/packages/forms/node_modules/.bin/tsc +17 -0
  79. package/packages/forms/node_modules/.bin/tsserver +17 -0
  80. package/packages/forms/node_modules/.vite/vitest/results.json +1 -0
  81. package/packages/forms/package.json +17 -14
  82. package/packages/forms/src/components/Checkbox.tsx +76 -80
  83. package/packages/forms/src/components/FieldsetControl.tsx +21 -28
  84. package/packages/forms/src/components/FileInput.tsx +87 -63
  85. package/packages/forms/src/components/Input.tsx +29 -31
  86. package/packages/forms/src/components/LabelControl.tsx +19 -25
  87. package/packages/forms/src/components/Radio.tsx +66 -69
  88. package/packages/forms/src/components/Select.tsx +65 -65
  89. package/packages/forms/src/components/Textarea.tsx +49 -54
  90. package/packages/forms/src/components/controlled/CheckboxGroup.tsx +15 -17
  91. package/packages/forms/src/components/controlled/RadioGroup.tsx +16 -18
  92. package/packages/forms/src/components/index.ts +8 -8
  93. package/packages/forms/src/components/inputStyle.ts +7 -8
  94. package/packages/forms/src/index.ts +0 -11
  95. package/packages/forms/tests/Checkbox.test.tsx +44 -0
  96. package/packages/forms/tests/FieldsetControl.test.tsx +62 -11
  97. package/packages/forms/tests/FileInput.test.tsx +25 -0
  98. package/packages/forms/tests/Input.test.tsx +12 -83
  99. package/packages/forms/tests/LabelControl.test.tsx +82 -20
  100. package/packages/forms/tests/Radio.test.tsx +23 -78
  101. package/packages/forms/tests/Select.test.tsx +30 -0
  102. package/packages/forms/tests/Textarea.test.tsx +25 -0
  103. package/packages/forms/tests/vitest.setup.ts +1 -0
  104. package/packages/forms/tsconfig.node.json +3 -2
  105. package/packages/helper/.turbo/turbo-build.log +23 -0
  106. package/packages/helper/dist/index.cjs.js +78 -0
  107. package/packages/helper/dist/index.es.js +119 -0
  108. package/packages/helper/dist/types/calc.d.ts +2 -0
  109. package/packages/helper/dist/types/calc.d.ts.map +1 -0
  110. package/packages/{forms/dist/types/utils/class.d.ts → helper/dist/types/cx.d.ts} +1 -1
  111. package/packages/helper/dist/types/cx.d.ts.map +1 -0
  112. package/packages/helper/dist/types/index.d.ts +6 -0
  113. package/packages/helper/dist/types/index.d.ts.map +1 -0
  114. package/packages/helper/dist/types/querySelector.d.ts +2 -0
  115. package/packages/helper/dist/types/querySelector.d.ts.map +1 -0
  116. package/packages/helper/dist/types/styles.d.ts +22 -0
  117. package/packages/helper/dist/types/styles.d.ts.map +1 -0
  118. package/packages/helper/dist/types/treefy.d.ts +8 -0
  119. package/packages/helper/dist/types/treefy.d.ts.map +1 -0
  120. package/packages/helper/package.json +40 -0
  121. package/packages/helper/src/calc.ts +1 -0
  122. package/packages/helper/src/index.ts +5 -0
  123. package/packages/helper/src/querySelector.ts +20 -0
  124. package/packages/helper/src/styles.ts +116 -0
  125. package/packages/helper/src/treefy.ts +22 -0
  126. package/packages/helper/tsconfig.json +13 -0
  127. package/packages/helper/tsconfig.node.json +6 -0
  128. package/packages/helper/vite.config.ts +26 -0
  129. package/packages/markdown/.turbo/turbo-build.log +22 -0
  130. package/packages/markdown/README.md +129 -0
  131. package/packages/markdown/dist/index.cjs.js +175 -0
  132. package/packages/markdown/dist/index.es.js +17098 -0
  133. package/packages/markdown/dist/types/components/Markdown.d.ts +15 -0
  134. package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -0
  135. package/packages/markdown/dist/types/components/index.d.ts +2 -0
  136. package/packages/markdown/dist/types/components/index.d.ts.map +1 -0
  137. package/packages/markdown/dist/types/index.d.ts +2 -0
  138. package/packages/markdown/dist/types/index.d.ts.map +1 -0
  139. package/packages/markdown/dist/types/plugins/attr.d.ts +3 -0
  140. package/packages/markdown/dist/types/plugins/attr.d.ts.map +1 -0
  141. package/packages/markdown/dist/types/plugins/card.d.ts +3 -0
  142. package/packages/markdown/dist/types/plugins/card.d.ts.map +1 -0
  143. package/packages/markdown/dist/types/plugins/cell.d.ts +3 -0
  144. package/packages/markdown/dist/types/plugins/cell.d.ts.map +1 -0
  145. package/packages/markdown/dist/types/plugins/faq.d.ts +3 -0
  146. package/packages/markdown/dist/types/plugins/faq.d.ts.map +1 -0
  147. package/packages/markdown/dist/types/plugins/grid.d.ts +3 -0
  148. package/packages/markdown/dist/types/plugins/grid.d.ts.map +1 -0
  149. package/packages/markdown/dist/types/plugins/headings.d.ts +9 -0
  150. package/packages/markdown/dist/types/plugins/headings.d.ts.map +1 -0
  151. package/packages/markdown/dist/types/plugins/helper.d.ts +9 -0
  152. package/packages/markdown/dist/types/plugins/helper.d.ts.map +1 -0
  153. package/packages/markdown/dist/types/plugins/index.d.ts +9 -0
  154. package/packages/markdown/dist/types/plugins/index.d.ts.map +1 -0
  155. package/packages/markdown/dist/types/plugins/linkButton.d.ts +3 -0
  156. package/packages/markdown/dist/types/plugins/linkButton.d.ts.map +1 -0
  157. package/packages/markdown/dist/types/plugins/youtube.d.ts +3 -0
  158. package/packages/markdown/dist/types/plugins/youtube.d.ts.map +1 -0
  159. package/packages/markdown/node_modules/.bin/autoprefixer +17 -0
  160. package/packages/markdown/node_modules/.bin/tailwind +17 -0
  161. package/packages/markdown/node_modules/.bin/tailwindcss +17 -0
  162. package/packages/markdown/node_modules/.bin/ts-node +17 -0
  163. package/packages/markdown/node_modules/.bin/ts-node-cwd +17 -0
  164. package/packages/markdown/node_modules/.bin/ts-node-esm +17 -0
  165. package/packages/markdown/node_modules/.bin/ts-node-script +17 -0
  166. package/packages/markdown/node_modules/.bin/ts-node-transpile-only +17 -0
  167. package/packages/markdown/node_modules/.bin/ts-script +17 -0
  168. package/packages/markdown/node_modules/.bin/tsc +17 -0
  169. package/packages/markdown/node_modules/.bin/tsserver +17 -0
  170. package/packages/markdown/package.json +83 -0
  171. package/packages/markdown/src/components/Markdown.tsx +361 -0
  172. package/packages/markdown/src/components/index.ts +1 -0
  173. package/packages/markdown/src/global.d.ts +9 -0
  174. package/packages/markdown/src/index.ts +1 -0
  175. package/packages/markdown/src/plugins/attr.ts +19 -0
  176. package/packages/markdown/src/plugins/card.ts +57 -0
  177. package/packages/markdown/src/plugins/cell.ts +47 -0
  178. package/packages/markdown/src/plugins/faq.ts +40 -0
  179. package/packages/markdown/src/plugins/grid.ts +51 -0
  180. package/packages/markdown/src/plugins/headings.ts +35 -0
  181. package/packages/markdown/src/plugins/helper.ts +27 -0
  182. package/packages/markdown/src/plugins/index.ts +8 -0
  183. package/packages/markdown/src/plugins/linkButton.ts +25 -0
  184. package/packages/markdown/src/plugins/youtube.ts +48 -0
  185. package/packages/markdown/tsconfig.json +13 -0
  186. package/packages/markdown/tsconfig.node.json +7 -0
  187. package/packages/markdown/vite.config.ts +30 -0
  188. package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +22 -0
  189. package/packages/tailwind-theme-plugin/dist/index.cjs.js +1 -1
  190. package/packages/tailwind-theme-plugin/dist/index.es.js +5354 -6111
  191. package/packages/tailwind-theme-plugin/dist/types/index.d.ts +1 -1
  192. package/packages/tailwind-theme-plugin/dist/types/index.d.ts.map +1 -1
  193. package/packages/tailwind-theme-plugin/node_modules/.bin/autoprefixer +2 -2
  194. package/packages/tailwind-theme-plugin/node_modules/.bin/tailwind +2 -2
  195. package/packages/tailwind-theme-plugin/node_modules/.bin/tailwindcss +2 -2
  196. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node +4 -4
  197. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-cwd +4 -4
  198. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-esm +4 -4
  199. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-script +4 -4
  200. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-transpile-only +4 -4
  201. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-script +4 -4
  202. package/packages/tailwind-theme-plugin/node_modules/.bin/tsc +17 -0
  203. package/packages/tailwind-theme-plugin/node_modules/.bin/tsserver +17 -0
  204. package/packages/tailwind-theme-plugin/package.json +6 -6
  205. package/packages/tailwind-theme-plugin/src/index.ts +226 -291
  206. package/packages/core/src/libs/forward-ref.ts +0 -44
  207. package/packages/core/src/types/component.ts +0 -83
  208. package/packages/forms/dist/types/utils/class.d.ts.map +0 -1
  209. package/packages/forms/node_modules/.bin/acorn +0 -17
  210. package/packages/forms/node_modules/.bin/browserslist +0 -17
  211. package/packages/forms/node_modules/.bin/eslint +0 -17
  212. package/packages/forms/node_modules/.bin/vitest +0 -17
  213. package/packages/forms/src/utils/class.ts +0 -2
  214. package/packages/tailwind-theme-plugin/node_modules/.bin/browserslist +0 -17
  215. /package/packages/{core/src/libs → helper/src}/cx.ts +0 -0
@@ -1,657 +1,547 @@
1
- import y from "react";
2
- var ae = { exports: {} }, Y = {};
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 Se;
13
- function Rr() {
14
- if (Se)
15
- return Y;
16
- Se = 1;
17
- var v = y, g = Symbol.for("react.element"), b = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, f = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function i(o, a, R) {
19
- var h, d = {}, j = null, w = null;
20
- R !== void 0 && (j = "" + R), a.key !== void 0 && (j = "" + a.key), a.ref !== void 0 && (w = a.ref);
21
- for (h in a)
22
- x.call(a, h) && !u.hasOwnProperty(h) && (d[h] = a[h]);
23
- if (o && o.defaultProps)
24
- for (h in a = o.defaultProps, a)
25
- d[h] === void 0 && (d[h] = a[h]);
26
- return { $$typeof: g, type: o, key: j, ref: w, props: d, _owner: f.current };
12
+ var 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 Y.Fragment = b, Y.jsx = i, Y.jsxs = i, Y;
32
+ return q.Fragment = d, q.jsx = f, q.jsxs = f, q;
29
33
  }
30
- var V = {};
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 Er() {
42
- return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
43
- var v = y, g = Symbol.for("react.element"), b = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), k = Symbol.iterator, $e = "@@iterator";
44
- function Me(e) {
45
- if (e === null || typeof e != "object")
46
- return null;
47
- var r = k && e[k] || e[$e];
48
- return typeof r == "function" ? r : null;
49
- }
50
- var D = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function T(e) {
52
- {
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
- }
57
- }
58
- function We(e, r, t) {
59
- {
60
- var n = D.ReactDebugCurrentFrame, p = n.getStackAddendum();
61
- p !== "" && (r += "%s", t = t.concat([p]));
62
- var m = t.map(function(c) {
63
- return String(c);
64
- });
65
- m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
66
- }
67
- }
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
- // 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 === se || e.getModuleId !== void 0));
76
- }
77
- function Ge(e, r, t) {
78
- var n = e.displayName;
79
- if (n)
80
- return n;
81
- var p = r.displayName || r.name || "";
82
- return p !== "" ? t + "(" + p + ")" : t;
83
- }
84
- function ie(e) {
85
- return e.displayName || "Context";
86
- }
87
- function N(e) {
88
- if (e == null)
89
- return null;
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
- 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 x:
53
+ case U:
96
54
  return "Fragment";
97
- case b:
55
+ case Pe:
98
56
  return "Portal";
99
- case u:
57
+ case se:
100
58
  return "Profiler";
101
- case f:
59
+ case te:
102
60
  return "StrictMode";
103
- case R:
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 o:
111
- var r = e;
112
- return ie(r) + ".Consumer";
113
- case i:
114
- var t = e;
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
- case j: {
122
- var p = e, m = p._payload, c = 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 N(c(m));
82
+ return s(e(r));
125
83
  } catch {
126
- return null;
127
84
  }
128
- }
129
85
  }
130
86
  return null;
131
87
  }
132
- var F = Object.assign, M = 0, oe, le, ue, ce, de, fe, pe;
133
- function ve() {
88
+ function d(e) {
89
+ return "" + e;
134
90
  }
135
- ve.__reactDisabledLog = !0;
136
- function Je() {
137
- {
138
- if (M === 0) {
139
- oe = console.log, le = console.info, ue = console.warn, ce = console.error, de = console.group, fe = console.groupCollapsed, pe = console.groupEnd;
140
- var e = {
141
- configurable: !0,
142
- enumerable: !0,
143
- value: ve,
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 Ke() {
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: F({}, e, {
169
- value: oe
170
- }),
171
- info: F({}, e, {
172
- value: le
173
- }),
174
- warn: F({}, e, {
175
- value: ue
176
- }),
177
- error: F({}, e, {
178
- value: ce
179
- }),
180
- group: F({}, e, {
181
- value: de
182
- }),
183
- groupCollapsed: F({}, e, {
184
- value: fe
185
- }),
186
- groupEnd: F({}, e, {
187
- value: pe
188
- })
189
- });
190
- }
191
- M < 0 && T("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 = D.ReactCurrentDispatcher, K;
195
- function U(e, r, t) {
196
- {
197
- if (K === void 0)
198
- try {
199
- throw Error();
200
- } catch (p) {
201
- var n = p.stack.trim().match(/\n( *(at )?)/);
202
- K = n && n[1] || "";
203
- }
204
- return `
205
- ` + K + 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, z;
209
- {
210
- var He = typeof WeakMap == "function" ? WeakMap : Map;
211
- z = new He();
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 be(e, r) {
214
- if (!e || H)
215
- return "";
216
- {
217
- var t = z.get(e);
218
- if (t !== void 0)
219
- return t;
220
- }
221
- var n;
222
- H = !0;
223
- var p = Error.prepareStackTrace;
224
- Error.prepareStackTrace = void 0;
225
- var m;
226
- m = J.current, J.current = null, Je();
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 c = function() {
230
- throw Error();
231
- };
232
- if (Object.defineProperty(c.prototype, "props", {
233
- set: function() {
234
- throw Error();
235
- }
236
- }), typeof Reflect == "object" && Reflect.construct) {
237
- try {
238
- Reflect.construct(c, []);
239
- } catch (S) {
240
- n = S;
241
- }
242
- Reflect.construct(e, [], c);
243
- } else {
168
+ var v = {
169
+ DetermineComponentFrameRoot: function() {
244
170
  try {
245
- c.call();
246
- } catch (S) {
247
- n = 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(c.prototype);
207
+ return [null, null];
250
208
  }
251
- } else {
252
- try {
253
- throw Error();
254
- } catch (S) {
255
- n = S;
256
- }
257
- e();
258
- }
259
- } catch (S) {
260
- if (S && n && typeof S.stack == "string") {
261
- for (var l = S.stack.split(`
262
- `), I = n.stack.split(`
263
- `), E = l.length - 1, _ = I.length - 1; E >= 1 && _ >= 0 && l[E] !== I[_]; )
264
- _--;
265
- for (; E >= 1 && _ >= 0; E--, _--)
266
- if (l[E] !== I[_]) {
267
- if (E !== 1 || _ !== 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 (E--, _--, _ < 0 || l[E] !== I[_]) {
270
- var 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;
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 (E >= 1 && _ >= 0);
248
+ while (1 <= x && 0 <= a);
275
249
  break;
276
250
  }
277
251
  }
278
252
  } finally {
279
- H = !1, J.current = m, Ke(), Error.prepareStackTrace = p;
253
+ Z = !1, I.H = u, o(), Error.prepareStackTrace = t;
280
254
  }
281
- var $ = e ? e.displayName || e.name : "", q = $ ? U($) : "";
282
- return typeof e == "function" && z.set(e, q), q;
283
- }
284
- function Xe(e, r, t) {
285
- return be(e, !1);
255
+ return h = (h = e ? e.displayName || e.name : "") ? n(h) : "", typeof e == "function" && Q.set(e, h), h;
286
256
  }
287
- function Ze(e) {
288
- var r = e.prototype;
289
- return !!(r && r.isReactComponent);
290
- }
291
- function B(e, r, t) {
292
- if (e == null)
293
- return "";
294
- if (typeof e == "function")
295
- return be(e, Ze(e));
296
- if (typeof e == "string")
297
- return U(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 R:
300
- return U("Suspense");
301
- case h:
302
- return U("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 a:
307
- return Xe(e.render);
308
- case d:
309
- return B(e.type, r, t);
310
- case j: {
311
- var n = e, p = n._payload, m = n._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 B(m(p), r, t);
282
+ return c(e(r));
314
283
  } catch {
315
284
  }
316
- }
317
285
  }
318
286
  return "";
319
287
  }
320
- var W = Object.prototype.hasOwnProperty, me = {}, he = D.ReactDebugCurrentFrame;
321
- function G(e) {
322
- if (e) {
323
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
324
- he.setExtraStackFrame(t);
325
- } else
326
- he.setExtraStackFrame(null);
327
- }
328
- function Qe(e, r, t, n, p) {
329
- {
330
- var m = Function.call.bind(W);
331
- for (var c in e)
332
- if (m(e, c)) {
333
- var l = void 0;
334
- try {
335
- if (typeof e[c] != "function") {
336
- var I = Error((n || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw I.name = "Invariant Violation", I;
338
- }
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
- }
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
- }
345
- }
288
+ function m() {
289
+ var e = I.A;
290
+ return e === null ? null : e.getOwner();
346
291
  }
347
- var er = Array.isArray;
348
- function X(e) {
349
- return er(e);
350
- }
351
- function rr(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 tr(e) {
358
- try {
359
- return ge(e), !1;
360
- } catch {
361
- return !0;
362
- }
363
- }
364
- function ge(e) {
365
- return "" + e;
366
- }
367
- function xe(e) {
368
- if (tr(e))
369
- return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), ge(e);
370
- }
371
- var L = D.ReactCurrentOwner, ar = {
372
- key: !0,
373
- ref: !0,
374
- __self: !0,
375
- __source: !0
376
- }, ye, Re, Z;
377
- Z = {};
378
- function nr(e) {
379
- if (W.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 sr(e) {
387
- if (W.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 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
- }
399
- }
400
- function or(e, r) {
401
- {
402
- var t = function() {
403
- ye || (ye = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
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 lr(e, r) {
412
- {
413
- var t = function() {
414
- Re || (Re = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
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 ur = function(e, r, t, n, p, m, c) {
423
- var l = {
424
- // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: g,
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: c,
431
- // Record the component responsible for creating this element.
432
- _owner: m
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: n
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 cr(e, r, t, n, p) {
452
- {
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
- if (e && e.defaultProps) {
458
- var E = e.defaultProps;
459
- for (m in E)
460
- c[m] === void 0 && (c[m] = E[m]);
461
- }
462
- if (l || I) {
463
- var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- l && or(c, _), I && lr(c, _);
465
- }
466
- return ur(e, l, I, p, n, L.current, c);
467
- }
335
+ writable: !0,
336
+ value: null
337
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
468
338
  }
469
- var Q = D.ReactCurrentOwner, Ee = D.ReactDebugCurrentFrame;
470
- function A(e) {
471
- if (e) {
472
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
473
- Ee.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
- Ee.setExtraStackFrame(null);
476
- }
477
- var ee;
478
- ee = !1;
479
- function re(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === g;
481
- }
482
- function _e() {
483
- {
484
- if (Q.current) {
485
- var e = N(Q.current.type);
486
- if (e)
487
- return `
488
-
489
- Check the render method of \`` + e + "`.";
490
- }
491
- return "";
492
- }
493
- }
494
- function dr(e) {
495
- return "";
496
- }
497
- var je = {};
498
- function fr(e) {
499
- {
500
- var r = _e();
501
- if (!r) {
502
- var t = typeof e == "string" ? e : e.displayName || e.name;
503
- t && (r = `
504
-
505
- Check the top-level render call using <` + t + ">.");
506
- }
507
- return r;
508
- }
509
- }
510
- function we(e, r) {
511
- {
512
- if (!e._store || e._store.validated || e.key != null)
513
- return;
514
- e._store.validated = !0;
515
- var t = fr(r);
516
- if (je[t])
517
- return;
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);
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);
521
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);
522
386
  }
523
- function Te(e, r) {
524
- {
525
- if (typeof e != "object")
526
- return;
527
- if (X(e))
387
+ function ee(e, r) {
388
+ if (typeof e == "object" && e && e.$$typeof !== qe) {
389
+ if (L(e))
528
390
  for (var t = 0; t < e.length; t++) {
529
- var n = e[t];
530
- re(n) && we(n, r);
391
+ var u = e[t];
392
+ W(u) && re(u, r);
531
393
  }
532
- else if (re(e))
533
- e._store && (e._store.validated = !0);
534
- else if (e) {
535
- var p = Me(e);
536
- if (typeof p == "function" && p !== e.entries)
537
- for (var m = p.call(e), c; !(c = m.next()).done; )
538
- re(c.value) && we(c.value, r);
539
- }
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);
540
399
  }
541
400
  }
542
- function pr(e) {
543
- {
544
- var r = e.type;
545
- if (r == null || typeof r == "string")
546
- return;
547
- var t;
548
- if (typeof r == "function")
549
- t = r.propTypes;
550
- else if (typeof r == "object" && (r.$$typeof === a || // Note: Memo only checks outer props here.
551
- // Inner props are checked in the reconciler.
552
- r.$$typeof === d))
553
- t = r.propTypes;
554
- else
555
- return;
556
- if (t) {
557
- var n = N(r);
558
- Qe(t, e.props, "prop", n, e);
559
- } else if (r.PropTypes !== void 0 && !ee) {
560
- ee = !0;
561
- var p = N(r);
562
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
563
- }
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.");
565
- }
566
- }
567
- function vr(e) {
568
- {
569
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
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);
573
- break;
574
- }
575
- }
576
- e.ref !== null && (A(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
577
- }
401
+ function W(e) {
402
+ return typeof e == "object" && e !== null && e.$$typeof === B;
578
403
  }
579
- var Ce = {};
580
- function Ie(e, r, t, n, p, m) {
581
- {
582
- var c = Be(e);
583
- if (!c) {
584
- var l = "";
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.");
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);
590
- }
591
- var _ = cr(e, r, t, p, m);
592
- if (_ == null)
593
- return _;
594
- if (c) {
595
- var P = r.children;
596
- if (P !== void 0)
597
- if (n)
598
- if (X(P)) {
599
- for (var $ = 0; $ < P.length; $++)
600
- Te(P[$], e);
601
- Object.freeze && Object.freeze(P);
602
- } else
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.");
604
- else
605
- Te(P, e);
606
- }
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(_), _;
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;
622
418
  }
623
419
  }
624
- function br(e, r, t) {
625
- return Ie(e, r, t, !0);
626
- }
627
- function mr(e, r, t) {
628
- return Ie(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;
629
427
  }
630
- var hr = mr, gr = br;
631
- V.Fragment = x, V.jsx = hr, V.jsxs = gr;
632
- }()), V;
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;
633
441
  }
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({
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({
637
530
  helperTextId: "",
638
531
  errorMessageId: "",
639
532
  isInvalid: !1,
640
533
  isRequired: !1
641
- }), ke = `
534
+ }), Re = `
642
535
  bg-white
643
536
  border
644
537
  border-solid
645
- border-sumi-900
646
- outline-offset-2
647
- focus:outline
648
- focus:outline-2
649
- focus:outline-wood-500
538
+ border-solid-gray-900
650
539
  disabled:bg-transparent
651
- disabled:text-sumi-500
652
- disabled:border-sumi-500
653
- aria-invalid:border-sun-800
654
- `, Ne = {
540
+ disabled:text-solid-gray-500
541
+ disabled:border-solid-gray-500
542
+ aria-invalid:border-red-800
543
+ ${k.focusRect}
544
+ `, je = {
655
545
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
656
546
  lg: `
657
547
  p-4
@@ -675,13 +565,13 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
675
565
  rounded-md
676
566
  leading-snug
677
567
  `
678
- }, Oe = `
568
+ }, we = `
679
569
  inline-block
680
570
  cursor-pointer
681
571
  border
682
572
  border-solid
683
573
  border-transparent
684
- `, Fe = {
574
+ `, Te = {
685
575
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
686
576
  lg: `
687
577
  pr-8
@@ -703,513 +593,490 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
703
593
  text-label
704
594
  leading-snug
705
595
  `
706
- }, qe = {
596
+ }, Ce = {
707
597
  lg: "w-[22px] h-[22px] mr-2",
708
598
  md: "w-[18px] h-[18px] mr-1.5",
709
599
  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",
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
631
+ ),
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
692
+ ),
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",
721
725
  {
722
- htmlFor: o,
723
- className: C(
724
- Oe,
725
- Fe[f],
726
- x
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
727
737
  ),
728
- children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
729
- /* @__PURE__ */ s.jsx(
730
- "input",
731
- {
732
- id: o,
733
- className: `
734
- peer
735
- sr-only
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(`
747
- bg-clip-content
748
- rounded
749
- border
750
- border-solid
751
- border-sumi-900
752
- fill-transparent
753
- peer-checked:fill-white
754
- peer-checked:bg-sea-600
755
- peer-checked:border-none
756
- peer-disabled:border-sumi-500
757
- peer-focus-visible:ring-2
758
- peer-focus-visible:ring-offset-2
759
- peer-focus-visible:ring-wood-500
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
- ] })
738
+ "aria-describedby": n.helperTextId,
739
+ "aria-errormessage": n.errorMessageId,
740
+ "aria-invalid": n.isInvalid ?? !1,
741
+ "aria-required": n.isRequired ?? !1,
742
+ ...o,
743
+ children: i
776
744
  }
777
- );
778
- }
779
- );
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 = `
786
- peer
787
- sr-only
788
- `, h = `
789
- bg-clip-content
790
- rounded-full
791
- border
792
- border-solid
793
- border-sumi-900
794
- peer-checked:bg-sea-600
795
- peer-checked:border-sea-600
796
- peer-disabled:border-sumi-500
797
- peer-focus-visible:ring-2
798
- peer-focus-visible:ring-offset-2
799
- peer-focus-visible:ring-wood-500
800
- `, d = {
801
- lg: "p-1",
802
- md: "p-[3px]",
803
- sm: "p-[3px]"
804
- };
805
- return /* @__PURE__ */ s.jsx(
806
- "label",
745
+ ),
746
+ /* @__PURE__ */ l.jsxs(
747
+ "svg",
807
748
  {
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",
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",
831
768
  {
832
- "aria-hidden": !0,
833
- className: C(h, d[f], qe[f])
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"
834
771
  }
835
- ),
836
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
837
- ] })
772
+ )
773
+ ]
838
774
  }
839
- );
840
- }
841
- );
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: [
847
- /* @__PURE__ */ s.jsx(
848
- "select",
849
- {
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,
868
- children: u
869
- }
870
- ),
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
- )
901
- ] });
902
- }
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(`
912
- file:mr-2
913
- file:inline-block
914
- file:text-button
915
- file:text-center
916
- file:cursor-pointer
917
- file:select-none
918
- file:touch-manipulation
919
- file:whitespace-nowrap
920
- file:border
921
- file:border-solid
922
- file:border-sea-800
923
- file:active:border-sea-1200
924
- file:hover:border-sea-900
925
- file:disabled:border-sumi-500
926
- file:disabled:cursor-not-allowed
927
- `, `
928
- file:text-sea-800
929
- file:bg-transparent
930
- file:active:bg-sea-200
931
- file:hover:bg-sea-100
932
- file:active:text-sea-1200
933
- file:hover:text-sea-900
934
- file:disabled:text-sumi-500
935
- file:disabled:bg-transparent
936
- `, `
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: `
937
818
  file:p-4
938
819
  file:text-button
939
820
  file:rounded-lg
940
821
  file:leading-snug
941
- `, `
942
- text-label
943
- text-sumi-900
944
- rounded-lg
945
- outline-offset-2
946
- focus:outline
947
- focus:outline-2
948
- focus:outline-wood-600
949
- aria-invalid:text-sun-800
950
- `, x),
951
- "aria-describedby": u.helperTextId,
952
- "aria-errormessage": u.errorMessageId,
953
- "aria-invalid": u.isInvalid ?? !1,
954
- "aria-required": u.isRequired ?? !1,
955
- ref: g,
956
- ...f
957
- }
958
- );
959
- }
960
- );
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(
966
- "input",
967
- {
968
- type: "text",
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,
980
- ...u
981
- }
982
- );
983
- }
984
- );
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(`
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 = `
999
884
  p-4
1000
885
  text-label
1001
886
  rounded-lg
1002
887
  border
1003
888
  border-solid
1004
- border-sumi-900
1005
- outline-offset-2
1006
- focus:outline
1007
- focus:outline-2
1008
- focus:outline-wood-500
889
+ border-solid-gray-900
1009
890
  disabled:bg-transparent
1010
- disabled:text-sumi-500
1011
- disabled:border-sumi-500
1012
- aria-invalid:border-sun-800
1013
- `, x),
1014
- "aria-describedby": d.helperTextId,
1015
- "aria-errormessage": d.errorMessageId,
1016
- "aria-invalid": d.isInvalid ?? !1,
1017
- "aria-required": d.isRequired ?? !1,
1018
- onChange: h,
1019
- ...o,
1020
- ref: g,
1021
- children: f
1022
- }
1023
- ),
1024
- i ? /* @__PURE__ */ s.jsxs("p", { className: "text-label text-sumi-700", children: [
1025
- /* @__PURE__ */ s.jsx("span", { className: j, children: a }),
1026
- "/",
1027
- /* @__PURE__ */ s.jsx("span", { children: i })
1028
- ] }) : ""
1029
- ] });
1030
- }
1031
- );
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,
1042
- ...h
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: [
1051
- /* @__PURE__ */ s.jsxs(
1052
- "label",
891
+ disabled:text-solid-gray-500
892
+ disabled:border-solid-gray-500
893
+ aria-invalid:border-red-800
894
+ ${k.focusRect}
895
+ `;
896
+ return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
897
+ /* @__PURE__ */ l.jsx(
898
+ "textarea",
1053
899
  {
1054
- className: C("block mb-2 text-label", o && "text-sun-800"),
1055
- htmlFor: d.id,
1056
- ref: g,
1057
- ...h,
1058
- children: [
1059
- x,
1060
- a && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
1061
- ]
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,
908
+ children: b
1062
909
  }
1063
910
  ),
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(
1069
- "p",
1070
- {
1071
- id: d.errorMessageId,
1072
- className: C(`
1073
- text-label text-sun-800
1074
- `, u ? "mt-1" : "mt-2"),
1075
- children: i
1076
- }
1077
- )
1078
- ] }) });
1079
- });
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,
1090
- children: h,
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: [
1100
- /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
1101
- "p",
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",
1102
939
  {
1103
- className: C("block mb-2 text-label", o && "text-sun-800"),
940
+ className: N("block text-label", n && "text-red-800"),
941
+ htmlFor: p.id,
942
+ ...m,
1104
943
  children: [
1105
- x,
1106
- a && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
944
+ f,
945
+ g && /* @__PURE__ */ l.jsx("span", { className: "text-label text-red-800", children: " *" })
1107
946
  ]
1108
947
  }
1109
- ) }),
1110
- /* @__PURE__ */ s.jsx("div", { className: C("inline-flex", k), children: h }),
1111
- u && /* @__PURE__ */ s.jsx("p", { id: w.helperTextId, className: "text-sup text-sumi-700 mt-2", children: u }),
1112
- o && /* @__PURE__ */ s.jsx(
1113
- "p",
1114
- {
1115
- id: w.errorMessageId,
1116
- className: C(
1117
- "text-label text-sun-800",
1118
- u ? "mt-1" : "mt-2"
1119
- ),
1120
- children: i
1121
- }
1122
- )
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 })
1123
956
  ] }) });
1124
- });
1125
- ne.displayName = "FieldsetControl";
1126
- const Cr = y.forwardRef((v, g) => {
1127
- const {
1128
- items: b,
1129
- onChange: x,
1130
- className: f,
1131
- labelText: u,
957
+ };
958
+ Ge.displayName = "LabelControl";
959
+ const K = (s) => {
960
+ const d = R.useId(), {
961
+ labelText: f,
962
+ className: b,
1132
963
  helperText: i,
1133
964
  errorMessage: o,
1134
- isInvalid: a,
1135
- isRequired: R,
1136
- size: h,
1137
- ...d
1138
- } = v;
1139
- return /* @__PURE__ */ s.jsx(
1140
- ne,
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",
1141
979
  {
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,
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
+ ]
991
+ }
992
+ ) });
993
+ };
994
+ K.displayName = "FieldsetControl";
995
+ const He = (s) => {
996
+ const {
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,
1010
+ {
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,
1152
1020
  {
1153
- size: h,
1154
- value: w,
1155
- onChange: x,
1156
- children: j
1021
+ size: m,
1022
+ value: E,
1023
+ onChange: f,
1024
+ children: y
1157
1025
  },
1158
- `${j}-${w}`
1026
+ `${y}-${E}`
1159
1027
  ))
1160
1028
  }
1161
1029
  );
1162
- });
1163
- Cr.displayName = "CheckboxGroup";
1164
- const Ir = y.forwardRef((v, g) => {
1030
+ };
1031
+ He.displayName = "CheckboxGroup";
1032
+ const Je = (s) => {
1165
1033
  const {
1166
- items: b,
1167
- onChange: x,
1168
- className: f,
1169
- labelText: u,
1170
- helperText: i,
1171
- errorMessage: o,
1172
- isInvalid: a,
1173
- isRequired: R,
1174
- defaultValue: h,
1175
- size: d,
1176
- ...j
1177
- } = v;
1178
- return /* @__PURE__ */ s.jsx(
1179
- ne,
1034
+ items: d,
1035
+ onChange: f,
1036
+ className: b,
1037
+ labelText: i,
1038
+ helperText: o,
1039
+ errorMessage: n,
1040
+ isInvalid: g,
1041
+ isRequired: c,
1042
+ defaultValue: m,
1043
+ size: p,
1044
+ ...y
1045
+ } = s;
1046
+ return /* @__PURE__ */ l.jsx(
1047
+ K,
1180
1048
  {
1181
- className: f,
1182
- labelText: u,
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,
1049
+ className: b,
1050
+ labelText: i,
1051
+ helperText: o,
1052
+ errorMessage: n,
1053
+ isInvalid: g,
1054
+ isRequired: c,
1055
+ ...y,
1056
+ children: d.map(({ label: E, value: j }) => /* @__PURE__ */ l.jsx(
1057
+ _e,
1191
1058
  {
1192
- size: d,
1193
- value: k,
1194
- onChange: x,
1195
- defaultChecked: h === k,
1196
- children: w
1059
+ size: p,
1060
+ value: j,
1061
+ onChange: f,
1062
+ defaultChecked: m === j,
1063
+ children: E
1197
1064
  },
1198
- `${w}-${k}`
1065
+ `${E}-${j}`
1199
1066
  ))
1200
1067
  }
1201
1068
  );
1202
- });
1203
- Ir.displayName = "RadioGroup";
1069
+ };
1070
+ Je.displayName = "RadioGroup";
1204
1071
  export {
1205
- De as Checkbox,
1206
- Cr as CheckboxGroup,
1207
- ne as FieldsetControl,
1208
- _r as FileInput,
1209
- jr as Input,
1210
- Tr as LabelControl,
1211
- Ae as Radio,
1212
- Ir as RadioGroup,
1213
- Pr as Select,
1214
- wr as Textarea
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
1215
1082
  };