@devalok/shilp-sutra 0.38.0 → 0.40.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 (361) hide show
  1. package/AGENTS.md +151 -0
  2. package/MIGRATION.md +255 -0
  3. package/README.md +3 -0
  4. package/dist/_chunks/badge-group.js +76 -75
  5. package/dist/_chunks/badge-group.js.map +1 -1
  6. package/dist/_chunks/chart-container.js +50 -0
  7. package/dist/_chunks/chart-container.js.map +1 -0
  8. package/dist/_chunks/chat.js +236 -228
  9. package/dist/_chunks/chat.js.map +1 -1
  10. package/dist/_chunks/colors.js +30 -0
  11. package/dist/_chunks/colors.js.map +1 -0
  12. package/dist/_chunks/document-preview.js +2 -2
  13. package/dist/_chunks/document-preview.js.map +1 -1
  14. package/dist/_chunks/emoji-data.js +45 -0
  15. package/dist/_chunks/emoji-data.js.map +1 -0
  16. package/dist/_chunks/grid-lines.js +72 -0
  17. package/dist/_chunks/grid-lines.js.map +1 -0
  18. package/dist/_chunks/image-preview.js +2 -2
  19. package/dist/_chunks/image-preview.js.map +1 -1
  20. package/dist/_chunks/mention-suggestion.js +35 -263
  21. package/dist/_chunks/mention-suggestion.js.map +1 -1
  22. package/dist/_chunks/normalize-icon.js +18 -0
  23. package/dist/_chunks/normalize-icon.js.map +1 -0
  24. package/dist/_chunks/oauth-button.js +227 -0
  25. package/dist/_chunks/oauth-button.js.map +1 -0
  26. package/dist/_chunks/popover.js +3 -3
  27. package/dist/_chunks/popover.js.map +1 -1
  28. package/dist/_chunks/primitives.js +107 -107
  29. package/dist/_chunks/primitives.js.map +1 -1
  30. package/dist/_chunks/shared.js +5 -5
  31. package/dist/_chunks/shared.js.map +1 -1
  32. package/dist/_chunks/{text.js → success.js} +26 -63
  33. package/dist/_chunks/success.js.map +1 -0
  34. package/dist/_chunks/tiptap.js +1952 -1949
  35. package/dist/_chunks/tiptap.js.map +1 -1
  36. package/dist/_chunks/tooltip.js +58 -0
  37. package/dist/_chunks/tooltip.js.map +1 -0
  38. package/dist/_chunks/tree-view.js +101 -96
  39. package/dist/_chunks/tree-view.js.map +1 -1
  40. package/dist/_chunks/use-calendar.js +5 -5
  41. package/dist/_chunks/use-calendar.js.map +1 -1
  42. package/dist/ai/ai-command-provider.d.ts +3 -2
  43. package/dist/ai/ai-command-provider.d.ts.map +1 -1
  44. package/dist/ai/ai-command-provider.js.map +1 -1
  45. package/dist/ai/block-renderer.js +11 -9
  46. package/dist/ai/block-renderer.js.map +1 -1
  47. package/dist/ai/blocks/error.js +31 -0
  48. package/dist/ai/blocks/error.js.map +1 -0
  49. package/dist/ai/blocks/index.d.ts +0 -2
  50. package/dist/ai/blocks/index.d.ts.map +1 -1
  51. package/dist/ai/blocks/index.js +2 -2
  52. package/dist/ai/blocks/text.js +19 -0
  53. package/dist/ai/blocks/text.js.map +1 -0
  54. package/dist/ai/command-bar.d.ts.map +1 -1
  55. package/dist/ai/command-bar.js +198 -193
  56. package/dist/ai/command-bar.js.map +1 -1
  57. package/dist/ai/conversation.d.ts +2 -1
  58. package/dist/ai/conversation.d.ts.map +1 -1
  59. package/dist/ai/conversation.js +92 -87
  60. package/dist/ai/conversation.js.map +1 -1
  61. package/dist/ai/index.d.ts +0 -4
  62. package/dist/ai/index.d.ts.map +1 -1
  63. package/dist/ai/index.js +45 -46
  64. package/dist/ai/index.js.map +1 -1
  65. package/dist/composed/activity-feed.d.ts +2 -1
  66. package/dist/composed/activity-feed.d.ts.map +1 -1
  67. package/dist/composed/activity-feed.js +5 -5
  68. package/dist/composed/activity-feed.js.map +1 -1
  69. package/dist/composed/avatar-group.js +4 -4
  70. package/dist/composed/avatar-group.js.map +1 -1
  71. package/dist/composed/bulk-action-bar.d.ts +2 -2
  72. package/dist/composed/bulk-action-bar.d.ts.map +1 -1
  73. package/dist/composed/bulk-action-bar.js +12 -12
  74. package/dist/composed/bulk-action-bar.js.map +1 -1
  75. package/dist/composed/command-palette.d.ts +2 -1
  76. package/dist/composed/command-palette.d.ts.map +1 -1
  77. package/dist/composed/command-palette.js +106 -101
  78. package/dist/composed/command-palette.js.map +1 -1
  79. package/dist/composed/content-card.js +1 -1
  80. package/dist/composed/content-card.js.map +1 -1
  81. package/dist/composed/date-picker/index.js +747 -3
  82. package/dist/composed/date-picker/index.js.map +1 -0
  83. package/dist/composed/emoji-picker.js +4 -4
  84. package/dist/composed/emoji-picker.js.map +1 -1
  85. package/dist/composed/empty-state.d.ts +3 -3
  86. package/dist/composed/empty-state.d.ts.map +1 -1
  87. package/dist/composed/empty-state.js +40 -31
  88. package/dist/composed/empty-state.js.map +1 -1
  89. package/dist/composed/error-boundary.js +3 -3
  90. package/dist/composed/error-boundary.js.map +1 -1
  91. package/dist/composed/extensions/emoji-node.js +81 -0
  92. package/dist/composed/extensions/emoji-node.js.map +1 -0
  93. package/dist/composed/extensions/emoji-suggestion.js +117 -0
  94. package/dist/composed/extensions/emoji-suggestion.js.map +1 -0
  95. package/dist/composed/file-preview.js +498 -2
  96. package/dist/composed/file-preview.js.map +1 -0
  97. package/dist/composed/filter-bar.js +1 -1
  98. package/dist/composed/filter-bar.js.map +1 -1
  99. package/dist/composed/index.d.ts +0 -15
  100. package/dist/composed/index.d.ts.map +1 -1
  101. package/dist/composed/index.js +16 -24
  102. package/dist/composed/inline-edit.js +1 -1
  103. package/dist/composed/inline-edit.js.map +1 -1
  104. package/dist/composed/loading-skeleton.js +9 -9
  105. package/dist/composed/loading-skeleton.js.map +1 -1
  106. package/dist/composed/markdown-viewer.js +3 -3
  107. package/dist/composed/markdown-viewer.js.map +1 -1
  108. package/dist/composed/multi-select-popover.js +1 -1
  109. package/dist/composed/multi-select-popover.js.map +1 -1
  110. package/dist/composed/page-header.js +1 -1
  111. package/dist/composed/page-header.js.map +1 -1
  112. package/dist/composed/page-skeletons.js +15 -15
  113. package/dist/composed/page-skeletons.js.map +1 -1
  114. package/dist/composed/priority-indicator.js +3 -3
  115. package/dist/composed/priority-indicator.js.map +1 -1
  116. package/dist/composed/rich-chat-input.js +2073 -2
  117. package/dist/composed/rich-chat-input.js.map +1 -0
  118. package/dist/composed/rich-text-editor.js +75 -72
  119. package/dist/composed/rich-text-editor.js.map +1 -1
  120. package/dist/composed/schedule-view.js +3 -3
  121. package/dist/composed/schedule-view.js.map +1 -1
  122. package/dist/composed/status-badge.d.ts +3 -2
  123. package/dist/composed/status-badge.d.ts.map +1 -1
  124. package/dist/composed/status-badge.js +58 -53
  125. package/dist/composed/status-badge.js.map +1 -1
  126. package/dist/shell/app-command-palette.d.ts +2 -1
  127. package/dist/shell/app-command-palette.d.ts.map +1 -1
  128. package/dist/shell/app-command-palette.js.map +1 -1
  129. package/dist/shell/bottom-navbar.d.ts +3 -1
  130. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  131. package/dist/shell/bottom-navbar.js +94 -86
  132. package/dist/shell/bottom-navbar.js.map +1 -1
  133. package/dist/shell/command-registry.d.ts +2 -1
  134. package/dist/shell/command-registry.d.ts.map +1 -1
  135. package/dist/shell/command-registry.js.map +1 -1
  136. package/dist/shell/notification-center.js +8 -8
  137. package/dist/shell/notification-center.js.map +1 -1
  138. package/dist/shell/notification-preferences.js +1 -1
  139. package/dist/shell/notification-preferences.js.map +1 -1
  140. package/dist/shell/sidebar.d.ts +7 -4
  141. package/dist/shell/sidebar.d.ts.map +1 -1
  142. package/dist/shell/sidebar.js +148 -134
  143. package/dist/shell/sidebar.js.map +1 -1
  144. package/dist/shell/top-bar.d.ts +4 -3
  145. package/dist/shell/top-bar.d.ts.map +1 -1
  146. package/dist/shell/top-bar.js +116 -108
  147. package/dist/shell/top-bar.js.map +1 -1
  148. package/dist/tokens/semantic.css +82 -9
  149. package/dist/ui/accordion.js +1 -1
  150. package/dist/ui/accordion.js.map +1 -1
  151. package/dist/ui/alert-dialog.js +3 -3
  152. package/dist/ui/alert-dialog.js.map +1 -1
  153. package/dist/ui/alert.js +2 -2
  154. package/dist/ui/alert.js.map +1 -1
  155. package/dist/ui/autocomplete.js +2 -2
  156. package/dist/ui/autocomplete.js.map +1 -1
  157. package/dist/ui/avatar.js +11 -11
  158. package/dist/ui/avatar.js.map +1 -1
  159. package/dist/ui/badge-indicator.js +1 -1
  160. package/dist/ui/badge-indicator.js.map +1 -1
  161. package/dist/ui/badge.d.ts +3 -2
  162. package/dist/ui/badge.d.ts.map +1 -1
  163. package/dist/ui/banner.js +1 -1
  164. package/dist/ui/banner.js.map +1 -1
  165. package/dist/ui/breadcrumb.js +1 -1
  166. package/dist/ui/breadcrumb.js.map +1 -1
  167. package/dist/ui/button.d.ts +5 -4
  168. package/dist/ui/button.d.ts.map +1 -1
  169. package/dist/ui/button.js +66 -65
  170. package/dist/ui/button.js.map +1 -1
  171. package/dist/ui/card.js +5 -5
  172. package/dist/ui/card.js.map +1 -1
  173. package/dist/ui/charts/area-chart.js +177 -0
  174. package/dist/ui/charts/area-chart.js.map +1 -0
  175. package/dist/ui/charts/bar-chart.js +127 -0
  176. package/dist/ui/charts/bar-chart.js.map +1 -0
  177. package/dist/ui/charts/chart-container.js +3 -0
  178. package/dist/ui/charts/gauge-chart.js +72 -0
  179. package/dist/ui/charts/gauge-chart.js.map +1 -0
  180. package/dist/ui/charts/index.js +10 -1035
  181. package/dist/ui/charts/line-chart.js +135 -0
  182. package/dist/ui/charts/line-chart.js.map +1 -0
  183. package/dist/ui/charts/pie-chart.js +111 -0
  184. package/dist/ui/charts/pie-chart.js.map +1 -0
  185. package/dist/ui/charts/radar-chart.js +170 -0
  186. package/dist/ui/charts/radar-chart.js.map +1 -0
  187. package/dist/ui/charts/sparkline.js +119 -0
  188. package/dist/ui/charts/sparkline.js.map +1 -0
  189. package/dist/ui/chat/message.d.ts +3 -3
  190. package/dist/ui/chat/message.d.ts.map +1 -1
  191. package/dist/ui/chat/system-message.d.ts +2 -1
  192. package/dist/ui/chat/system-message.d.ts.map +1 -1
  193. package/dist/ui/checkbox.js +1 -1
  194. package/dist/ui/checkbox.js.map +1 -1
  195. package/dist/ui/code.js +2 -2
  196. package/dist/ui/code.js.map +1 -1
  197. package/dist/ui/color-input.js +10 -10
  198. package/dist/ui/color-input.js.map +1 -1
  199. package/dist/ui/color-swatch.js +3 -3
  200. package/dist/ui/color-swatch.js.map +1 -1
  201. package/dist/ui/combobox.d.ts +2 -1
  202. package/dist/ui/combobox.d.ts.map +1 -1
  203. package/dist/ui/combobox.js +100 -95
  204. package/dist/ui/combobox.js.map +1 -1
  205. package/dist/ui/container.d.ts +6 -1
  206. package/dist/ui/container.d.ts.map +1 -1
  207. package/dist/ui/container.js +2 -1
  208. package/dist/ui/container.js.map +1 -1
  209. package/dist/ui/context-menu.js +6 -6
  210. package/dist/ui/context-menu.js.map +1 -1
  211. package/dist/ui/data-table-body.js +1 -1
  212. package/dist/ui/data-table-body.js.map +1 -1
  213. package/dist/ui/data-table-bulk-actions.js +2 -2
  214. package/dist/ui/data-table-bulk-actions.js.map +1 -1
  215. package/dist/ui/data-table-card.js +2 -2
  216. package/dist/ui/data-table-card.js.map +1 -1
  217. package/dist/ui/data-table-header.js +2 -2
  218. package/dist/ui/data-table-header.js.map +1 -1
  219. package/dist/ui/data-table-pagination.js +3 -3
  220. package/dist/ui/data-table-pagination.js.map +1 -1
  221. package/dist/ui/data-table-toolbar.js +1 -1
  222. package/dist/ui/data-table-toolbar.js.map +1 -1
  223. package/dist/ui/data-table.js +1 -1
  224. package/dist/ui/data-table.js.map +1 -1
  225. package/dist/ui/devalok-grain.d.ts +1 -1
  226. package/dist/ui/devalok-grain.js.map +1 -1
  227. package/dist/ui/dialog.js +2 -2
  228. package/dist/ui/dialog.js.map +1 -1
  229. package/dist/ui/dropdown-menu.js +6 -6
  230. package/dist/ui/dropdown-menu.js.map +1 -1
  231. package/dist/ui/file-upload.js +4 -4
  232. package/dist/ui/file-upload.js.map +1 -1
  233. package/dist/ui/hover-card.js +1 -1
  234. package/dist/ui/hover-card.js.map +1 -1
  235. package/dist/ui/icon-button.d.ts +9 -2
  236. package/dist/ui/icon-button.d.ts.map +1 -1
  237. package/dist/ui/icon-button.js +14 -13
  238. package/dist/ui/icon-button.js.map +1 -1
  239. package/dist/ui/index.d.ts +1 -3
  240. package/dist/ui/index.d.ts.map +1 -1
  241. package/dist/ui/index.js +31 -33
  242. package/dist/ui/index.js.map +1 -1
  243. package/dist/ui/input-otp.js +1 -1
  244. package/dist/ui/input-otp.js.map +1 -1
  245. package/dist/ui/input.js +2 -2
  246. package/dist/ui/input.js.map +1 -1
  247. package/dist/ui/lib/icon-input.d.ts +42 -0
  248. package/dist/ui/lib/icon-input.d.ts.map +1 -0
  249. package/dist/ui/lib/normalize-icon.d.ts +39 -0
  250. package/dist/ui/lib/normalize-icon.d.ts.map +1 -0
  251. package/dist/ui/link.js +1 -1
  252. package/dist/ui/link.js.map +1 -1
  253. package/dist/ui/menubar.js +8 -8
  254. package/dist/ui/menubar.js.map +1 -1
  255. package/dist/ui/navigation-menu.js +3 -3
  256. package/dist/ui/navigation-menu.js.map +1 -1
  257. package/dist/ui/number-input.js +3 -3
  258. package/dist/ui/number-input.js.map +1 -1
  259. package/dist/ui/oauth-button/index.d.ts +3 -0
  260. package/dist/ui/oauth-button/index.d.ts.map +1 -0
  261. package/dist/ui/oauth-button/index.js +3 -0
  262. package/dist/ui/oauth-button/oauth-button.d.ts +208 -0
  263. package/dist/ui/oauth-button/oauth-button.d.ts.map +1 -0
  264. package/dist/ui/pagination.js +1 -1
  265. package/dist/ui/pagination.js.map +1 -1
  266. package/dist/ui/progress.js +2 -2
  267. package/dist/ui/progress.js.map +1 -1
  268. package/dist/ui/radio.js +1 -1
  269. package/dist/ui/radio.js.map +1 -1
  270. package/dist/ui/segmented-control.d.ts +3 -4
  271. package/dist/ui/segmented-control.d.ts.map +1 -1
  272. package/dist/ui/segmented-control.js +53 -45
  273. package/dist/ui/segmented-control.js.map +1 -1
  274. package/dist/ui/select.js +3 -3
  275. package/dist/ui/select.js.map +1 -1
  276. package/dist/ui/sheet.js +2 -2
  277. package/dist/ui/sheet.js.map +1 -1
  278. package/dist/ui/sidebar.js +11 -11
  279. package/dist/ui/sidebar.js.map +1 -1
  280. package/dist/ui/skeleton.js +9 -9
  281. package/dist/ui/skeleton.js.map +1 -1
  282. package/dist/ui/slider.js +2 -2
  283. package/dist/ui/slider.js.map +1 -1
  284. package/dist/ui/split-button.js +7 -7
  285. package/dist/ui/split-button.js.map +1 -1
  286. package/dist/ui/stack.d.ts +6 -1
  287. package/dist/ui/stack.d.ts.map +1 -1
  288. package/dist/ui/stack.js +2 -1
  289. package/dist/ui/stack.js.map +1 -1
  290. package/dist/ui/stat-card.d.ts +2 -3
  291. package/dist/ui/stat-card.d.ts.map +1 -1
  292. package/dist/ui/stat-card.js +118 -116
  293. package/dist/ui/stat-card.js.map +1 -1
  294. package/dist/ui/status-dot.js +2 -2
  295. package/dist/ui/status-dot.js.map +1 -1
  296. package/dist/ui/stepper.d.ts +2 -1
  297. package/dist/ui/stepper.d.ts.map +1 -1
  298. package/dist/ui/stepper.js +74 -69
  299. package/dist/ui/stepper.js.map +1 -1
  300. package/dist/ui/switch.js +2 -2
  301. package/dist/ui/switch.js.map +1 -1
  302. package/dist/ui/tabs.js +3 -3
  303. package/dist/ui/tabs.js.map +1 -1
  304. package/dist/ui/text.d.ts +7 -2
  305. package/dist/ui/text.d.ts.map +1 -1
  306. package/dist/ui/text.js +2 -1
  307. package/dist/ui/text.js.map +1 -1
  308. package/dist/ui/textarea.js +1 -1
  309. package/dist/ui/textarea.js.map +1 -1
  310. package/dist/ui/toast.js +8 -8
  311. package/dist/ui/toast.js.map +1 -1
  312. package/dist/ui/toaster.d.ts +11 -2
  313. package/dist/ui/toaster.d.ts.map +1 -1
  314. package/dist/ui/toaster.js.map +1 -1
  315. package/dist/ui/toggle.js +1 -1
  316. package/dist/ui/toggle.js.map +1 -1
  317. package/dist/ui/tooltip.js +12 -12
  318. package/dist/ui/tooltip.js.map +1 -1
  319. package/dist/ui/tree-view/tree-item.d.ts +3 -2
  320. package/dist/ui/tree-view/tree-item.d.ts.map +1 -1
  321. package/dist/ui/tree-view/use-tree.d.ts +2 -1
  322. package/dist/ui/tree-view/use-tree.d.ts.map +1 -1
  323. package/docs/components/_header.md +90 -1
  324. package/docs/components/ui/oauth-button.md +86 -0
  325. package/docs/recipes/customize-brand.md +100 -4
  326. package/docs/recipes/index.md +5 -1
  327. package/docs/recipes/install-astro.md +15 -0
  328. package/docs/recipes/install-next-app-router.md +21 -5
  329. package/docs/recipes/install-next-pages.md +2 -0
  330. package/docs/recipes/install-remix.md +15 -0
  331. package/docs/recipes/install-tanstack-start.md +15 -0
  332. package/docs/recipes/install-vite.md +15 -0
  333. package/docs/recipes/troubleshoot.md +22 -0
  334. package/llms-full.txt +177 -2
  335. package/llms-quick.txt +247 -0
  336. package/llms.txt +116 -3
  337. package/package.json +80 -2
  338. package/scripts/welcome.mjs +219 -0
  339. package/skill/README.md +99 -0
  340. package/skill/SKILL.md +163 -0
  341. package/skill/install.sh +59 -0
  342. package/skill/references/components-full.md +7083 -0
  343. package/skill/references/components.md +778 -0
  344. package/skill/references/customize-brand.md +314 -0
  345. package/skill/references/server-components.md +211 -0
  346. package/skill/references/setup-astro.md +195 -0
  347. package/skill/references/setup-next-app-router.md +248 -0
  348. package/skill/references/setup-next-pages.md +127 -0
  349. package/skill/references/setup-remix.md +188 -0
  350. package/skill/references/setup-tanstack-start.md +160 -0
  351. package/skill/references/setup-vite.md +187 -0
  352. package/skill/references/troubleshoot.md +241 -0
  353. package/dist/_chunks/date-picker.js +0 -748
  354. package/dist/_chunks/date-picker.js.map +0 -1
  355. package/dist/_chunks/file-preview.js +0 -499
  356. package/dist/_chunks/file-preview.js.map +0 -1
  357. package/dist/_chunks/rich-chat-input.js +0 -2071
  358. package/dist/_chunks/rich-chat-input.js.map +0 -1
  359. package/dist/_chunks/text.js.map +0 -1
  360. package/dist/ui/charts/index.js.map +0 -1
  361. /package/{LICENSE → skill/LICENSE} +0 -0
@@ -1,22 +1,24 @@
1
1
  "use client";
2
- import { springs as e, tweens as t } from "../ui/lib/motion.js";
3
- import { cn as n } from "../ui/lib/utils.js";
4
- import { Icon as r } from "../ui/icon.js";
5
- import { Dialog as i, DialogContentRaw as a, DialogDescription as o, DialogOverlay as ee, DialogPortal as te, DialogTitle as ne } from "../ui/dialog.js";
6
- import { VisuallyHidden as re } from "../ui/visually-hidden.js";
7
- import { n as ie } from "../_chunks/motion-provider.js";
2
+ import { IconProvider as e } from "../ui/icon-context.js";
3
+ import { springs as t, tweens as n } from "../ui/lib/motion.js";
4
+ import { cn as r } from "../ui/lib/utils.js";
5
+ import { Icon as i } from "../ui/icon.js";
6
+ import { t as a } from "../_chunks/normalize-icon.js";
7
+ import { Dialog as o, DialogContentRaw as s, DialogDescription as ee, DialogOverlay as te, DialogPortal as ne, DialogTitle as re } from "../ui/dialog.js";
8
+ import { VisuallyHidden as ie } from "../ui/visually-hidden.js";
9
+ import { n as c } from "../_chunks/motion-provider.js";
8
10
  import { n as ae, r as oe, t as se } from "../_chunks/keybinding.js";
9
- import * as s from "react";
10
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
11
- import { IconArrowDown as ce, IconArrowUp as le, IconCornerDownLeft as d, IconLoader2 as ue, IconSearch as de, IconX as fe } from "@tabler/icons-react";
12
- import { AnimatePresence as f, motion as p } from "framer-motion";
11
+ import * as l from "react";
12
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
13
+ import { IconArrowDown as ce, IconArrowUp as le, IconCornerDownLeft as ue, IconLoader2 as de, IconSearch as fe, IconX as pe } from "@tabler/icons-react";
14
+ import { AnimatePresence as p, motion as m } from "framer-motion";
13
15
  //#region src/ai/command-bar.tsx
14
- function pe({ active: e, rounded: t, reducedMotion: r, children: i }) {
15
- return e ? r ? /* @__PURE__ */ l("div", {
16
- className: n("p-[1.5px] bg-accent-9", t),
16
+ function me({ active: e, rounded: t, reducedMotion: n, children: i }) {
17
+ return e ? n ? /* @__PURE__ */ d("div", {
18
+ className: r("p-[1.5px] bg-accent-9", t),
17
19
  children: i
18
- }) : /* @__PURE__ */ u(p.div, {
19
- className: n("relative p-[1.5px]", t),
20
+ }) : /* @__PURE__ */ f(m.div, {
21
+ className: r("relative p-[1.5px]", t),
20
22
  style: {
21
23
  background: "linear-gradient(var(--gradient-angle, 0deg), #D33163, #9B5DE5, #C850C0, #D33163)",
22
24
  backgroundSize: "300% 300%"
@@ -31,8 +33,8 @@ function pe({ active: e, rounded: t, reducedMotion: r, children: i }) {
31
33
  repeat: Infinity,
32
34
  ease: "linear"
33
35
  } },
34
- children: [/* @__PURE__ */ l(p.div, {
35
- className: n("absolute inset-0 -z-10", t),
36
+ children: [/* @__PURE__ */ d(m.div, {
37
+ className: r("absolute inset-0 -z-10", t),
36
38
  style: {
37
39
  background: "linear-gradient(var(--gradient-angle, 0deg), #D33163, #9B5DE5, #C850C0, #D33163)",
38
40
  backgroundSize: "300% 300%",
@@ -63,32 +65,32 @@ function pe({ active: e, rounded: t, reducedMotion: r, children: i }) {
63
65
  }
64
66
  }
65
67
  }), i]
66
- }) : /* @__PURE__ */ l(c, { children: i });
68
+ }) : /* @__PURE__ */ d(u, { children: i });
67
69
  }
68
- function me(e) {
70
+ function he(e) {
69
71
  return e.filterValue ? e.filterValue : typeof e.label == "string" ? e.label : "";
70
72
  }
71
- function he(e) {
73
+ function ge(e) {
72
74
  return typeof e.description == "string" ? e.description : "";
73
75
  }
74
- function ge({ placeholders: e, interval: n, paused: r }) {
75
- let [i, a] = s.useState(0), { reducedMotion: o } = ie();
76
- return s.useEffect(() => {
76
+ function _e({ placeholders: e, interval: t, paused: r }) {
77
+ let [i, a] = l.useState(0), { reducedMotion: o } = c();
78
+ return l.useEffect(() => {
77
79
  if (r || e.length <= 1) return;
78
- let t = setInterval(() => {
80
+ let n = setInterval(() => {
79
81
  a((t) => (t + 1) % e.length);
80
- }, n);
81
- return () => clearInterval(t);
82
+ }, t);
83
+ return () => clearInterval(n);
82
84
  }, [
83
85
  r,
84
86
  e.length,
85
- n
86
- ]), o ? /* @__PURE__ */ l("span", {
87
+ t
88
+ ]), o ? /* @__PURE__ */ d("span", {
87
89
  className: "pointer-events-none absolute text-surface-fg-subtle",
88
90
  children: e[i]
89
- }) : /* @__PURE__ */ l(f, {
91
+ }) : /* @__PURE__ */ d(p, {
90
92
  mode: "wait",
91
- children: /* @__PURE__ */ l(p.span, {
93
+ children: /* @__PURE__ */ d(m.span, {
92
94
  initial: {
93
95
  opacity: 0,
94
96
  y: -4
@@ -101,203 +103,203 @@ function ge({ placeholders: e, interval: n, paused: r }) {
101
103
  opacity: 0,
102
104
  y: 4
103
105
  },
104
- transition: t.fade,
106
+ transition: n.fade,
105
107
  className: "pointer-events-none absolute text-surface-fg-subtle",
106
108
  children: e[i]
107
109
  }, e[i])
108
110
  });
109
111
  }
110
- var m = s.forwardRef(function({ onSubmit: c, state: m = "idle", groups: h = [], onSearch: _e, emptyMessage: ve = "No results found.", emptyState: ye, variant: g = "hero", placeholder: _ = "Ask anything...", placeholderInterval: be = 5e3, greeting: v, hints: y, agentName: b, agentIcon: xe, open: x, defaultOpen: Se, onOpenChange: S, keybinding: C = "mod+j", disabled: w = !1, maxHeight: T = "320px", children: E, className: D, ...O }, k) {
111
- let A = x !== void 0, [Ce, we] = s.useState(Se ?? !1), j = A ? x : Ce, M = s.useRef(j);
112
- M.current = j;
113
- let N = s.useCallback((e) => {
114
- let t = typeof e == "function" ? e(M.current) : e;
115
- A || we(t), S?.(t);
116
- }, [A, S]), [P, F] = s.useState(""), [I, L] = s.useState(-1), [Te, Ee] = s.useState(""), [R, De] = s.useState(!1), [z, Oe] = s.useState(!1), B = s.useRef(null), ke = s.useRef(null), V = s.useId(), Ae = `command-bar-listbox-${V}`, { reducedMotion: H } = ie(), U = { duration: 0 }, je = s.useMemo(() => se(), []), W = s.useMemo(() => Array.isArray(_) ? _ : [_], [_]), G = h.length > 0, K = s.useMemo(() => {
112
+ var h = l.forwardRef(function({ onSubmit: u, state: h = "idle", groups: g = [], onSearch: _, emptyMessage: ve = "No results found.", emptyState: ye, variant: v = "hero", placeholder: y = "Ask anything...", placeholderInterval: be = 5e3, greeting: b, hints: x, agentName: xe, agentIcon: Se, open: Ce, defaultOpen: we, onOpenChange: Te, keybinding: S = "mod+j", disabled: C = !1, maxHeight: w = "320px", children: T, className: E, ...D }, O) {
113
+ let k = Ce !== void 0, [Ee, De] = l.useState(we ?? !1), A = k ? Ce : Ee, j = l.useRef(A);
114
+ j.current = A;
115
+ let M = l.useCallback((e) => {
116
+ let t = typeof e == "function" ? e(j.current) : e;
117
+ k || De(t), Te?.(t);
118
+ }, [k, Te]), [N, P] = l.useState(""), [F, I] = l.useState(-1), [L, Oe] = l.useState(""), [R, ke] = l.useState(!1), [z, Ae] = l.useState(!1), B = l.useRef(null), je = l.useRef(null), V = l.useId(), Me = `command-bar-listbox-${V}`, { reducedMotion: H } = c(), U = { duration: 0 }, Ne = l.useMemo(() => se(), []), W = l.useMemo(() => Array.isArray(y) ? y : [y], [y]), G = g.length > 0, K = l.useMemo(() => {
117
119
  if (!G) return [];
118
- if (!P.trim()) return h;
119
- let e = P.toLowerCase();
120
- return h.map((t) => ({
120
+ if (!N.trim()) return g;
121
+ let e = N.toLowerCase();
122
+ return g.map((t) => ({
121
123
  ...t,
122
- items: t.items.filter((t) => me(t).toLowerCase().includes(e) || he(t).toLowerCase().includes(e))
124
+ items: t.items.filter((t) => he(t).toLowerCase().includes(e) || ge(t).toLowerCase().includes(e))
123
125
  })).filter((e) => e.items.length > 0);
124
126
  }, [
125
- h,
126
- P,
127
+ g,
128
+ N,
127
129
  G
128
- ]), q = s.useMemo(() => K.flatMap((e) => e.items), [K]), Me = s.useMemo(() => {
130
+ ]), q = l.useMemo(() => K.flatMap((e) => e.items), [K]), Pe = l.useMemo(() => {
129
131
  let e = /* @__PURE__ */ new Map(), t = 0;
130
132
  for (let n of K) for (let r of n.items) e.set(r.id, t++);
131
133
  return e;
132
- }, [K]), Ne = typeof T == "number" ? `${T}px` : T;
133
- s.useEffect(() => {
134
- if (g !== "floating" || C === !1) return;
135
- let e = Array.isArray(C) ? C : [C];
134
+ }, [K]), Fe = typeof w == "number" ? `${w}px` : w;
135
+ l.useEffect(() => {
136
+ if (v !== "floating" || S === !1) return;
137
+ let e = Array.isArray(S) ? S : [S];
136
138
  function t(t) {
137
139
  for (let n of e) if (oe(t, n)) {
138
- t.preventDefault(), N((e) => !e);
140
+ t.preventDefault(), M((e) => !e);
139
141
  return;
140
142
  }
141
143
  }
142
144
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
143
145
  }, [
144
- g,
145
- C,
146
- N
147
- ]), s.useEffect(() => {
148
- g === "floating" && j && (F(""), L(-1), requestAnimationFrame(() => {
146
+ v,
147
+ S,
148
+ M
149
+ ]), l.useEffect(() => {
150
+ v === "floating" && A && (P(""), I(-1), requestAnimationFrame(() => {
149
151
  B.current?.focus();
150
152
  }));
151
- }, [g, j]), s.useEffect(() => {
152
- I < 0 || (ke.current?.querySelector(`[data-command-index="${I}"]`))?.scrollIntoView({ block: "nearest" });
153
- }, [I]);
154
- let Pe = (e) => {
155
- F(e), L(G && e.trim() ? 0 : -1), _e?.(e);
156
- }, Fe = s.useCallback(() => {
157
- !P.trim() || w || (Ee(P), c?.(P));
153
+ }, [v, A]), l.useEffect(() => {
154
+ F < 0 || (je.current?.querySelector(`[data-command-index="${F}"]`))?.scrollIntoView({ block: "nearest" });
155
+ }, [F]);
156
+ let Ie = (e) => {
157
+ P(e), I(G && e.trim() ? 0 : -1), _?.(e);
158
+ }, Le = l.useCallback(() => {
159
+ !N.trim() || C || (Oe(N), u?.(N));
158
160
  }, [
159
- P,
160
- w,
161
- c
162
- ]), Ie = (e) => {
161
+ N,
162
+ C,
163
+ u
164
+ ]), Re = (e) => {
163
165
  switch (e.key) {
164
166
  case "ArrowDown":
165
167
  if (!G || q.length === 0) return;
166
- e.preventDefault(), L((e) => e < q.length - 1 ? e + 1 : 0);
168
+ e.preventDefault(), I((e) => e < q.length - 1 ? e + 1 : 0);
167
169
  break;
168
170
  case "ArrowUp":
169
- G && q.length > 0 ? (e.preventDefault(), L((e) => e > 0 ? e - 1 : q.length - 1)) : !G && !P && Te && (e.preventDefault(), F(Te));
171
+ G && q.length > 0 ? (e.preventDefault(), I((e) => e > 0 ? e - 1 : q.length - 1)) : !G && !N && L && (e.preventDefault(), P(L));
170
172
  break;
171
173
  case "Enter":
172
- e.preventDefault(), e.metaKey || e.ctrlKey ? Fe() : G && I >= 0 && q[I] ? (q[I].onSelect(), g === "floating" && N(!1)) : Fe();
174
+ e.preventDefault(), e.metaKey || e.ctrlKey ? Le() : G && F >= 0 && q[F] ? (q[F].onSelect(), v === "floating" && M(!1)) : Le();
173
175
  break;
174
176
  case "Escape":
175
- e.preventDefault(), m === "responded" ? F("") : g === "floating" ? N(!1) : B.current?.blur();
177
+ e.preventDefault(), h === "responded" ? P("") : v === "floating" ? M(!1) : B.current?.blur();
176
178
  break;
177
179
  }
178
- }, Le = () => {
179
- F(""), L(-1), B.current?.focus();
180
+ }, ze = () => {
181
+ P(""), I(-1), B.current?.focus();
180
182
  };
181
- s.useEffect(() => {
183
+ l.useEffect(() => {
182
184
  if (z) {
183
- let e = setTimeout(() => Oe(!1), 500);
185
+ let e = setTimeout(() => Ae(!1), 500);
184
186
  return () => clearTimeout(e);
185
187
  }
186
- }, [z]), H || e.snappy;
187
- let J = H ? U : t.fade, Y = H ? {
188
+ }, [z]), H || t.snappy;
189
+ let J = H ? U : n.fade, Y = H ? {
188
190
  opacity: 1,
189
191
  scale: 1,
190
192
  y: 0
191
- } : void 0, X = g === "inline", Z = m === "processing", Re = m === "responded", Q = () => /* @__PURE__ */ l(pe, {
193
+ } : void 0, X = v === "inline", Z = h === "processing", Be = h === "responded", Q = () => /* @__PURE__ */ d(me, {
192
194
  active: Z,
193
- rounded: X ? "rounded-ds-md" : "rounded-ds-lg",
195
+ rounded: X ? "rounded-control" : "rounded-surface",
194
196
  reducedMotion: H,
195
- children: /* @__PURE__ */ u("div", {
196
- className: n("flex items-center gap-ds-04 border bg-surface-overlay transition-colors transition-shadow duration-fast-02 ease-productive-standard", X ? "rounded-ds-md px-ds-04" : "rounded-ds-lg px-ds-05", Z ? "border-transparent" : "border-surface-border-strong", R && !Z && "border-accent-7 shadow-ring", z && "animate-shake"),
197
+ children: /* @__PURE__ */ f("div", {
198
+ className: r("flex items-center gap-ds-04 border bg-surface-overlay transition-colors transition-shadow duration-fast-02 ease-productive-standard", X ? "rounded-control px-ds-04" : "rounded-surface px-ds-05", Z ? "border-transparent" : "border-surface-border-strong", R && !Z && "border-accent-7 shadow-ring", z && "animate-shake"),
197
199
  children: [
198
- /* @__PURE__ */ l(r, {
199
- icon: de,
200
+ /* @__PURE__ */ d(i, {
201
+ icon: fe,
200
202
  size: X ? "xs" : "sm",
201
203
  stroke: "light",
202
- className: n("shrink-0 transition-colors duration-fast-02 ease-productive-standard", R ? "text-accent-9" : "text-surface-fg-subtle")
204
+ className: r("shrink-0 transition-colors duration-fast-02 ease-productive-standard", R ? "text-accent-9" : "text-surface-fg-subtle")
203
205
  }),
204
- /* @__PURE__ */ u("div", {
206
+ /* @__PURE__ */ f("div", {
205
207
  className: "relative flex flex-1 items-center",
206
- children: [!P && !R && W.length > 1 && /* @__PURE__ */ l(ge, {
208
+ children: [!N && !R && W.length > 1 && /* @__PURE__ */ d(_e, {
207
209
  placeholders: W,
208
210
  interval: be,
209
- paused: R || !!P
210
- }), /* @__PURE__ */ l("input", {
211
+ paused: R || !!N
212
+ }), /* @__PURE__ */ d("input", {
211
213
  ref: B,
212
- value: P,
213
- onChange: (e) => Pe(e.target.value),
214
- onFocus: () => De(!0),
215
- onBlur: () => De(!1),
216
- onKeyDown: Ie,
214
+ value: N,
215
+ onChange: (e) => Ie(e.target.value),
216
+ onFocus: () => ke(!0),
217
+ onBlur: () => ke(!1),
218
+ onKeyDown: Re,
217
219
  placeholder: W.length === 1 || R ? W[0] : "",
218
220
  readOnly: Z,
219
- disabled: w,
221
+ disabled: C,
220
222
  role: "combobox",
221
223
  "aria-expanded": G && q.length > 0,
222
- "aria-controls": G ? Ae : void 0,
223
- "aria-activedescendant": G && I >= 0 && q[I] ? `command-bar-item-${V}-${q[I].id}` : void 0,
224
+ "aria-controls": G ? Me : void 0,
225
+ "aria-activedescendant": G && F >= 0 && q[F] ? `command-bar-item-${V}-${q[F].id}` : void 0,
224
226
  "aria-autocomplete": G ? "list" : void 0,
225
- "aria-label": b ? `Ask ${b}` : "AI Command Bar",
226
- className: n("flex-1 bg-transparent text-surface-fg outline-hidden", "placeholder:text-surface-fg-subtle", X ? "h-9 text-ds-sm" : "h-12 text-ds-base", Z && "cursor-wait", w && "cursor-not-allowed opacity-50"),
227
+ "aria-label": xe ? `Ask ${xe}` : "AI Command Bar",
228
+ className: r("flex-1 bg-transparent text-surface-fg outline-hidden", "placeholder:text-surface-fg-subtle", X ? "h-9 text-ds-sm" : "h-12 text-ds-base", Z && "cursor-wait", C && "cursor-not-allowed opacity-50"),
227
229
  autoComplete: "off",
228
230
  autoCorrect: "off",
229
231
  spellCheck: !1
230
232
  })]
231
233
  }),
232
- Z ? /* @__PURE__ */ l("span", {
234
+ Z ? /* @__PURE__ */ d("span", {
233
235
  "data-testid": "command-bar-spinner",
234
236
  className: "shrink-0",
235
- children: /* @__PURE__ */ l(r, {
236
- icon: ue,
237
+ children: /* @__PURE__ */ d(i, {
238
+ icon: de,
237
239
  size: X ? "xs" : "sm",
238
240
  stroke: "light",
239
241
  animate: "spin",
240
242
  className: "text-accent-9"
241
243
  })
242
- }) : Re ? /* @__PURE__ */ l("button", {
244
+ }) : Be ? /* @__PURE__ */ d("button", {
243
245
  type: "button",
244
- onClick: Le,
245
- className: "shrink-0 rounded-ds-sm p-ds-01 text-surface-fg-subtle transition-colors duration-fast-01 hover:bg-surface-raised-hover hover:text-surface-fg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9",
246
+ onClick: ze,
247
+ className: "shrink-0 rounded-control-inner p-ds-01 text-surface-fg-subtle transition-colors duration-fast-01 hover:bg-surface-raised-hover hover:text-surface-fg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9",
246
248
  "aria-label": "Clear",
247
249
  title: "Clear",
248
- children: /* @__PURE__ */ l(r, {
249
- icon: fe,
250
+ children: /* @__PURE__ */ d(i, {
251
+ icon: pe,
250
252
  size: X ? "xs" : "sm",
251
253
  stroke: "light"
252
254
  })
253
- }) : g === "hero" ? /* @__PURE__ */ l(f, { children: !R && /* @__PURE__ */ u(p.kbd, {
255
+ }) : v === "hero" ? /* @__PURE__ */ d(p, { children: !R && /* @__PURE__ */ f(m.kbd, {
254
256
  initial: Y ?? { opacity: 0 },
255
257
  animate: { opacity: 1 },
256
258
  exit: H ? void 0 : { opacity: 0 },
257
259
  transition: J,
258
- className: "hidden shrink-0 select-none rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b py-ds-01 text-ds-sm font-medium text-surface-fg-subtle shadow-kbd sm:inline-flex",
259
- children: [ae(je), "J"]
260
+ className: "hidden shrink-0 select-none rounded-control border border-surface-border-strong bg-surface-raised px-ds-02b py-ds-01 text-ds-sm font-medium text-surface-fg-subtle shadow-kbd sm:inline-flex",
261
+ children: [ae(Ne), "J"]
260
262
  }) }) : null
261
263
  ]
262
264
  })
263
- }), $ = () => !G || !(q.length > 0 || P.trim() && K.length === 0) && !P.trim() ? null : /* @__PURE__ */ u("div", {
264
- ref: ke,
265
- id: Ae,
265
+ }), $ = () => !G || !(q.length > 0 || N.trim() && K.length === 0) && !N.trim() ? null : /* @__PURE__ */ f("div", {
266
+ ref: je,
267
+ id: Me,
266
268
  role: "listbox",
267
269
  "aria-label": "Command results",
268
270
  className: "overflow-y-auto px-ds-03 py-ds-03",
269
- style: { maxHeight: Ne },
270
- children: [K.length === 0 && P.trim() && /* @__PURE__ */ l(p.div, {
271
+ style: { maxHeight: Fe },
272
+ children: [K.length === 0 && N.trim() && /* @__PURE__ */ d(m.div, {
271
273
  initial: Y ?? { opacity: 0 },
272
274
  animate: { opacity: 1 },
273
275
  transition: J,
274
276
  className: "flex items-center justify-center py-ds-07",
275
- children: ye ?? /* @__PURE__ */ l("p", {
277
+ children: ye ?? /* @__PURE__ */ d("p", {
276
278
  className: "text-ds-md text-surface-fg-subtle",
277
279
  children: ve
278
280
  })
279
- }), K.map((i, a) => /* @__PURE__ */ u(p.div, {
281
+ }), K.map((o, s) => /* @__PURE__ */ f(m.div, {
280
282
  initial: Y ?? { opacity: 0 },
281
283
  animate: { opacity: 1 },
282
284
  transition: H ? U : {
283
- ...t.fade,
284
- delay: a * .06
285
+ ...n.fade,
286
+ delay: s * .06
285
287
  },
286
288
  className: "mb-ds-02",
287
- children: [/* @__PURE__ */ l("div", {
289
+ children: [/* @__PURE__ */ d("div", {
288
290
  className: "px-ds-03 pb-ds-02 pt-ds-03",
289
- children: /* @__PURE__ */ l("span", {
291
+ children: /* @__PURE__ */ d("span", {
290
292
  className: "text-ds-xs font-semibold uppercase tracking-wider text-surface-fg-subtle",
291
- children: i.label
293
+ children: o.label
292
294
  })
293
- }), i.items.map((t) => {
294
- let i = Me.get(t.id) ?? 0, a = i === I;
295
- return /* @__PURE__ */ u(p.button, {
296
- id: `command-bar-item-${V}-${t.id}`,
295
+ }), o.items.map((n) => {
296
+ let o = Pe.get(n.id) ?? 0, s = o === F;
297
+ return /* @__PURE__ */ f(m.button, {
298
+ id: `command-bar-item-${V}-${n.id}`,
297
299
  type: "button",
298
300
  role: "option",
299
- "aria-selected": a,
300
- "data-command-index": i,
301
+ "aria-selected": s,
302
+ "data-command-index": o,
301
303
  initial: Y ?? {
302
304
  opacity: 0,
303
305
  y: 4
@@ -307,159 +309,162 @@ var m = s.forwardRef(function({ onSubmit: c, state: m = "idle", groups: h = [],
307
309
  y: 0
308
310
  },
309
311
  transition: H ? U : {
310
- ...e.snappy,
311
- delay: i * .03
312
+ ...t.snappy,
313
+ delay: o * .03
312
314
  },
313
315
  onClick: () => {
314
- t.onSelect(), g === "floating" && N(!1);
316
+ n.onSelect(), v === "floating" && M(!1);
315
317
  },
316
- onMouseEnter: () => L(i),
317
- className: n("flex w-full items-center gap-ds-04 rounded-ds-lg px-ds-03 py-ds-03 text-left transition-[color,background-color] duration-fast-02 ease-productive-standard", a ? "bg-surface-raised-hover text-surface-fg" : "text-surface-fg-muted hover:bg-surface-raised"),
318
+ onMouseEnter: () => I(o),
319
+ className: r("flex w-full items-center gap-ds-04 rounded-surface px-ds-03 py-ds-03 text-left transition-[color,background-color] duration-fast-02 ease-productive-standard", s ? "bg-surface-raised-hover text-surface-fg" : "text-surface-fg-muted hover:bg-surface-raised"),
318
320
  children: [
319
- t.icon && /* @__PURE__ */ l("span", {
320
- className: n("[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0 transition-colors duration-fast-02 ease-productive-standard", a ? "text-accent-11" : "text-surface-fg-subtle"),
321
+ n.icon && /* @__PURE__ */ d("span", {
322
+ className: r("[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0 transition-colors duration-fast-02 ease-productive-standard", s ? "text-accent-11" : "text-surface-fg-subtle"),
321
323
  "aria-hidden": "true",
322
- children: t.icon
324
+ children: /* @__PURE__ */ d(e, {
325
+ size: "sm",
326
+ children: a(n.icon)
327
+ })
323
328
  }),
324
- /* @__PURE__ */ u("div", {
329
+ /* @__PURE__ */ f("div", {
325
330
  className: "flex flex-1 flex-col",
326
- children: [/* @__PURE__ */ l("span", {
331
+ children: [/* @__PURE__ */ d("span", {
327
332
  className: "text-ds-md",
328
- children: t.renderLabel ? t.renderLabel(P) : t.label
329
- }), t.description && /* @__PURE__ */ l("span", {
333
+ children: n.renderLabel ? n.renderLabel(N) : n.label
334
+ }), n.description && /* @__PURE__ */ d("span", {
330
335
  className: "text-ds-sm text-surface-fg-subtle",
331
- children: t.description
336
+ children: n.description
332
337
  })]
333
338
  }),
334
- /* @__PURE__ */ l(f, { children: a && /* @__PURE__ */ l(p.span, {
339
+ /* @__PURE__ */ d(p, { children: s && /* @__PURE__ */ d(m.span, {
335
340
  initial: H ? void 0 : { opacity: 0 },
336
341
  animate: { opacity: 1 },
337
342
  exit: H ? void 0 : { opacity: 0 },
338
343
  transition: J,
339
344
  className: "inline-flex shrink-0",
340
- children: /* @__PURE__ */ l(r, {
341
- icon: d,
345
+ children: /* @__PURE__ */ d(i, {
346
+ icon: ue,
342
347
  size: "sm",
343
348
  stroke: "light",
344
349
  className: "text-surface-fg-subtle"
345
350
  })
346
351
  }) })
347
352
  ]
348
- }, t.id);
353
+ }, n.id);
349
354
  })]
350
- }, i.label))]
355
+ }, o.label))]
351
356
  });
352
- return g === "hero" ? /* @__PURE__ */ u("div", {
353
- ref: k,
357
+ return v === "hero" ? /* @__PURE__ */ f("div", {
358
+ ref: O,
354
359
  role: "search",
355
- className: n("bg-surface-raised rounded-ds-xl shadow-raised p-ds-07", D),
356
- ...O,
360
+ className: r("bg-surface-raised rounded-overlay-lg shadow-raised p-ds-07", E),
361
+ ...D,
357
362
  children: [
358
- v && /* @__PURE__ */ l("p", {
363
+ b && /* @__PURE__ */ d("p", {
359
364
  className: "text-ds-lg text-surface-fg-muted mb-ds-04",
360
- children: v
365
+ children: b
361
366
  }),
362
367
  Q(),
363
368
  $(),
364
- y && y.length > 0 && /* @__PURE__ */ l("div", {
369
+ x && x.length > 0 && /* @__PURE__ */ d("div", {
365
370
  className: "mt-ds-04 flex flex-wrap gap-ds-02b",
366
- children: y.map((e) => /* @__PURE__ */ l("button", {
371
+ children: x.map((e) => /* @__PURE__ */ d("button", {
367
372
  type: "button",
368
373
  onClick: () => {
369
- F(e), _e?.(e), B.current?.focus();
374
+ P(e), _?.(e), B.current?.focus();
370
375
  },
371
- className: "rounded-ds-md border border-surface-border-strong bg-surface-overlay px-ds-03 py-ds-01 text-ds-sm text-surface-fg-subtle transition-colors duration-fast-02 ease-productive-standard hover:bg-surface-raised-hover hover:text-surface-fg-muted",
376
+ className: "rounded-control border border-surface-border-strong bg-surface-overlay px-ds-03 py-ds-01 text-ds-sm text-surface-fg-subtle transition-colors duration-fast-02 ease-productive-standard hover:bg-surface-raised-hover hover:text-surface-fg-muted",
372
377
  children: e
373
378
  }, e))
374
379
  }),
375
- E && /* @__PURE__ */ l("div", {
380
+ T && /* @__PURE__ */ d("div", {
376
381
  className: "mt-ds-05",
377
- children: E
382
+ children: T
378
383
  })
379
384
  ]
380
- }) : g === "inline" ? /* @__PURE__ */ u("div", {
381
- ref: k,
385
+ }) : v === "inline" ? /* @__PURE__ */ f("div", {
386
+ ref: O,
382
387
  role: "search",
383
- className: n("w-full", D),
384
- ...O,
388
+ className: r("w-full", E),
389
+ ...D,
385
390
  children: [
386
391
  Q(),
387
392
  $(),
388
- E && /* @__PURE__ */ l("div", {
393
+ T && /* @__PURE__ */ d("div", {
389
394
  className: "mt-ds-03",
390
- children: E
395
+ children: T
391
396
  })
392
397
  ]
393
- }) : /* @__PURE__ */ l(i, {
394
- open: j,
398
+ }) : /* @__PURE__ */ d(o, {
399
+ open: A,
395
400
  onOpenChange: (e) => {
396
- N(e);
401
+ M(e);
397
402
  },
398
- children: /* @__PURE__ */ u(te, { children: [/* @__PURE__ */ l(ee, { className: "fixed inset-0 z-overlay bg-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }), /* @__PURE__ */ u(a, {
399
- ref: k,
400
- ...O,
401
- className: n("fixed left-1/2 top-[20%] z-modal w-full max-w-[560px] -translate-x-1/2", "overflow-hidden rounded-ds-xl border border-surface-border-strong bg-surface-overlay shadow-overlay", "duration-moderate-02 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-[state=closed]:slide-out-to-left-1/2 data-[state=open]:slide-in-from-left-1/2", "data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2", D),
403
+ children: /* @__PURE__ */ f(ne, { children: [/* @__PURE__ */ d(te, { className: "fixed inset-0 z-overlay bg-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }), /* @__PURE__ */ f(s, {
404
+ ref: O,
405
+ ...D,
406
+ className: r("fixed left-1/2 top-[20%] z-modal w-full max-w-[560px] -translate-x-1/2", "overflow-hidden rounded-overlay-lg border border-surface-border-strong bg-surface-overlay shadow-overlay", "duration-moderate-02 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-[state=closed]:slide-out-to-left-1/2 data-[state=open]:slide-in-from-left-1/2", "data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2", E),
402
407
  children: [
403
- /* @__PURE__ */ u(re, { children: [/* @__PURE__ */ l(ne, { children: "AI Command Bar" }), /* @__PURE__ */ l(o, { children: "Search commands or ask a question" })] }),
404
- /* @__PURE__ */ l("div", {
408
+ /* @__PURE__ */ f(ie, { children: [/* @__PURE__ */ d(re, { children: "AI Command Bar" }), /* @__PURE__ */ d(ee, { children: "Search commands or ask a question" })] }),
409
+ /* @__PURE__ */ d("div", {
405
410
  className: "p-ds-04",
406
411
  children: Q()
407
412
  }),
408
413
  $(),
409
- E && /* @__PURE__ */ l("div", {
414
+ T && /* @__PURE__ */ d("div", {
410
415
  className: "border-t border-surface-border-strong p-ds-04",
411
- children: E
416
+ children: T
412
417
  }),
413
- /* @__PURE__ */ u(p.div, {
418
+ /* @__PURE__ */ f(m.div, {
414
419
  initial: Y ?? { opacity: 0 },
415
420
  animate: { opacity: 1 },
416
421
  transition: J,
417
422
  className: "flex items-center gap-ds-05 border-t border-surface-border-strong px-ds-05 py-ds-03",
418
423
  children: [
419
- G && /* @__PURE__ */ u("div", {
424
+ G && /* @__PURE__ */ f("div", {
420
425
  className: "flex items-center gap-ds-02b",
421
- children: [/* @__PURE__ */ u("div", {
426
+ children: [/* @__PURE__ */ f("div", {
422
427
  className: "flex items-center gap-ds-01",
423
- children: [/* @__PURE__ */ l("kbd", {
428
+ children: [/* @__PURE__ */ d("kbd", {
424
429
  className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-kbd",
425
- children: /* @__PURE__ */ l(r, {
430
+ children: /* @__PURE__ */ d(i, {
426
431
  icon: le,
427
432
  size: "xs",
428
433
  className: "text-surface-fg-subtle"
429
434
  })
430
- }), /* @__PURE__ */ l("kbd", {
435
+ }), /* @__PURE__ */ d("kbd", {
431
436
  className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-kbd",
432
- children: /* @__PURE__ */ l(r, {
437
+ children: /* @__PURE__ */ d(i, {
433
438
  icon: ce,
434
439
  size: "xs",
435
440
  className: "text-surface-fg-subtle"
436
441
  })
437
442
  })]
438
- }), /* @__PURE__ */ l("span", {
443
+ }), /* @__PURE__ */ d("span", {
439
444
  className: "text-ds-xs text-surface-fg-subtle",
440
445
  children: "Navigate"
441
446
  })]
442
447
  }),
443
- /* @__PURE__ */ u("div", {
448
+ /* @__PURE__ */ f("div", {
444
449
  className: "flex items-center gap-ds-02b",
445
- children: [/* @__PURE__ */ l("kbd", {
446
- className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b shadow-kbd",
447
- children: /* @__PURE__ */ l(r, {
448
- icon: d,
450
+ children: [/* @__PURE__ */ d("kbd", {
451
+ className: "inline-flex h-[20px] items-center justify-center rounded-control border border-surface-border-strong bg-surface-raised px-ds-02b shadow-kbd",
452
+ children: /* @__PURE__ */ d(i, {
453
+ icon: ue,
449
454
  size: "xs",
450
455
  className: "text-surface-fg-subtle"
451
456
  })
452
- }), /* @__PURE__ */ l("span", {
457
+ }), /* @__PURE__ */ d("span", {
453
458
  className: "text-ds-xs text-surface-fg-subtle",
454
459
  children: "Submit"
455
460
  })]
456
461
  }),
457
- /* @__PURE__ */ u("div", {
462
+ /* @__PURE__ */ f("div", {
458
463
  className: "flex items-center gap-ds-02b",
459
- children: [/* @__PURE__ */ l("kbd", {
460
- className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b text-ds-xs font-medium text-surface-fg-subtle shadow-kbd",
464
+ children: [/* @__PURE__ */ d("kbd", {
465
+ className: "inline-flex h-[20px] items-center justify-center rounded-control border border-surface-border-strong bg-surface-raised px-ds-02b text-ds-xs font-medium text-surface-fg-subtle shadow-kbd",
461
466
  children: "Esc"
462
- }), /* @__PURE__ */ l("span", {
467
+ }), /* @__PURE__ */ d("span", {
463
468
  className: "text-ds-xs text-surface-fg-subtle",
464
469
  children: "Close"
465
470
  })]
@@ -470,6 +475,6 @@ var m = s.forwardRef(function({ onSubmit: c, state: m = "idle", groups: h = [],
470
475
  })] })
471
476
  });
472
477
  });
473
- m.displayName = "CommandBar";
478
+ h.displayName = "CommandBar";
474
479
  //#endregion
475
- export { m as CommandBar };
480
+ export { h as CommandBar };