themelia-react-ui 2.0.1 → 2.0.3

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 (490) hide show
  1. package/CHANGELOG.md +317 -131
  2. package/README.md +25 -9
  3. package/THIRD_PARTY_NOTICES.md +7 -0
  4. package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-CYxKfo69.js → auth-BGua8ouh.js} +58 -54
  17. package/dist/auth-BGua8ouh.js.map +1 -0
  18. package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +1 -1
  28. package/dist/base/buttons.js +1 -1
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +40 -36
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +92 -92
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +2 -2
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +6 -6
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +14 -14
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +1 -1
  50. package/dist/base/navigation.js +6 -6
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +171 -176
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +6 -6
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +79 -2
  61. package/dist/base/spinner.js.map +1 -0
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +46 -45
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +1 -1
  71. package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
  72. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  73. package/dist/blocks/admin.js +42 -42
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +260 -240
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +620 -585
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +1152 -1109
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +2 -2
  85. package/dist/blocks/onboarding.js +48 -39
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +13 -12
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
  91. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  92. package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
  93. package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
  94. package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
  95. package/dist/buttons-DPZekJFu.js.map +1 -0
  96. package/dist/cards-BaBZR-AU.js +68 -0
  97. package/dist/cards-BaBZR-AU.js.map +1 -0
  98. package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
  99. package/dist/chart-ZOYyK2xG.js.map +1 -0
  100. package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
  101. package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
  102. package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
  103. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  104. package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
  105. package/dist/code-block-DeneBJR_.js.map +1 -0
  106. package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
  107. package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  108. package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
  109. package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
  110. package/dist/combobox-DaHESuiL.js +355 -0
  111. package/dist/combobox-DaHESuiL.js.map +1 -0
  112. package/dist/{combobox-DLl0bfiq.js → combobox-Dxo2fAYQ.js} +289 -279
  113. package/dist/combobox-Dxo2fAYQ.js.map +1 -0
  114. package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
  115. package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
  116. package/dist/{comments-BpDuCUUu.js → comments-DD0DUPwJ.js} +114 -105
  117. package/dist/comments-DD0DUPwJ.js.map +1 -0
  118. package/dist/components/base/badge/badge.recipes.d.ts +1 -1
  119. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  120. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  121. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  122. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  123. package/dist/components/base/chart/chart.d.ts +2 -5
  124. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  125. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  126. package/dist/components/base/combobox/index.d.ts +30 -4
  127. package/dist/components/base/forms/form-sizing.d.ts +11 -3
  128. package/dist/components/base/navigation/pagination.d.ts +5 -2
  129. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  130. package/dist/components/base/table/index.d.ts +9 -2
  131. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  132. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  133. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  134. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
  135. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  136. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  137. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  138. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  139. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  140. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  141. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  142. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  143. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  144. package/dist/components/features/combobox/types.d.ts +4 -0
  145. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  146. package/dist/components/features/rich-text-editor/index.d.ts +1 -1
  147. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  148. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
  149. package/dist/components/features/table/table-header.d.ts +1 -1
  150. package/dist/components/features/table/table.strings.d.ts +55 -1
  151. package/dist/components/features/table/table.types.d.ts +17 -4
  152. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  153. package/dist/components/primitives/number.d.ts +4 -2
  154. package/dist/components/primitives/value.d.ts +3 -1
  155. package/dist/components/typography/text-link.d.ts +4 -0
  156. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  157. package/dist/components/ui/combobox.d.ts +16 -7
  158. package/dist/components/ui/dialog.d.ts +1 -1
  159. package/dist/components/ui/item.d.ts +8 -8
  160. package/dist/components/ui/popover.d.ts +1 -1
  161. package/dist/components/ui/sheet.d.ts +1 -1
  162. package/dist/components/ui/tabs.d.ts +1 -1
  163. package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
  164. package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
  165. package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
  166. package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
  167. package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
  168. package/dist/data-display-DT_khPl_.js.map +1 -0
  169. package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
  170. package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
  171. package/dist/{date-picker-CF-DtUpF.js → date-picker-B2K3ucWn.js} +594 -593
  172. package/dist/date-picker-B2K3ucWn.js.map +1 -0
  173. package/dist/date-pickers-Ds8gLaoP.js +175 -0
  174. package/dist/date-pickers-Ds8gLaoP.js.map +1 -0
  175. package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
  176. package/dist/display-hAc1HjpI.js.map +1 -0
  177. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  178. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  179. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  180. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  181. package/dist/features/activities.js +398 -375
  182. package/dist/features/activities.js.map +1 -1
  183. package/dist/features/ai-chat.js +188 -179
  184. package/dist/features/ai-chat.js.map +1 -1
  185. package/dist/features/appointment-calendar.js +683 -0
  186. package/dist/features/appointment-calendar.js.map +1 -0
  187. package/dist/features/async-preview.js +109 -107
  188. package/dist/features/async-preview.js.map +1 -1
  189. package/dist/features/combobox.js +1 -1
  190. package/dist/features/comments.js +1 -1
  191. package/dist/features/data-view.js +137 -137
  192. package/dist/features/data-view.js.map +1 -1
  193. package/dist/features/email-composer.js +255 -255
  194. package/dist/features/email-composer.js.map +1 -1
  195. package/dist/features/event-calendar.js +254 -248
  196. package/dist/features/event-calendar.js.map +1 -1
  197. package/dist/features/filters.js +1 -1
  198. package/dist/features/global-search.js +35 -32
  199. package/dist/features/global-search.js.map +1 -1
  200. package/dist/features/kanban.js +118 -117
  201. package/dist/features/kanban.js.map +1 -1
  202. package/dist/features/map.js +233 -231
  203. package/dist/features/map.js.map +1 -1
  204. package/dist/features/media-library.js +789 -775
  205. package/dist/features/media-library.js.map +1 -1
  206. package/dist/features/mentions.js +1 -1
  207. package/dist/features/overlays.js +1 -1
  208. package/dist/features/products.js +922 -902
  209. package/dist/features/products.js.map +1 -1
  210. package/dist/features/questionnaire.js +28 -24
  211. package/dist/features/questionnaire.js.map +1 -1
  212. package/dist/features/resource-assignment.js +18 -15
  213. package/dist/features/resource-assignment.js.map +1 -1
  214. package/dist/features/resource.js +12 -12
  215. package/dist/features/resource.js.map +1 -1
  216. package/dist/features/rich-text-editor.js +2 -2
  217. package/dist/features/schema-form.js +15 -13
  218. package/dist/features/schema-form.js.map +1 -1
  219. package/dist/features/suggestions.js +3 -3
  220. package/dist/features/sync.js +11 -5
  221. package/dist/features/sync.js.map +1 -1
  222. package/dist/features/table.js +1 -1
  223. package/dist/features/theme-tweaker.js +493 -489
  224. package/dist/features/theme-tweaker.js.map +1 -1
  225. package/dist/feedback-BYIhtitP.js +239 -0
  226. package/dist/feedback-BYIhtitP.js.map +1 -0
  227. package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
  228. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  229. package/dist/{filters-BkHH53uv.js → filters-DJVAveHA.js} +589 -580
  230. package/dist/filters-DJVAveHA.js.map +1 -0
  231. package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
  232. package/dist/form-field-CwH9y77i.js.map +1 -0
  233. package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
  234. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  235. package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
  236. package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
  237. package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
  238. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  239. package/dist/{header-BOefOKd1.js → header-BSfIEWbI.js} +160 -153
  240. package/dist/header-BSfIEWbI.js.map +1 -0
  241. package/dist/{hooks-9k_TtmKh.js → hooks-ClH9thn4.js} +2 -2
  242. package/dist/{hooks-9k_TtmKh.js.map → hooks-ClH9thn4.js.map} +1 -1
  243. package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
  244. package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
  245. package/dist/index.js +3 -3
  246. package/dist/input-CZw8iU99.js +21 -0
  247. package/dist/input-CZw8iU99.js.map +1 -0
  248. package/dist/input-DQdEd0YD.js +263 -0
  249. package/dist/input-DQdEd0YD.js.map +1 -0
  250. package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
  251. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  252. package/dist/item-K5_ghvze.js +275 -0
  253. package/dist/item-K5_ghvze.js.map +1 -0
  254. package/dist/layout/app-shell.js +1 -1
  255. package/dist/layout/auth.js +1 -1
  256. package/dist/layout/containers.js +1 -1
  257. package/dist/layout/header.js +1 -1
  258. package/dist/layout/hooks.js +1 -1
  259. package/dist/layout/navigation.js +1 -1
  260. package/dist/layout/page.js +1 -1
  261. package/dist/layout/settings.js +1 -1
  262. package/dist/layout/sidebar.js +2 -2
  263. package/dist/layout/workspace.js +1 -1
  264. package/dist/layout.js +10 -10
  265. package/dist/lib/affordance-geometry.generated.d.ts +71 -0
  266. package/dist/lib/editable-text-recipe.d.ts +4 -4
  267. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  268. package/dist/lib/interaction-recipes.d.ts +5 -0
  269. package/dist/lib/theme-mode-css.d.ts +7 -0
  270. package/dist/lib/tone-recipes.d.ts +8 -0
  271. package/dist/lib/ui-provider/types.d.ts +2 -2
  272. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  273. package/dist/lib/utils.js +1 -1
  274. package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
  275. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  276. package/dist/{mentions-D-uyCh01.js → mentions-CGlEJ15c.js} +144 -142
  277. package/dist/mentions-CGlEJ15c.js.map +1 -0
  278. package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
  279. package/dist/message-DZ_ruyUV.js.map +1 -0
  280. package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
  281. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  282. package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
  283. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  284. package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
  285. package/dist/navigation-BzhHI3lo.js.map +1 -0
  286. package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  287. package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  288. package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
  289. package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
  290. package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
  291. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  292. package/dist/{overlays-I0axtYA6.js → overlays-tMkF-VAN.js} +282 -278
  293. package/dist/overlays-tMkF-VAN.js.map +1 -0
  294. package/dist/{page-B5dTH9gE.js → page-CL9YeH_V.js} +8 -8
  295. package/dist/{page-B5dTH9gE.js.map → page-CL9YeH_V.js.map} +1 -1
  296. package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
  297. package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
  298. package/dist/pagination-BL25hu2s.js +158 -0
  299. package/dist/pagination-BL25hu2s.js.map +1 -0
  300. package/dist/{popover-Di55PyAI.js → popover-gnTOhbFM.js} +69 -66
  301. package/dist/popover-gnTOhbFM.js.map +1 -0
  302. package/dist/popover-menu-Cn9rUkdc.js +100 -0
  303. package/dist/popover-menu-Cn9rUkdc.js.map +1 -0
  304. package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
  305. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  306. package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
  307. package/dist/primitives-BFK08r9M.js.map +1 -0
  308. package/dist/primitives.js +4 -4
  309. package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
  310. package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
  311. package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
  312. package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  313. package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
  314. package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
  315. package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
  316. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  317. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  318. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  319. package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
  320. package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
  321. package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
  322. package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
  323. package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
  324. package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
  325. package/dist/services/actions.js +1 -1
  326. package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
  327. package/dist/settings-ybnjVwbd.js.map +1 -0
  328. package/dist/{sheet-4SEvVYzA.js → sheet-ijlsjq-n.js} +76 -73
  329. package/dist/sheet-ijlsjq-n.js.map +1 -0
  330. package/dist/{sidebar-C7WWR29L.js → sidebar-Db6gkh3U.js} +183 -182
  331. package/dist/sidebar-Db6gkh3U.js.map +1 -0
  332. package/dist/{sidebar-d7Dg80ln.js → sidebar-DkTO4VTO.js} +14 -13
  333. package/dist/{sidebar-d7Dg80ln.js.map → sidebar-DkTO4VTO.js.map} +1 -1
  334. package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
  335. package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  336. package/dist/smart-card-DiC5aac3.js +604 -0
  337. package/dist/smart-card-DiC5aac3.js.map +1 -0
  338. package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
  339. package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
  340. package/dist/style.css +1 -1
  341. package/dist/table-BweFy_P9.js +1530 -0
  342. package/dist/table-BweFy_P9.js.map +1 -0
  343. package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
  344. package/dist/table-DsfzoUia.js.map +1 -0
  345. package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
  346. package/dist/tabs-CDocW5D1.js.map +1 -0
  347. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  348. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  349. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  350. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  351. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  352. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  353. package/dist/theme.css +285 -228
  354. package/dist/themes/green.css +16 -12
  355. package/dist/timelines-CwM_9IhD.js +457 -0
  356. package/dist/timelines-CwM_9IhD.js.map +1 -0
  357. package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
  358. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  359. package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
  360. package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
  361. package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
  362. package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
  363. package/dist/typography/rich-text.js +1 -1
  364. package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
  365. package/dist/typography-UTnveOEy.js.map +1 -0
  366. package/dist/typography.js +2 -2
  367. package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
  368. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  369. package/dist/ui-provider.js +2 -2
  370. package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
  371. package/dist/upload-CXyxmQBP.js.map +1 -0
  372. package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
  373. package/dist/upload-queue-Boscubn9.js.map +1 -0
  374. package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
  375. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  376. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  377. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  378. package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
  379. package/dist/utils-BRhFDwuU.js.map +1 -0
  380. package/dist/{value-inputs-TAYMX111.js → value-inputs-TaX4OjNk.js} +268 -252
  381. package/dist/value-inputs-TaX4OjNk.js.map +1 -0
  382. package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
  383. package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  384. package/dist/{workspace-DH0v0KcB.js → workspace-B-OEm3Kf.js} +34 -33
  385. package/dist/workspace-B-OEm3Kf.js.map +1 -0
  386. package/docs/consumer-skill/SKILL.md +3 -3
  387. package/docs/consumer-skill/references/agents-md.md +1 -1
  388. package/docs/consumer-skill/references/composition.md +8 -6
  389. package/docs/consumer-skill/references/installation.md +6 -0
  390. package/docs/consumer-skill/references/integration.md +4 -3
  391. package/docs/consumer-skill/references/public-api.json +105 -2
  392. package/docs/consumer-skill/references/review.md +7 -0
  393. package/docs/consumer-skill/references/theming.md +71 -6
  394. package/docs/consumer-skill/references/tokens.json +1 -1
  395. package/docs/consumer-skill/references/workflows.md +26 -0
  396. package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
  397. package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
  398. package/package.json +8 -4
  399. package/dist/accordion-B6a3vVgA.js.map +0 -1
  400. package/dist/action-menu-TzCoSlwL.js +0 -280
  401. package/dist/action-menu-TzCoSlwL.js.map +0 -1
  402. package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
  403. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
  404. package/dist/ai-artifact-BMJdv-6q.js +0 -1115
  405. package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
  406. package/dist/attachment-BtfhGm8i.js +0 -245
  407. package/dist/attachment-BtfhGm8i.js.map +0 -1
  408. package/dist/auth-CYxKfo69.js.map +0 -1
  409. package/dist/avatar-BBnEJIx8.js.map +0 -1
  410. package/dist/badge-MrKVNzW9.js.map +0 -1
  411. package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
  412. package/dist/breadcrumbs-D5t7I023.js.map +0 -1
  413. package/dist/buttons-SbIcm1HJ.js.map +0 -1
  414. package/dist/cards-CiiHpKYd.js +0 -66
  415. package/dist/cards-CiiHpKYd.js.map +0 -1
  416. package/dist/chart-QfrARkXl.js.map +0 -1
  417. package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
  418. package/dist/code-block-Dgbu-CU3.js.map +0 -1
  419. package/dist/combobox-2Ic8N9bL.js +0 -278
  420. package/dist/combobox-2Ic8N9bL.js.map +0 -1
  421. package/dist/combobox-DLl0bfiq.js.map +0 -1
  422. package/dist/comments-BpDuCUUu.js.map +0 -1
  423. package/dist/data-display-DafIvCl5.js.map +0 -1
  424. package/dist/date-picker-CF-DtUpF.js.map +0 -1
  425. package/dist/date-pickers-BmzxJl5l.js +0 -174
  426. package/dist/date-pickers-BmzxJl5l.js.map +0 -1
  427. package/dist/display-DsQTVzMz.js.map +0 -1
  428. package/dist/dropdown-menu-E2qmdC7o.js +0 -193
  429. package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
  430. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  431. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  432. package/dist/feedback-qNuMBtRH.js +0 -233
  433. package/dist/feedback-qNuMBtRH.js.map +0 -1
  434. package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
  435. package/dist/filters-BkHH53uv.js.map +0 -1
  436. package/dist/form-field-DUt4UxSV.js.map +0 -1
  437. package/dist/form-sizing-By94KzXE.js.map +0 -1
  438. package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
  439. package/dist/header-BOefOKd1.js.map +0 -1
  440. package/dist/input-DWhBBBww.js +0 -262
  441. package/dist/input-DWhBBBww.js.map +0 -1
  442. package/dist/input-Ddi_LSYv.js +0 -20
  443. package/dist/input-Ddi_LSYv.js.map +0 -1
  444. package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
  445. package/dist/item-DEmDiTlD.js +0 -265
  446. package/dist/item-DEmDiTlD.js.map +0 -1
  447. package/dist/media-gallery-DcTtAaeC.js.map +0 -1
  448. package/dist/mentions-D-uyCh01.js.map +0 -1
  449. package/dist/message-CdHgIWKf.js.map +0 -1
  450. package/dist/metadata-list-X5rYAKSB.js.map +0 -1
  451. package/dist/navigation-D3KwXmaq.js.map +0 -1
  452. package/dist/navigation-HJf5zxlH.js.map +0 -1
  453. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
  454. package/dist/overlays-I0axtYA6.js.map +0 -1
  455. package/dist/pagination-3bPA_a6K.js +0 -149
  456. package/dist/pagination-3bPA_a6K.js.map +0 -1
  457. package/dist/popover-Di55PyAI.js.map +0 -1
  458. package/dist/popover-menu-B71Tn2Qz.js +0 -99
  459. package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
  460. package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
  461. package/dist/primitives-B-CkiEMU.js.map +0 -1
  462. package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
  463. package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
  464. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
  465. package/dist/settings-CQW3b-Cu.js.map +0 -1
  466. package/dist/sheet-4SEvVYzA.js.map +0 -1
  467. package/dist/sidebar-C7WWR29L.js.map +0 -1
  468. package/dist/smart-card-lFKxn5Hu.js +0 -595
  469. package/dist/smart-card-lFKxn5Hu.js.map +0 -1
  470. package/dist/spinner-fa3h1Aif.js +0 -80
  471. package/dist/spinner-fa3h1Aif.js.map +0 -1
  472. package/dist/table-CIKyLUsy.js.map +0 -1
  473. package/dist/table-CrcLN9Io.js +0 -1458
  474. package/dist/table-CrcLN9Io.js.map +0 -1
  475. package/dist/tabs-DwBJfjxX.js.map +0 -1
  476. package/dist/text-inputs-aaK9wcDT.js +0 -326
  477. package/dist/text-inputs-aaK9wcDT.js.map +0 -1
  478. package/dist/theme-scope-kStaAer0.js +0 -39
  479. package/dist/theme-scope-kStaAer0.js.map +0 -1
  480. package/dist/timelines-C_SBwHNP.js +0 -442
  481. package/dist/timelines-C_SBwHNP.js.map +0 -1
  482. package/dist/tone-recipes-CPoExcTE.js.map +0 -1
  483. package/dist/typography-DTRkE9zL.js.map +0 -1
  484. package/dist/ui-provider-1D_NSYzO.js.map +0 -1
  485. package/dist/upload-BO8-CLN6.js.map +0 -1
  486. package/dist/upload-queue-EOC8g1gf.js.map +0 -1
  487. package/dist/usage-card-obRaBskq.js.map +0 -1
  488. package/dist/utils-l5LpDw2z.js.map +0 -1
  489. package/dist/value-inputs-TAYMX111.js.map +0 -1
  490. package/dist/workspace-DH0v0KcB.js.map +0 -1
@@ -1,54 +1,56 @@
1
1
  "use client";
2
2
  import { interpolateString as e, useStrings as t } from "../lib/strings.js";
3
- import { t as n } from "../utils-l5LpDw2z.js";
4
- import { n as r } from "../buttons-SbIcm1HJ.js";
5
- import { a as i, s as a } from "../typography-DTRkE9zL.js";
3
+ import { t as n } from "../utils-BRhFDwuU.js";
4
+ import { n as r } from "../buttons-DPZekJFu.js";
5
+ import { c as i, o as a } from "../typography-UTnveOEy.js";
6
6
  import { t as o } from "../focus-recipes-B653VaLq.js";
7
- import { t as s } from "../structure-DC2dygdA.js";
8
- import { t as c } from "../badge-MrKVNzW9.js";
9
- import { d as l } from "../text-inputs-aaK9wcDT.js";
10
- import { s as u } from "../data-display-DafIvCl5.js";
11
- import { c as d, l as f, s as p } from "../message-CdHgIWKf.js";
12
- import { S as m, _ as h, a as g, b as _, d as v, h as y, l as b, p as x, r as S, s as C, t as w, y as T } from "../ai-artifact-BMJdv-6q.js";
13
- import { useCallback as E, useEffect as D, useRef as O, useState as k } from "react";
14
- import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
15
- import { ArrowDown as N, ArrowUp as P, Loader2 as F, Paperclip as I, Sparkles as L, Square as R, X as z } from "lucide-react";
7
+ import { t as s } from "../structure-BmisBK-3.js";
8
+ import { t as c } from "../tone-recipes-BPsRAvhu.js";
9
+ import { t as l } from "../badge-HpFqoqSY.js";
10
+ import { t as u } from "../field-state-recipes-BVA2CWHo.js";
11
+ import { d } from "../text-inputs-f9Ia-aCi.js";
12
+ import { s as f } from "../data-display-DT_khPl_.js";
13
+ import { c as p, l as m, s as h } from "../message-DZ_ruyUV.js";
14
+ import { S as g, _, a as v, b as y, d as b, h as x, l as S, p as C, r as w, s as T, t as E, y as D } from "../ai-artifact-DvTwDVyL.js";
15
+ import { useCallback as O, useEffect as k, useRef as A, useState as j } from "react";
16
+ import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
17
+ import { ArrowDown as F, ArrowUp as I, Loader2 as L, Paperclip as R, Sparkles as z, Square as B, X as ee } from "lucide-react";
16
18
  //#region src/components/features/ai-chat/ai-chat.strings.ts
17
- var B = {
19
+ var V = {
18
20
  placeholder: "Ask anything…",
19
21
  attachAria: "Attach files",
20
22
  submitAria: "Send message",
21
23
  stopAria: "Stop generating",
22
24
  modelPickerAria: "Choose model",
23
25
  hint: "Press {{submitKey}} to send · {{newlineKey}} for newline"
24
- }, V = {
26
+ }, H = {
25
27
  transcriptAria: "Conversation messages",
26
28
  empty: "No messages yet.",
27
29
  scrollToBottom: "Jump to latest",
28
30
  scrollToBottomAria: "Scroll to bottom"
29
- }, H = {
31
+ }, U = {
30
32
  header: "In queue",
31
33
  cancelAria: "Remove from queue",
32
34
  queuedLabel: "Queued",
33
35
  runningLabel: "Running"
34
- }, U = { header: "Try" }, W = { pending: "Thinking…" }, G = {
35
- prompt: B,
36
- conversation: V,
37
- queue: H,
38
- suggestions: U,
39
- message: W,
36
+ }, W = { header: "Try" }, G = { pending: "Thinking…" }, K = {
37
+ prompt: V,
38
+ conversation: H,
39
+ queue: U,
40
+ suggestions: W,
41
+ message: G,
40
42
  emptyTitle: "Start a conversation",
41
43
  emptyDescription: "Ask a question, share context, or attach a file to get going.",
42
44
  disabledAnnouncement: "Chat is disabled"
43
45
  };
44
46
  //#endregion
45
47
  //#region src/components/features/ai-chat/partials/ai-chat-attachments-strip.tsx
46
- function K({ attachments: e, onRemove: t, onOpen: r, className: i }) {
47
- return e.length === 0 ? null : /* @__PURE__ */ j(s, {
48
+ function q({ attachments: e, onRemove: t, onOpen: r, className: i }) {
49
+ return e.length === 0 ? null : /* @__PURE__ */ N(s, {
48
50
  direction: "horizontal",
49
51
  gap: "sm",
50
52
  className: n("ai-chat-attachments-strip--component", i),
51
- children: e.map((e) => /* @__PURE__ */ j(y, {
53
+ children: e.map((e) => /* @__PURE__ */ N(x, {
52
54
  name: e.name,
53
55
  meta: e.meta,
54
56
  kind: e.kind,
@@ -61,17 +63,17 @@ function K({ attachments: e, onRemove: t, onOpen: r, className: i }) {
61
63
  }, e.id))
62
64
  });
63
65
  }
64
- K.displayName = "AiChatAttachmentsStrip";
66
+ q.displayName = "AiChatAttachmentsStrip";
65
67
  //#endregion
66
68
  //#region src/components/features/ai-chat/hooks/use-ai-chat-scroll.ts
67
- function q({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}) {
68
- let r = O(null), i = O(null), [a, o] = k(!0), s = E((e = "smooth") => {
69
+ function te({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}) {
70
+ let r = A(null), i = A(null), [a, o] = j(!0), s = O((e = "smooth") => {
69
71
  i.current?.scrollIntoView({
70
72
  behavior: e,
71
73
  block: "end"
72
74
  });
73
75
  }, []);
74
- return D(() => {
76
+ return k(() => {
75
77
  let t = r.current;
76
78
  if (!t) return;
77
79
  let n = () => {
@@ -79,7 +81,7 @@ function q({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
79
81
  o(n <= e);
80
82
  };
81
83
  return n(), t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
82
- }, [e]), D(() => {
84
+ }, [e]), k(() => {
83
85
  if (n || !a) return;
84
86
  let e = window.requestAnimationFrame(() => s("auto"));
85
87
  return () => window.cancelAnimationFrame(e);
@@ -92,31 +94,31 @@ function q({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
92
94
  }
93
95
  //#endregion
94
96
  //#region src/components/features/ai-chat/partials/ai-chat-conversation.tsx
95
- function J({ messages: e, renderMessage: i, intro: c, footer: l, empty: u, disableAutoScroll: d, className: f, strings: p }) {
96
- let m = t(V, p), { containerRef: h, endRef: g, isAtBottom: _, scrollToBottom: v } = q({
97
+ function J({ messages: e, renderMessage: a, intro: c, footer: l, empty: u, disableAutoScroll: d, className: f, strings: p }) {
98
+ let m = t(H, p), { containerRef: h, endRef: g, isAtBottom: _, scrollToBottom: v } = te({
97
99
  dependency: e.length,
98
100
  disableAutoScroll: d
99
101
  }), y = e.length === 0 && !c;
100
- return /* @__PURE__ */ M("div", {
102
+ return /* @__PURE__ */ P("div", {
101
103
  className: n("ai-chat-conversation--component relative flex h-full min-h-0 flex-col", f),
102
- children: [/* @__PURE__ */ M("div", {
104
+ children: [/* @__PURE__ */ P("div", {
103
105
  ref: h,
104
106
  tabIndex: 0,
105
107
  "aria-label": m.transcriptAria,
106
108
  className: `flex-1 overflow-y-auto p-surface focus-visible:outline-none ${o.inset}`,
107
109
  children: [
108
- !!c && /* @__PURE__ */ j("div", {
110
+ !!c && /* @__PURE__ */ N("div", {
109
111
  className: "mb-space-xl",
110
112
  children: c
111
113
  }),
112
- y ? u ?? /* @__PURE__ */ j("div", {
114
+ y ? u ?? /* @__PURE__ */ N("div", {
113
115
  className: "flex h-full items-center justify-center p-surface-lg",
114
- children: /* @__PURE__ */ j(a, {
116
+ children: /* @__PURE__ */ N(i, {
115
117
  type: "secondary",
116
118
  children: m.empty
117
119
  })
118
- }) : /* @__PURE__ */ j(s, {
119
- render: /* @__PURE__ */ j("ol", {}),
120
+ }) : /* @__PURE__ */ N(s, {
121
+ render: /* @__PURE__ */ N("ol", {}),
120
122
  gap: "xl",
121
123
  className: "ai-chat-conversation--messages m-0 list-none p-0 font-sans",
122
124
  children: e.map((t, n) => {
@@ -124,29 +126,29 @@ function J({ messages: e, renderMessage: i, intro: c, footer: l, empty: u, disab
124
126
  isLast: n === e.length - 1,
125
127
  index: n
126
128
  };
127
- return /* @__PURE__ */ j("li", { children: i(t, r) }, t.id);
129
+ return /* @__PURE__ */ N("li", { children: a(t, r) }, t.id);
128
130
  })
129
131
  }),
130
- !!l && /* @__PURE__ */ j("div", {
132
+ !!l && /* @__PURE__ */ N("div", {
131
133
  className: "mt-space-xl",
132
134
  children: l
133
135
  }),
134
- /* @__PURE__ */ j("div", {
136
+ /* @__PURE__ */ N("div", {
135
137
  ref: g,
136
138
  "aria-hidden": !0,
137
139
  className: "h-px"
138
140
  })
139
141
  ]
140
- }), !_ && /* @__PURE__ */ j("div", {
142
+ }), !_ && /* @__PURE__ */ N("div", {
141
143
  className: "ai-chat-conversation--jump flex shrink-0 justify-center border-t border-border/60 bg-background px-space-md py-space-sm",
142
- children: /* @__PURE__ */ M(r, {
144
+ children: /* @__PURE__ */ P(r, {
143
145
  type: "button",
144
146
  tone: "secondary",
145
147
  buttonStyle: "solid",
146
148
  "aria-label": m.scrollToBottomAria,
147
149
  onClick: () => v("smooth"),
148
150
  className: n("shadow-sm max-sm:size-action-sm max-sm:min-h-0 max-sm:p-0", "border border-border/60"),
149
- children: [/* @__PURE__ */ j(N, { className: "size-icon-md" }), /* @__PURE__ */ j(a, {
151
+ children: [/* @__PURE__ */ N(F, { className: "size-icon-md" }), /* @__PURE__ */ N(i, {
150
152
  tag: "span",
151
153
  size: "pxs",
152
154
  className: "max-sm:sr-only",
@@ -159,24 +161,24 @@ function J({ messages: e, renderMessage: i, intro: c, footer: l, empty: u, disab
159
161
  J.displayName = "AiChatConversation";
160
162
  //#endregion
161
163
  //#region src/components/features/ai-chat/partials/ai-chat-empty-state.tsx
162
- function Y({ title: e = "Start a conversation", description: t, icon: r = L, below: i, className: a }) {
163
- let o = /* @__PURE__ */ j(r, {
164
+ function Y({ title: e = "Start a conversation", description: t, icon: r = z, below: i, className: a }) {
165
+ let o = /* @__PURE__ */ N(r, {
164
166
  className: "size-icon",
165
167
  "aria-hidden": "true"
166
168
  });
167
- return /* @__PURE__ */ M(s, {
169
+ return /* @__PURE__ */ P(s, {
168
170
  gap: "md",
169
171
  align: "center",
170
172
  justify: "center",
171
173
  className: n("ai-chat-empty-state--component min-h-full text-center", a),
172
- children: [/* @__PURE__ */ j(u, {
174
+ children: [/* @__PURE__ */ N(f, {
173
175
  title: e,
174
176
  description: t ?? !1,
175
177
  media: o,
176
178
  mediaVariant: "icon",
177
179
  padding: "md",
178
180
  className: "w-full"
179
- }), !!i && /* @__PURE__ */ j("div", {
181
+ }), !!i && /* @__PURE__ */ N("div", {
180
182
  className: "w-full max-w-2xl",
181
183
  children: i
182
184
  })]
@@ -186,20 +188,20 @@ Y.displayName = "AiChatEmptyState";
186
188
  //#endregion
187
189
  //#region src/components/features/ai-chat/partials/ai-chat-message.tsx
188
190
  function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, className: o, strings: c }) {
189
- let l = t(W, c), u = e.role === "user" ? "end" : "start", h = [], g = [];
190
- for (let t of e.parts) t.type === "text" ? h.push(t) : g.push(t);
191
- let _ = h.map((e) => e.type === "text" ? e.plain ?? te(e.content) : "").filter(Boolean).join("\n") || void 0, v = e.pending ? /* @__PURE__ */ j(T, { children: l.pending }) : h.length === 0 && g.length > 0 ? null : /* @__PURE__ */ j(s, {
191
+ let l = t(G, c), u = e.role === "user" ? "end" : "start", d = [], f = [];
192
+ for (let t of e.parts) t.type === "text" ? d.push(t) : f.push(t);
193
+ let _ = d.map((e) => e.type === "text" ? e.plain ?? re(e.content) : "").filter(Boolean).join("\n") || void 0, v = e.pending ? /* @__PURE__ */ N(D, { children: l.pending }) : d.length === 0 && f.length > 0 ? null : /* @__PURE__ */ N(s, {
192
194
  gap: "md",
193
- children: h.map((e, t) => e.type === "text" ? /* @__PURE__ */ j("div", {
195
+ children: d.map((e, t) => e.type === "text" ? /* @__PURE__ */ N("div", {
194
196
  className: "whitespace-pre-wrap",
195
197
  children: e.content
196
198
  }, t) : null)
197
- }), y = v !== null || e.pending, b = y && (e.avatar == null || p(e.avatar)), x = b ? f[u] : "col-start-1";
198
- return /* @__PURE__ */ M(s, {
199
+ }), y = v !== null || e.pending, b = y && (e.avatar == null || h(e.avatar)), x = b ? m[u] : "col-start-1";
200
+ return /* @__PURE__ */ P(s, {
199
201
  gap: "md",
200
- className: n("ai-chat-message--component grid min-w-0", b ? d[u] : "grid-cols-1", o),
202
+ className: n("ai-chat-message--component grid min-w-0", b ? p[u] : "grid-cols-1", o),
201
203
  children: [
202
- y && /* @__PURE__ */ j(m, {
204
+ y && /* @__PURE__ */ N(g, {
203
205
  role: e.role,
204
206
  avatar: e.avatar,
205
207
  authorName: e.authorName,
@@ -211,15 +213,15 @@ function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, classN
211
213
  onRegenerate: i,
212
214
  children: v
213
215
  }),
214
- g.length > 0 && /* @__PURE__ */ j(s, {
216
+ f.length > 0 && /* @__PURE__ */ N(s, {
215
217
  gap: "md",
216
218
  className: n("ai-chat-message--parts min-w-0", x),
217
- children: g.map((e, t) => /* @__PURE__ */ j(ee, {
219
+ children: f.map((e, t) => /* @__PURE__ */ N(ne, {
218
220
  part: e,
219
221
  onAttachmentOpen: a
220
222
  }, t))
221
223
  }),
222
- !!e.trailing && /* @__PURE__ */ j("div", {
224
+ !!e.trailing && /* @__PURE__ */ N("div", {
223
225
  className: n("ai-chat-message--trailing min-w-0", x),
224
226
  children: e.trailing
225
227
  })
@@ -227,19 +229,19 @@ function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, classN
227
229
  });
228
230
  }
229
231
  X.displayName = "AiChatMessage";
230
- function ee({ part: e, onAttachmentOpen: t }) {
232
+ function ne({ part: e, onAttachmentOpen: t }) {
231
233
  switch (e.type) {
232
- case "text": return /* @__PURE__ */ j(a, { children: e.content });
233
- case "reasoning": return /* @__PURE__ */ j(C, {
234
+ case "text": return /* @__PURE__ */ N(i, { children: e.content });
235
+ case "reasoning": return /* @__PURE__ */ N(T, {
234
236
  streaming: e.streaming,
235
237
  durationSeconds: e.durationSeconds,
236
238
  children: e.content
237
239
  });
238
- case "chain-of-thought": return /* @__PURE__ */ j(g, {
240
+ case "chain-of-thought": return /* @__PURE__ */ N(v, {
239
241
  steps: e.steps,
240
242
  streaming: e.streaming
241
243
  });
242
- case "tool": return /* @__PURE__ */ j(_, {
244
+ case "tool": return /* @__PURE__ */ N(y, {
243
245
  name: e.name,
244
246
  status: e.status,
245
247
  icon: e.icon,
@@ -249,24 +251,24 @@ function ee({ part: e, onAttachmentOpen: t }) {
249
251
  durationMs: e.durationMs,
250
252
  defaultExpanded: e.defaultExpanded
251
253
  });
252
- case "code": return /* @__PURE__ */ j(h, {
254
+ case "code": return /* @__PURE__ */ N(_, {
253
255
  code: e.code,
254
256
  language: e.language,
255
257
  filename: e.filename,
256
258
  showLineNumbers: e.showLineNumbers,
257
259
  highlightLines: e.highlightLines
258
260
  });
259
- case "attachments": return /* @__PURE__ */ j(K, {
261
+ case "attachments": return /* @__PURE__ */ N(q, {
260
262
  attachments: e.items,
261
263
  onOpen: t ? (e) => t(e.id) : void 0
262
264
  });
263
- case "sources": return /* @__PURE__ */ j(b, {
265
+ case "sources": return /* @__PURE__ */ N(S, {
264
266
  sources: e.items,
265
267
  variant: e.variant,
266
268
  defaultExpanded: e.defaultExpanded
267
269
  });
268
- case "task": return /* @__PURE__ */ j(S, { task: e.task });
269
- case "artifact": return /* @__PURE__ */ j(w, {
270
+ case "task": return /* @__PURE__ */ N(w, { task: e.task });
271
+ case "artifact": return /* @__PURE__ */ N(E, {
270
272
  title: e.title,
271
273
  subtitle: e.subtitle,
272
274
  icon: e.icon,
@@ -276,7 +278,7 @@ function ee({ part: e, onAttachmentOpen: t }) {
276
278
  onDownload: e.onDownload,
277
279
  children: e.body
278
280
  });
279
- case "confirmation": return /* @__PURE__ */ j(v, {
281
+ case "confirmation": return /* @__PURE__ */ N(b, {
280
282
  title: e.title,
281
283
  description: e.description,
282
284
  tone: e.tone,
@@ -285,99 +287,105 @@ function ee({ part: e, onAttachmentOpen: t }) {
285
287
  onApprove: e.onApprove,
286
288
  onReject: e.onReject
287
289
  });
288
- case "custom": return /* @__PURE__ */ j(A, { children: e.render() });
290
+ case "custom": return /* @__PURE__ */ N(M, { children: e.render() });
289
291
  default: return null;
290
292
  }
291
293
  }
292
- function te(e) {
293
- return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(te).join("") : "";
294
+ function re(e) {
295
+ return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(re).join("") : "";
294
296
  }
295
297
  //#endregion
296
298
  //#region src/components/features/ai-chat/partials/ai-chat-prompt-input.tsx
297
- function Z({ value: i, onValueChange: o, onSubmit: s, onStop: c, streaming: u = !1, disabled: d = !1, attachments: f = [], onRemoveAttachment: p, onAttach: m, showAttach: h, leadingActions: g, trailingActions: _, hideHint: v = !1, minRows: y = 1, maxRows: b = 8, autoFocus: x = !1, submitKeyLabel: S = "↩", className: C, strings: w }) {
298
- let T = t(B, w), D = O(null), k = !u && !d && (i.trim().length > 0 || f.length > 0), A = E(() => {
299
+ function Z({ value: a, onValueChange: o, onSubmit: s, onStop: c, streaming: l = !1, disabled: f = !1, attachments: p = [], onRemoveAttachment: m, onAttach: h, showAttach: g, leadingActions: _, trailingActions: v, hideHint: y = !1, minRows: b = 1, maxRows: x = 8, autoFocus: S = !1, submitKeyLabel: C = "↩", className: w, strings: T }) {
300
+ let E = t(V, T), D = A(null), k = !l && !f && (a.trim().length > 0 || p.length > 0), j = O(() => {
299
301
  k && s?.({
300
- text: i,
301
- attachments: f
302
+ text: a,
303
+ attachments: p
302
304
  });
303
305
  }, [
304
306
  k,
305
307
  s,
306
- i,
307
- f
308
- ]), N = E((e) => {
309
- e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), A());
310
- }, [A]), F = h ?? !!m;
311
- return /* @__PURE__ */ M("div", {
312
- className: n("ai-chat-prompt-input--component", "rounded-radius border border-input bg-card transition-[color,box-shadow] duration-150", "has-[textarea:focus-visible]:border-ring has-[textarea:focus-visible]:ring-3 has-[textarea:focus-visible]:ring-ring/50", d && "opacity-50 pointer-events-none", C),
308
+ a,
309
+ p
310
+ ]), M = O((e) => {
311
+ e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), j());
312
+ }, [j]), F = g ?? !!h;
313
+ return /* @__PURE__ */ P("div", {
314
+ inert: f || void 0,
315
+ className: n("ai-chat-prompt-input--component", "rounded-radius border border-input bg-card text-card-foreground transition-[color,box-shadow] duration-150", u.groupFocus, u.groupInvalid, f && "opacity-50 pointer-events-none", w),
313
316
  children: [
314
- f.length > 0 && /* @__PURE__ */ j("div", {
317
+ p.length > 0 && /* @__PURE__ */ N("div", {
315
318
  className: "border-b border-border/60 p-surface-xs",
316
- children: /* @__PURE__ */ j(K, {
317
- attachments: f,
318
- onRemove: p
319
+ children: /* @__PURE__ */ N(q, {
320
+ attachments: p,
321
+ onRemove: m
319
322
  })
320
323
  }),
321
- /* @__PURE__ */ j(l, {
324
+ /* @__PURE__ */ N(d, {
322
325
  ref: D,
323
- value: i,
326
+ value: a,
324
327
  onChange: (e) => o(e.target.value),
325
- onKeyDown: N,
326
- placeholder: T.placeholder,
328
+ onKeyDown: M,
329
+ placeholder: E.placeholder,
327
330
  autoResize: !0,
328
- minRows: y,
329
- maxRows: b,
330
- autoFocus: x,
331
- disabled: d,
332
- className: n("!border-0 !bg-transparent !shadow-none focus-visible:!ring-0 resize-none")
331
+ minRows: b,
332
+ maxRows: x,
333
+ autoFocus: S,
334
+ disabled: f,
335
+ "data-slot": "input-group-control",
336
+ className: "rounded-none border-0 bg-transparent text-inherit shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 resize-none disabled:opacity-100"
333
337
  }),
334
- /* @__PURE__ */ M("div", {
338
+ /* @__PURE__ */ P("div", {
335
339
  className: "flex items-center gap-space-xs border-t border-border/60 px-surface-xs py-space-sm",
336
340
  children: [
337
- g,
338
- F && /* @__PURE__ */ j(r, {
341
+ _,
342
+ F && /* @__PURE__ */ N(r, {
339
343
  type: "button",
340
344
  tone: "secondary",
341
345
  buttonStyle: "ghost",
342
346
  size: "sm",
343
347
  iconOnly: !0,
344
- "aria-label": T.attachAria,
345
- onClick: m,
346
- disabled: d,
347
- children: /* @__PURE__ */ j(I, { className: "size-icon" })
348
+ "aria-label": E.attachAria,
349
+ className: "disabled:opacity-100",
350
+ onClick: h,
351
+ disabled: f,
352
+ children: /* @__PURE__ */ N(R, { className: "size-icon" })
348
353
  }),
349
- /* @__PURE__ */ M("div", {
354
+ /* @__PURE__ */ P("div", {
350
355
  className: "ml-auto flex items-center gap-space-xs",
351
- children: [_, u ? /* @__PURE__ */ j(r, {
356
+ children: [v, l ? /* @__PURE__ */ N(r, {
352
357
  type: "button",
353
358
  tone: "secondary",
354
359
  buttonStyle: "solid",
355
360
  size: "sm",
356
361
  iconOnly: !0,
357
- "aria-label": T.stopAria,
362
+ "aria-label": E.stopAria,
363
+ className: "disabled:opacity-100",
358
364
  onClick: c,
359
- children: /* @__PURE__ */ j(R, { className: "size-icon-md fill-current" })
360
- }) : /* @__PURE__ */ j(r, {
365
+ disabled: f,
366
+ children: /* @__PURE__ */ N(B, { className: "size-icon-md fill-current" })
367
+ }) : /* @__PURE__ */ N(r, {
361
368
  type: "button",
362
369
  tone: "primary",
363
370
  buttonStyle: "solid",
364
371
  size: "sm",
365
372
  iconOnly: !0,
366
- "aria-label": T.submitAria,
367
- onClick: A,
373
+ "aria-label": E.submitAria,
374
+ className: f ? "disabled:opacity-100" : void 0,
375
+ onClick: j,
368
376
  disabled: !k,
369
- children: /* @__PURE__ */ j(P, { className: "size-icon" })
377
+ children: /* @__PURE__ */ N(I, { className: "size-icon" })
370
378
  })]
371
379
  })
372
380
  ]
373
381
  }),
374
- !v && /* @__PURE__ */ j("div", {
382
+ !y && /* @__PURE__ */ N("div", {
375
383
  className: "px-surface-xs pb-surface-xs",
376
- children: /* @__PURE__ */ j(a, {
384
+ children: /* @__PURE__ */ N(i, {
377
385
  size: "xs",
378
386
  type: "discrete",
379
- children: e(T.hint, {
380
- submitKey: S,
387
+ children: e(E.hint, {
388
+ submitKey: C,
381
389
  newlineKey: "⇧↩"
382
390
  })
383
391
  })
@@ -388,51 +396,52 @@ function Z({ value: i, onValueChange: o, onSubmit: s, onStop: c, streaming: u =
388
396
  Z.displayName = "AiChatPromptInput";
389
397
  //#endregion
390
398
  //#region src/components/features/ai-chat/partials/ai-chat-queue.tsx
391
- function Q({ items: e, hideHeader: o = !1, onCancel: l, className: u, strings: d }) {
392
- let f = t(H, d);
393
- return e.length === 0 ? null : /* @__PURE__ */ M(s, {
399
+ function Q({ items: e, hideHeader: o = !1, onCancel: u, className: d, strings: f }) {
400
+ let p = t(U, f);
401
+ return e.length === 0 ? null : /* @__PURE__ */ P(s, {
394
402
  gap: "sm",
395
- className: n("ai-chat-queue--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", u),
396
- children: [!o && /* @__PURE__ */ M(i, {
403
+ className: n("ai-chat-queue--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", d),
404
+ children: [!o && /* @__PURE__ */ P(a, {
397
405
  className: "px-1",
398
406
  children: [
399
- f.header,
407
+ p.header,
400
408
  " · ",
401
409
  e.length
402
410
  ]
403
- }), /* @__PURE__ */ j(s, {
404
- render: /* @__PURE__ */ j("ul", {}),
411
+ }), /* @__PURE__ */ N(s, {
412
+ render: /* @__PURE__ */ N("ul", {}),
405
413
  gap: "xs",
406
414
  className: "ai-chat-queue--list m-0 list-none p-0 font-sans",
407
415
  children: e.map((e) => {
408
416
  let t = e.status ?? "queued";
409
- return /* @__PURE__ */ M("li", {
410
- className: "flex items-center gap-space-md rounded-inner bg-card px-space-md py-space-sm",
417
+ return /* @__PURE__ */ P("li", {
418
+ className: "flex items-center gap-space-md rounded-inner bg-card text-card-foreground px-space-md py-space-sm",
411
419
  children: [
412
- t === "running" ? /* @__PURE__ */ j(F, { className: "size-icon-md shrink-0 animate-spin text-primary-accent" }) : /* @__PURE__ */ j("span", {
420
+ t === "running" ? /* @__PURE__ */ N(L, { className: "size-icon-md shrink-0 animate-spin text-primary-accent" }) : /* @__PURE__ */ N("span", {
413
421
  "aria-hidden": !0,
414
422
  className: "flex size-icon-md shrink-0 items-center justify-center",
415
- children: /* @__PURE__ */ j("span", { className: "size-2 rounded-full bg-muted-foreground" })
423
+ children: /* @__PURE__ */ N("span", { className: n(c.marker, "bg-muted-foreground") })
416
424
  }),
417
- /* @__PURE__ */ j(a, {
425
+ /* @__PURE__ */ N(i, {
426
+ type: "inherit",
418
427
  className: "flex-1 truncate",
419
428
  children: e.label
420
429
  }),
421
- /* @__PURE__ */ j(c, {
430
+ /* @__PURE__ */ N(l, {
422
431
  tone: t === "running" ? "info" : "secondary",
423
- children: t === "running" ? f.runningLabel : f.queuedLabel
432
+ children: t === "running" ? p.runningLabel : p.queuedLabel
424
433
  }),
425
- (!!e.onCancel || !!l) && /* @__PURE__ */ j(r, {
434
+ (!!e.onCancel || !!u) && /* @__PURE__ */ N(r, {
426
435
  type: "button",
427
436
  tone: "secondary",
428
437
  buttonStyle: "ghost",
429
438
  size: "sm",
430
439
  iconOnly: !0,
431
- "aria-label": f.cancelAria,
440
+ "aria-label": p.cancelAria,
432
441
  onClick: () => {
433
- e.onCancel?.(), l?.(e.id);
442
+ e.onCancel?.(), u?.(e.id);
434
443
  },
435
- children: /* @__PURE__ */ j(z, { className: "size-icon-md" })
444
+ children: /* @__PURE__ */ N(ee, { className: "size-icon-md" })
436
445
  })
437
446
  ]
438
447
  }, e.id);
@@ -444,24 +453,24 @@ Q.displayName = "AiChatQueue";
444
453
  //#endregion
445
454
  //#region src/components/features/ai-chat/partials/ai-chat-suggestions-row.tsx
446
455
  function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, strings: l }) {
447
- let u = t(U, l);
448
- return e.length === 0 ? null : /* @__PURE__ */ M("div", {
456
+ let u = t(W, l);
457
+ return e.length === 0 ? null : /* @__PURE__ */ P("div", {
449
458
  className: n("ai-chat-suggestions-row--component flex items-center gap-space-md", c),
450
- children: [!s && /* @__PURE__ */ j(i, {
459
+ children: [!s && /* @__PURE__ */ N(a, {
451
460
  className: "shrink-0",
452
461
  children: u.header
453
- }), /* @__PURE__ */ j("div", {
462
+ }), /* @__PURE__ */ N("div", {
454
463
  className: "flex min-w-0 flex-1 items-center gap-space-sm overflow-x-auto p-space-xs [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
455
464
  children: e.map((e) => {
456
465
  let t = e.icon;
457
- return /* @__PURE__ */ M(r, {
466
+ return /* @__PURE__ */ P(r, {
458
467
  type: "button",
459
468
  tone: "secondary",
460
469
  buttonStyle: "outline",
461
470
  size: "sm",
462
471
  onClick: () => o?.(e),
463
472
  className: "shrink-0 gap-space-sm",
464
- children: [!!t && /* @__PURE__ */ j(t, { className: "size-icon-sm text-muted-foreground" }), /* @__PURE__ */ j(a, {
473
+ children: [!!t && /* @__PURE__ */ N(t, { className: "size-icon-sm text-muted-foreground" }), /* @__PURE__ */ N(i, {
465
474
  tag: "span",
466
475
  weight: "medium",
467
476
  children: e.label
@@ -474,27 +483,27 @@ function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, string
474
483
  $.displayName = "AiChatSuggestionsRow";
475
484
  //#endregion
476
485
  //#region src/components/features/ai-chat/ai-chat.tsx
477
- function ne({ messages: e, inputValue: r, onInputChange: i, onSubmit: o, onStop: c, streaming: l = !1, disabled: u = !1, attachments: d = [], onRemoveAttachment: f, onAttach: p, showAttach: m, agent: h, headerActions: g, queue: _ = [], onCancelQueueItem: v, suggestions: y = [], onPickSuggestion: b, onMessageCopy: S, onMessageRegenerate: C, onAttachmentOpen: w, disableAutoScroll: T, slots: D, strings: O, className: A }) {
478
- let N = t(G, O), [, P] = k(0), F = E((e, t) => D?.renderMessage ? D.renderMessage(e, t) : /* @__PURE__ */ j(X, {
486
+ function ie({ messages: e, inputValue: r, onInputChange: a, onSubmit: o, onStop: c, streaming: l = !1, disabled: u = !1, attachments: d = [], onRemoveAttachment: f, onAttach: p, showAttach: m, agent: h, headerActions: g, queue: _ = [], onCancelQueueItem: v, suggestions: y = [], onPickSuggestion: b, onMessageCopy: x, onMessageRegenerate: S, onAttachmentOpen: w, disableAutoScroll: T, slots: E, strings: D, className: k }) {
487
+ let A = t(K, D), [, M] = j(0), F = O((e, t) => E?.renderMessage ? E.renderMessage(e, t) : /* @__PURE__ */ N(X, {
479
488
  className: "ai-chat-message--component",
480
489
  message: e,
481
- strings: N.message,
482
- onCopy: S ? () => S(e) : void 0,
483
- onRegenerate: C ? () => C(e) : void 0,
490
+ strings: A.message,
491
+ onCopy: x ? () => x(e) : void 0,
492
+ onRegenerate: S ? () => S(e) : void 0,
484
493
  onAttachmentOpen: w ? (t) => w(e.id, t) : void 0
485
494
  }), [
486
495
  w,
496
+ x,
487
497
  S,
488
- C,
489
- D,
490
- N.message
491
- ]), I = D?.header ?? (h ? /* @__PURE__ */ j("div", {
492
- className: "border-b border-border bg-card p-surface",
493
- children: /* @__PURE__ */ M(s, {
498
+ E,
499
+ A.message
500
+ ]), I = E?.header ?? (h ? /* @__PURE__ */ N("div", {
501
+ className: "border-b border-border bg-card text-card-foreground p-surface",
502
+ children: /* @__PURE__ */ P(s, {
494
503
  direction: "horizontal",
495
504
  align: "center",
496
505
  gap: "lg",
497
- children: [/* @__PURE__ */ j(x, {
506
+ children: [/* @__PURE__ */ N(C, {
498
507
  name: h.name,
499
508
  icon: h.icon,
500
509
  avatar: h.avatar,
@@ -502,27 +511,27 @@ function ne({ messages: e, inputValue: r, onInputChange: i, onSubmit: o, onStop:
502
511
  tone: h.tone,
503
512
  status: h.status,
504
513
  variant: "inline"
505
- }), !!g && /* @__PURE__ */ j("div", {
514
+ }), !!g && /* @__PURE__ */ N("div", {
506
515
  className: "ml-auto flex items-center gap-space-xs",
507
516
  children: g
508
517
  })]
509
518
  })
510
- }) : null), L = D?.empty ?? (e.length === 0 ? /* @__PURE__ */ j(Y, {
511
- title: N.emptyTitle,
512
- description: N.emptyDescription
513
- }) : null), R = D?.queue ?? (_.length > 0 ? /* @__PURE__ */ j(Q, {
519
+ }) : null), L = E?.empty ?? (e.length === 0 ? /* @__PURE__ */ N(Y, {
520
+ title: A.emptyTitle,
521
+ description: A.emptyDescription
522
+ }) : null), R = E?.queue ?? (_.length > 0 ? /* @__PURE__ */ N(Q, {
514
523
  items: _,
515
524
  onCancel: v,
516
- strings: N.queue
517
- }) : null), z = D?.suggestions ?? (y.length > 0 ? /* @__PURE__ */ j($, {
525
+ strings: A.queue
526
+ }) : null), z = E?.suggestions ?? (y.length > 0 ? /* @__PURE__ */ N($, {
518
527
  suggestions: y,
519
528
  onPick: b,
520
- strings: N.suggestions
521
- }) : null), B = D?.input ?? /* @__PURE__ */ j(Z, {
529
+ strings: A.suggestions
530
+ }) : null), B = E?.input ?? /* @__PURE__ */ N(Z, {
522
531
  value: r,
523
- onValueChange: i,
532
+ onValueChange: a,
524
533
  onSubmit: (e) => {
525
- o?.(e), P((e) => e + 1);
534
+ o?.(e), M((e) => e + 1);
526
535
  },
527
536
  onStop: c,
528
537
  streaming: l,
@@ -531,24 +540,24 @@ function ne({ messages: e, inputValue: r, onInputChange: i, onSubmit: o, onStop:
531
540
  onRemoveAttachment: f,
532
541
  onAttach: p,
533
542
  showAttach: m,
534
- strings: N.prompt
543
+ strings: A.prompt
535
544
  });
536
- return /* @__PURE__ */ M("div", {
537
- className: n("ai-chat--component flex h-full flex-col overflow-hidden rounded-radius border border-border bg-background", A),
545
+ return /* @__PURE__ */ P("div", {
546
+ className: n("ai-chat--component box-border flex h-full flex-col overflow-hidden rounded-radius border border-border bg-background text-foreground", k),
538
547
  children: [
539
548
  I,
540
- /* @__PURE__ */ j(J, {
549
+ /* @__PURE__ */ N(J, {
541
550
  messages: e,
542
551
  renderMessage: F,
543
- intro: D?.intro,
544
- footer: D?.belowMessages,
552
+ intro: E?.intro,
553
+ footer: E?.belowMessages,
545
554
  empty: L,
546
555
  disableAutoScroll: T,
547
- strings: N.conversation
556
+ strings: A.conversation
548
557
  }),
549
- (R || z || B) && /* @__PURE__ */ j("div", {
550
- className: "border-t border-border bg-card p-surface",
551
- children: /* @__PURE__ */ M(s, {
558
+ (R || z || B) && /* @__PURE__ */ N("div", {
559
+ className: "border-t border-border bg-card text-card-foreground p-surface",
560
+ children: /* @__PURE__ */ P(s, {
552
561
  gap: "md",
553
562
  children: [
554
563
  R,
@@ -557,16 +566,16 @@ function ne({ messages: e, inputValue: r, onInputChange: i, onSubmit: o, onStop:
557
566
  ]
558
567
  })
559
568
  }),
560
- u && /* @__PURE__ */ j(a, {
569
+ u && /* @__PURE__ */ N(i, {
561
570
  className: "sr-only",
562
571
  "aria-live": "polite",
563
- children: N.disabledAnnouncement
572
+ children: A.disabledAnnouncement
564
573
  })
565
574
  ]
566
575
  });
567
576
  }
568
- ne.displayName = "AiChat";
577
+ ie.displayName = "AiChat";
569
578
  //#endregion
570
- export { ne as AiChat, K as AiChatAttachmentsStrip, J as AiChatConversation, Y as AiChatEmptyState, X as AiChatMessageView, Z as AiChatPromptInput, Q as AiChatQueue, $ as AiChatSuggestionsRow, V as defaultAiChatConversationStrings, W as defaultAiChatMessageStrings, B as defaultAiChatPromptInputStrings, H as defaultAiChatQueueStrings, G as defaultAiChatStrings, U as defaultAiChatSuggestionsStrings, q as useAiChatScroll };
579
+ export { ie as AiChat, q as AiChatAttachmentsStrip, J as AiChatConversation, Y as AiChatEmptyState, X as AiChatMessageView, Z as AiChatPromptInput, Q as AiChatQueue, $ as AiChatSuggestionsRow, H as defaultAiChatConversationStrings, G as defaultAiChatMessageStrings, V as defaultAiChatPromptInputStrings, U as defaultAiChatQueueStrings, K as defaultAiChatStrings, W as defaultAiChatSuggestionsStrings, te as useAiChatScroll };
571
580
 
572
581
  //# sourceMappingURL=ai-chat.js.map