@sakura-ui/sakura-ui 0.2.0 → 0.4.1

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 (212) hide show
  1. package/README.md +77 -6
  2. package/package.json +28 -21
  3. package/packages/core/package.json +30 -17
  4. package/packages/core/src/components/Button.tsx +33 -32
  5. package/packages/core/src/components/Card.tsx +37 -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 +54 -43
  11. package/packages/core/src/components/LangSelector.tsx +135 -0
  12. package/packages/core/src/components/Link.tsx +37 -66
  13. package/packages/core/src/components/LinkCard.tsx +126 -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/NotificationBanner.tsx +20 -0
  18. package/packages/core/src/components/OverflowContainer.tsx +24 -0
  19. package/packages/core/src/components/PopoverMenu.tsx +82 -0
  20. package/packages/core/src/components/Pre.tsx +6 -4
  21. package/packages/core/src/components/Table.tsx +31 -25
  22. package/packages/core/src/components/buttonStyle.ts +43 -32
  23. package/packages/core/src/components/index.ts +13 -25
  24. package/packages/core/src/icons/Close.tsx +21 -0
  25. package/packages/core/src/icons/CloseMobile.tsx +43 -0
  26. package/packages/core/src/icons/KeyboardArrowDown.tsx +24 -0
  27. package/packages/core/src/icons/Language.tsx +25 -0
  28. package/packages/core/src/icons/LanguageMobile.tsx +40 -0
  29. package/packages/core/src/icons/Menu.tsx +24 -0
  30. package/packages/core/src/icons/MenuMobile.tsx +40 -0
  31. package/packages/core/src/icons/index.ts +8 -0
  32. package/packages/core/src/icons/props.ts +5 -0
  33. package/packages/core/src/index.ts +10 -28
  34. package/packages/core/src/type.d.ts +1 -0
  35. package/packages/core/tests/Button.test.tsx +20 -10
  36. package/packages/core/tests/Card.test.tsx +16 -11
  37. package/packages/core/tests/IconButton.test.tsx +57 -0
  38. package/packages/core/tests/Link.test.tsx +60 -0
  39. package/packages/core/tests/vitest.setup.ts +1 -0
  40. package/packages/core/tsconfig.node.json +3 -2
  41. package/packages/core/vite.config.ts +2 -1
  42. package/packages/forms/.turbo/turbo-build.log +12 -0
  43. package/packages/forms/dist/index.cjs.js +183 -131
  44. package/packages/forms/dist/index.es.js +750 -1062
  45. package/packages/forms/dist/types/components/Checkbox.d.ts +9 -4
  46. package/packages/forms/dist/types/components/Checkbox.d.ts.map +1 -1
  47. package/packages/forms/dist/types/components/FieldsetControl.d.ts +14 -9
  48. package/packages/forms/dist/types/components/FieldsetControl.d.ts.map +1 -1
  49. package/packages/forms/dist/types/components/FileInput.d.ts +10 -3
  50. package/packages/forms/dist/types/components/FileInput.d.ts.map +1 -1
  51. package/packages/forms/dist/types/components/Input.d.ts +9 -4
  52. package/packages/forms/dist/types/components/Input.d.ts.map +1 -1
  53. package/packages/forms/dist/types/components/LabelControl.d.ts +13 -8
  54. package/packages/forms/dist/types/components/LabelControl.d.ts.map +1 -1
  55. package/packages/forms/dist/types/components/Radio.d.ts +9 -4
  56. package/packages/forms/dist/types/components/Radio.d.ts.map +1 -1
  57. package/packages/forms/dist/types/components/Select.d.ts +9 -4
  58. package/packages/forms/dist/types/components/Select.d.ts.map +1 -1
  59. package/packages/forms/dist/types/components/Textarea.d.ts +8 -3
  60. package/packages/forms/dist/types/components/Textarea.d.ts.map +1 -1
  61. package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts +16 -11
  62. package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts.map +1 -1
  63. package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts +17 -12
  64. package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts.map +1 -1
  65. package/packages/forms/dist/types/components/index.d.ts +8 -8
  66. package/packages/forms/dist/types/components/index.d.ts.map +1 -1
  67. package/packages/forms/dist/types/components/inputStyle.d.ts +1 -1
  68. package/packages/forms/dist/types/components/inputStyle.d.ts.map +1 -1
  69. package/packages/forms/dist/types/index.d.ts +0 -1
  70. package/packages/forms/dist/types/index.d.ts.map +1 -1
  71. package/packages/forms/node_modules/.bin/autoprefixer +44 -6
  72. package/packages/forms/package.json +21 -16
  73. package/packages/forms/src/components/Checkbox.tsx +76 -80
  74. package/packages/forms/src/components/FieldsetControl.tsx +21 -28
  75. package/packages/forms/src/components/FileInput.tsx +92 -63
  76. package/packages/forms/src/components/Input.tsx +29 -31
  77. package/packages/forms/src/components/LabelControl.tsx +19 -25
  78. package/packages/forms/src/components/Radio.tsx +68 -69
  79. package/packages/forms/src/components/Select.tsx +65 -65
  80. package/packages/forms/src/components/Textarea.tsx +49 -54
  81. package/packages/forms/src/components/controlled/CheckboxGroup.tsx +15 -17
  82. package/packages/forms/src/components/controlled/RadioGroup.tsx +16 -18
  83. package/packages/forms/src/components/index.ts +8 -8
  84. package/packages/forms/src/components/inputStyle.ts +7 -8
  85. package/packages/forms/src/index.ts +0 -11
  86. package/packages/forms/tests/Checkbox.test.tsx +44 -0
  87. package/packages/forms/tests/FieldsetControl.test.tsx +68 -11
  88. package/packages/forms/tests/FileInput.test.tsx +25 -0
  89. package/packages/forms/tests/Input.test.tsx +12 -83
  90. package/packages/forms/tests/LabelControl.test.tsx +88 -20
  91. package/packages/forms/tests/Radio.test.tsx +23 -78
  92. package/packages/forms/tests/Select.test.tsx +30 -0
  93. package/packages/forms/tests/Textarea.test.tsx +25 -0
  94. package/packages/forms/tests/vitest.setup.ts +1 -0
  95. package/packages/forms/tsconfig.node.json +3 -2
  96. package/packages/forms/vite.config.ts +2 -1
  97. package/packages/helper/.turbo/turbo-build.log +12 -0
  98. package/packages/helper/dist/index.cjs.js +76 -0
  99. package/packages/helper/dist/index.es.js +119 -0
  100. package/packages/helper/dist/types/calc.d.ts +2 -0
  101. package/packages/helper/dist/types/calc.d.ts.map +1 -0
  102. package/packages/{forms/dist/types/utils/class.d.ts → helper/dist/types/cx.d.ts} +1 -1
  103. package/packages/helper/dist/types/cx.d.ts.map +1 -0
  104. package/packages/helper/dist/types/index.d.ts +6 -0
  105. package/packages/helper/dist/types/index.d.ts.map +1 -0
  106. package/packages/helper/dist/types/querySelector.d.ts +2 -0
  107. package/packages/helper/dist/types/querySelector.d.ts.map +1 -0
  108. package/packages/helper/dist/types/styles.d.ts +22 -0
  109. package/packages/helper/dist/types/styles.d.ts.map +1 -0
  110. package/packages/helper/dist/types/treefy.d.ts +8 -0
  111. package/packages/helper/dist/types/treefy.d.ts.map +1 -0
  112. package/packages/helper/node_modules/.bin/vitest +55 -0
  113. package/packages/helper/package.json +50 -0
  114. package/packages/helper/src/calc.ts +1 -0
  115. package/packages/helper/src/cx.ts +2 -0
  116. package/packages/helper/src/index.ts +5 -0
  117. package/packages/helper/src/querySelector.ts +20 -0
  118. package/packages/helper/src/styles.ts +114 -0
  119. package/packages/helper/src/treefy.ts +24 -0
  120. package/packages/helper/tests/calc.test.ts +22 -0
  121. package/packages/helper/tests/cx.test.ts +30 -0
  122. package/packages/helper/tests/querySelector.test.ts +24 -0
  123. package/packages/helper/tests/treefy.test.ts +111 -0
  124. package/packages/helper/tests/vitest.setup.ts +2 -0
  125. package/packages/helper/tsconfig.json +13 -0
  126. package/packages/helper/tsconfig.node.json +6 -0
  127. package/packages/helper/vite.config.ts +26 -0
  128. package/packages/markdown/.turbo/turbo-build.log +12 -0
  129. package/packages/markdown/README.md +129 -0
  130. package/packages/markdown/dist/index.cjs.js +149 -0
  131. package/packages/markdown/dist/index.es.js +16960 -0
  132. package/packages/markdown/dist/types/components/Markdown.d.ts +15 -0
  133. package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -0
  134. package/packages/markdown/dist/types/components/index.d.ts +2 -0
  135. package/packages/markdown/dist/types/components/index.d.ts.map +1 -0
  136. package/packages/markdown/dist/types/index.d.ts +2 -0
  137. package/packages/markdown/dist/types/index.d.ts.map +1 -0
  138. package/packages/markdown/dist/types/plugins/attr.d.ts +3 -0
  139. package/packages/markdown/dist/types/plugins/attr.d.ts.map +1 -0
  140. package/packages/markdown/dist/types/plugins/card.d.ts +3 -0
  141. package/packages/markdown/dist/types/plugins/card.d.ts.map +1 -0
  142. package/packages/markdown/dist/types/plugins/cell.d.ts +3 -0
  143. package/packages/markdown/dist/types/plugins/cell.d.ts.map +1 -0
  144. package/packages/markdown/dist/types/plugins/faq.d.ts +3 -0
  145. package/packages/markdown/dist/types/plugins/faq.d.ts.map +1 -0
  146. package/packages/markdown/dist/types/plugins/grid.d.ts +3 -0
  147. package/packages/markdown/dist/types/plugins/grid.d.ts.map +1 -0
  148. package/packages/markdown/dist/types/plugins/headings.d.ts +11 -0
  149. package/packages/markdown/dist/types/plugins/headings.d.ts.map +1 -0
  150. package/packages/markdown/dist/types/plugins/helper.d.ts +9 -0
  151. package/packages/markdown/dist/types/plugins/helper.d.ts.map +1 -0
  152. package/packages/markdown/dist/types/plugins/index.d.ts +9 -0
  153. package/packages/markdown/dist/types/plugins/index.d.ts.map +1 -0
  154. package/packages/markdown/dist/types/plugins/linkButton.d.ts +3 -0
  155. package/packages/markdown/dist/types/plugins/linkButton.d.ts.map +1 -0
  156. package/packages/markdown/dist/types/plugins/youtube.d.ts +3 -0
  157. package/packages/markdown/dist/types/plugins/youtube.d.ts.map +1 -0
  158. package/packages/markdown/node_modules/.bin/autoprefixer +55 -0
  159. package/packages/markdown/package.json +84 -0
  160. package/packages/markdown/src/components/Markdown.tsx +365 -0
  161. package/packages/markdown/src/components/index.ts +1 -0
  162. package/packages/markdown/src/global.d.ts +9 -0
  163. package/packages/markdown/src/index.ts +1 -0
  164. package/packages/markdown/src/plugins/attr.ts +19 -0
  165. package/packages/markdown/src/plugins/card.ts +57 -0
  166. package/packages/markdown/src/plugins/cell.ts +47 -0
  167. package/packages/markdown/src/plugins/faq.ts +40 -0
  168. package/packages/markdown/src/plugins/grid.ts +54 -0
  169. package/packages/markdown/src/plugins/headings.ts +38 -0
  170. package/packages/markdown/src/plugins/helper.ts +27 -0
  171. package/packages/markdown/src/plugins/index.ts +8 -0
  172. package/packages/markdown/src/plugins/linkButton.ts +26 -0
  173. package/packages/markdown/src/plugins/youtube.ts +49 -0
  174. package/packages/markdown/tsconfig.json +13 -0
  175. package/packages/markdown/tsconfig.node.json +7 -0
  176. package/packages/markdown/vite.config.ts +30 -0
  177. package/packages/tailwind-theme-plugin/#package.json# +51 -0
  178. package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +12 -0
  179. package/packages/tailwind-theme-plugin/dist/index.cjs.js +1 -1
  180. package/packages/tailwind-theme-plugin/dist/index.es.js +4970 -6093
  181. package/packages/tailwind-theme-plugin/dist/types/index.d.ts +1 -4
  182. package/packages/tailwind-theme-plugin/dist/types/index.d.ts.map +1 -1
  183. package/packages/tailwind-theme-plugin/node_modules/.bin/autoprefixer +44 -6
  184. package/packages/tailwind-theme-plugin/package.json +11 -9
  185. package/packages/tailwind-theme-plugin/src/index.ts +241 -349
  186. package/packages/tailwind-theme-plugin/vite.config.ts +2 -0
  187. package/packages/core/src/libs/cx.ts +0 -2
  188. package/packages/core/src/libs/forward-ref.ts +0 -44
  189. package/packages/core/src/types/component.ts +0 -83
  190. package/packages/forms/dist/types/utils/class.d.ts.map +0 -1
  191. package/packages/forms/node_modules/.bin/acorn +0 -17
  192. package/packages/forms/node_modules/.bin/browserslist +0 -17
  193. package/packages/forms/node_modules/.bin/eslint +0 -17
  194. package/packages/forms/node_modules/.bin/tailwind +0 -17
  195. package/packages/forms/node_modules/.bin/tailwindcss +0 -17
  196. package/packages/forms/node_modules/.bin/ts-node +0 -17
  197. package/packages/forms/node_modules/.bin/ts-node-cwd +0 -17
  198. package/packages/forms/node_modules/.bin/ts-node-esm +0 -17
  199. package/packages/forms/node_modules/.bin/ts-node-script +0 -17
  200. package/packages/forms/node_modules/.bin/ts-node-transpile-only +0 -17
  201. package/packages/forms/node_modules/.bin/ts-script +0 -17
  202. package/packages/forms/node_modules/.bin/vitest +0 -17
  203. package/packages/forms/src/utils/class.ts +0 -2
  204. package/packages/tailwind-theme-plugin/node_modules/.bin/browserslist +0 -17
  205. package/packages/tailwind-theme-plugin/node_modules/.bin/tailwind +0 -17
  206. package/packages/tailwind-theme-plugin/node_modules/.bin/tailwindcss +0 -17
  207. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node +0 -17
  208. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-cwd +0 -17
  209. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-esm +0 -17
  210. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-script +0 -17
  211. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-transpile-only +0 -17
  212. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-script +0 -17
@@ -1,657 +1,364 @@
1
- import y from "react";
2
- var ae = { exports: {} }, Y = {};
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.min.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
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 };
1
+ import R from "react";
2
+ var I = { exports: {} }, E = {};
3
+ var W;
4
+ function fe() {
5
+ if (W) return E;
6
+ W = 1;
7
+ var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
8
+ function c(n, a, s) {
9
+ var o = null;
10
+ if (s !== void 0 && (o = "" + s), a.key !== void 0 && (o = "" + a.key), "key" in a) {
11
+ s = {};
12
+ for (var u in a)
13
+ u !== "key" && (s[u] = a[u]);
14
+ } else s = a;
15
+ return a = s.ref, {
16
+ $$typeof: r,
17
+ type: n,
18
+ key: o,
19
+ ref: a !== void 0 ? a : null,
20
+ props: s
21
+ };
27
22
  }
28
- return Y.Fragment = b, Y.jsx = i, Y.jsxs = i, Y;
23
+ return E.Fragment = i, E.jsx = c, E.jsxs = c, E;
29
24
  }
30
- var V = {};
31
- /**
32
- * @license React
33
- * react-jsx-runtime.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
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;
25
+ var _ = {};
26
+ var B;
27
+ function pe() {
28
+ return B || (B = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ function r(e) {
30
+ if (e == null) return null;
31
+ if (typeof e == "function")
32
+ return e.$$typeof === de ? null : e.displayName || e.name || null;
33
+ if (typeof e == "string") return e;
94
34
  switch (e) {
95
- case x:
35
+ case k:
96
36
  return "Fragment";
97
- case b:
98
- return "Portal";
99
- case u:
37
+ case re:
100
38
  return "Profiler";
101
- case f:
39
+ case ee:
102
40
  return "StrictMode";
103
- case R:
41
+ case ae:
104
42
  return "Suspense";
105
- case h:
43
+ case oe:
106
44
  return "SuspenseList";
45
+ case ne:
46
+ return "Activity";
107
47
  }
108
48
  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;
49
+ switch (typeof e.tag == "number" && console.error(
50
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
+ ), e.$$typeof) {
52
+ case K:
53
+ return "Portal";
54
+ case te:
55
+ return e.displayName || "Context";
56
+ case se:
57
+ return (e._context.displayName || "Context") + ".Consumer";
58
+ case le:
59
+ var l = e.render;
60
+ return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
+ case ie:
62
+ return l = e.displayName || null, l !== null ? l : r(e.type) || "Memo";
63
+ case P:
64
+ l = e._payload, e = e._init;
123
65
  try {
124
- return N(c(m));
66
+ return r(e(l));
125
67
  } catch {
126
- return null;
127
68
  }
128
- }
129
69
  }
130
70
  return null;
131
71
  }
132
- var F = Object.assign, M = 0, oe, le, ue, ce, de, fe, pe;
133
- function ve() {
134
- }
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++;
157
- }
158
- }
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.");
192
- }
193
- }
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;
206
- }
207
- }
208
- var H = !1, z;
209
- {
210
- var He = typeof WeakMap == "function" ? WeakMap : Map;
211
- z = new He();
72
+ function i(e) {
73
+ return "" + e;
212
74
  }
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();
75
+ function c(e) {
227
76
  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 {
244
- try {
245
- c.call();
246
- } catch (S) {
247
- n = S;
248
- }
249
- e.call(c.prototype);
250
- }
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)
268
- 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;
273
- }
274
- while (E >= 1 && _ >= 0);
275
- break;
276
- }
277
- }
278
- } finally {
279
- H = !1, J.current = m, Ke(), Error.prepareStackTrace = p;
280
- }
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);
286
- }
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);
298
- switch (e) {
299
- case R:
300
- return U("Suspense");
301
- case h:
302
- return U("SuspenseList");
303
- }
304
- if (typeof e == "object")
305
- 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;
312
- try {
313
- return B(m(p), r, t);
314
- } catch {
315
- }
316
- }
317
- }
318
- return "";
319
- }
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
- }
346
- }
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) {
77
+ i(e);
78
+ var l = !1;
79
+ } catch {
80
+ l = !0;
81
+ }
82
+ if (l) {
83
+ l = console;
84
+ var p = l.error, b = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
+ return p.call(
86
+ l,
87
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
+ b
89
+ ), i(e);
90
+ }
91
+ }
92
+ function n(e) {
93
+ if (e === k) return "<>";
94
+ if (typeof e == "object" && e !== null && e.$$typeof === P)
95
+ return "<...>";
358
96
  try {
359
- return ge(e), !1;
97
+ var l = r(e);
98
+ return l ? "<" + l + ">" : "<...>";
360
99
  } catch {
361
- return !0;
100
+ return "<...>";
362
101
  }
363
102
  }
364
- function ge(e) {
365
- return "" + e;
103
+ function a() {
104
+ var e = C.A;
105
+ return e === null ? null : e.getOwner();
366
106
  }
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);
107
+ function s() {
108
+ return Error("react-stack-top-frame");
370
109
  }
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")) {
388
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
- if (r && r.isReactWarning)
390
- return !1;
110
+ function o(e) {
111
+ if (M.call(e, "key")) {
112
+ var l = Object.getOwnPropertyDescriptor(e, "key").get;
113
+ if (l && l.isReactWarning) return !1;
391
114
  }
392
115
  return e.key !== void 0;
393
116
  }
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
- });
409
- }
410
- }
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
- }
421
- }
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
117
+ function u(e, l) {
118
+ function p() {
119
+ F || (F = !0, console.error(
120
+ "%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)",
121
+ l
122
+ ));
123
+ }
124
+ p.isReactWarning = !0, Object.defineProperty(e, "key", {
125
+ get: p,
126
+ configurable: !0
127
+ });
128
+ }
129
+ function d() {
130
+ var e = r(this.type);
131
+ return Y[e] || (Y[e] = !0, console.error(
132
+ "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."
133
+ )), e = this.props.ref, e !== void 0 ? e : null;
134
+ }
135
+ function x(e, l, p, b, w, A) {
136
+ var m = p.ref;
137
+ return e = {
138
+ $$typeof: q,
427
139
  type: e,
428
- 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", {
140
+ key: l,
141
+ props: p,
142
+ _owner: b
143
+ }, (m !== void 0 ? m : null) !== null ? Object.defineProperty(e, "ref", {
144
+ enumerable: !1,
145
+ get: d
146
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
435
147
  configurable: !1,
436
148
  enumerable: !1,
437
149
  writable: !0,
438
- value: !1
439
- }), Object.defineProperty(l, "_self", {
150
+ value: 0
151
+ }), Object.defineProperty(e, "_debugInfo", {
440
152
  configurable: !1,
441
153
  enumerable: !1,
442
- writable: !1,
443
- value: n
444
- }), Object.defineProperty(l, "_source", {
154
+ writable: !0,
155
+ value: null
156
+ }), Object.defineProperty(e, "_debugStack", {
445
157
  configurable: !1,
446
158
  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
- }
468
- }
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);
474
- } 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);
521
- }
522
- }
523
- function Te(e, r) {
524
- {
525
- if (typeof e != "object")
526
- return;
527
- if (X(e))
528
- for (var t = 0; t < e.length; t++) {
529
- var n = e[t];
530
- re(n) && we(n, r);
531
- }
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
- }
540
- }
541
- }
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
- }
578
- }
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:
159
+ writable: !0,
160
+ value: w
161
+ }), Object.defineProperty(e, "_debugTask", {
162
+ configurable: !1,
163
+ enumerable: !1,
164
+ writable: !0,
165
+ value: A
166
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
167
+ }
168
+ function f(e, l, p, b, w, A) {
169
+ var m = l.children;
170
+ if (m !== void 0)
171
+ if (b)
172
+ if (ce(m)) {
173
+ for (b = 0; b < m.length; b++)
174
+ g(m[b]);
175
+ Object.freeze && Object.freeze(m);
176
+ } else
177
+ console.error(
178
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
+ );
180
+ else g(m);
181
+ if (M.call(l, "key")) {
182
+ m = r(e);
183
+ var j = Object.keys(l).filter(function(ue) {
184
+ return ue !== "key";
185
+ });
186
+ b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", L[m + b] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
187
+ `A props object containing a "key" prop is being spread into JSX:
614
188
  let props = %s;
615
189
  <%s {...props} />
616
190
  React keys must be passed directly to JSX without using spread:
617
191
  let props = %s;
618
- <%s key={someKey} {...props} />`, te, q, xr, q), Ce[q + te] = !0;
619
- }
620
- }
621
- return e === x ? vr(_) : pr(_), _;
192
+ <%s key={someKey} {...props} />`,
193
+ b,
194
+ m,
195
+ j,
196
+ m
197
+ ), L[m + b] = !0);
198
+ }
199
+ if (m = null, p !== void 0 && (c(p), m = "" + p), o(l) && (c(l.key), m = "" + l.key), "key" in l) {
200
+ p = {};
201
+ for (var O in l)
202
+ O !== "key" && (p[O] = l[O]);
203
+ } else p = l;
204
+ return m && u(
205
+ p,
206
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
+ ), x(
208
+ e,
209
+ m,
210
+ p,
211
+ a(),
212
+ w,
213
+ A
214
+ );
215
+ }
216
+ function g(e) {
217
+ h(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === P && (e._payload.status === "fulfilled" ? h(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
+ }
219
+ function h(e) {
220
+ return typeof e == "object" && e !== null && e.$$typeof === q;
221
+ }
222
+ var v = R, q = /* @__PURE__ */ Symbol.for("react.transitional.element"), K = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), ee = /* @__PURE__ */ Symbol.for("react.strict_mode"), re = /* @__PURE__ */ Symbol.for("react.profiler"), se = /* @__PURE__ */ Symbol.for("react.consumer"), te = /* @__PURE__ */ Symbol.for("react.context"), le = /* @__PURE__ */ Symbol.for("react.forward_ref"), ae = /* @__PURE__ */ Symbol.for("react.suspense"), oe = /* @__PURE__ */ Symbol.for("react.suspense_list"), ie = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), de = /* @__PURE__ */ Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
223
+ return null;
224
+ };
225
+ v = {
226
+ react_stack_bottom_frame: function(e) {
227
+ return e();
622
228
  }
623
- }
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);
629
- }
630
- var hr = mr, gr = br;
631
- V.Fragment = x, V.jsx = hr, V.jsxs = gr;
632
- }()), V;
229
+ };
230
+ var F, Y = {}, z = v.react_stack_bottom_frame.bind(
231
+ v,
232
+ s
233
+ )(), D = S(n(s)), L = {};
234
+ _.Fragment = k, _.jsx = function(e, l, p) {
235
+ var b = 1e4 > C.recentlyCreatedOwnerStacks++;
236
+ return f(
237
+ e,
238
+ l,
239
+ p,
240
+ !1,
241
+ b ? Error("react-stack-top-frame") : z,
242
+ b ? S(n(e)) : D
243
+ );
244
+ }, _.jsxs = function(e, l, p) {
245
+ var b = 1e4 > C.recentlyCreatedOwnerStacks++;
246
+ return f(
247
+ e,
248
+ l,
249
+ p,
250
+ !0,
251
+ b ? Error("react-stack-top-frame") : z,
252
+ b ? S(n(e)) : D
253
+ );
254
+ };
255
+ })()), _;
633
256
  }
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({
257
+ var U;
258
+ function be() {
259
+ return U || (U = 1, process.env.NODE_ENV === "production" ? I.exports = fe() : I.exports = pe()), I.exports;
260
+ }
261
+ var t = be();
262
+ const y = (...r) => r.filter(Boolean).join(" ");
263
+ var N;
264
+ ((r) => {
265
+ r.clickable = `
266
+ px-2
267
+ min-h-[calc(44/16*1rem)]
268
+ border
269
+ border-transparent
270
+ rounded-lg
271
+ hover:bg-solid-grey-50
272
+ `, r.selected = `
273
+ rounded-full
274
+ bg-yellow-50
275
+ `;
276
+ const i = `
277
+ focus-visible:outline-4
278
+ focus-visible:outline-black
279
+ focus-visible:ring-yellow-300
280
+ `;
281
+ r.focusRectCondensed = `
282
+ ${i}
283
+ focus-visible:-outline-offset-4
284
+ focus-visible:ring-[calc(6/16*1rem)]
285
+ focus-visible:ring-inset
286
+ `, r.focusRectCondensedWithBg = `
287
+ ${r.focusRectCondensed}
288
+ focus-visible:bg-yellow-300
289
+ `, r.focusRect = `
290
+ ${i}
291
+ focus-visible:outline-offset-[calc(2/16*1rem)]
292
+ focus-visible:ring-[calc(2/16*1rem)]
293
+ `, r.focusRounded = `
294
+ ${r.focusRect}
295
+ focus-visible:rounded-sm
296
+ `, r.focusCard = `
297
+ ${r.focusRect}
298
+ focus-visible:rounded-2xl
299
+ sm:focus-visible:rounded-3xl
300
+ `, r.focusRectWithBg = `
301
+ ${r.focusRect}
302
+ focus-visible:bg-yellow-300
303
+ `, r.focusRoundedWithBg = `
304
+ ${r.focusRectWithBg}
305
+ focus-visible:rounded-sm
306
+ `, r.hoverUnderline = `
307
+ hover:underline
308
+ hover:underline-offset-[calc(3/16*1rem)]
309
+ `, r.underline = `
310
+ underline
311
+ underline-offset-[calc(3/16*1rem)]
312
+ hover:decoration-[calc(3/16*1rem)]
313
+ `, r.underlineNoDeco = `
314
+ underline
315
+ underline-offset-[calc(3/16*1rem)]
316
+ `, r.popover = `
317
+ min-w-fit
318
+ w-auto
319
+ py-2
320
+ bg-white
321
+ shadow-1
322
+ rounded-lg
323
+ border
324
+ border-solid-grey-420
325
+ has-[>:nth-child(7)]:rounded-r-none
326
+ `, r.popoverPositionBottomRight = `
327
+ absolute
328
+ top-11
329
+ right-0
330
+ `, r.popoverPositionBottomLeft = `
331
+ absolute
332
+ top-11
333
+ left-0
334
+ `, ((c) => {
335
+ c.focus = `
336
+ peer-focus-visible:outline-4
337
+ peer-focus-visible:outline-black
338
+ peer-focus-visible:ring-yellow-300
339
+ `, c.focusRect = `
340
+ ${c.focus}
341
+ peer-focus-visible:outline-offset-[calc(2/16*1rem)]
342
+ peer-focus-visible:ring-[calc(2/16*1rem)]
343
+ `;
344
+ })(r.Peer || (r.Peer = {}));
345
+ })(N || (N = {}));
346
+ const T = R.createContext({
637
347
  helperTextId: "",
638
348
  errorMessageId: "",
639
349
  isInvalid: !1,
640
350
  isRequired: !1
641
- }), ke = `
351
+ }), G = `
642
352
  bg-white
643
353
  border
644
354
  border-solid
645
- border-sumi-900
646
- outline-offset-2
647
- focus:outline
648
- focus:outline-2
649
- focus:outline-wood-500
355
+ border-solid-gray-900
650
356
  disabled:bg-transparent
651
- disabled:text-sumi-500
652
- disabled:border-sumi-500
653
- aria-invalid:border-sun-800
654
- `, Ne = {
357
+ disabled:text-solid-gray-500
358
+ disabled:border-solid-gray-500
359
+ aria-invalid:border-red-800
360
+ ${N.focusRect}
361
+ `, V = {
655
362
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
656
363
  lg: `
657
364
  p-4
@@ -675,13 +382,13 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
675
382
  rounded-md
676
383
  leading-snug
677
384
  `
678
- }, Oe = `
385
+ }, J = `
679
386
  inline-block
680
387
  cursor-pointer
681
388
  border
682
389
  border-solid
683
390
  border-transparent
684
- `, Fe = {
391
+ `, H = {
685
392
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
686
393
  lg: `
687
394
  pr-8
@@ -703,513 +410,494 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
703
410
  text-label
704
411
  leading-snug
705
412
  `
706
- }, qe = {
413
+ }, X = {
707
414
  lg: "w-[22px] h-[22px] mr-2",
708
415
  md: "w-[18px] h-[18px] mr-1.5",
709
416
  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",
417
+ }, Z = (r) => {
418
+ const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
419
+ d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
420
+ const x = {
421
+ lg: 22 / 24,
422
+ md: 18 / 24,
423
+ sm: 18 / 24
424
+ }, f = `
425
+ peer
426
+ sr-only
427
+ `, g = `
428
+ bg-clip-content
429
+ rounded-sm
430
+ border
431
+ border-solid
432
+ border-solid-gray-900
433
+ fill-transparent
434
+ peer-checked:fill-white
435
+ peer-checked:bg-blue-600
436
+ peer-checked:border-none
437
+ peer-disabled:border-solid-gray-500
438
+ ${N.Peer.focusRect}
439
+ `;
440
+ return /* @__PURE__ */ t.jsx(
441
+ "label",
442
+ {
443
+ htmlFor: u,
444
+ className: y(
445
+ J,
446
+ H[n],
447
+ c
448
+ ),
449
+ children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
450
+ /* @__PURE__ */ t.jsx(
451
+ "input",
452
+ {
453
+ id: u,
454
+ className: f,
455
+ type: "checkbox",
456
+ "aria-describedby": d.helperTextId,
457
+ "aria-errormessage": d.errorMessageId,
458
+ "aria-invalid": d.isInvalid ?? !1,
459
+ "aria-required": d.isRequired ?? !1,
460
+ ...s
461
+ }
462
+ ),
463
+ /* @__PURE__ */ t.jsx("span", { className: y(g, X[n]), children: /* @__PURE__ */ t.jsx(
464
+ "svg",
465
+ {
466
+ xmlns: "http://www.w3.org/2000/svg",
467
+ "aria-hidden": !0,
468
+ width: "24",
469
+ height: "24",
470
+ viewBox: "0 0 24 24",
471
+ children: /* @__PURE__ */ t.jsx("g", { transform: `scale(${x[n]} ${x[n]})`, children: /* @__PURE__ */ t.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" }) })
472
+ }
473
+ ) }),
474
+ /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
475
+ ] })
476
+ }
477
+ );
478
+ };
479
+ Z.displayName = "Checkbox";
480
+ const Q = (r) => {
481
+ const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
482
+ d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
483
+ const x = `
484
+ peer
485
+ sr-only
486
+ `, f = `
487
+ bg-clip-content
488
+ rounded-full
489
+ border
490
+ border-solid
491
+ border-solid-gray-900
492
+ peer-checked:bg-blue-600
493
+ peer-checked:border-blue-600
494
+ peer-disabled:border-solid-gray-500
495
+ ${N.Peer.focusRect}
496
+ `, g = {
497
+ lg: "p-1",
498
+ md: "p-[3px]",
499
+ sm: "p-[3px]"
500
+ };
501
+ return /* @__PURE__ */ t.jsx(
502
+ "label",
503
+ {
504
+ htmlFor: u,
505
+ className: y(
506
+ J,
507
+ H[n],
508
+ c
509
+ ),
510
+ children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
511
+ /* @__PURE__ */ t.jsx(
512
+ "input",
513
+ {
514
+ id: u,
515
+ className: x,
516
+ type: "radio",
517
+ "aria-describedby": d.helperTextId,
518
+ "aria-errormessage": d.errorMessageId,
519
+ "aria-invalid": d.isInvalid ?? !1,
520
+ "aria-required": d.isRequired ?? !1,
521
+ ...s
522
+ }
523
+ ),
524
+ /* @__PURE__ */ t.jsx(
525
+ "span",
526
+ {
527
+ "aria-hidden": !0,
528
+ className: y(f, g[n], X[n])
529
+ }
530
+ ),
531
+ /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
532
+ ] })
533
+ }
534
+ );
535
+ };
536
+ Q.displayName = "Radio";
537
+ const me = (r) => {
538
+ const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useContext(T);
539
+ return o.isRequired && (s.required = !0), /* @__PURE__ */ t.jsxs("div", { className: "inline-block relative", children: [
540
+ /* @__PURE__ */ t.jsx(
541
+ "select",
721
542
  {
722
- htmlFor: o,
723
- className: C(
724
- Oe,
725
- Fe[f],
726
- x
543
+ id: i || o.id,
544
+ className: y(
545
+ `
546
+ !pr-8
547
+ peer
548
+ cursor-pointer
549
+ appearance-none
550
+ `,
551
+ G,
552
+ V[n],
553
+ c
727
554
  ),
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
- ] })
555
+ "aria-describedby": o.helperTextId,
556
+ "aria-errormessage": o.errorMessageId,
557
+ "aria-invalid": o.isInvalid ?? !1,
558
+ "aria-required": o.isRequired ?? !1,
559
+ ...s,
560
+ children: a
776
561
  }
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",
562
+ ),
563
+ /* @__PURE__ */ t.jsxs(
564
+ "svg",
807
565
  {
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",
566
+ xmlns: "http://www.w3.org/2000/svg",
567
+ "aria-hidden": !0,
568
+ className: `
569
+ pointer-events-none
570
+ absolute
571
+ right-4
572
+ top-1/2
573
+ -translate-y-1/2
574
+ text-solid-gray-900
575
+ peer-disabled:text-solid-gray-500
576
+ `,
577
+ fill: "none",
578
+ width: "16",
579
+ height: "16",
580
+ viewBox: "0 0 16 16",
581
+ children: [
582
+ /* @__PURE__ */ t.jsx("title", { children: "arrow down" }),
583
+ /* @__PURE__ */ t.jsx(
584
+ "path",
831
585
  {
832
- "aria-hidden": !0,
833
- className: C(h, d[f], qe[f])
586
+ d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
587
+ fill: "currentColor"
834
588
  }
835
- ),
836
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
837
- ] })
589
+ )
590
+ ]
838
591
  }
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
- `, `
592
+ )
593
+ ] });
594
+ };
595
+ me.displayName = "Select";
596
+ const xe = (r) => {
597
+ const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
598
+ s.isRequired && (a.required = !0);
599
+ const o = `
600
+ file:mr-2
601
+ file:inline-block
602
+ file:text-button
603
+ file:text-center
604
+ file:cursor-pointer
605
+ file:select-none
606
+ file:touch-manipulation
607
+ file:whitespace-nowrap
608
+ file:border
609
+ file:border-solid
610
+ file:border-blue-900
611
+ file:hover:border-blue-1000
612
+ file:active:border-blue-1200
613
+ file:disabled:border-solid-gray-500
614
+ file:disabled:cursor-not-allowed
615
+ `, u = `
616
+ file:text-blue-900
617
+ file:hover:text-blue-1000
618
+ file:active:text-blue-1200
619
+ file:bg-transparent
620
+ file:hover:bg-blue-200
621
+ file:active:bg-blue-300
622
+ file:disabled:text-solid-gray-500
623
+ file:disabled:bg-transparent
624
+ `, d = `
625
+ text-label
626
+ text-solid-gray-900
627
+ rounded-lg
628
+ outline-offset-2
629
+ aria-invalid:text-red-800
630
+ ${N.hoverUnderline}
631
+ ${N.focusRounded}
632
+ `, x = {
633
+ // 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
634
+ lg: `
937
635
  file:p-4
938
636
  file:text-button
939
637
  file:rounded-lg
940
638
  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(
639
+ `,
640
+ // 12(py-3) * 2 + 22(text-button * leading-snug) + boader * 2 = 48px
641
+ md: `
642
+ file:px-4
643
+ file:py-3
644
+ file:text-button
645
+ file:rounded-lg
646
+ file:leading-snug
647
+ `,
648
+ // 8(py-2) * 2 + 22(text-button * leading-snug) + boader * 2 = 40px
649
+ sm: `
650
+ file:px-3
651
+ file:py-2
652
+ file:text-button
653
+ file:rounded-md
654
+ file:leading-snug
655
+ `
656
+ };
657
+ return (
658
+ // biome-ignore lint/a11y/useAriaPropsSupportedByRole: see the TODO above
659
+ // biome-ignore lint/a11y/useSemanticElements: see the TODO above
660
+ /* @__PURE__ */ t.jsx(
966
661
  "input",
967
662
  {
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
663
+ type: "file",
664
+ id: i || s.id,
665
+ className: y(o, u, x[n], d, c),
666
+ "aria-describedby": s.helperTextId,
667
+ "aria-errormessage": s.errorMessageId,
668
+ "aria-invalid": s.isInvalid ?? !1,
669
+ "aria-required": s.isRequired ?? !1,
670
+ role: "button",
671
+ "aria-label": "File Upload",
672
+ ...a
981
673
  }
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(`
674
+ )
675
+ );
676
+ };
677
+ xe.displayName = "FileInput";
678
+ const ge = (r) => {
679
+ const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
680
+ return s.isRequired && (a.required = !0), /* @__PURE__ */ t.jsx(
681
+ "input",
682
+ {
683
+ type: "text",
684
+ id: i || s.id,
685
+ className: y(
686
+ G,
687
+ V[n],
688
+ c
689
+ ),
690
+ "aria-describedby": s.helperTextId,
691
+ "aria-errormessage": s.errorMessageId,
692
+ "aria-invalid": s.isInvalid ?? !1,
693
+ "aria-required": s.isRequired ?? !1,
694
+ ...a
695
+ }
696
+ );
697
+ };
698
+ ge.displayName = "Input";
699
+ const he = (r) => {
700
+ const { id: i, className: c, children: n, onChange: a, maxLength: s, ...o } = r, [u, d] = R.useState(0), x = (v) => {
701
+ a && a(v), d(v.target.value.length);
702
+ }, f = R.useContext(T);
703
+ f.isRequired && (o.required = !0);
704
+ const g = u > (s || 0) ? "text-red-800" : "text-solid-gray-700", h = `
999
705
  p-4
1000
706
  text-label
1001
707
  rounded-lg
1002
708
  border
1003
709
  border-solid
1004
- border-sumi-900
1005
- outline-offset-2
1006
- focus:outline
1007
- focus:outline-2
1008
- focus:outline-wood-500
710
+ border-solid-gray-900
1009
711
  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,
712
+ disabled:text-solid-gray-500
713
+ disabled:border-solid-gray-500
714
+ aria-invalid:border-red-800
715
+ ${N.focusRect}
716
+ `;
717
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
718
+ /* @__PURE__ */ t.jsx(
719
+ "textarea",
720
+ {
721
+ id: i || f.id,
722
+ className: y(h, c),
723
+ "aria-describedby": f.helperTextId,
724
+ "aria-errormessage": f.errorMessageId,
725
+ "aria-invalid": f.isInvalid ?? !1,
726
+ "aria-required": f.isRequired ?? !1,
727
+ onChange: x,
728
+ ...o,
729
+ children: n
730
+ }
731
+ ),
732
+ s ? /* @__PURE__ */ t.jsxs("p", { className: "text-label text-solid-gray-700", children: [
733
+ /* @__PURE__ */ t.jsx("span", { className: g, children: u }),
734
+ "/",
735
+ /* @__PURE__ */ t.jsx("span", { children: s })
736
+ ] }) : ""
737
+ ] });
738
+ };
739
+ he.displayName = "Textarea";
740
+ const ve = (r) => {
741
+ const i = R.useId(), {
742
+ labelText: c,
743
+ className: n,
744
+ helperText: a,
745
+ errorMessage: s,
1039
746
  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}`,
747
+ isRequired: u,
748
+ children: d,
749
+ ...x
750
+ } = r, f = {
751
+ id: r.htmlFor ?? `input-${i}`,
752
+ helperTextId: `helper-text-${i}`,
753
+ errorMessageId: `error-message-${i}`,
1047
754
  isInvalid: o ?? !1,
1048
- isRequired: a ?? !1
755
+ isRequired: u ?? !1
1049
756
  };
1050
- return /* @__PURE__ */ s.jsx(O.Provider, { value: d, children: /* @__PURE__ */ s.jsxs("div", { className: C("mb-4", f), children: [
1051
- /* @__PURE__ */ s.jsxs(
757
+ return /* @__PURE__ */ t.jsx(T.Provider, { value: f, children: /* @__PURE__ */ t.jsxs("div", { className: y("flex flex-col items-start gap-2", n), children: [
758
+ /* @__PURE__ */ t.jsxs(
1052
759
  "label",
1053
760
  {
1054
- className: C("block mb-2 text-label", o && "text-sun-800"),
1055
- htmlFor: d.id,
1056
- ref: g,
1057
- ...h,
761
+ className: y("block text-label", o && "text-red-800"),
762
+ htmlFor: f.id,
763
+ ...x,
1058
764
  children: [
1059
- x,
1060
- a && /* @__PURE__ */ s.jsx("span", { className: "text-label text-sun-800", children: " *" })
765
+ c,
766
+ u && /* @__PURE__ */ t.jsx("span", { className: "text-label text-red-800", children: " *" })
1061
767
  ]
1062
768
  }
1063
769
  ),
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
- )
770
+ a && /* @__PURE__ */ t.jsx("p", { id: f.helperTextId, className: `
771
+ text-label text-solid-gray-700
772
+ `, children: a }),
773
+ d,
774
+ o && /* @__PURE__ */ t.jsx("p", { id: f.errorMessageId, className: `
775
+ text-label text-red-800
776
+ `, children: s })
1078
777
  ] }) });
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,
778
+ };
779
+ ve.displayName = "LabelControl";
780
+ const $ = (r) => {
781
+ const i = R.useId(), {
782
+ labelText: c,
783
+ className: n,
784
+ helperText: a,
785
+ errorMessage: s,
1087
786
  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}`,
787
+ isRequired: u,
788
+ direction: d,
789
+ children: x,
790
+ ...f
791
+ } = r, h = {
792
+ groupName: f.name ?? `group-${i}`,
793
+ helperTextId: `helper-text-${i}`,
794
+ errorMessageId: `error-message-${i}`,
1096
795
  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",
1102
- {
1103
- className: C("block mb-2 text-label", o && "text-sun-800"),
1104
- children: [
1105
- x,
1106
- a && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
1107
- ]
1108
- }
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
- )
1123
- ] }) });
1124
- });
1125
- ne.displayName = "FieldsetControl";
1126
- const Cr = y.forwardRef((v, g) => {
796
+ isRequired: u ?? !1
797
+ }, v = d ?? "flex-col";
798
+ return /* @__PURE__ */ t.jsx(T.Provider, { value: h, children: /* @__PURE__ */ t.jsxs(
799
+ "fieldset",
800
+ {
801
+ className: y("flex flex-col items-start gap-2", n),
802
+ ...f,
803
+ children: [
804
+ /* @__PURE__ */ t.jsx("legend", { children: /* @__PURE__ */ t.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
805
+ c,
806
+ u && /* @__PURE__ */ t.jsx("span", { className: "text-red-800", children: " *" })
807
+ ] }) }),
808
+ /* @__PURE__ */ t.jsx("div", { className: y("inline-flex", v), children: x }),
809
+ a && /* @__PURE__ */ t.jsx("p", { id: h.helperTextId, className: "text-sup text-solid-gray-700", children: a }),
810
+ o && /* @__PURE__ */ t.jsx("p", { id: h.errorMessageId, className: "text-label text-red-800", children: s })
811
+ ]
812
+ }
813
+ ) });
814
+ };
815
+ $.displayName = "FieldsetControl";
816
+ const ye = (r) => {
1127
817
  const {
1128
- items: b,
1129
- onChange: x,
1130
- className: f,
1131
- labelText: u,
1132
- helperText: i,
818
+ items: i,
819
+ onChange: c,
820
+ className: n,
821
+ labelText: a,
822
+ helperText: s,
1133
823
  errorMessage: o,
1134
- isInvalid: a,
1135
- isRequired: R,
1136
- size: h,
1137
- ...d
1138
- } = v;
1139
- return /* @__PURE__ */ s.jsx(
1140
- ne,
824
+ isInvalid: u,
825
+ isRequired: d,
826
+ size: x,
827
+ ...f
828
+ } = r;
829
+ return /* @__PURE__ */ t.jsx(
830
+ $,
1141
831
  {
1142
- className: f,
1143
- labelText: u,
1144
- helperText: i,
832
+ className: n,
833
+ labelText: a,
834
+ helperText: s,
1145
835
  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,
836
+ isInvalid: u,
837
+ isRequired: d,
838
+ ...f,
839
+ children: i.map(({ label: g, value: h }) => /* @__PURE__ */ t.jsx(
840
+ Z,
1152
841
  {
1153
- size: h,
1154
- value: w,
1155
- onChange: x,
1156
- children: j
842
+ size: x,
843
+ value: h,
844
+ onChange: c,
845
+ children: g
1157
846
  },
1158
- `${j}-${w}`
847
+ `${g}-${h}`
1159
848
  ))
1160
849
  }
1161
850
  );
1162
- });
1163
- Cr.displayName = "CheckboxGroup";
1164
- const Ir = y.forwardRef((v, g) => {
851
+ };
852
+ ye.displayName = "CheckboxGroup";
853
+ const Re = (r) => {
1165
854
  const {
1166
- items: b,
1167
- onChange: x,
1168
- className: f,
1169
- labelText: u,
1170
- helperText: i,
855
+ items: i,
856
+ onChange: c,
857
+ className: n,
858
+ labelText: a,
859
+ helperText: s,
1171
860
  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,
861
+ isInvalid: u,
862
+ isRequired: d,
863
+ defaultValue: x,
864
+ size: f,
865
+ ...g
866
+ } = r;
867
+ return /* @__PURE__ */ t.jsx(
868
+ $,
1180
869
  {
1181
- className: f,
1182
- labelText: u,
1183
- helperText: i,
870
+ className: n,
871
+ labelText: a,
872
+ helperText: s,
1184
873
  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,
874
+ isInvalid: u,
875
+ isRequired: d,
876
+ ...g,
877
+ children: i.map(({ label: h, value: v }) => /* @__PURE__ */ t.jsx(
878
+ Q,
1191
879
  {
1192
- size: d,
1193
- value: k,
1194
- onChange: x,
1195
- defaultChecked: h === k,
1196
- children: w
880
+ size: f,
881
+ value: v,
882
+ onChange: c,
883
+ defaultChecked: x === v,
884
+ children: h
1197
885
  },
1198
- `${w}-${k}`
886
+ `${h}-${v}`
1199
887
  ))
1200
888
  }
1201
889
  );
1202
- });
1203
- Ir.displayName = "RadioGroup";
890
+ };
891
+ Re.displayName = "RadioGroup";
1204
892
  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
893
+ Z as Checkbox,
894
+ ye as CheckboxGroup,
895
+ $ as FieldsetControl,
896
+ xe as FileInput,
897
+ ge as Input,
898
+ ve as LabelControl,
899
+ Q as Radio,
900
+ Re as RadioGroup,
901
+ me as Select,
902
+ he as Textarea
1215
903
  };