@gram-ai/elements 1.27.4 → 1.27.6

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 (278) hide show
  1. package/README.md +72 -60
  2. package/README.typedoc.md +6 -6
  3. package/bin/cli.js +74 -74
  4. package/dist/compat-shims-CO9JXXV4.cjs.map +1 -1
  5. package/dist/{compat-shims-BPJ7Q68c.js → compat-shims-DxtUrORi.js} +4 -2
  6. package/dist/compat-shims-DxtUrORi.js.map +1 -0
  7. package/dist/components/ShareButton/index.d.ts +2 -2
  8. package/dist/components/assistant-ui/message-feedback.d.ts +1 -1
  9. package/dist/components/assistant-ui/tooltip-icon-button.d.ts +2 -2
  10. package/dist/components/ui/avatar.d.ts +2 -2
  11. package/dist/components/ui/button.d.ts +1 -1
  12. package/dist/components/ui/calendar.d.ts +1 -1
  13. package/dist/components/ui/collapsible.d.ts +1 -1
  14. package/dist/components/ui/dialog.d.ts +4 -4
  15. package/dist/components/ui/popover.d.ts +2 -2
  16. package/dist/components/ui/skeleton.d.ts +1 -1
  17. package/dist/components/ui/time-range-picker.d.ts +1 -1
  18. package/dist/components/ui/tool-ui.d.ts +7 -7
  19. package/dist/components/ui/tooltip.d.ts +2 -2
  20. package/dist/contexts/ConnectionStatusContext.d.ts +1 -1
  21. package/dist/elements.cjs +1 -1
  22. package/dist/elements.css +1 -1
  23. package/dist/elements.js +2 -2
  24. package/dist/hooks/useDensity.d.ts +73 -73
  25. package/dist/hooks/useMCPTools.d.ts +1 -1
  26. package/dist/hooks/useRadius.d.ts +1 -1
  27. package/dist/{index-KSX4Qjip.cjs → index-A17b62wR.cjs} +10 -10
  28. package/dist/index-A17b62wR.cjs.map +1 -0
  29. package/dist/{index-BpJstUh1.cjs → index-C4bFBGfl.cjs} +4 -4
  30. package/dist/{index-BpJstUh1.cjs.map → index-C4bFBGfl.cjs.map} +1 -1
  31. package/dist/{index-CUitXazZ.js → index-D93pV0_o.js} +55 -55
  32. package/dist/{index-CUitXazZ.js.map → index-D93pV0_o.js.map} +1 -1
  33. package/dist/{index-D0bAYNQy.js → index-Dm2wLFTN.js} +304 -282
  34. package/dist/index-Dm2wLFTN.js.map +1 -0
  35. package/dist/lib/cassette.d.ts +4 -4
  36. package/dist/lib/errorTracking.d.ts +1 -1
  37. package/dist/lib/messageConverter.d.ts +1 -1
  38. package/dist/lib/models.d.ts +1 -1
  39. package/dist/plugins/chart/ui/bar-chart.d.ts +1 -1
  40. package/dist/plugins/generative-ui/ui/accordion-wrapper.d.ts +2 -2
  41. package/dist/plugins/generative-ui/ui/accordion.d.ts +1 -1
  42. package/dist/plugins/generative-ui/ui/action-button.d.ts +2 -2
  43. package/dist/plugins/generative-ui/ui/alert-wrapper.d.ts +1 -1
  44. package/dist/plugins/generative-ui/ui/alert.d.ts +4 -4
  45. package/dist/plugins/generative-ui/ui/avatar.d.ts +5 -5
  46. package/dist/plugins/generative-ui/ui/badge.d.ts +2 -2
  47. package/dist/plugins/generative-ui/ui/button-wrapper.d.ts +2 -2
  48. package/dist/plugins/generative-ui/ui/button.d.ts +2 -2
  49. package/dist/plugins/generative-ui/ui/card-wrapper.d.ts +2 -2
  50. package/dist/plugins/generative-ui/ui/card.d.ts +8 -8
  51. package/dist/plugins/generative-ui/ui/checkbox.d.ts +1 -1
  52. package/dist/plugins/generative-ui/ui/data-table.d.ts +2 -2
  53. package/dist/plugins/generative-ui/ui/dialog.d.ts +3 -3
  54. package/dist/plugins/generative-ui/ui/dropdown-menu.d.ts +3 -3
  55. package/dist/plugins/generative-ui/ui/grid.d.ts +3 -3
  56. package/dist/plugins/generative-ui/ui/input-wrapper.d.ts +1 -1
  57. package/dist/plugins/generative-ui/ui/input.d.ts +2 -2
  58. package/dist/plugins/generative-ui/ui/label.d.ts +1 -1
  59. package/dist/plugins/generative-ui/ui/metric.d.ts +3 -3
  60. package/dist/plugins/generative-ui/ui/pagination.d.ts +6 -6
  61. package/dist/plugins/generative-ui/ui/popover.d.ts +4 -4
  62. package/dist/plugins/generative-ui/ui/progress.d.ts +2 -2
  63. package/dist/plugins/generative-ui/ui/radio-group.d.ts +1 -1
  64. package/dist/plugins/generative-ui/ui/select.d.ts +2 -2
  65. package/dist/plugins/generative-ui/ui/separator.d.ts +1 -1
  66. package/dist/plugins/generative-ui/ui/skeleton.d.ts +1 -1
  67. package/dist/plugins/generative-ui/ui/stack.d.ts +6 -6
  68. package/dist/plugins/generative-ui/ui/switch.d.ts +2 -2
  69. package/dist/plugins/generative-ui/ui/table.d.ts +9 -9
  70. package/dist/plugins/generative-ui/ui/tabs-wrapper.d.ts +1 -1
  71. package/dist/plugins/generative-ui/ui/tabs.d.ts +1 -1
  72. package/dist/plugins/generative-ui/ui/text.d.ts +3 -3
  73. package/dist/plugins/generative-ui/ui/textarea.d.ts +2 -2
  74. package/dist/plugins/generative-ui/ui/tooltip.d.ts +1 -1
  75. package/dist/plugins.cjs +1 -1
  76. package/dist/plugins.js +1 -1
  77. package/dist/{profiler-CyzxBxVz.cjs → profiler-Cbbf4eEX.cjs} +2 -2
  78. package/dist/{profiler-CyzxBxVz.cjs.map → profiler-Cbbf4eEX.cjs.map} +1 -1
  79. package/dist/{profiler-BFkhZRxj.js → profiler-mca4IXaY.js} +2 -2
  80. package/dist/{profiler-BFkhZRxj.js.map → profiler-mca4IXaY.js.map} +1 -1
  81. package/dist/react-shim.js +1 -1
  82. package/dist/server/express.cjs.map +1 -1
  83. package/dist/server/express.js.map +1 -1
  84. package/dist/{startRecording-C-PPAs_Z.js → startRecording-BCafdS7B.js} +2 -2
  85. package/dist/{startRecording-C-PPAs_Z.js.map → startRecording-BCafdS7B.js.map} +1 -1
  86. package/dist/{startRecording-Dq92sEHf.cjs → startRecording-Eb5f7wqP.cjs} +2 -2
  87. package/dist/{startRecording-Dq92sEHf.cjs.map → startRecording-Eb5f7wqP.cjs.map} +1 -1
  88. package/dist/types/index.d.ts +4 -4
  89. package/package.json +1 -5
  90. package/src/compat-plugin.ts +14 -14
  91. package/src/compat-shims.ts +33 -31
  92. package/src/compat.test.ts +48 -48
  93. package/src/compat.ts +6 -6
  94. package/src/components/Chat/index.tsx +17 -17
  95. package/src/components/Chat/stories/Charts.stories.tsx +98 -98
  96. package/src/components/Chat/stories/Composer.stories.tsx +15 -15
  97. package/src/components/Chat/stories/ConnectionConfiguration.stories.tsx +44 -44
  98. package/src/components/Chat/stories/CustomComponents.stories.tsx +17 -17
  99. package/src/components/Chat/stories/Density.stories.tsx +20 -20
  100. package/src/components/Chat/stories/ErrorBoundary.stories.tsx +47 -47
  101. package/src/components/Chat/stories/FrontendTools.stories.tsx +39 -39
  102. package/src/components/Chat/stories/GenerativeUI.stories.tsx +48 -48
  103. package/src/components/Chat/stories/MessageFeedback.stories.tsx +52 -52
  104. package/src/components/Chat/stories/Modal.stories.tsx +28 -28
  105. package/src/components/Chat/stories/Model.stories.tsx +11 -11
  106. package/src/components/Chat/stories/Radius.stories.tsx +20 -20
  107. package/src/components/Chat/stories/Sidecar.stories.tsx +13 -13
  108. package/src/components/Chat/stories/StyleIsolation.stories.tsx +11 -11
  109. package/src/components/Chat/stories/Theme.stories.tsx +25 -25
  110. package/src/components/Chat/stories/Thread.stories.tsx +25 -25
  111. package/src/components/Chat/stories/ToolApproval.stories.tsx +55 -55
  112. package/src/components/Chat/stories/ToolMentions.stories.tsx +17 -17
  113. package/src/components/Chat/stories/Tools.stories.tsx +88 -88
  114. package/src/components/Chat/stories/Variants.stories.tsx +32 -32
  115. package/src/components/Chat/stories/Welcome.stories.tsx +14 -14
  116. package/src/components/ChatHistory.tsx +7 -7
  117. package/src/components/FrontendTools/index.tsx +5 -5
  118. package/src/components/Replay.stories.tsx +157 -157
  119. package/src/components/Replay.tsx +76 -73
  120. package/src/components/ShadowRoot.tsx +40 -40
  121. package/src/components/ShareButton/index.tsx +32 -32
  122. package/src/components/assistant-ui/assistant-modal.tsx +92 -87
  123. package/src/components/assistant-ui/assistant-sidecar.tsx +35 -35
  124. package/src/components/assistant-ui/attachment.tsx +80 -80
  125. package/src/components/assistant-ui/connection-status-indicator.tsx +33 -33
  126. package/src/components/assistant-ui/error-boundary.tsx +34 -34
  127. package/src/components/assistant-ui/follow-on-suggestions.tsx +26 -26
  128. package/src/components/assistant-ui/markdown-text.tsx +69 -69
  129. package/src/components/assistant-ui/mentioned-tools-badges.tsx +38 -38
  130. package/src/components/assistant-ui/message-feedback.tsx +57 -50
  131. package/src/components/assistant-ui/reasoning.tsx +83 -83
  132. package/src/components/assistant-ui/thread-list.tsx +45 -45
  133. package/src/components/assistant-ui/thread.tsx +278 -278
  134. package/src/components/assistant-ui/tool-fallback.tsx +37 -37
  135. package/src/components/assistant-ui/tool-group.tsx +26 -26
  136. package/src/components/assistant-ui/tool-mention-autocomplete.tsx +122 -122
  137. package/src/components/assistant-ui/tooltip-icon-button.tsx +18 -18
  138. package/src/components/ui/avatar.tsx +12 -12
  139. package/src/components/ui/button.tsx +12 -12
  140. package/src/components/ui/buttonVariants.ts +17 -17
  141. package/src/components/ui/calendar.tsx +106 -106
  142. package/src/components/ui/charts.stories.tsx +56 -56
  143. package/src/components/ui/collapsible.tsx +5 -5
  144. package/src/components/ui/dialog.tsx +30 -30
  145. package/src/components/ui/generative-ui.stories.tsx +200 -200
  146. package/src/components/ui/generative-ui.tsx +26 -26
  147. package/src/components/ui/popover.tsx +14 -14
  148. package/src/components/ui/skeleton.tsx +5 -5
  149. package/src/components/ui/time-range-picker.stories.tsx +80 -80
  150. package/src/components/ui/time-range-picker.tsx +248 -246
  151. package/src/components/ui/tool-ui.stories.tsx +37 -37
  152. package/src/components/ui/tool-ui.tsx +221 -215
  153. package/src/components/ui/tooltip.tsx +15 -15
  154. package/src/constants/tailwind.ts +1 -1
  155. package/src/contexts/ChatIdContext.tsx +7 -7
  156. package/src/contexts/ConnectionStatusContext.tsx +64 -64
  157. package/src/contexts/ElementsProvider.tsx +214 -213
  158. package/src/contexts/ReplayContext.ts +3 -3
  159. package/src/contexts/ToolApprovalContext.tsx +54 -54
  160. package/src/contexts/ToolExecutionContext.tsx +34 -34
  161. package/src/contexts/contexts.ts +7 -7
  162. package/src/contexts/portal-container-context.ts +2 -2
  163. package/src/contexts/portal-container.tsx +7 -7
  164. package/src/embedded.ts +1 -1
  165. package/src/global.css +25 -25
  166. package/src/hooks/useAuth.ts +72 -72
  167. package/src/hooks/useDensity.ts +79 -79
  168. package/src/hooks/useElements.ts +6 -6
  169. package/src/hooks/useExpanded.ts +12 -12
  170. package/src/hooks/useFollowOnSuggestions.ts +83 -83
  171. package/src/hooks/useGramThreadListAdapter.tsx +99 -99
  172. package/src/hooks/useMCPTools.ts +47 -47
  173. package/src/hooks/useModel.ts +14 -14
  174. package/src/hooks/usePluginComponents.ts +11 -11
  175. package/src/hooks/usePortalContainer.ts +5 -5
  176. package/src/hooks/useRadius.ts +23 -23
  177. package/src/hooks/useRecordCassette.ts +34 -34
  178. package/src/hooks/useSession.ts +11 -11
  179. package/src/hooks/useThemeProps.ts +13 -13
  180. package/src/hooks/useThreadId.ts +4 -4
  181. package/src/hooks/useToolApproval.ts +7 -7
  182. package/src/hooks/useToolMentions.ts +40 -40
  183. package/src/index.ts +26 -26
  184. package/src/lib/api.test.ts +61 -61
  185. package/src/lib/api.ts +4 -3
  186. package/src/lib/auth.ts +13 -13
  187. package/src/lib/cassette.ts +84 -84
  188. package/src/lib/easing.ts +1 -1
  189. package/src/lib/errorTracking.config.ts +5 -5
  190. package/src/lib/errorTracking.ts +29 -29
  191. package/src/lib/generative-ui.ts +7 -7
  192. package/src/lib/humanize.ts +3 -3
  193. package/src/lib/messageConverter.test.ts +130 -127
  194. package/src/lib/messageConverter.ts +196 -196
  195. package/src/lib/models.ts +28 -20
  196. package/src/lib/token.test.ts +56 -56
  197. package/src/lib/token.ts +14 -14
  198. package/src/lib/tool-mentions.ts +45 -45
  199. package/src/lib/tools.ts +66 -62
  200. package/src/lib/utils.ts +5 -5
  201. package/src/lib.d.ts +1 -1
  202. package/src/plugins/README.md +5 -5
  203. package/src/plugins/chart/catalog.ts +18 -18
  204. package/src/plugins/chart/chart.test.ts +31 -31
  205. package/src/plugins/chart/component.tsx +34 -34
  206. package/src/plugins/chart/index.ts +4 -4
  207. package/src/plugins/chart/ui/area-chart.tsx +42 -42
  208. package/src/plugins/chart/ui/bar-chart.tsx +46 -46
  209. package/src/plugins/chart/ui/donut-chart.tsx +48 -48
  210. package/src/plugins/chart/ui/index.ts +7 -7
  211. package/src/plugins/chart/ui/line-chart.tsx +43 -43
  212. package/src/plugins/chart/ui/pie-chart.tsx +44 -44
  213. package/src/plugins/chart/ui/radar-chart.tsx +33 -33
  214. package/src/plugins/chart/ui/scatter-chart.tsx +43 -43
  215. package/src/plugins/components/MacOSWindowFrame.tsx +15 -15
  216. package/src/plugins/components/PluginLoadingState.tsx +10 -10
  217. package/src/plugins/components/index.ts +1 -1
  218. package/src/plugins/generative-ui/catalog.ts +54 -54
  219. package/src/plugins/generative-ui/component.tsx +85 -85
  220. package/src/plugins/generative-ui/index.ts +4 -4
  221. package/src/plugins/generative-ui/ui/accordion-wrapper.tsx +16 -16
  222. package/src/plugins/generative-ui/ui/accordion.tsx +16 -16
  223. package/src/plugins/generative-ui/ui/action-button.tsx +28 -28
  224. package/src/plugins/generative-ui/ui/alert-wrapper.tsx +8 -8
  225. package/src/plugins/generative-ui/ui/alert.tsx +20 -20
  226. package/src/plugins/generative-ui/ui/avatar-wrapper.tsx +7 -7
  227. package/src/plugins/generative-ui/ui/avatar.tsx +30 -30
  228. package/src/plugins/generative-ui/ui/badge.tsx +22 -22
  229. package/src/plugins/generative-ui/ui/button-wrapper.tsx +12 -12
  230. package/src/plugins/generative-ui/ui/button.tsx +28 -28
  231. package/src/plugins/generative-ui/ui/card-wrapper.tsx +8 -8
  232. package/src/plugins/generative-ui/ui/card.tsx +27 -27
  233. package/src/plugins/generative-ui/ui/checkbox-wrapper.tsx +9 -9
  234. package/src/plugins/generative-ui/ui/checkbox.tsx +9 -9
  235. package/src/plugins/generative-ui/ui/data-table.tsx +8 -8
  236. package/src/plugins/generative-ui/ui/dialog.tsx +31 -31
  237. package/src/plugins/generative-ui/ui/dropdown-menu.tsx +44 -44
  238. package/src/plugins/generative-ui/ui/grid.tsx +12 -12
  239. package/src/plugins/generative-ui/ui/index.ts +40 -40
  240. package/src/plugins/generative-ui/ui/input-wrapper.tsx +11 -11
  241. package/src/plugins/generative-ui/ui/input.tsx +9 -9
  242. package/src/plugins/generative-ui/ui/label.tsx +8 -8
  243. package/src/plugins/generative-ui/ui/list.tsx +11 -11
  244. package/src/plugins/generative-ui/ui/metric.tsx +23 -23
  245. package/src/plugins/generative-ui/ui/pagination.tsx +28 -28
  246. package/src/plugins/generative-ui/ui/popover.tsx +21 -21
  247. package/src/plugins/generative-ui/ui/progress.tsx +13 -13
  248. package/src/plugins/generative-ui/ui/radio-group.tsx +12 -12
  249. package/src/plugins/generative-ui/ui/select-wrapper.tsx +7 -7
  250. package/src/plugins/generative-ui/ui/select.tsx +37 -37
  251. package/src/plugins/generative-ui/ui/separator.tsx +9 -9
  252. package/src/plugins/generative-ui/ui/skeleton-wrapper.tsx +10 -10
  253. package/src/plugins/generative-ui/ui/skeleton.tsx +5 -5
  254. package/src/plugins/generative-ui/ui/stack.tsx +28 -28
  255. package/src/plugins/generative-ui/ui/switch.tsx +11 -11
  256. package/src/plugins/generative-ui/ui/table.tsx +32 -32
  257. package/src/plugins/generative-ui/ui/tabs-wrapper.tsx +11 -11
  258. package/src/plugins/generative-ui/ui/tabs.tsx +26 -26
  259. package/src/plugins/generative-ui/ui/text.tsx +12 -12
  260. package/src/plugins/generative-ui/ui/textarea.tsx +7 -7
  261. package/src/plugins/generative-ui/ui/tooltip.tsx +12 -12
  262. package/src/plugins/index.ts +7 -7
  263. package/src/react-shim.ts +6 -6
  264. package/src/server/bun.ts +12 -12
  265. package/src/server/core.ts +25 -25
  266. package/src/server/express.ts +17 -15
  267. package/src/server/fastify.ts +14 -14
  268. package/src/server/hono.ts +9 -9
  269. package/src/server/nextjs.ts +12 -12
  270. package/src/server/tanstack-start.ts +12 -12
  271. package/src/server.ts +27 -27
  272. package/src/storybook.d.ts +4 -4
  273. package/src/types/index.ts +124 -124
  274. package/src/types/plugins.ts +7 -7
  275. package/src/vite-env.d.ts +12 -12
  276. package/dist/compat-shims-BPJ7Q68c.js.map +0 -1
  277. package/dist/index-D0bAYNQy.js.map +0 -1
  278. package/dist/index-KSX4Qjip.cjs.map +0 -1
@@ -3005,18 +3005,18 @@ const gI = [
3005
3005
  {
3006
3006
  className: ie(
3007
3007
  // after:hidden prevents assistant-ui from showing its default code block loading indicator
3008
- "border-border w-full overflow-hidden border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",
3008
+ "w-full overflow-hidden border border-border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",
3009
3009
  n("lg"),
3010
3010
  t
3011
3011
  ),
3012
3012
  children: [
3013
- /* @__PURE__ */ oe("div", { className: "border-border bg-muted/50 flex h-8 items-center gap-2 border-b px-3", children: [
3013
+ /* @__PURE__ */ oe("div", { className: "flex h-8 items-center gap-2 border-b border-border bg-muted/50 px-3", children: [
3014
3014
  /* @__PURE__ */ oe("div", { className: "flex items-center gap-1.5", children: [
3015
3015
  /* @__PURE__ */ _("div", { className: "size-3 rounded-full bg-[#FF5F57]" }),
3016
3016
  /* @__PURE__ */ _("div", { className: "size-3 rounded-full bg-[#FEBC2E]" }),
3017
3017
  /* @__PURE__ */ _("div", { className: "size-3 rounded-full bg-[#28C840]" })
3018
3018
  ] }),
3019
- r && /* @__PURE__ */ _("span", { className: "text-muted-foreground flex-1 text-center text-xs font-medium", children: r })
3019
+ r && /* @__PURE__ */ _("span", { className: "flex-1 text-center text-xs font-medium text-muted-foreground", children: r })
3020
3020
  ] }),
3021
3021
  e
3022
3022
  ]
@@ -3029,9 +3029,9 @@ const gI = [
3029
3029
  "div",
3030
3030
  {
3031
3031
  className: ie(
3032
- "bg-background relative flex min-h-[400px] items-center justify-center"
3032
+ "relative flex min-h-[400px] items-center justify-center bg-background"
3033
3033
  ),
3034
- children: /* @__PURE__ */ _("span", { className: "shimmer text-muted-foreground text-sm", children: e })
3034
+ children: /* @__PURE__ */ _("span", { className: "shimmer text-sm text-muted-foreground", children: e })
3035
3035
  }
3036
3036
  ) });
3037
3037
  var cu, Zm;
@@ -23632,7 +23632,7 @@ var ev = function(t, r, n, i) {
23632
23632
  const uV = ({ active: e, payload: t }) => {
23633
23633
  if (!e || !t || t.length === 0) return null;
23634
23634
  const r = t[0]?.value;
23635
- return /* @__PURE__ */ _("div", { className: "bg-background text-foreground border-border rounded-md border px-2 py-1 text-xs shadow-sm", children: typeof r == "number" ? r.toLocaleString() : r });
23635
+ return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: typeof r == "number" ? r.toLocaleString() : r });
23636
23636
  }, aS = [
23637
23637
  "var(--chart-1)",
23638
23638
  "var(--chart-2)",
@@ -23649,7 +23649,7 @@ const uV = ({ active: e, payload: t }) => {
23649
23649
  }) => {
23650
23650
  const o = r === "horizontal";
23651
23651
  return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", a), children: [
23652
- e && /* @__PURE__ */ _("h3", { className: "text-foreground text-sm font-medium", children: e }),
23652
+ e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
23653
23653
  /* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
23654
23654
  aV,
23655
23655
  {
@@ -23731,7 +23731,7 @@ const uV = ({ active: e, payload: t }) => {
23731
23731
  }
23732
23732
  ) }) })
23733
23733
  ] });
23734
- }, fV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "bg-background text-foreground border-border rounded-md border px-2 py-1.5 text-xs shadow-sm", children: t.map((r, n) => /* @__PURE__ */ oe("div", { className: "flex items-center gap-2", children: [
23734
+ }, fV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm", children: t.map((r, n) => /* @__PURE__ */ oe("div", { className: "flex items-center gap-2", children: [
23735
23735
  /* @__PURE__ */ _(
23736
23736
  "span",
23737
23737
  {
@@ -23762,7 +23762,7 @@ const uV = ({ active: e, payload: t }) => {
23762
23762
  }) => {
23763
23763
  const c = Mr(() => r && r.length > 0 ? r : t.length === 0 ? [] : Object.keys(t[0]).filter((l) => l !== "label"), [t, r]);
23764
23764
  return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", s), children: [
23765
- e && /* @__PURE__ */ _("h3", { className: "text-foreground text-sm font-medium", children: e }),
23765
+ e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
23766
23766
  /* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
23767
23767
  iV,
23768
23768
  {
@@ -23818,7 +23818,7 @@ const uV = ({ active: e, payload: t }) => {
23818
23818
  }
23819
23819
  ) }) })
23820
23820
  ] });
23821
- }, pV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "bg-background text-foreground border-border rounded-md border px-2 py-1.5 text-xs shadow-sm", children: t.map((r, n) => /* @__PURE__ */ oe("div", { className: "flex items-center gap-2", children: [
23821
+ }, pV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm", children: t.map((r, n) => /* @__PURE__ */ oe("div", { className: "flex items-center gap-2", children: [
23822
23822
  /* @__PURE__ */ _(
23823
23823
  "span",
23824
23824
  {
@@ -23848,7 +23848,7 @@ const uV = ({ active: e, payload: t }) => {
23848
23848
  }) => {
23849
23849
  const s = Mr(() => r && r.length > 0 ? r : t.length === 0 ? [] : Object.keys(t[0]).filter((u) => u !== "label"), [t, r]);
23850
23850
  return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", o), children: [
23851
- e && /* @__PURE__ */ _("h3", { className: "text-foreground text-sm font-medium", children: e }),
23851
+ e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
23852
23852
  /* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
23853
23853
  cV,
23854
23854
  {
@@ -23907,7 +23907,7 @@ const uV = ({ active: e, payload: t }) => {
23907
23907
  }, vV = ({ active: e, payload: t }) => {
23908
23908
  if (!e || !t || t.length === 0) return null;
23909
23909
  const r = t[0];
23910
- return /* @__PURE__ */ _("div", { className: "bg-background text-foreground border-border rounded-md border px-2 py-1 text-xs shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
23910
+ return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
23911
23911
  }, sS = [
23912
23912
  "var(--chart-1)",
23913
23913
  "var(--chart-2)",
@@ -23927,7 +23927,7 @@ const uV = ({ active: e, payload: t }) => {
23927
23927
  color: o.color
23928
23928
  }));
23929
23929
  return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", i), children: [
23930
- e && /* @__PURE__ */ _("h3", { className: "text-foreground text-sm font-medium", children: e }),
23930
+ e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
23931
23931
  /* @__PURE__ */ _("div", { className: "h-[320px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
23932
23932
  Y1,
23933
23933
  {
@@ -23992,7 +23992,7 @@ const uV = ({ active: e, payload: t }) => {
23992
23992
  }, yV = ({ active: e, payload: t }) => {
23993
23993
  if (!e || !t || t.length === 0) return null;
23994
23994
  const r = t[0];
23995
- return /* @__PURE__ */ _("div", { className: "bg-background text-foreground border-border rounded-md border px-2 py-1 text-xs shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
23995
+ return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
23996
23996
  }, cS = [
23997
23997
  "var(--chart-1)",
23998
23998
  "var(--chart-2)",
@@ -24014,7 +24014,7 @@ const uV = ({ active: e, payload: t }) => {
24014
24014
  color: c.color
24015
24015
  }));
24016
24016
  return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", o), children: [
24017
- e && /* @__PURE__ */ _("h3", { className: "text-foreground text-sm font-medium", children: e }),
24017
+ e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
24018
24018
  /* @__PURE__ */ oe("div", { className: "relative h-[320px] w-full", children: [
24019
24019
  /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
24020
24020
  Y1,
@@ -24077,15 +24077,15 @@ const uV = ({ active: e, payload: t }) => {
24077
24077
  }
24078
24078
  ) }),
24079
24079
  (i !== void 0 || a !== void 0) && /* @__PURE__ */ oe("div", { className: "pointer-events-none absolute inset-x-0 top-[45%] flex -translate-y-1/2 flex-col items-center", children: [
24080
- a !== void 0 && /* @__PURE__ */ _("span", { className: "text-foreground text-2xl font-bold", children: a }),
24081
- i && /* @__PURE__ */ _("span", { className: "text-muted-foreground text-xs", children: i })
24080
+ a !== void 0 && /* @__PURE__ */ _("span", { className: "text-2xl font-bold text-foreground", children: a }),
24081
+ i && /* @__PURE__ */ _("span", { className: "text-xs text-muted-foreground", children: i })
24082
24082
  ] })
24083
24083
  ] })
24084
24084
  ] });
24085
24085
  }, bV = ({ active: e, payload: t }) => {
24086
24086
  if (!e || !t || t.length === 0) return null;
24087
24087
  const r = t[0]?.payload;
24088
- return /* @__PURE__ */ oe("div", { className: "bg-background text-foreground border-border rounded-md border px-2 py-1.5 text-xs shadow-sm", children: [
24088
+ return /* @__PURE__ */ oe("div", { className: "rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm", children: [
24089
24089
  r?.label && /* @__PURE__ */ _("div", { className: "font-medium", children: r.label }),
24090
24090
  /* @__PURE__ */ oe("div", { children: [
24091
24091
  "x: ",
@@ -24112,7 +24112,7 @@ const uV = ({ active: e, payload: t }) => {
24112
24112
  }) => {
24113
24113
  const o = t.some((s) => s.size !== void 0);
24114
24114
  return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", a), children: [
24115
- e && /* @__PURE__ */ _("h3", { className: "text-foreground text-sm font-medium", children: e }),
24115
+ e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
24116
24116
  /* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
24117
24117
  sV,
24118
24118
  {
@@ -24169,7 +24169,7 @@ const uV = ({ active: e, payload: t }) => {
24169
24169
  }, wV = ({ active: e, payload: t }) => {
24170
24170
  if (!e || !t || t.length === 0) return null;
24171
24171
  const r = t[0];
24172
- return /* @__PURE__ */ _("div", { className: "bg-background text-foreground border-border rounded-md border px-2 py-1 text-xs shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
24172
+ return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
24173
24173
  }, lS = [
24174
24174
  "var(--chart-1)",
24175
24175
  "var(--chart-2)",
@@ -24184,7 +24184,7 @@ const uV = ({ active: e, payload: t }) => {
24184
24184
  }) => {
24185
24185
  const i = t.map((a) => ({ subject: a.label, value: a.value }));
24186
24186
  return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", n), children: [
24187
- e && /* @__PURE__ */ _("h3", { className: "text-foreground text-sm font-medium", children: e }),
24187
+ e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
24188
24188
  /* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
24189
24189
  oV,
24190
24190
  {
@@ -24251,7 +24251,7 @@ const AV = {
24251
24251
  };
24252
24252
  function _V(e) {
24253
24253
  const t = AV[e.type];
24254
- return t ? /* @__PURE__ */ _(t, { ...e.props ?? {} }) : /* @__PURE__ */ oe("div", { className: "text-muted-foreground flex items-center gap-2 text-sm", children: [
24254
+ return t ? /* @__PURE__ */ _(t, { ...e.props ?? {} }) : /* @__PURE__ */ oe("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
24255
24255
  /* @__PURE__ */ _(dA, { className: "size-4" }),
24256
24256
  /* @__PURE__ */ oe("span", { children: [
24257
24257
  "Unknown chart type: ",
@@ -24270,7 +24270,7 @@ const PV = ({ code: e }) => {
24270
24270
  return null;
24271
24271
  }
24272
24272
  }, [e]), n = Mr(() => SV(), []);
24273
- return r ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: ie("bg-card w-full", t("p-lg")), children: _V(r) }) }) : /* @__PURE__ */ _(wI, { text: n });
24273
+ return r ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: ie("w-full bg-card", t("p-lg")), children: _V(r) }) }) : /* @__PURE__ */ _(wI, { text: n });
24274
24274
  }, EV = {
24275
24275
  language: "chart",
24276
24276
  prompt: `WHEN TO USE CHARTS:
@@ -29071,13 +29071,13 @@ function p4({
29071
29071
  {
29072
29072
  "data-slot": "accordion-trigger",
29073
29073
  className: ie(
29074
- "text-foreground focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
29074
+ "flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
29075
29075
  e
29076
29076
  ),
29077
29077
  ...r,
29078
29078
  children: [
29079
29079
  t,
29080
- /* @__PURE__ */ _(vv, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
29080
+ /* @__PURE__ */ _(vv, { className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200" })
29081
29081
  ]
29082
29082
  }
29083
29083
  ) });
@@ -29091,7 +29091,7 @@ function h4({
29091
29091
  l5,
29092
29092
  {
29093
29093
  "data-slot": "accordion-content",
29094
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
29094
+ className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
29095
29095
  ...r,
29096
29096
  children: /* @__PURE__ */ _("div", { className: ie("pt-0 pb-4", e), children: t })
29097
29097
  }
@@ -29177,7 +29177,7 @@ function g4({
29177
29177
  {
29178
29178
  "data-slot": "alert-description",
29179
29179
  className: ie(
29180
- "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
29180
+ "col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",
29181
29181
  e
29182
29182
  ),
29183
29183
  ...t
@@ -29224,7 +29224,7 @@ function w4({
29224
29224
  {
29225
29225
  "data-slot": "avatar-fallback",
29226
29226
  className: ie(
29227
- "bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs",
29227
+ "flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
29228
29228
  e
29229
29229
  ),
29230
29230
  ...t
@@ -29328,7 +29328,7 @@ function _4({
29328
29328
  {
29329
29329
  "data-slot": "checkbox",
29330
29330
  className: ie(
29331
- "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
29331
+ "peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",
29332
29332
  e
29333
29333
  ),
29334
29334
  ...t,
@@ -29445,9 +29445,9 @@ function D4({ className: e, type: t, ...r }) {
29445
29445
  type: t,
29446
29446
  "data-slot": "input",
29447
29447
  className: ie(
29448
- "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
29449
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
29450
- "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
29448
+ "h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",
29449
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
29450
+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
29451
29451
  e
29452
29452
  ),
29453
29453
  ...r
@@ -29490,7 +29490,7 @@ function L4({
29490
29490
  g6,
29491
29491
  {
29492
29492
  "data-slot": "progress",
29493
- className: "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
29493
+ className: "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
29494
29494
  value: t,
29495
29495
  max: n,
29496
29496
  ...i,
@@ -29498,7 +29498,7 @@ function L4({
29498
29498
  b6,
29499
29499
  {
29500
29500
  "data-slot": "progress-indicator",
29501
- className: "bg-primary h-full w-full flex-1 transition-all",
29501
+ className: "h-full w-full flex-1 bg-primary transition-all",
29502
29502
  style: { transform: `translateX(-${100 - a}%)` }
29503
29503
  }
29504
29504
  )
@@ -29528,7 +29528,7 @@ function F4({
29528
29528
  "data-slot": "select-trigger",
29529
29529
  "data-size": t,
29530
29530
  className: ie(
29531
- "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
29531
+ "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
29532
29532
  e
29533
29533
  ),
29534
29534
  ...n,
@@ -29551,7 +29551,7 @@ function z4({
29551
29551
  {
29552
29552
  "data-slot": "select-content",
29553
29553
  className: ie(
29554
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
29554
+ "relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
29555
29555
  r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
29556
29556
  e
29557
29557
  ),
@@ -29585,7 +29585,7 @@ function W4({
29585
29585
  {
29586
29586
  "data-slot": "select-item",
29587
29587
  className: ie(
29588
- "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
29588
+ "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
29589
29589
  e
29590
29590
  ),
29591
29591
  ...r,
@@ -29650,7 +29650,7 @@ function HS({
29650
29650
  decorative: r,
29651
29651
  orientation: t,
29652
29652
  className: ie(
29653
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
29653
+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
29654
29654
  e
29655
29655
  ),
29656
29656
  ...n
@@ -29662,7 +29662,7 @@ function K4({ className: e, ...t }) {
29662
29662
  "div",
29663
29663
  {
29664
29664
  "data-slot": "skeleton",
29665
- className: ie("bg-accent animate-pulse rounded-md", e),
29665
+ className: ie("animate-pulse rounded-md bg-accent", e),
29666
29666
  ...t
29667
29667
  }
29668
29668
  );
@@ -29710,7 +29710,7 @@ function KS({ className: e, ...t }) {
29710
29710
  {
29711
29711
  "data-slot": "table-row",
29712
29712
  className: ie(
29713
- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
29713
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
29714
29714
  e
29715
29715
  ),
29716
29716
  ...t
@@ -29723,7 +29723,7 @@ function X4({ className: e, ...t }) {
29723
29723
  {
29724
29724
  "data-slot": "table-head",
29725
29725
  className: ie(
29726
- "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
29726
+ "h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
29727
29727
  e
29728
29728
  ),
29729
29729
  ...t
@@ -29800,10 +29800,10 @@ function tY({
29800
29800
  {
29801
29801
  "data-slot": "tabs-trigger",
29802
29802
  className: ie(
29803
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
29803
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
29804
29804
  "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent",
29805
- "data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground",
29806
- "after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",
29805
+ "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground",
29806
+ "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",
29807
29807
  e
29808
29808
  ),
29809
29809
  ...t
@@ -29918,7 +29918,7 @@ function oY({
29918
29918
  children: l ? "Loading..." : e
29919
29919
  }
29920
29920
  ),
29921
- h && /* @__PURE__ */ _("span", { className: "text-destructive text-xs", children: h })
29921
+ h && /* @__PURE__ */ _("span", { className: "text-xs text-destructive", children: h })
29922
29922
  ] });
29923
29923
  }
29924
29924
  function sY({
@@ -29956,12 +29956,12 @@ function lY({
29956
29956
  {
29957
29957
  "data-slot": "card-wrapper",
29958
29958
  className: ie(
29959
- "bg-card text-card-foreground flex flex-col gap-6 p-6",
29959
+ "flex flex-col gap-6 bg-card p-6 text-card-foreground",
29960
29960
  t
29961
29961
  ),
29962
29962
  ...n,
29963
29963
  children: [
29964
- e && /* @__PURE__ */ _("div", { className: "text-foreground text-lg leading-none font-semibold", children: e }),
29964
+ e && /* @__PURE__ */ _("div", { className: "text-lg leading-none font-semibold text-foreground", children: e }),
29965
29965
  /* @__PURE__ */ _("div", { className: "flex flex-col gap-6", children: r })
29966
29966
  ]
29967
29967
  }
@@ -30041,7 +30041,7 @@ function vY({
30041
30041
  }
30042
30042
  function mY({ items: e, ordered: t = !1, className: r }) {
30043
30043
  const n = ie(
30044
- "text-foreground space-y-1 pl-4",
30044
+ "space-y-1 pl-4 text-foreground",
30045
30045
  t ? "list-decimal" : "list-disc",
30046
30046
  r
30047
30047
  );
@@ -30080,8 +30080,8 @@ function gY({
30080
30080
  className: ie("flex flex-col", n),
30081
30081
  ...i,
30082
30082
  children: [
30083
- /* @__PURE__ */ _("span", { className: "text-muted-foreground text-sm", children: e }),
30084
- /* @__PURE__ */ _("span", { className: "text-foreground text-2xl font-semibold", children: yY(t, r) })
30083
+ /* @__PURE__ */ _("span", { className: "text-sm text-muted-foreground", children: e }),
30084
+ /* @__PURE__ */ _("span", { className: "text-2xl font-semibold text-foreground", children: yY(t, r) })
30085
30085
  ]
30086
30086
  }
30087
30087
  );
@@ -30225,7 +30225,7 @@ const CY = {
30225
30225
  function hC(e, t) {
30226
30226
  const r = CY[e.type];
30227
30227
  if (!r)
30228
- return /* @__PURE__ */ oe("div", { className: "text-muted-foreground text-xs", children: [
30228
+ return /* @__PURE__ */ oe("div", { className: "text-xs text-muted-foreground", children: [
30229
30229
  "Unknown component: ",
30230
30230
  e.type
30231
30231
  ] }, t);
@@ -30238,7 +30238,7 @@ const IY = ({ content: e, className: t }) => {
30238
30238
  "div",
30239
30239
  {
30240
30240
  className: ie(
30241
- "text-muted-foreground flex items-center gap-2 text-sm",
30241
+ "flex items-center gap-2 text-sm text-muted-foreground",
30242
30242
  r("p-md"),
30243
30243
  t
30244
30244
  ),
@@ -30327,7 +30327,7 @@ const RY = () => {
30327
30327
  "span",
30328
30328
  {
30329
30329
  className: ie(
30330
- "shimmer text-muted-foreground text-sm transition-opacity duration-200",
30330
+ "shimmer text-sm text-muted-foreground transition-opacity duration-200",
30331
30331
  r ? "opacity-100" : "opacity-0"
30332
30332
  ),
30333
30333
  children: pv[e]
@@ -30344,7 +30344,7 @@ const RY = () => {
30344
30344
  return null;
30345
30345
  }
30346
30346
  }, [e]);
30347
- return t ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "p-4", children: /* @__PURE__ */ _(IY, { content: t }) }) }) : /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "bg-background flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ _(RY, {}) }) });
30347
+ return t ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "p-4", children: /* @__PURE__ */ _(IY, { content: t }) }) }) : /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "flex min-h-[400px] items-center justify-center bg-background", children: /* @__PURE__ */ _(RY, {}) }) });
30348
30348
  }, MY = {
30349
30349
  language: "ui",
30350
30350
  prompt: `Render structured data as visual UI using \`\`\`ui code blocks with valid JSON.
@@ -30423,4 +30423,4 @@ export {
30423
30423
  vr as y,
30424
30424
  Ne as z
30425
30425
  };
30426
- //# sourceMappingURL=index-CUitXazZ.js.map
30426
+ //# sourceMappingURL=index-D93pV0_o.js.map