@nadicodeai/ui 0.21.0 → 1.0.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 (354) hide show
  1. package/AGENTS.md +6 -7
  2. package/LICENSES/PAPER-SHADERS-APACHE-2.0.txt +186 -0
  3. package/NOTICE +12 -0
  4. package/README.md +14 -21
  5. package/dist/agents.d.ts +10 -0
  6. package/dist/agents.d.ts.map +1 -0
  7. package/dist/agents.js +10 -0
  8. package/dist/components/agent-card.d.ts +13 -0
  9. package/dist/components/agent-card.d.ts.map +1 -0
  10. package/dist/components/agent-card.js +15 -0
  11. package/dist/components/agent-visual.d.ts +17 -0
  12. package/dist/components/agent-visual.d.ts.map +1 -0
  13. package/dist/components/agent-visual.js +59 -0
  14. package/dist/components/alert-dialog.js +1 -1
  15. package/dist/components/badge.d.ts +1 -1
  16. package/dist/components/badge.d.ts.map +1 -1
  17. package/dist/components/badge.js +9 -0
  18. package/dist/components/button.d.ts +1 -1
  19. package/dist/components/card.d.ts +5 -3
  20. package/dist/components/card.d.ts.map +1 -1
  21. package/dist/components/card.js +7 -7
  22. package/dist/components/chart.js +1 -1
  23. package/dist/components/combobox.js +1 -1
  24. package/dist/components/context-menu.js +1 -1
  25. package/dist/components/dialog.js +1 -1
  26. package/dist/components/drawer.js +1 -1
  27. package/dist/components/dropdown-menu.js +1 -1
  28. package/dist/components/empty.d.ts +5 -2
  29. package/dist/components/empty.d.ts.map +1 -1
  30. package/dist/components/empty.js +3 -3
  31. package/dist/components/feedback-state.js +1 -1
  32. package/dist/components/glass-control.d.ts +7 -0
  33. package/dist/components/glass-control.d.ts.map +1 -0
  34. package/dist/components/glass-control.js +14 -0
  35. package/dist/components/hover-card.js +1 -1
  36. package/dist/components/label-system.d.ts +1 -10
  37. package/dist/components/label-system.d.ts.map +1 -1
  38. package/dist/components/label-system.js +1 -7
  39. package/dist/components/live-demo.js +1 -1
  40. package/dist/components/menubar.js +1 -1
  41. package/dist/components/nav-bar.d.ts +6 -8
  42. package/dist/components/nav-bar.d.ts.map +1 -1
  43. package/dist/components/nav-bar.js +8 -9
  44. package/dist/components/navigation-menu.js +2 -2
  45. package/dist/components/popover.js +1 -1
  46. package/dist/components/select.js +1 -1
  47. package/dist/components/sheet.js +1 -1
  48. package/dist/components/sidebar.js +1 -1
  49. package/dist/components/sonner.js +2 -2
  50. package/dist/components/testimonials.d.ts +1 -1
  51. package/dist/components/testimonials.js +2 -2
  52. package/dist/components/tooltip.js +1 -1
  53. package/dist/components/use-case-bento.d.ts +2 -4
  54. package/dist/components/use-case-bento.d.ts.map +1 -1
  55. package/dist/components/use-case-bento.js +2 -3
  56. package/dist/hooks/index.d.ts +0 -1
  57. package/dist/hooks/index.d.ts.map +1 -1
  58. package/dist/hooks/index.js +0 -1
  59. package/dist/index.d.ts +3 -16
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +3 -16
  62. package/dist/internal/agent-visual/color.d.ts +4 -0
  63. package/dist/internal/agent-visual/color.d.ts.map +1 -0
  64. package/dist/internal/agent-visual/color.js +39 -0
  65. package/dist/internal/agent-visual/poster.d.ts +6 -0
  66. package/dist/internal/agent-visual/poster.d.ts.map +1 -0
  67. package/dist/internal/agent-visual/poster.js +35 -0
  68. package/dist/internal/agent-visual/recipes.d.ts +15 -0
  69. package/dist/internal/agent-visual/recipes.d.ts.map +1 -0
  70. package/dist/internal/agent-visual/recipes.js +72 -0
  71. package/dist/internal/agent-visual/renderer.d.ts +10 -0
  72. package/dist/internal/agent-visual/renderer.d.ts.map +1 -0
  73. package/dist/internal/agent-visual/renderer.js +112 -0
  74. package/dist/internal/agent-visual/shader.d.ts +2 -0
  75. package/dist/internal/agent-visual/shader.d.ts.map +1 -0
  76. package/dist/internal/agent-visual/shader.js +158 -0
  77. package/dist/internal/assistant-ui/attachment.d.ts +5 -0
  78. package/dist/internal/assistant-ui/attachment.d.ts.map +1 -0
  79. package/dist/internal/assistant-ui/attachment.js +93 -0
  80. package/dist/internal/assistant-ui/follow-up-suggestions.d.ts +3 -0
  81. package/dist/internal/assistant-ui/follow-up-suggestions.d.ts.map +1 -0
  82. package/dist/internal/assistant-ui/follow-up-suggestions.js +8 -0
  83. package/dist/internal/assistant-ui/markdown-text.d.ts +2 -0
  84. package/dist/internal/assistant-ui/markdown-text.d.ts.map +1 -0
  85. package/dist/internal/assistant-ui/markdown-text.js +54 -0
  86. package/dist/internal/assistant-ui/reasoning.d.ts +31 -0
  87. package/dist/internal/assistant-ui/reasoning.d.ts.map +1 -0
  88. package/dist/internal/assistant-ui/reasoning.js +118 -0
  89. package/dist/internal/assistant-ui/thread.d.ts +26 -0
  90. package/dist/internal/assistant-ui/thread.d.ts.map +1 -0
  91. package/dist/internal/assistant-ui/thread.js +118 -0
  92. package/dist/internal/assistant-ui/tool-fallback.d.ts +10 -0
  93. package/dist/internal/assistant-ui/tool-fallback.d.ts.map +1 -0
  94. package/dist/internal/assistant-ui/tool-fallback.js +163 -0
  95. package/dist/internal/assistant-ui/tool-group.d.ts +18 -0
  96. package/dist/internal/assistant-ui/tool-group.d.ts.map +1 -0
  97. package/dist/internal/assistant-ui/tool-group.js +44 -0
  98. package/dist/internal/assistant-ui/tooltip-icon-button.d.ts +8 -0
  99. package/dist/internal/assistant-ui/tooltip-icon-button.d.ts.map +1 -0
  100. package/dist/internal/assistant-ui/tooltip-icon-button.js +10 -0
  101. package/dist/styles/globals.css +24 -209
  102. package/docs/agents/nadicodeai-ui.md +8 -8
  103. package/docs/component-classification.md +1 -1
  104. package/docs/consuming-cross-repo.md +12 -4
  105. package/docs/contract.md +83 -7
  106. package/docs/migration/1.0.0.md +75 -0
  107. package/docs/migration/base-ui-migration.md +0 -11
  108. package/docs/product-compositions.md +1 -1
  109. package/llms.txt +7 -6
  110. package/package.json +17 -29
  111. package/skills/nadicodeai-ui/SKILL.md +11 -7
  112. package/dist/ai-elements.d.ts +0 -49
  113. package/dist/ai-elements.d.ts.map +0 -1
  114. package/dist/ai-elements.js +0 -48
  115. package/dist/components/agent-avatar.d.ts +0 -7
  116. package/dist/components/agent-avatar.d.ts.map +0 -1
  117. package/dist/components/agent-avatar.js +0 -6
  118. package/dist/components/agent-chat.d.ts +0 -20
  119. package/dist/components/agent-chat.d.ts.map +0 -1
  120. package/dist/components/agent-chat.js +0 -10
  121. package/dist/components/agent-composer.d.ts +0 -56
  122. package/dist/components/agent-composer.d.ts.map +0 -1
  123. package/dist/components/agent-composer.js +0 -56
  124. package/dist/components/agent-message.d.ts +0 -117
  125. package/dist/components/agent-message.d.ts.map +0 -1
  126. package/dist/components/agent-message.js +0 -99
  127. package/dist/components/agent-thread.d.ts +0 -26
  128. package/dist/components/agent-thread.d.ts.map +0 -1
  129. package/dist/components/agent-thread.js +0 -63
  130. package/dist/components/agent-tool-approval.d.ts +0 -27
  131. package/dist/components/agent-tool-approval.d.ts.map +0 -1
  132. package/dist/components/agent-tool-approval.js +0 -43
  133. package/dist/components/ai-elements/agent.d.ts +0 -27
  134. package/dist/components/ai-elements/agent.d.ts.map +0 -1
  135. package/dist/components/ai-elements/agent.js +0 -25
  136. package/dist/components/ai-elements/artifact.d.ts +0 -24
  137. package/dist/components/ai-elements/artifact.d.ts.map +0 -1
  138. package/dist/components/ai-elements/artifact.js +0 -20
  139. package/dist/components/ai-elements/attachments.d.ts +0 -55
  140. package/dist/components/ai-elements/attachments.d.ts.map +0 -1
  141. package/dist/components/ai-elements/attachments.js +0 -125
  142. package/dist/components/ai-elements/audio-player.d.ts +0 -30
  143. package/dist/components/ai-elements/audio-player.d.ts.map +0 -1
  144. package/dist/components/ai-elements/audio-player.js +0 -41
  145. package/dist/components/ai-elements/canvas.d.ts +0 -8
  146. package/dist/components/ai-elements/canvas.d.ts.map +0 -1
  147. package/dist/components/ai-elements/canvas.js +0 -5
  148. package/dist/components/ai-elements/chain-of-thought.d.ts +0 -30
  149. package/dist/components/ai-elements/chain-of-thought.d.ts.map +0 -1
  150. package/dist/components/ai-elements/chain-of-thought.js +0 -49
  151. package/dist/components/ai-elements/checkpoint.d.ts +0 -12
  152. package/dist/components/ai-elements/checkpoint.d.ts.map +0 -1
  153. package/dist/components/ai-elements/checkpoint.js +0 -10
  154. package/dist/components/ai-elements/code-block.d.ts +0 -53
  155. package/dist/components/ai-elements/code-block.d.ts.map +0 -1
  156. package/dist/components/ai-elements/code-block.js +0 -239
  157. package/dist/components/ai-elements/commit.d.ts +0 -65
  158. package/dist/components/ai-elements/commit.d.ts.map +0 -1
  159. package/dist/components/ai-elements/commit.js +0 -83
  160. package/dist/components/ai-elements/confirmation.d.ts +0 -50
  161. package/dist/components/ai-elements/confirmation.d.ts.map +0 -1
  162. package/dist/components/ai-elements/confirmation.js +0 -57
  163. package/dist/components/ai-elements/connection.d.ts +0 -6
  164. package/dist/components/ai-elements/connection.d.ts.map +0 -1
  165. package/dist/components/ai-elements/connection.js +0 -10
  166. package/dist/components/ai-elements/context.d.ts +0 -33
  167. package/dist/components/ai-elements/context.d.ts.map +0 -1
  168. package/dist/components/ai-elements/context.js +0 -147
  169. package/dist/components/ai-elements/controls.d.ts +0 -5
  170. package/dist/components/ai-elements/controls.d.ts.map +0 -1
  171. package/dist/components/ai-elements/controls.js +0 -5
  172. package/dist/components/ai-elements/conversation.d.ts +0 -24
  173. package/dist/components/ai-elements/conversation.d.ts.map +0 -1
  174. package/dist/components/ai-elements/conversation.js +0 -41
  175. package/dist/components/ai-elements/edge.d.ts +0 -6
  176. package/dist/components/ai-elements/edge.d.ts.map +0 -1
  177. package/dist/components/ai-elements/edge.js +0 -88
  178. package/dist/components/ai-elements/environment-variables.d.ts +0 -39
  179. package/dist/components/ai-elements/environment-variables.d.ts.map +0 -1
  180. package/dist/components/ai-elements/environment-variables.js +0 -60
  181. package/dist/components/ai-elements/file-tree.d.ts +0 -27
  182. package/dist/components/ai-elements/file-tree.d.ts.map +0 -1
  183. package/dist/components/ai-elements/file-tree.js +0 -73
  184. package/dist/components/ai-elements/image.d.ts +0 -7
  185. package/dist/components/ai-elements/image.d.ts.map +0 -1
  186. package/dist/components/ai-elements/image.js +0 -3
  187. package/dist/components/ai-elements/inline-citation.d.ts +0 -39
  188. package/dist/components/ai-elements/inline-citation.d.ts.map +0 -1
  189. package/dist/components/ai-elements/inline-citation.js +0 -86
  190. package/dist/components/ai-elements/jsx-preview.d.ts +0 -30
  191. package/dist/components/ai-elements/jsx-preview.d.ts.map +0 -1
  192. package/dist/components/ai-elements/jsx-preview.js +0 -159
  193. package/dist/components/ai-elements/message.d.ts +0 -38
  194. package/dist/components/ai-elements/message.d.ts.map +0 -1
  195. package/dist/components/ai-elements/message.js +0 -91
  196. package/dist/components/ai-elements/mic-selector.d.ts +0 -46
  197. package/dist/components/ai-elements/mic-selector.d.ts.map +0 -1
  198. package/dist/components/ai-elements/mic-selector.js +0 -180
  199. package/dist/components/ai-elements/model-selector.d.ts +0 -36
  200. package/dist/components/ai-elements/model-selector.d.ts.map +0 -1
  201. package/dist/components/ai-elements/model-selector.js +0 -18
  202. package/dist/components/ai-elements/node.d.ts +0 -22
  203. package/dist/components/ai-elements/node.d.ts.map +0 -1
  204. package/dist/components/ai-elements/node.js +0 -12
  205. package/dist/components/ai-elements/open-in-chat.d.ts +0 -27
  206. package/dist/components/ai-elements/open-in-chat.d.ts.map +0 -1
  207. package/dist/components/ai-elements/open-in-chat.js +0 -81
  208. package/dist/components/ai-elements/package-info.d.ts +0 -30
  209. package/dist/components/ai-elements/package-info.d.ts.map +0 -1
  210. package/dist/components/ai-elements/package-info.js +0 -50
  211. package/dist/components/ai-elements/panel.d.ts +0 -6
  212. package/dist/components/ai-elements/panel.d.ts.map +0 -1
  213. package/dist/components/ai-elements/panel.js +0 -5
  214. package/dist/components/ai-elements/persona.d.ts +0 -49
  215. package/dist/components/ai-elements/persona.d.ts.map +0 -1
  216. package/dist/components/ai-elements/persona.js +0 -175
  217. package/dist/components/ai-elements/plan.d.ts +0 -27
  218. package/dist/components/ai-elements/plan.d.ts.map +0 -1
  219. package/dist/components/ai-elements/plan.js +0 -34
  220. package/dist/components/ai-elements/prompt-input.d.ts +0 -149
  221. package/dist/components/ai-elements/prompt-input.d.ts.map +0 -1
  222. package/dist/components/ai-elements/prompt-input.js +0 -704
  223. package/dist/components/ai-elements/queue.d.ts +0 -62
  224. package/dist/components/ai-elements/queue.d.ts.map +0 -1
  225. package/dist/components/ai-elements/queue.js +0 -24
  226. package/dist/components/ai-elements/reasoning.d.ts +0 -27
  227. package/dist/components/ai-elements/reasoning.d.ts.map +0 -1
  228. package/dist/components/ai-elements/reasoning.js +0 -92
  229. package/dist/components/ai-elements/sandbox.d.ts +0 -25
  230. package/dist/components/ai-elements/sandbox.d.ts.map +0 -1
  231. package/dist/components/ai-elements/sandbox.js +0 -15
  232. package/dist/components/ai-elements/schema-display.d.ts +0 -56
  233. package/dist/components/ai-elements/schema-display.d.ts.map +0 -1
  234. package/dist/components/ai-elements/schema-display.js +0 -90
  235. package/dist/components/ai-elements/shimmer.d.ts +0 -10
  236. package/dist/components/ai-elements/shimmer.d.ts.map +0 -1
  237. package/dist/components/ai-elements/shimmer.js +0 -11
  238. package/dist/components/ai-elements/snippet.d.ts +0 -19
  239. package/dist/components/ai-elements/snippet.d.ts.map +0 -1
  240. package/dist/components/ai-elements/snippet.js +0 -32
  241. package/dist/components/ai-elements/sources.d.ts +0 -13
  242. package/dist/components/ai-elements/sources.d.ts.map +0 -1
  243. package/dist/components/ai-elements/sources.js +0 -9
  244. package/dist/components/ai-elements/speech-input.d.ts +0 -55
  245. package/dist/components/ai-elements/speech-input.d.ts.map +0 -1
  246. package/dist/components/ai-elements/speech-input.js +0 -187
  247. package/dist/components/ai-elements/stack-trace.d.ts +0 -38
  248. package/dist/components/ai-elements/stack-trace.d.ts.map +0 -1
  249. package/dist/components/ai-elements/stack-trace.js +0 -181
  250. package/dist/components/ai-elements/suggestion.d.ts +0 -11
  251. package/dist/components/ai-elements/suggestion.d.ts.map +0 -1
  252. package/dist/components/ai-elements/suggestion.js +0 -13
  253. package/dist/components/ai-elements/task.d.ts +0 -15
  254. package/dist/components/ai-elements/task.d.ts.map +0 -1
  255. package/dist/components/ai-elements/task.js +0 -10
  256. package/dist/components/ai-elements/terminal.d.ts +0 -28
  257. package/dist/components/ai-elements/terminal.d.ts.map +0 -1
  258. package/dist/components/ai-elements/terminal.js +0 -55
  259. package/dist/components/ai-elements/test-results.d.ts +0 -59
  260. package/dist/components/ai-elements/test-results.d.ts.map +0 -1
  261. package/dist/components/ai-elements/test-results.js +0 -98
  262. package/dist/components/ai-elements/tool.d.ts +0 -32
  263. package/dist/components/ai-elements/tool.d.ts.map +0 -1
  264. package/dist/components/ai-elements/tool.js +0 -49
  265. package/dist/components/ai-elements/toolbar.d.ts +0 -6
  266. package/dist/components/ai-elements/toolbar.d.ts.map +0 -1
  267. package/dist/components/ai-elements/toolbar.js +0 -5
  268. package/dist/components/ai-elements/transcription.d.ts +0 -17
  269. package/dist/components/ai-elements/transcription.d.ts.map +0 -1
  270. package/dist/components/ai-elements/transcription.js +0 -36
  271. package/dist/components/ai-elements/voice-selector.d.ts +0 -65
  272. package/dist/components/ai-elements/voice-selector.d.ts.map +0 -1
  273. package/dist/components/ai-elements/voice-selector.js +0 -224
  274. package/dist/components/ai-elements/web-preview.d.ts +0 -35
  275. package/dist/components/ai-elements/web-preview.d.ts.map +0 -1
  276. package/dist/components/ai-elements/web-preview.js +0 -66
  277. package/dist/components/artifact-panel.d.ts +0 -130
  278. package/dist/components/artifact-panel.d.ts.map +0 -1
  279. package/dist/components/artifact-panel.js +0 -180
  280. package/dist/components/attachment.d.ts +0 -24
  281. package/dist/components/attachment.d.ts.map +0 -1
  282. package/dist/components/attachment.js +0 -68
  283. package/dist/components/bubble.d.ts +0 -17
  284. package/dist/components/bubble.d.ts.map +0 -1
  285. package/dist/components/bubble.js +0 -59
  286. package/dist/components/demo-surface.d.ts +0 -34
  287. package/dist/components/demo-surface.d.ts.map +0 -1
  288. package/dist/components/demo-surface.js +0 -21
  289. package/dist/components/files-preview.d.ts +0 -36
  290. package/dist/components/files-preview.d.ts.map +0 -1
  291. package/dist/components/files-preview.js +0 -85
  292. package/dist/components/marker.d.ts +0 -11
  293. package/dist/components/marker.d.ts.map +0 -1
  294. package/dist/components/marker.js +0 -34
  295. package/dist/components/message-scroller.d.ts +0 -17
  296. package/dist/components/message-scroller.d.ts.map +0 -1
  297. package/dist/components/message-scroller.js +0 -29
  298. package/dist/components/message.d.ts +0 -11
  299. package/dist/components/message.d.ts.map +0 -1
  300. package/dist/components/message.js +0 -21
  301. package/dist/components/state-notice.d.ts +0 -13
  302. package/dist/components/state-notice.d.ts.map +0 -1
  303. package/dist/components/state-notice.js +0 -8
  304. package/dist/components/watch-it-work-band.d.ts +0 -12
  305. package/dist/components/watch-it-work-band.d.ts.map +0 -1
  306. package/dist/components/watch-it-work-band.js +0 -8
  307. package/dist/hooks/use-controllable-state.d.ts +0 -9
  308. package/dist/hooks/use-controllable-state.d.ts.map +0 -1
  309. package/dist/hooks/use-controllable-state.js +0 -23
  310. package/dist/lib/agent-attachment.d.ts +0 -11
  311. package/dist/lib/agent-attachment.d.ts.map +0 -1
  312. package/dist/lib/agent-attachment.js +0 -19
  313. package/dist/lib/agent-contracts.d.ts +0 -132
  314. package/dist/lib/agent-contracts.d.ts.map +0 -1
  315. package/dist/lib/agent-contracts.js +0 -6
  316. package/dist/lib/agent-state.d.ts +0 -22
  317. package/dist/lib/agent-state.d.ts.map +0 -1
  318. package/dist/lib/agent-state.js +0 -96
  319. package/dist/lib/agent-work-state.d.ts +0 -36
  320. package/dist/lib/agent-work-state.d.ts.map +0 -1
  321. package/dist/lib/agent-work-state.js +0 -36
  322. package/dist/lib/message-scroller-primitive/components.d.ts +0 -17
  323. package/dist/lib/message-scroller-primitive/components.d.ts.map +0 -1
  324. package/dist/lib/message-scroller-primitive/components.js +0 -204
  325. package/dist/lib/message-scroller-primitive/geometry.d.ts +0 -51
  326. package/dist/lib/message-scroller-primitive/geometry.d.ts.map +0 -1
  327. package/dist/lib/message-scroller-primitive/geometry.js +0 -199
  328. package/dist/lib/message-scroller-primitive/index.d.ts +0 -12
  329. package/dist/lib/message-scroller-primitive/index.d.ts.map +0 -1
  330. package/dist/lib/message-scroller-primitive/index.js +0 -12
  331. package/dist/lib/message-scroller-primitive/stores.d.ts +0 -6
  332. package/dist/lib/message-scroller-primitive/stores.d.ts.map +0 -1
  333. package/dist/lib/message-scroller-primitive/stores.js +0 -53
  334. package/dist/lib/message-scroller-primitive/types.d.ts +0 -88
  335. package/dist/lib/message-scroller-primitive/types.d.ts.map +0 -1
  336. package/dist/lib/message-scroller-primitive/types.js +0 -40
  337. package/dist/lib/message-scroller-primitive/use-message-scroller-commands.d.ts +0 -19
  338. package/dist/lib/message-scroller-primitive/use-message-scroller-commands.d.ts.map +0 -1
  339. package/dist/lib/message-scroller-primitive/use-message-scroller-commands.js +0 -188
  340. package/dist/lib/message-scroller-primitive/use-message-scroller-controller.d.ts +0 -7
  341. package/dist/lib/message-scroller-primitive/use-message-scroller-controller.d.ts.map +0 -1
  342. package/dist/lib/message-scroller-primitive/use-message-scroller-controller.js +0 -506
  343. package/dist/lib/message-scroller-primitive/use-message-scroller-refs.d.ts +0 -49
  344. package/dist/lib/message-scroller-primitive/use-message-scroller-refs.d.ts.map +0 -1
  345. package/dist/lib/message-scroller-primitive/use-message-scroller-refs.js +0 -90
  346. package/dist/lib/message-scroller-primitive/use-render.d.ts +0 -22
  347. package/dist/lib/message-scroller-primitive/use-render.d.ts.map +0 -1
  348. package/dist/lib/message-scroller-primitive/use-render.js +0 -113
  349. package/dist/lib/message-scroller-primitive/utils.d.ts +0 -4
  350. package/dist/lib/message-scroller-primitive/utils.d.ts.map +0 -1
  351. package/dist/lib/message-scroller-primitive/utils.js +0 -9
  352. package/docs/agent-work-surfaces.md +0 -132
  353. package/docs/migration/ai-elements-vendoring.md +0 -29
  354. package/docs/terminal-tui-semantics.md +0 -172
package/AGENTS.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # @nadicodeai/ui - Agent Rules
2
2
 
3
- The `@nadicodeai/ui` npm workspace: the shared NadicodeAI React UI package on brand tokens (Tailwind v4, semantic light/dark roles). It ships shadcn primitives backed by Base UI, AI Elements, React adapters over the design-system grammar, reusable marketing/section compositions, and plan-approved product components. Source-authored in `src/`, published from built `dist/`. The package's normative rules (styling and shape invariants, admission, accessibility tier, section vocabulary, consumer boundary) live in `docs/contract.md`; read it before changing the component library.
3
+ The `@nadicodeai/ui` npm workspace: the shared NadicodeAI React UI package on brand tokens (Tailwind v4, semantic light/dark roles). It ships shadcn primitives backed by Base UI, the `@nadicodeai/ui/agents` interface, React adapters over the design-system grammar, reusable marketing/section compositions, and plan-approved product components. Source-authored in `src/`, published from built `dist/`. The package's normative rules (styling and shape invariants, admission, accessibility tier, section vocabulary, consumer boundary) live in `docs/contract.md`; read it before changing the component library.
4
4
 
5
5
  ## Commands
6
6
 
7
+ Proof escalates by the ladder in the root `AGENTS.md` "Commands": `npm run check -w @nadicodeai/ui` and `npm run test -w @nadicodeai/ui` before pushing. `test` builds `dist` first, then runs the workspace guards and the browser-free jsdom + axe-core tier-1 accessibility checks.
8
+
7
9
  | Command | When |
8
10
  | --- | --- |
9
11
  | `npm run dev -w @nadicodeai/ui` | Watch `src/` and incrementally refresh `dist/` for local website or app iteration |
10
- | `npm run build:fast -w @nadicodeai/ui` | One-shot incremental `dist/` refresh after a prior full build |
11
- | `npm run generate:brand-icons -w @nadicodeai/ui` | Re-emit `src/components/brand-icons/` after editing the allow-list in `scripts/build-brand-icons.mjs`; never part of the build |
12
+ | `npm run build:dev -w @nadicodeai/ui` | One-shot incremental `dist/` refresh after a prior full build |
12
13
  | `npm run build -w @nadicodeai/ui` | Emit the consumable `dist/` surface before packing or app builds |
14
+ | `npm run generate:brand-icons -w @nadicodeai/ui` | Re-emit `src/components/brand-icons/` after editing the allow-list in `scripts/build-brand-icons.mjs`; never part of the build |
13
15
  | `npm pack --dry-run -w @nadicodeai/ui` | Verify exactly what npm consumers receive after surface, export, CSS, docs, or skill changes |
14
- | `npm run lint -w @nadicodeai/ui` / `npm run typecheck -w @nadicodeai/ui` | ESLint / `tsc --noEmit` |
15
- | `npm run test -w @nadicodeai/ui` | Builds `dist`, then runs the workspace guards and browser-free jsdom + axe-core tier-1 accessibility checks (also inside the root gate) |
16
16
 
17
17
  ## Routing
18
18
 
@@ -25,11 +25,10 @@ The `@nadicodeai/ui` npm workspace: the shared NadicodeAI React UI package on br
25
25
  | Token, mode, theme, cascade, and public stylesheet architecture | `../../design-system/DESIGN.md` (this package does not own a second token map) |
26
26
  | Motion behavior | `../../design-system/DESIGN.md` "Motion", `src/lib/motion.ts`, then `../../skills/nadicodeai-product-design/references/motion-craft.md` for agent procedure |
27
27
  | Which component subpaths exist | `package.json` `exports` (the `./components/*` wildcard over `src/components/` source is the whole surface; never maintain a hand-copied list) |
28
- | shadcn / AI Elements discovery | Live shadcn MCP or CLI (`npx shadcn@latest info\|search\|docs\|view\|add --dry-run`, see `../../skills/shadcn/SKILL.md`); no committed registry inventory or snapshot exists, and `--overwrite` needs an explicit maintainer ask plus a reviewed diff |
28
+ | shadcn / assistant-ui discovery | Live shadcn and assistant-ui CLIs (`npx shadcn@latest info\|search\|docs\|view\|add --dry-run`, `npx assistant-ui@latest add --help`); no committed registry inventory or snapshot exists, and `--overwrite` needs an explicit maintainer ask plus a reviewed diff |
29
29
  | Releasing / publishing | `../../docs/internal/npm-publishing.md` (release decision enforced by the pre-push gate; detail in `docs/contract.md`) |
30
30
  | Tokens, geometry, and the CSS the package composes | `../../design-system/AGENTS.md` and `design-system/DESIGN.md` |
31
31
  | Website page assembly | `../../website/AGENTS.md` |
32
32
  | Portal screens | `../../portal/AGENTS.md` |
33
33
  | User-visible UI work | `../../skills/nadicodeai-product-design/SKILL.md`, loaded after this rulebook |
34
- | TUI semantics | `docs/terminal-tui-semantics.md` |
35
34
  | Docs shipped to package consumers | `docs/contract.md` owns invariants, `docs/consuming-cross-repo.md` owns setup, and `llms.txt`, `docs/agents/nadicodeai-ui.md`, `docs/migration/`, and `skills/nadicodeai-ui/SKILL.md` map to those owners while documenting their own component or workflow surface |
@@ -0,0 +1,186 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the
13
+ copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other
16
+ entities that control, are controlled by, or are under common control with
17
+ that entity. For the purposes of this definition, "control" means (i) the
18
+ power, direct or indirect, to cause the direction or management of such
19
+ entity, whether by contract or otherwise, or (ii) ownership of fifty percent
20
+ (50%) or more of the outstanding shares, or (iii) beneficial ownership of
21
+ such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
24
+ permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation source, and
28
+ configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical transformation
31
+ or translation of a Source form, including but not limited to compiled object
32
+ code, generated documentation, and conversions to other media types.
33
+
34
+ "Work" shall mean the work of authorship, whether in Source or Object form,
35
+ made available under the License, as indicated by a copyright notice that is
36
+ included in or attached to the work (an example is provided in the Appendix
37
+ below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object form,
40
+ that is based on (or derived from) the Work and for which the editorial
41
+ revisions, annotations, elaborations, or other modifications represent, as a
42
+ whole, an original work of authorship. For the purposes of this License,
43
+ Derivative Works shall not include works that remain separable from, or merely
44
+ link (or bind by name) to the interfaces of, the Work and Derivative Works
45
+ thereof.
46
+
47
+ "Contribution" shall mean any work of authorship, including the original
48
+ version of the Work and any modifications or additions to that Work or
49
+ Derivative Works thereof, that is intentionally submitted to Licensor for
50
+ inclusion in the Work by the copyright owner or by an individual or Legal
51
+ Entity authorized to submit on behalf of the copyright owner. For the purposes
52
+ of this definition, "submitted" means any form of electronic, verbal, or
53
+ written communication sent to the Licensor or its representatives, including
54
+ but not limited to communication on electronic mailing lists, source code
55
+ control systems, and issue tracking systems that are managed by, or on behalf
56
+ of, the Licensor for the purpose of discussing and improving the Work, but
57
+ excluding communication that is conspicuously marked or otherwise designated
58
+ in writing by the copyright owner as "Not a Contribution."
59
+
60
+ "Contributor" shall mean Licensor and any individual or Legal Entity on
61
+ behalf of whom a Contribution has been received by Licensor and subsequently
62
+ incorporated within the Work.
63
+
64
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
65
+ License, each Contributor hereby grants to You a perpetual, worldwide,
66
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
67
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
68
+ sublicense, and distribute the Work and such Derivative Works in Source or
69
+ Object form.
70
+
71
+ 3. Grant of Patent License. Subject to the terms and conditions of this
72
+ License, each Contributor hereby grants to You a perpetual, worldwide,
73
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
74
+ section) patent license to make, have made, use, offer to sell, sell, import,
75
+ and otherwise transfer the Work, where such license applies only to those
76
+ patent claims licensable by such Contributor that are necessarily infringed by
77
+ their Contribution(s) alone or by combination of their Contribution(s) with
78
+ the Work to which such Contribution(s) was submitted. If You institute patent
79
+ litigation against any entity (including a cross-claim or counterclaim in a
80
+ lawsuit) alleging that the Work or a Contribution incorporated within the Work
81
+ constitutes direct or contributory patent infringement, then any patent
82
+ licenses granted to You under this License for that Work shall terminate as of
83
+ the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
86
+ Derivative Works thereof in any medium, with or without modifications, and in
87
+ Source or Object form, provided that You meet the following conditions:
88
+
89
+ (a) You must give any other recipients of the Work or Derivative Works a copy
90
+ of this License; and
91
+
92
+ (b) You must cause any modified files to carry prominent notices stating that
93
+ You changed the files; and
94
+
95
+ (c) You must retain, in the Source form of any Derivative Works that You
96
+ distribute, all copyright, patent, trademark, and attribution notices from the
97
+ Source form of the Work, excluding those notices that do not pertain to any
98
+ part of the Derivative Works; and
99
+
100
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
101
+ then any Derivative Works that You distribute must include a readable copy of
102
+ the attribution notices contained within such NOTICE file, excluding those
103
+ notices that do not pertain to any part of the Derivative Works, in at least
104
+ one of the following places: within a NOTICE text file distributed as part of
105
+ the Derivative Works; within the Source form or documentation, if provided
106
+ along with the Derivative Works; or, within a display generated by the
107
+ Derivative Works, if and wherever such third-party notices normally appear.
108
+ The contents of the NOTICE file are for informational purposes only and do not
109
+ modify the License. You may add Your own attribution notices within Derivative
110
+ Works that You distribute, alongside or as an addendum to the NOTICE text from
111
+ the Work, provided that such additional attribution notices cannot be
112
+ construed as modifying the License.
113
+
114
+ You may add Your own copyright statement to Your modifications and may provide
115
+ additional or different license terms and conditions for use, reproduction,
116
+ or distribution of Your modifications, or for any such Derivative Works as a
117
+ whole, provided Your use, reproduction, and distribution of the Work otherwise
118
+ complies with the conditions stated in this License.
119
+
120
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
121
+ Contribution intentionally submitted for inclusion in the Work by You to the
122
+ Licensor shall be under the terms and conditions of this License, without any
123
+ additional terms or conditions. Notwithstanding the above, nothing herein
124
+ shall supersede or modify the terms of any separate license agreement you may
125
+ have executed with Licensor regarding such Contributions.
126
+
127
+ 6. Trademarks. This License does not grant permission to use the trade names,
128
+ trademarks, service marks, or product names of the Licensor, except as required
129
+ for reasonable and customary use in describing the origin of the Work and
130
+ reproducing the content of the NOTICE file.
131
+
132
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
133
+ writing, Licensor provides the Work (and each Contributor provides its
134
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
135
+ KIND, either express or implied, including, without limitation, any warranties
136
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
137
+ PARTICULAR PURPOSE. You are solely responsible for determining the
138
+ appropriateness of using or redistributing the Work and assume any risks
139
+ associated with Your exercise of permissions under this License.
140
+
141
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
142
+ tort (including negligence), contract, or otherwise, unless required by
143
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
144
+ writing, shall any Contributor be liable to You for damages, including any
145
+ direct, indirect, special, incidental, or consequential damages of any
146
+ character arising as a result of this License or out of the use or inability to
147
+ use the Work (including but not limited to damages for loss of goodwill, work
148
+ stoppage, computer failure or malfunction, or any and all other commercial
149
+ damages or losses), even if such Contributor has been advised of the
150
+ possibility of such damages.
151
+
152
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work
153
+ or Derivative Works thereof, You may choose to offer, and charge a fee for,
154
+ acceptance of support, warranty, indemnity, or other liability obligations
155
+ and/or rights consistent with this License. However, in accepting such
156
+ obligations, You may act only on Your own behalf and on Your sole
157
+ responsibility, not on behalf of any other Contributor, and only if You agree
158
+ to indemnify, defend, and hold each Contributor harmless for any liability
159
+ incurred by, or claims asserted against, such Contributor by reason of your
160
+ accepting any such warranty or additional liability.
161
+
162
+ END OF TERMS AND CONDITIONS
163
+
164
+ APPENDIX: How to apply the Apache License to your work.
165
+
166
+ To apply the Apache License to your work, attach the following boilerplate
167
+ notice, with the fields enclosed by brackets "[]" replaced with your own
168
+ identifying information. (Don't include the brackets!) The text should be
169
+ enclosed in the appropriate comment syntax for the file format. We also
170
+ recommend that a file or class name and description of purpose be included on
171
+ the same "printed page" as the copyright notice for easier identification
172
+ within third-party archives.
173
+
174
+ Copyright [yyyy] [name of copyright owner]
175
+
176
+ Licensed under the Apache License, Version 2.0 (the "License");
177
+ you may not use this file except in compliance with the License.
178
+ You may obtain a copy of the License at
179
+
180
+ http://www.apache.org/licenses/LICENSE-2.0
181
+
182
+ Unless required by applicable law or agreed to in writing, software
183
+ distributed under the License is distributed on an "AS IS" BASIS,
184
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
185
+ See the License for the specific language governing permissions and
186
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,12 @@
1
+ @nadicodeai/ui includes a modified derivative of Paper Shaders 0.0.78.
2
+
3
+ Paper Shaders
4
+ Copyright 2026 Paper
5
+
6
+ Powered by Paper Shaders:
7
+ https://shaders.paper.design
8
+
9
+ The modified shader preserves Paper's Metaballs field, motion, colour blending,
10
+ and edge calculation while adding NadicodeAI's four approved clipped surface
11
+ materials. The modified source is
12
+ src/internal/agent-visual/shader.ts.
package/README.md CHANGED
@@ -14,8 +14,7 @@ and tests exist together.
14
14
  The package ships:
15
15
 
16
16
  - shadcn source components under `@nadicodeai/ui/components/*`, backed by Base UI primitives where a headless primitive is needed
17
- - Vercel AI Elements under `@nadicodeai/ui/components/ai-elements/*`
18
- - an AI Elements barrel at `@nadicodeai/ui/ai-elements`
17
+ - the Agent UI interface at `@nadicodeai/ui/agents`
19
18
  - React adapters over the design-system grammar and assets
20
19
  - reusable marketing/section compositions
21
20
  - presentational product components for shared application surfaces
@@ -23,8 +22,9 @@ The package ships:
23
22
  `docs/agents/nadicodeai-ui.md`, `docs/migration/`, and
24
23
  `skills/nadicodeai-ui/SKILL.md`
25
24
 
26
- The package surface is source-backed. `src/components/` is a flat shadcn-style
27
- source surface; do not document folders or package namespaces that do not exist.
25
+ The package surface is source-backed and flat under `src/components/`. Reviewed
26
+ third-party registry source stays under `src/internal/` and is not a package
27
+ namespace. Do not document folders or package namespaces that do not exist.
28
28
  Do not add top-level exports for recipes, blocks, agent, or terminal groupings
29
29
  until a concrete package API decision adds source, built files, docs, and tests
30
30
  together. Routes, persistence, auth behavior, server state, runtime adapters,
@@ -57,30 +57,24 @@ Prefer direct subpath imports in app code:
57
57
  ```tsx
58
58
  import { Button } from "@nadicodeai/ui/components/button";
59
59
  import { PageFrame } from "@nadicodeai/ui/components/page-frame";
60
- import { Message } from "@nadicodeai/ui/components/ai-elements/message";
60
+ import { Thread } from "@nadicodeai/ui/agents";
61
61
  ```
62
62
 
63
63
  The root export is available for tooling and DX, but direct component subpaths
64
64
  keep package use explicit and friendly to bundlers.
65
65
 
66
- AI Elements can also be imported from the dedicated barrel:
67
-
68
- ```tsx
69
- import { Message, PromptInput, Reasoning, Tool } from "@nadicodeai/ui/ai-elements";
70
- ```
71
-
72
66
  Product components use the same public component subpaths:
73
67
 
74
68
  ```tsx
75
69
  import { DashboardShell } from "@nadicodeai/ui/components/dashboard-shell";
76
- import { AgentChat } from "@nadicodeai/ui/components/agent-chat";
70
+ import { Thread } from "@nadicodeai/ui/agents";
77
71
  ```
78
72
 
79
73
  ## Discover components
80
74
 
81
75
  The component inventory is generated from source instead of maintained in
82
76
  prose. In this repository, `src/components/**/*.tsx` owns the module set;
83
- `src/index.ts` and `src/ai-elements.ts` own the barrels. `package.json` exposes
77
+ `src/index.ts` owns the barrel. `package.json` exposes
84
78
  that source-backed surface through `./components/*`, and the build writes the
85
79
  consumer view to `dist/components/**/*.d.ts`.
86
80
 
@@ -92,9 +86,9 @@ exports, and prop types.
92
86
 
93
87
  [`docs/contract.md`](docs/contract.md) owns the package/consumer boundary,
94
88
  admission rules, and accessibility invariants. Current modules are discovered
95
- from source and package exports, not from prose. Agent work-surface behavior,
96
- terminal semantics, and migration readiness each live in the linked package
97
- docs; this README does not summarize them.
89
+ from source and package exports, not from prose. assistant-ui runtime ownership
90
+ and migration readiness live in the linked package docs; this README does not
91
+ summarize them.
98
92
 
99
93
  ## Layout primitives
100
94
 
@@ -120,10 +114,10 @@ panels. `surface` also lands on a `data-surface` attribute. Pass `className`,
120
114
  detail (no public subpath export); couple to `SeamGrid` and its `surface` prop,
121
115
  not to the underlying arbitrary Tailwind class string.
122
116
 
123
- ## shadcn and AI Elements discovery
117
+ ## Registry maintenance
124
118
 
125
- Use shadcn MCP or the CLI for live discovery and install guidance while working
126
- in this package. Do not maintain a committed upstream registry inventory,
119
+ Use shadcn MCP or the CLI for live discovery and registry maintenance while
120
+ working in this package. Do not maintain a committed upstream registry inventory,
127
121
  registry snapshot, or inventory update script in `@nadicodeai/ui`; the source
128
122
  files and package exports are the committed surface.
129
123
 
@@ -139,11 +133,10 @@ When MCP is unavailable, use the CLI directly:
139
133
  ```bash
140
134
  npx shadcn@latest info --json
141
135
  npx shadcn@latest search @shadcn -q "select" --json
142
- npx shadcn@latest search @ai-elements -q "message" --json
143
136
  npx shadcn@latest docs button select dialog --json
144
137
  npx shadcn@latest view @shadcn/button
145
138
  npx shadcn@latest add @shadcn/button --dry-run
146
- npx shadcn@latest add @ai-elements/message --dry-run
139
+ npx assistant-ui@latest add thread --help
147
140
  ```
148
141
 
149
142
  `info --json` is the project-aware source of truth for aliases, Tailwind version,
@@ -0,0 +1,10 @@
1
+ export * from "@assistant-ui/react";
2
+ export * from "./internal/assistant-ui/attachment";
3
+ export * from "./internal/assistant-ui/follow-up-suggestions";
4
+ export * from "./internal/assistant-ui/markdown-text";
5
+ export * from "./internal/assistant-ui/reasoning";
6
+ export * from "./internal/assistant-ui/thread";
7
+ export * from "./internal/assistant-ui/tool-fallback";
8
+ export * from "./internal/assistant-ui/tool-group";
9
+ export * from "./internal/assistant-ui/tooltip-icon-button";
10
+ //# sourceMappingURL=agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC"}
package/dist/agents.js ADDED
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ export * from "@assistant-ui/react";
3
+ export * from "./internal/assistant-ui/attachment.js";
4
+ export * from "./internal/assistant-ui/follow-up-suggestions.js";
5
+ export * from "./internal/assistant-ui/markdown-text.js";
6
+ export * from "./internal/assistant-ui/reasoning.js";
7
+ export * from "./internal/assistant-ui/thread.js";
8
+ export * from "./internal/assistant-ui/tool-fallback.js";
9
+ export * from "./internal/assistant-ui/tool-group.js";
10
+ export * from "./internal/assistant-ui/tooltip-icon-button.js";
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from "react";
2
+ import { Card } from "./card";
3
+ type AgentCardProps = Omit<React.ComponentProps<typeof Card>, "children"> & {
4
+ action?: ReactNode;
5
+ job: ReactNode;
6
+ meta?: ReactNode;
7
+ name: ReactNode;
8
+ status?: ReactNode;
9
+ visual: ReactNode;
10
+ };
11
+ declare function AgentCard({ action, className, job, meta, name, status, visual, ...props }: AgentCardProps): import("react").JSX.Element;
12
+ export { AgentCard, type AgentCardProps };
13
+ //# sourceMappingURL=agent-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/components/agent-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAuD,MAAM,mBAAmB,CAAC;AAI9F,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAMF,iBAAS,SAAS,CAAC,EACjB,MAAM,EACN,SAAS,EACT,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,+BAsChB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./card.js";
3
+ import { Separator } from "./separator.js";
4
+ import { cn } from "../lib/utils.js";
5
+ function hasSlotContent(value) {
6
+ return value !== null && value !== undefined && value !== false;
7
+ }
8
+ function AgentCard({ action, className, job, meta, name, status, visual, ...props }) {
9
+ const hasStatus = hasSlotContent(status);
10
+ const hasMeta = hasSlotContent(meta);
11
+ const hasAction = hasSlotContent(action);
12
+ const hasFooter = hasStatus || hasMeta || hasAction;
13
+ return (_jsxs(Card, { className: cn("h-full", className), ...props, children: [_jsxs(CardHeader, { className: "relative min-h-40 pr-32", children: [_jsx(CardTitle, { className: "text-lg", children: name }), _jsx(CardDescription, { className: "max-w-sm leading-6", children: job }), _jsx("div", { className: "absolute top-5 right-5 size-24 overflow-hidden rounded-xl", "data-slot": "agent-card-visual", children: visual })] }), hasFooter ? (_jsxs(CardContent, { className: "mt-auto grid gap-5", children: [_jsx(Separator, {}), _jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-3 text-xs text-muted-foreground", children: [hasStatus ? _jsx("div", { "data-slot": "agent-card-status", children: status }) : null, hasMeta ? (_jsx("div", { className: "min-w-0 flex-1", "data-slot": "agent-card-meta", children: meta })) : null, hasAction ? (_jsx("div", { className: "ml-auto", "data-slot": "agent-card-action", children: action })) : null] })] })) : null] }));
14
+ }
15
+ export { AgentCard };
@@ -0,0 +1,17 @@
1
+ import type { AgentVisualRecipe } from "../internal/agent-visual/recipes";
2
+ type AgentVisualPresentation = "registry" | "card" | "detail";
3
+ type AgentVisualAccessibility = {
4
+ decorative?: true;
5
+ label?: never;
6
+ } | {
7
+ decorative: false;
8
+ label: string;
9
+ };
10
+ type AgentVisualProps = AgentVisualAccessibility & {
11
+ className?: string;
12
+ presentation?: AgentVisualPresentation;
13
+ recipe: AgentVisualRecipe;
14
+ };
15
+ declare function AgentVisual({ className, decorative, label, presentation, recipe, }: AgentVisualProps): import("react").JSX.Element;
16
+ export { AgentVisual, type AgentVisualPresentation, type AgentVisualProps, type AgentVisualRecipe };
17
+ //# sourceMappingURL=agent-visual.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-visual.d.ts","sourceRoot":"","sources":["../../src/components/agent-visual.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAKzE,KAAK,uBAAuB,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE9D,KAAK,wBAAwB,GACzB;IAAE,UAAU,CAAC,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACpC;IAAE,UAAU,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,KAAK,gBAAgB,GAAG,wBAAwB,GAAG;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,MAAM,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAkCF,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,UAAiB,EACjB,KAAK,EACL,YAAqB,EACrB,MAAM,GACP,EAAE,gBAAgB,+BAmElB;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,uBAAuB,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Component, lazy, Suspense, useCallback, useEffect, useRef, useState, } from "react";
4
+ import { AgentVisualPoster } from "../internal/agent-visual/poster.js";
5
+ import { cn } from "../lib/utils.js";
6
+ const LazyAgentVisualRenderer = lazy(() => import("../internal/agent-visual/renderer.js"));
7
+ class AgentVisualErrorBoundary extends Component {
8
+ state = { failed: false };
9
+ static getDerivedStateFromError() {
10
+ return { failed: true };
11
+ }
12
+ componentDidCatch(_error, _info) {
13
+ this.props.onUnavailable();
14
+ }
15
+ render() {
16
+ return this.state.failed ? null : this.props.children;
17
+ }
18
+ }
19
+ function supportsAmbientAgentVisual() {
20
+ try {
21
+ const context = document.createElement("canvas").getContext("webgl2");
22
+ if (!context)
23
+ return false;
24
+ context.getExtension("WEBGL_lose_context")?.loseContext();
25
+ return true;
26
+ }
27
+ catch {
28
+ return false;
29
+ }
30
+ }
31
+ function AgentVisual({ className, decorative = true, label, presentation = "card", recipe, }) {
32
+ const hostRef = useRef(null);
33
+ const [canAnimate, setCanAnimate] = useState(false);
34
+ const [rendererReady, setRendererReady] = useState(false);
35
+ const handleReady = useCallback(() => setRendererReady(true), []);
36
+ const handleUnavailable = useCallback(() => {
37
+ setRendererReady(false);
38
+ setCanAnimate(false);
39
+ }, []);
40
+ useEffect(() => {
41
+ setCanAnimate(false);
42
+ setRendererReady(false);
43
+ if (presentation !== "detail")
44
+ return;
45
+ if (typeof window.matchMedia !== "function")
46
+ return;
47
+ const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
48
+ const update = () => {
49
+ setRendererReady(false);
50
+ setCanAnimate(!reducedMotion.matches && supportsAmbientAgentVisual());
51
+ };
52
+ update();
53
+ reducedMotion.addEventListener("change", update);
54
+ return () => reducedMotion.removeEventListener("change", update);
55
+ }, [presentation, recipe]);
56
+ const hasAmbientRenderer = presentation === "detail" && canAnimate;
57
+ return (_jsxs("div", { "aria-hidden": decorative || undefined, "aria-label": decorative ? undefined : label, className: cn("relative isolate size-full overflow-hidden rounded-xl bg-nc-campo-inchiostro", presentation === "card" && "min-h-20", presentation === "detail" && "min-h-48", className), "data-agent-visual-motion": hasAmbientRenderer ? "ambient" : "static", "data-agent-visual-presentation": presentation, "data-agent-visual-recipe": recipe, ref: hostRef, role: decorative ? undefined : "img", children: [_jsx(AgentVisualPoster, { recipe: recipe }), hasAmbientRenderer && hostRef.current ? (_jsx("div", { "aria-hidden": "true", className: cn("absolute inset-0 opacity-0 transition-opacity duration-[var(--nc-duration-close)] ease-[var(--nc-ease-out-strong)]", rendererReady && "opacity-100"), "data-agent-visual-renderer": "paper-metaballs", children: _jsx(AgentVisualErrorBoundary, { onUnavailable: handleUnavailable, children: _jsx(Suspense, { fallback: null, children: _jsx(LazyAgentVisualRenderer, { host: hostRef.current, onReady: handleReady, onUnavailable: handleUnavailable, recipe: recipe }) }) }) })) : null] }));
58
+ }
59
+ export { AgentVisual };
@@ -17,7 +17,7 @@ function AlertDialogOverlay({ className, ...props }) {
17
17
  return (_jsx(AlertDialogPrimitive.Backdrop, { "data-slot": "alert-dialog-overlay", className: cn("fixed inset-0 isolate z-50 bg-scrim/scrim", overlayBackdropMotion, className), ...props }));
18
18
  }
19
19
  function AlertDialogContent({ className, size = "default", ...props }) {
20
- return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Popup, { "data-slot": "alert-dialog-content", "data-size": size, className: cn("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-nadicode-md rounded-2xl border border-border bg-popover p-nadicode-lg text-popover-foreground shadow-dialog outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm", modalOverlayMotion, className), ...props })] }));
20
+ return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Popup, { "data-slot": "alert-dialog-content", "data-size": size, className: cn("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-nadicode-md rounded-3xl border-0 bg-popover p-nadicode-lg text-popover-foreground smooth-shadow-ring-2xl outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm", modalOverlayMotion, className), ...props })] }));
21
21
  }
22
22
  function AlertDialogHeader({ className, ...props }) {
23
23
  return (_jsx("div", { "data-slot": "alert-dialog-header", className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className), ...props }));
@@ -1,7 +1,7 @@
1
1
  import { useRender } from "@base-ui/react/use-render";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "blue" | "gray" | "green" | "red" | "amber" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
7
7
  export { Badge, badgeVariants };
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;8EAkBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAmB,EACnB,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,8FAevE;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;8EA2BlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAmB,EACnB,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,8FAevE;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
@@ -11,6 +11,15 @@ const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-cent
11
11
  outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
12
12
  ghost: "hover:bg-muted hover:text-muted-foreground",
13
13
  link: "text-primary underline-offset-4 hover:underline",
14
+ // The five semantic tones. Each is one soft/deep role pair — a tinted
15
+ // ground with its own deep label — so a status reads as one unit at
16
+ // AA in both modes. They are variants, not call-site classes, because
17
+ // repainting a primitive where it is used is forbidden.
18
+ gray: "bg-[var(--nc-canvas-soft-2)] text-[var(--nc-body)]",
19
+ green: "bg-[var(--nc-link-bg-soft)] text-[var(--nc-link-deep)]",
20
+ red: "bg-[var(--nc-error-soft)] text-[var(--nc-error-deep)]",
21
+ amber: "bg-[var(--nc-warning-soft)] text-[var(--nc-warning-deep)]",
22
+ blue: "bg-[var(--nc-info-soft)] text-[var(--nc-info-deep)]",
14
23
  },
15
24
  },
16
25
  defaultVariants: {
@@ -1,7 +1,7 @@
1
1
  import { Button as ButtonPrimitive } from "@base-ui/react/button";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "brandGhost" | "brandSolid" | "onPrimary" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "brandGhost" | "brandSolid" | "destructive" | "onPrimary" | null | undefined;
5
5
  size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, ...props }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>): import("react").JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import * as React from "react";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
- type CardVariant = "default" | "interactive" | "link" | "borderless";
4
- declare function Card({ className, render, size, variant, ...props }: useRender.ComponentProps<"div"> & {
3
+ type CardSurface = "plain" | "resting" | "raised";
4
+ type CardVariant = "default" | "interactive" | "link";
5
+ declare function Card({ className, render, size, surface, variant, ...props }: useRender.ComponentProps<"div"> & {
5
6
  size?: "default" | "sm";
7
+ surface?: CardSurface;
6
8
  variant?: CardVariant;
7
9
  }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
8
10
  declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
@@ -13,5 +15,5 @@ declare function CardDescription({ className, ...props }: React.ComponentProps<"
13
15
  declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
16
  declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
15
17
  declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
16
- export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
18
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, type CardSurface, type CardVariant, };
17
19
  //# sourceMappingURL=card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAItD,KAAK,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC;AAErE,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,MAAM,EACN,IAAgB,EAChB,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACnC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,0EAmBA;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,qBAczD;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAIxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAItD,KAAK,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAClD,KAAK,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,MAAM,CAAC;AAEtD,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,MAAM,EACN,IAAgB,EAChB,OAAmB,EACnB,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACnC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,0EAoBA;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,qBAczD;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAIxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,CAAC"}
@@ -2,23 +2,23 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { mergeProps } from "@base-ui/react/merge-props";
3
3
  import { useRender } from "@base-ui/react/use-render";
4
4
  import { cn } from "../lib/utils.js";
5
- function Card({ className, render, size = "default", variant = "default", ...props }) {
5
+ function Card({ className, render, size = "default", surface = "resting", variant = "default", ...props }) {
6
6
  return useRender({
7
7
  defaultTagName: "div",
8
8
  props: mergeProps({
9
- className: cn("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-md border border-border bg-card py-(--card-spacing) text-sm text-card-foreground [--card-spacing:var(--spacing-nadicode-lg)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:var(--spacing-nadicode-md)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-md *:[img:last-child]:rounded-b-md", variant === "interactive" && "transition-colors group-hover:bg-accent", variant === "link" &&
10
- "nc-transition-paint hover:border-ring focus-visible:outline-none focus-visible:ring-[length:var(--ring-width-focus)] focus-visible:ring-ring", variant === "borderless" && "border-0", className),
9
+ className: cn("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-3xl border-0 bg-card py-(--card-spacing) text-sm text-card-foreground [--card-spacing:var(--spacing-nadicode-lg)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:var(--spacing-nadicode-md)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-3xl *:[img:last-child]:rounded-b-3xl", surface === "resting" && "smooth-shadow-ring-md", surface === "raised" && "smooth-shadow-ring-lg", variant === "interactive" && "cursor-pointer", variant === "link" &&
10
+ "nc-transition-paint focus-visible:outline focus-visible:outline-[length:var(--ring-width-focus)] focus-visible:outline-ring", className),
11
11
  }, props),
12
12
  render,
13
- state: { size, slot: "card", variant },
13
+ state: { size, slot: "card", surface, variant },
14
14
  });
15
15
  }
16
16
  function CardHeader({ className, ...props }) {
17
- return (_jsx("div", { "data-slot": "card-header", className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-md px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", className), ...props }));
17
+ return (_jsx("div", { "data-slot": "card-header", className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-3xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", className), ...props }));
18
18
  }
19
19
  function CardTitle({ className, focusTarget = false, ...props }) {
20
20
  return (_jsx("div", { "data-slot": "card-title", "data-focus-target": focusTarget || undefined, className: cn("text-base font-medium group-data-[size=sm]/card:text-sm", focusTarget &&
21
- "rounded-sm outline-none focus-visible:ring-[length:var(--ring-width-focus)] focus-visible:ring-ring", className), ...props }));
21
+ "rounded-sm outline-none focus-visible:outline focus-visible:outline-[length:var(--ring-width-focus)] focus-visible:outline-ring", className), ...props }));
22
22
  }
23
23
  function CardDescription({ className, ...props }) {
24
24
  return (_jsx("div", { "data-slot": "card-description", className: cn("text-sm text-muted-foreground", className), ...props }));
@@ -32,4 +32,4 @@ function CardContent({ className, ...props }) {
32
32
  function CardFooter({ className, ...props }) {
33
33
  return (_jsx("div", { "data-slot": "card-footer", className: cn("flex items-center p-(--card-spacing)", className), ...props }));
34
34
  }
35
- export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
35
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
@@ -83,7 +83,7 @@ function ChartTooltipContent({ active, payload, className, indicator = "dot", hi
83
83
  return null;
84
84
  }
85
85
  const nestLabel = payload.length === 1 && indicator !== "dot";
86
- return (_jsxs("div", { className: cn("grid min-w-32 items-start gap-1.5 rounded-md border border-border bg-popover px-nadicode-sm py-nadicode-filter-chip-gap text-xs text-popover-foreground shadow-tooltip", className), children: [!nestLabel ? tooltipLabel : null, _jsx("div", { className: "grid gap-1.5", children: payload
86
+ return (_jsxs("div", { className: cn("grid min-w-32 items-start gap-1.5 rounded-md border-0 bg-popover px-nadicode-sm py-nadicode-filter-chip-gap text-xs text-popover-foreground smooth-shadow-ring-xl", className), children: [!nestLabel ? tooltipLabel : null, _jsx("div", { className: "grid gap-1.5", children: payload
87
87
  .filter((item) => item.type !== "none")
88
88
  .map((item, index) => {
89
89
  const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;