@gram-ai/elements 1.33.2 → 1.35.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 (243) hide show
  1. package/dist/compat-shims-CO9JXXV4.cjs.map +1 -1
  2. package/dist/compat-shims-DxtUrORi.js.map +1 -1
  3. package/dist/compat-shims.d.ts +9 -8
  4. package/dist/components/Chat/index.d.ts +2 -1
  5. package/dist/components/ChatHistory.d.ts +1 -1
  6. package/dist/components/FrontendTools/index.d.ts +1 -1
  7. package/dist/components/Replay.d.ts +1 -1
  8. package/dist/components/Replay.stories.d.ts +2 -2
  9. package/dist/components/ShadowRoot.d.ts +1 -1
  10. package/dist/components/ShareButton/index.d.ts +1 -1
  11. package/dist/components/ui/avatar.d.ts +3 -3
  12. package/dist/components/ui/button.d.ts +2 -2
  13. package/dist/components/ui/buttonVariants.d.ts +2 -2
  14. package/dist/components/ui/calendar.d.ts +2 -1
  15. package/dist/components/ui/collapsible.d.ts +3 -3
  16. package/dist/components/ui/dialog.d.ts +10 -10
  17. package/dist/components/ui/popover.d.ts +4 -4
  18. package/dist/components/ui/skeleton.d.ts +1 -1
  19. package/dist/components/ui/time-range-picker.d.ts +18 -1
  20. package/dist/components/ui/time-range-picker.test.d.ts +1 -0
  21. package/dist/components/ui/tool-ui.d.ts +7 -7
  22. package/dist/components/ui/tooltip.d.ts +4 -4
  23. package/dist/contexts/ConnectionStatusContext.d.ts +1 -1
  24. package/dist/contexts/ElementsProvider.d.ts +1 -1
  25. package/dist/contexts/ToolApprovalContext.d.ts +2 -2
  26. package/dist/contexts/ToolExecutionContext.d.ts +1 -1
  27. package/dist/contexts/portal-container.d.ts +1 -1
  28. package/dist/elements.cjs +1 -1
  29. package/dist/elements.css +1 -1
  30. package/dist/elements.js +19 -16
  31. package/dist/hooks/useDensity.d.ts +1 -1
  32. package/dist/hooks/useElements.d.ts +2 -1
  33. package/dist/hooks/useGramThreadListAdapter.d.ts +26 -0
  34. package/dist/hooks/useRadius.d.ts +1 -1
  35. package/dist/hooks/useThemeProps.d.ts +1 -1
  36. package/dist/hooks/useToolApproval.d.ts +2 -1
  37. package/dist/{index-reVrRxP1.js → index-BhIowiZF.js} +9744 -9493
  38. package/dist/index-BhIowiZF.js.map +1 -0
  39. package/dist/{index-DAWGW1Nj.cjs → index-D0jIGQr7.cjs} +43 -43
  40. package/dist/index-D0jIGQr7.cjs.map +1 -0
  41. package/dist/{index-CGoLfO5p.js → index-Dz13dSDa.js} +108 -51
  42. package/dist/index-Dz13dSDa.js.map +1 -0
  43. package/dist/index-PXd3rs95.cjs +194 -0
  44. package/dist/index-PXd3rs95.cjs.map +1 -0
  45. package/dist/index.d.ts +4 -1
  46. package/dist/lib/errorTracking.d.ts +1 -1
  47. package/dist/lib/messageConverter.d.ts +58 -8
  48. package/dist/lib/models.d.ts +1 -1
  49. package/dist/lib/tools.d.ts +11 -10
  50. package/dist/lib/utils.d.ts +2 -0
  51. package/dist/plugins/generative-ui/catalog.d.ts +3 -3
  52. package/dist/plugins/generative-ui/ui/accordion-wrapper.d.ts +2 -2
  53. package/dist/plugins/generative-ui/ui/accordion.d.ts +4 -4
  54. package/dist/plugins/generative-ui/ui/action-button.d.ts +1 -1
  55. package/dist/plugins/generative-ui/ui/alert-wrapper.d.ts +2 -1
  56. package/dist/plugins/generative-ui/ui/alert.d.ts +3 -3
  57. package/dist/plugins/generative-ui/ui/avatar-wrapper.d.ts +2 -1
  58. package/dist/plugins/generative-ui/ui/avatar.d.ts +6 -6
  59. package/dist/plugins/generative-ui/ui/badge.d.ts +2 -2
  60. package/dist/plugins/generative-ui/ui/button-wrapper.d.ts +2 -1
  61. package/dist/plugins/generative-ui/ui/button.d.ts +3 -3
  62. package/dist/plugins/generative-ui/ui/card-wrapper.d.ts +1 -1
  63. package/dist/plugins/generative-ui/ui/card.d.ts +7 -7
  64. package/dist/plugins/generative-ui/ui/checkbox-wrapper.d.ts +2 -1
  65. package/dist/plugins/generative-ui/ui/checkbox.d.ts +1 -1
  66. package/dist/plugins/generative-ui/ui/data-table.d.ts +1 -1
  67. package/dist/plugins/generative-ui/ui/dialog.d.ts +10 -10
  68. package/dist/plugins/generative-ui/ui/dropdown-menu.d.ts +15 -15
  69. package/dist/plugins/generative-ui/ui/grid.d.ts +1 -1
  70. package/dist/plugins/generative-ui/ui/index.d.ts +57 -40
  71. package/dist/plugins/generative-ui/ui/input-wrapper.d.ts +2 -1
  72. package/dist/plugins/generative-ui/ui/input.d.ts +1 -1
  73. package/dist/plugins/generative-ui/ui/label.d.ts +1 -1
  74. package/dist/plugins/generative-ui/ui/list.d.ts +2 -1
  75. package/dist/plugins/generative-ui/ui/metric.d.ts +1 -1
  76. package/dist/plugins/generative-ui/ui/pagination.d.ts +7 -7
  77. package/dist/plugins/generative-ui/ui/popover.d.ts +7 -7
  78. package/dist/plugins/generative-ui/ui/progress.d.ts +1 -1
  79. package/dist/plugins/generative-ui/ui/radio-group.d.ts +2 -2
  80. package/dist/plugins/generative-ui/ui/select-wrapper.d.ts +2 -1
  81. package/dist/plugins/generative-ui/ui/select.d.ts +10 -10
  82. package/dist/plugins/generative-ui/ui/separator.d.ts +1 -1
  83. package/dist/plugins/generative-ui/ui/skeleton-wrapper.d.ts +2 -1
  84. package/dist/plugins/generative-ui/ui/skeleton.d.ts +1 -1
  85. package/dist/plugins/generative-ui/ui/stack.d.ts +1 -1
  86. package/dist/plugins/generative-ui/ui/switch.d.ts +1 -1
  87. package/dist/plugins/generative-ui/ui/table.d.ts +8 -8
  88. package/dist/plugins/generative-ui/ui/tabs-wrapper.d.ts +2 -2
  89. package/dist/plugins/generative-ui/ui/tabs.d.ts +4 -4
  90. package/dist/plugins/generative-ui/ui/text.d.ts +1 -1
  91. package/dist/plugins/generative-ui/ui/textarea.d.ts +1 -1
  92. package/dist/plugins/generative-ui/ui/tooltip.d.ts +4 -4
  93. package/dist/plugins.cjs +1 -1
  94. package/dist/plugins.js +1 -1
  95. package/dist/{profiler-noho3NG9.js → profiler-CtGKTWWP.js} +2 -2
  96. package/dist/{profiler-noho3NG9.js.map → profiler-CtGKTWWP.js.map} +1 -1
  97. package/dist/{profiler-B3tfiOx4.cjs → profiler-l7_HjTyw.cjs} +2 -2
  98. package/dist/{profiler-B3tfiOx4.cjs.map → profiler-l7_HjTyw.cjs.map} +1 -1
  99. package/dist/react-shim.cjs.map +1 -1
  100. package/dist/react-shim.d.ts +1 -1
  101. package/dist/react-shim.js +1 -4
  102. package/dist/react-shim.js.map +1 -1
  103. package/dist/server/bun.cjs.map +1 -1
  104. package/dist/server/bun.js.map +1 -1
  105. package/dist/server/express.cjs.map +1 -1
  106. package/dist/server/express.js.map +1 -1
  107. package/dist/server/fastify.cjs.map +1 -1
  108. package/dist/server/fastify.js.map +1 -1
  109. package/dist/server/hono.cjs.map +1 -1
  110. package/dist/server/hono.js.map +1 -1
  111. package/dist/server/nextjs.cjs.map +1 -1
  112. package/dist/server/nextjs.js.map +1 -1
  113. package/dist/server/tanstack-start.cjs.map +1 -1
  114. package/dist/server/tanstack-start.js.map +1 -1
  115. package/dist/{startRecording-7Oy6wM18.cjs → startRecording-DEw2Aeq4.cjs} +2 -2
  116. package/dist/{startRecording-7Oy6wM18.cjs.map → startRecording-DEw2Aeq4.cjs.map} +1 -1
  117. package/dist/{startRecording-mkmig-2n.js → startRecording-iYEL0-vr.js} +2 -2
  118. package/dist/{startRecording-mkmig-2n.js.map → startRecording-iYEL0-vr.js.map} +1 -1
  119. package/dist/types/index.d.ts +93 -4
  120. package/package.json +8 -9
  121. package/src/compat-shims.ts +16 -2
  122. package/src/components/Chat/index.tsx +4 -1
  123. package/src/components/Chat/stories/FrontendTools.stories.tsx +1 -1
  124. package/src/components/Chat/stories/ToolApproval.stories.tsx +2 -2
  125. package/src/components/Chat/stories/Tools.stories.tsx +13 -5
  126. package/src/components/ChatHistory.tsx +3 -1
  127. package/src/components/FrontendTools/index.tsx +1 -1
  128. package/src/components/MessageContent.tsx +1 -0
  129. package/src/components/Replay.stories.tsx +2 -3
  130. package/src/components/Replay.tsx +17 -10
  131. package/src/components/ShadowRoot.tsx +2 -2
  132. package/src/components/ShareButton/index.tsx +4 -2
  133. package/src/components/assistant-ui/assistant-modal.tsx +5 -3
  134. package/src/components/assistant-ui/attachment.tsx +1 -1
  135. package/src/components/assistant-ui/error-boundary.tsx +1 -1
  136. package/src/components/assistant-ui/markdown-text.tsx +1 -1
  137. package/src/components/assistant-ui/thread.tsx +256 -14
  138. package/src/components/assistant-ui/tool-mention-autocomplete.tsx +1 -1
  139. package/src/components/ui/avatar.tsx +3 -3
  140. package/src/components/ui/calendar.tsx +1 -1
  141. package/src/components/ui/collapsible.tsx +7 -3
  142. package/src/components/ui/dialog.tsx +18 -10
  143. package/src/components/ui/generative-ui.tsx +9 -4
  144. package/src/components/ui/popover.tsx +4 -4
  145. package/src/components/ui/skeleton.tsx +4 -1
  146. package/src/components/ui/time-range-picker.stories.tsx +164 -154
  147. package/src/components/ui/time-range-picker.test.ts +57 -0
  148. package/src/components/ui/time-range-picker.tsx +40 -9
  149. package/src/components/ui/tool-ui.tsx +18 -9
  150. package/src/components/ui/tooltip.tsx +4 -4
  151. package/src/contexts/ChatIdContext.tsx +1 -1
  152. package/src/contexts/ConnectionStatusContext.tsx +6 -5
  153. package/src/contexts/ElementsProvider.tsx +109 -37
  154. package/src/contexts/ReplayContext.ts +1 -1
  155. package/src/contexts/ToolApprovalContext.tsx +5 -1
  156. package/src/contexts/ToolExecutionContext.tsx +1 -1
  157. package/src/contexts/portal-container.tsx +1 -1
  158. package/src/hooks/useAuth.ts +2 -1
  159. package/src/hooks/useDensity.ts +1 -1
  160. package/src/hooks/useElements.ts +2 -1
  161. package/src/hooks/useFollowOnSuggestions.ts +3 -6
  162. package/src/hooks/useGramThreadListAdapter.tsx +118 -9
  163. package/src/hooks/useMCPTools.ts +2 -2
  164. package/src/hooks/useModel.ts +1 -3
  165. package/src/hooks/usePluginComponents.ts +3 -1
  166. package/src/hooks/useRadius.ts +1 -1
  167. package/src/hooks/useSession.ts +3 -1
  168. package/src/hooks/useThemeProps.ts +5 -5
  169. package/src/hooks/useToolApproval.ts +2 -1
  170. package/src/index.ts +16 -0
  171. package/src/lib/cassette.ts +21 -27
  172. package/src/lib/contextCompaction.test.ts +2 -2
  173. package/src/lib/contextCompaction.ts +20 -8
  174. package/src/lib/errorTracking.ts +1 -4
  175. package/src/lib/messageConverter.test.ts +11 -13
  176. package/src/lib/messageConverter.ts +105 -58
  177. package/src/lib/models.ts +19 -7
  178. package/src/lib/token.ts +2 -5
  179. package/src/lib/tool-mentions.ts +5 -2
  180. package/src/lib/tools.byte-cap.test.ts +1 -1
  181. package/src/lib/tools.test.ts +1 -1
  182. package/src/lib/tools.ts +15 -5
  183. package/src/lib/utils.ts +22 -2
  184. package/src/lib.d.ts +8 -1
  185. package/src/plugins/chart/chart.test.ts +3 -4
  186. package/src/plugins/chart/component.tsx +7 -6
  187. package/src/plugins/chart/ui/area-chart.tsx +1 -1
  188. package/src/plugins/chart/ui/line-chart.tsx +1 -1
  189. package/src/plugins/generative-ui/ui/accordion-wrapper.tsx +2 -2
  190. package/src/plugins/generative-ui/ui/accordion.tsx +4 -4
  191. package/src/plugins/generative-ui/ui/action-button.tsx +4 -2
  192. package/src/plugins/generative-ui/ui/alert-wrapper.tsx +1 -1
  193. package/src/plugins/generative-ui/ui/alert.tsx +7 -3
  194. package/src/plugins/generative-ui/ui/avatar-wrapper.tsx +5 -1
  195. package/src/plugins/generative-ui/ui/avatar.tsx +12 -6
  196. package/src/plugins/generative-ui/ui/badge.tsx +1 -1
  197. package/src/plugins/generative-ui/ui/button-wrapper.tsx +1 -1
  198. package/src/plugins/generative-ui/ui/button.tsx +1 -1
  199. package/src/plugins/generative-ui/ui/card-wrapper.tsx +1 -1
  200. package/src/plugins/generative-ui/ui/card.tsx +28 -7
  201. package/src/plugins/generative-ui/ui/checkbox-wrapper.tsx +1 -1
  202. package/src/plugins/generative-ui/ui/checkbox.tsx +1 -1
  203. package/src/plugins/generative-ui/ui/data-table.tsx +1 -1
  204. package/src/plugins/generative-ui/ui/dialog.tsx +15 -10
  205. package/src/plugins/generative-ui/ui/dropdown-menu.tsx +33 -15
  206. package/src/plugins/generative-ui/ui/grid.tsx +1 -1
  207. package/src/plugins/generative-ui/ui/index.ts +154 -40
  208. package/src/plugins/generative-ui/ui/input-wrapper.tsx +1 -1
  209. package/src/plugins/generative-ui/ui/input.tsx +5 -1
  210. package/src/plugins/generative-ui/ui/label.tsx +1 -1
  211. package/src/plugins/generative-ui/ui/list.tsx +5 -1
  212. package/src/plugins/generative-ui/ui/metric.tsx +2 -1
  213. package/src/plugins/generative-ui/ui/pagination.tsx +12 -7
  214. package/src/plugins/generative-ui/ui/popover.tsx +13 -7
  215. package/src/plugins/generative-ui/ui/progress.tsx +1 -1
  216. package/src/plugins/generative-ui/ui/radio-group.tsx +2 -2
  217. package/src/plugins/generative-ui/ui/select-wrapper.tsx +1 -1
  218. package/src/plugins/generative-ui/ui/select.tsx +14 -10
  219. package/src/plugins/generative-ui/ui/separator.tsx +1 -1
  220. package/src/plugins/generative-ui/ui/skeleton-wrapper.tsx +1 -1
  221. package/src/plugins/generative-ui/ui/skeleton.tsx +4 -1
  222. package/src/plugins/generative-ui/ui/stack.tsx +1 -1
  223. package/src/plugins/generative-ui/ui/switch.tsx +1 -1
  224. package/src/plugins/generative-ui/ui/table.tsx +29 -8
  225. package/src/plugins/generative-ui/ui/tabs-wrapper.tsx +5 -2
  226. package/src/plugins/generative-ui/ui/tabs.tsx +4 -4
  227. package/src/plugins/generative-ui/ui/text.tsx +1 -1
  228. package/src/plugins/generative-ui/ui/textarea.tsx +4 -1
  229. package/src/plugins/generative-ui/ui/tooltip.tsx +4 -4
  230. package/src/react-shim.ts +9 -4
  231. package/src/server/bun.ts +1 -1
  232. package/src/server/express.ts +1 -1
  233. package/src/server/fastify.ts +1 -1
  234. package/src/server/hono.ts +1 -1
  235. package/src/server/nextjs.ts +1 -1
  236. package/src/server/tanstack-start.ts +1 -1
  237. package/src/storybook.d.ts +5 -0
  238. package/src/types/index.ts +112 -4
  239. package/dist/index-BCV7Zf9E.cjs +0 -194
  240. package/dist/index-BCV7Zf9E.cjs.map +0 -1
  241. package/dist/index-CGoLfO5p.js.map +0 -1
  242. package/dist/index-DAWGW1Nj.cjs.map +0 -1
  243. package/dist/index-reVrRxP1.js.map +0 -1
@@ -2939,20 +2939,34 @@ function ae(...e) {
2939
2939
  return mI(fe(e));
2940
2940
  }
2941
2941
  function eX(e) {
2942
- throw new Error(`Unexpected value: ${e}`);
2942
+ throw new Error(`Unexpected value: ${String(e)}`);
2943
2943
  }
2944
2944
  function tX(e, t) {
2945
2945
  if (!e)
2946
2946
  throw new Error(t);
2947
2947
  }
2948
- const yI = Pt(null), rX = () => {
2948
+ function rX(e, t) {
2949
+ return new Promise((r, n) => {
2950
+ if (t?.aborted) {
2951
+ n(new DOMException("Aborted", "AbortError"));
2952
+ return;
2953
+ }
2954
+ const i = () => {
2955
+ clearTimeout(a), t?.removeEventListener("abort", i), n(new DOMException("Aborted", "AbortError"));
2956
+ }, a = setTimeout(() => {
2957
+ t?.removeEventListener("abort", i), r();
2958
+ }, e);
2959
+ t?.addEventListener("abort", i, { once: !0 });
2960
+ });
2961
+ }
2962
+ const yI = Pt(null), nX = () => {
2949
2963
  const e = mt(yI);
2950
2964
  if (!e)
2951
2965
  throw new Error("useChatId must be used within ElementsProvider");
2952
2966
  return e.chatId;
2953
2967
  }, gI = Pt(
2954
2968
  void 0
2955
- ), nX = Pt(null), mA = () => {
2969
+ ), iX = Pt(null), mA = () => {
2956
2970
  const e = mt(gI);
2957
2971
  if (!e)
2958
2972
  throw new Error("useElements must be used within a ElementsProvider");
@@ -24828,7 +24842,7 @@ function WK(e) {
24828
24842
  }
24829
24843
  var sE = Symbol("radix.slottable");
24830
24844
  // @__NO_SIDE_EFFECTS__
24831
- function iX(e) {
24845
+ function aX(e) {
24832
24846
  const t = ({ children: r }) => /* @__PURE__ */ _(Nr, { children: r });
24833
24847
  return t.displayName = `${e}.Slottable`, t.__radixId = sE, t;
24834
24848
  }
@@ -24901,8 +24915,8 @@ var cE = Object.freeze({
24901
24915
  )
24902
24916
  );
24903
24917
  uE.displayName = YK;
24904
- var aX = uE;
24905
- function oX(e, t) {
24918
+ var oX = uE;
24919
+ function sX(e, t) {
24906
24920
  const r = P.createContext(t), n = (a) => {
24907
24921
  const { children: o, ...s } = a, c = P.useMemo(() => s, Object.values(s));
24908
24922
  return /* @__PURE__ */ _(r.Provider, { value: c, children: o });
@@ -29506,7 +29520,10 @@ function k4({
29506
29520
  }
29507
29521
  );
29508
29522
  }
29509
- function R4({ className: e, ...t }) {
29523
+ function R4({
29524
+ className: e,
29525
+ ...t
29526
+ }) {
29510
29527
  return /* @__PURE__ */ _(
29511
29528
  "div",
29512
29529
  {
@@ -29734,7 +29751,7 @@ function V4(e) {
29734
29751
  const t = ({ children: r }) => /* @__PURE__ */ _(Nr, { children: r });
29735
29752
  return t.displayName = `${e}.Slottable`, t.__radixId = wC, t;
29736
29753
  }
29737
- var sX = /* @__PURE__ */ V4("Slottable");
29754
+ var cX = /* @__PURE__ */ V4("Slottable");
29738
29755
  function K4(e) {
29739
29756
  return P.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === wC;
29740
29757
  }
@@ -29789,7 +29806,11 @@ const X4 = fo(
29789
29806
  }
29790
29807
  ));
29791
29808
  Z4.displayName = "Button";
29792
- function J4({ className: e, type: t, ...r }) {
29809
+ function J4({
29810
+ className: e,
29811
+ type: t,
29812
+ ...r
29813
+ }) {
29793
29814
  return /* @__PURE__ */ _(
29794
29815
  "input",
29795
29816
  {
@@ -30008,7 +30029,10 @@ function JO({
30008
30029
  }
30009
30030
  );
30010
30031
  }
30011
- function sY({ className: e, ...t }) {
30032
+ function sY({
30033
+ className: e,
30034
+ ...t
30035
+ }) {
30012
30036
  return /* @__PURE__ */ _(
30013
30037
  "div",
30014
30038
  {
@@ -30018,7 +30042,10 @@ function sY({ className: e, ...t }) {
30018
30042
  }
30019
30043
  );
30020
30044
  }
30021
- function cY({ className: e, ...t }) {
30045
+ function cY({
30046
+ className: e,
30047
+ ...t
30048
+ }) {
30022
30049
  return /* @__PURE__ */ _(
30023
30050
  "div",
30024
30051
  {
@@ -30035,7 +30062,10 @@ function cY({ className: e, ...t }) {
30035
30062
  }
30036
30063
  );
30037
30064
  }
30038
- function uY({ className: e, ...t }) {
30065
+ function uY({
30066
+ className: e,
30067
+ ...t
30068
+ }) {
30039
30069
  return /* @__PURE__ */ _(
30040
30070
  "thead",
30041
30071
  {
@@ -30045,7 +30075,10 @@ function uY({ className: e, ...t }) {
30045
30075
  }
30046
30076
  );
30047
30077
  }
30048
- function lY({ className: e, ...t }) {
30078
+ function lY({
30079
+ className: e,
30080
+ ...t
30081
+ }) {
30049
30082
  return /* @__PURE__ */ _(
30050
30083
  "tbody",
30051
30084
  {
@@ -30055,7 +30088,10 @@ function lY({ className: e, ...t }) {
30055
30088
  }
30056
30089
  );
30057
30090
  }
30058
- function QO({ className: e, ...t }) {
30091
+ function QO({
30092
+ className: e,
30093
+ ...t
30094
+ }) {
30059
30095
  return /* @__PURE__ */ _(
30060
30096
  "tr",
30061
30097
  {
@@ -30068,7 +30104,10 @@ function QO({ className: e, ...t }) {
30068
30104
  }
30069
30105
  );
30070
30106
  }
30071
- function fY({ className: e, ...t }) {
30107
+ function fY({
30108
+ className: e,
30109
+ ...t
30110
+ }) {
30072
30111
  return /* @__PURE__ */ _(
30073
30112
  "th",
30074
30113
  {
@@ -30081,7 +30120,10 @@ function fY({ className: e, ...t }) {
30081
30120
  }
30082
30121
  );
30083
30122
  }
30084
- function dY({ className: e, ...t }) {
30123
+ function dY({
30124
+ className: e,
30125
+ ...t
30126
+ }) {
30085
30127
  return /* @__PURE__ */ _(
30086
30128
  "td",
30087
30129
  {
@@ -30193,7 +30235,7 @@ function bY({
30193
30235
  const OC = Pt(
30194
30236
  null
30195
30237
  );
30196
- function cX({
30238
+ function uX({
30197
30239
  children: e,
30198
30240
  tools: t
30199
30241
  }) {
@@ -30263,7 +30305,9 @@ function wY({
30263
30305
  variant: h ? "destructive" : n,
30264
30306
  size: i,
30265
30307
  className: ae(a),
30266
- onClick: v,
30308
+ onClick: () => {
30309
+ v();
30310
+ },
30267
30311
  disabled: o || l || !d,
30268
30312
  ...s,
30269
30313
  children: l ? "Loading..." : e
@@ -30282,7 +30326,11 @@ function SY({
30282
30326
  t && /* @__PURE__ */ _(M4, { children: t })
30283
30327
  ] });
30284
30328
  }
30285
- function OY({ src: e, alt: t, fallback: r }) {
30329
+ function OY({
30330
+ src: e,
30331
+ alt: t,
30332
+ fallback: r
30333
+ }) {
30286
30334
  return /* @__PURE__ */ se(j4, { children: [
30287
30335
  e && /* @__PURE__ */ _($4, { src: e, alt: t }),
30288
30336
  /* @__PURE__ */ _(N4, { children: r })
@@ -30390,7 +30438,11 @@ function IY({
30390
30438
  )
30391
30439
  ] });
30392
30440
  }
30393
- function kY({ items: e, ordered: t = !1, className: r }) {
30441
+ function kY({
30442
+ items: e,
30443
+ ordered: t = !1,
30444
+ className: r
30445
+ }) {
30394
30446
  const n = ae(
30395
30447
  "space-y-1 pl-4 text-foreground",
30396
30448
  t ? "list-decimal" : "list-disc",
@@ -30413,6 +30465,7 @@ function RY(e, t) {
30413
30465
  maximumFractionDigits: 1
30414
30466
  }).format(e);
30415
30467
  case "number":
30468
+ case void 0:
30416
30469
  default:
30417
30470
  return new Intl.NumberFormat("en-US").format(e);
30418
30471
  }
@@ -30514,7 +30567,10 @@ function qY({
30514
30567
  r
30515
30568
  ] });
30516
30569
  }
30517
- function FY({ value: e, children: t }) {
30570
+ function FY({
30571
+ value: e,
30572
+ children: t
30573
+ }) {
30518
30574
  return /* @__PURE__ */ _(yY, { value: e, children: t });
30519
30575
  }
30520
30576
  const zY = {
@@ -30729,7 +30785,7 @@ function XY(e) {
30729
30785
  return t.filter((i) => !n.has(i.id ?? i.language));
30730
30786
  }, t;
30731
30787
  }
30732
- const uX = XY([zK, YY]);
30788
+ const lX = XY([zK, YY]);
30733
30789
  export {
30734
30790
  l6 as A,
30735
30791
  Z4 as B,
@@ -30737,25 +30793,26 @@ export {
30737
30793
  EE as D,
30738
30794
  gI as E,
30739
30795
  CE as F,
30740
- MG as G,
30741
- mA as H,
30742
- RI as I,
30743
- yA as J,
30744
- xA as K,
30745
- c5 as L,
30746
- pE as M,
30747
- hE as N,
30748
- bv as O,
30796
+ Be as G,
30797
+ MG as H,
30798
+ mA as I,
30799
+ RI as J,
30800
+ yA as K,
30801
+ xA as L,
30802
+ c5 as M,
30803
+ pE as N,
30804
+ hE as O,
30749
30805
  pe as P,
30750
- CI as Q,
30806
+ bv as Q,
30751
30807
  BE as R,
30752
- sX as S,
30753
- nX as T,
30754
- fo as U,
30755
- rX as V,
30756
- eX as W,
30757
- YY as X,
30758
- zK as Y,
30808
+ cX as S,
30809
+ iX as T,
30810
+ CI as U,
30811
+ fo as V,
30812
+ nX as W,
30813
+ eX as X,
30814
+ YY as Y,
30815
+ zK as Z,
30759
30816
  tX as a,
30760
30817
  er as b,
30761
30818
  fc as c,
@@ -30767,20 +30824,20 @@ export {
30767
30824
  TG as i,
30768
30825
  Ya as j,
30769
30826
  z5 as k,
30770
- oX as l,
30827
+ sX as l,
30771
30828
  mT as m,
30772
30829
  u6 as n,
30773
30830
  d6 as o,
30774
- iX as p,
30775
- aX as q,
30776
- uX as r,
30777
- yI as s,
30778
- cX as t,
30831
+ aX as p,
30832
+ oX as q,
30833
+ lX as r,
30834
+ rX as s,
30835
+ yI as t,
30779
30836
  Br as u,
30780
- ae as v,
30781
- wA as w,
30782
- W4 as x,
30783
- yr as y,
30784
- Be as z
30837
+ uX as v,
30838
+ ae as w,
30839
+ wA as x,
30840
+ W4 as y,
30841
+ yr as z
30785
30842
  };
30786
- //# sourceMappingURL=index-CGoLfO5p.js.map
30843
+ //# sourceMappingURL=index-Dz13dSDa.js.map