themelia-react-ui 2.0.1 → 2.0.2

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 (480) hide show
  1. package/CHANGELOG.md +307 -131
  2. package/README.md +28 -8
  3. package/THIRD_PARTY_NOTICES.md +13 -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-ax2BqjrI.js} +58 -54
  17. package/dist/auth-ax2BqjrI.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-C0EQW6dr.js +875 -0
  111. package/dist/combobox-C0EQW6dr.js.map +1 -0
  112. package/dist/combobox-xCQ2RMNE.js +309 -0
  113. package/dist/combobox-xCQ2RMNE.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-BYYlTA8E.js} +114 -105
  117. package/dist/comments-BYYlTA8E.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.strings.d.ts +7 -0
  125. package/dist/components/base/combobox/index.d.ts +30 -4
  126. package/dist/components/base/forms/form-sizing.d.ts +11 -3
  127. package/dist/components/base/navigation/pagination.d.ts +5 -2
  128. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  129. package/dist/components/base/table/index.d.ts +9 -2
  130. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  131. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  132. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  133. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
  134. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  135. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  136. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  137. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  138. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  139. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  140. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  141. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  142. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  143. package/dist/components/features/combobox/types.d.ts +4 -0
  144. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  145. package/dist/components/features/rich-text-editor/index.d.ts +1 -1
  146. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  147. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
  148. package/dist/components/features/table/table-header.d.ts +1 -1
  149. package/dist/components/features/table/table.strings.d.ts +55 -1
  150. package/dist/components/features/table/table.types.d.ts +17 -4
  151. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  152. package/dist/components/primitives/number.d.ts +4 -2
  153. package/dist/components/primitives/value.d.ts +3 -1
  154. package/dist/components/typography/text-link.d.ts +4 -0
  155. package/dist/components/ui/combobox.d.ts +6 -2
  156. package/dist/components/ui/item.d.ts +8 -8
  157. package/dist/components/ui/tabs.d.ts +1 -1
  158. package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
  159. package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
  160. package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
  161. package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
  162. package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
  163. package/dist/data-display-DT_khPl_.js.map +1 -0
  164. package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
  165. package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
  166. package/dist/{date-picker-CF-DtUpF.js → date-picker-ay0Pha_a.js} +594 -593
  167. package/dist/date-picker-ay0Pha_a.js.map +1 -0
  168. package/dist/date-pickers-Ccw8DL2b.js +175 -0
  169. package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
  170. package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
  171. package/dist/display-hAc1HjpI.js.map +1 -0
  172. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  173. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  174. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  175. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  176. package/dist/features/activities.js +398 -375
  177. package/dist/features/activities.js.map +1 -1
  178. package/dist/features/ai-chat.js +188 -179
  179. package/dist/features/ai-chat.js.map +1 -1
  180. package/dist/features/appointment-calendar.js +683 -0
  181. package/dist/features/appointment-calendar.js.map +1 -0
  182. package/dist/features/async-preview.js +109 -107
  183. package/dist/features/async-preview.js.map +1 -1
  184. package/dist/features/combobox.js +1 -1
  185. package/dist/features/comments.js +1 -1
  186. package/dist/features/data-view.js +137 -137
  187. package/dist/features/data-view.js.map +1 -1
  188. package/dist/features/email-composer.js +255 -255
  189. package/dist/features/email-composer.js.map +1 -1
  190. package/dist/features/event-calendar.js +254 -248
  191. package/dist/features/event-calendar.js.map +1 -1
  192. package/dist/features/filters.js +1 -1
  193. package/dist/features/global-search.js +35 -32
  194. package/dist/features/global-search.js.map +1 -1
  195. package/dist/features/kanban.js +118 -117
  196. package/dist/features/kanban.js.map +1 -1
  197. package/dist/features/map.js +233 -231
  198. package/dist/features/map.js.map +1 -1
  199. package/dist/features/media-library.js +789 -775
  200. package/dist/features/media-library.js.map +1 -1
  201. package/dist/features/mentions.js +1 -1
  202. package/dist/features/overlays.js +1 -1
  203. package/dist/features/products.js +922 -902
  204. package/dist/features/products.js.map +1 -1
  205. package/dist/features/questionnaire.js +28 -24
  206. package/dist/features/questionnaire.js.map +1 -1
  207. package/dist/features/resource-assignment.js +18 -15
  208. package/dist/features/resource-assignment.js.map +1 -1
  209. package/dist/features/resource.js +12 -12
  210. package/dist/features/resource.js.map +1 -1
  211. package/dist/features/rich-text-editor.js +2 -2
  212. package/dist/features/schema-form.js +15 -13
  213. package/dist/features/schema-form.js.map +1 -1
  214. package/dist/features/suggestions.js +3 -3
  215. package/dist/features/sync.js +11 -5
  216. package/dist/features/sync.js.map +1 -1
  217. package/dist/features/table.js +1 -1
  218. package/dist/features/theme-tweaker.js +493 -489
  219. package/dist/features/theme-tweaker.js.map +1 -1
  220. package/dist/feedback-BYIhtitP.js +239 -0
  221. package/dist/feedback-BYIhtitP.js.map +1 -0
  222. package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
  223. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  224. package/dist/{filters-BkHH53uv.js → filters-BGfvjP4d.js} +589 -580
  225. package/dist/filters-BGfvjP4d.js.map +1 -0
  226. package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
  227. package/dist/form-field-CwH9y77i.js.map +1 -0
  228. package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
  229. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  230. package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
  231. package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
  232. package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
  233. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  234. package/dist/{header-BOefOKd1.js → header-CGXuhcRm.js} +160 -153
  235. package/dist/header-CGXuhcRm.js.map +1 -0
  236. package/dist/{hooks-9k_TtmKh.js → hooks-Dkz0K2WT.js} +2 -2
  237. package/dist/{hooks-9k_TtmKh.js.map → hooks-Dkz0K2WT.js.map} +1 -1
  238. package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
  239. package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
  240. package/dist/index.js +3 -3
  241. package/dist/input-CZw8iU99.js +21 -0
  242. package/dist/input-CZw8iU99.js.map +1 -0
  243. package/dist/input-DQdEd0YD.js +263 -0
  244. package/dist/input-DQdEd0YD.js.map +1 -0
  245. package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
  246. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  247. package/dist/item-K5_ghvze.js +275 -0
  248. package/dist/item-K5_ghvze.js.map +1 -0
  249. package/dist/layout/app-shell.js +1 -1
  250. package/dist/layout/auth.js +1 -1
  251. package/dist/layout/containers.js +1 -1
  252. package/dist/layout/header.js +1 -1
  253. package/dist/layout/hooks.js +1 -1
  254. package/dist/layout/navigation.js +1 -1
  255. package/dist/layout/page.js +1 -1
  256. package/dist/layout/settings.js +1 -1
  257. package/dist/layout/sidebar.js +2 -2
  258. package/dist/layout/workspace.js +1 -1
  259. package/dist/layout.js +10 -10
  260. package/dist/lib/affordance-geometry.generated.d.ts +71 -0
  261. package/dist/lib/editable-text-recipe.d.ts +4 -4
  262. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  263. package/dist/lib/interaction-recipes.d.ts +5 -0
  264. package/dist/lib/theme-mode-css.d.ts +7 -0
  265. package/dist/lib/tone-recipes.d.ts +8 -0
  266. package/dist/lib/ui-provider/types.d.ts +2 -2
  267. package/dist/lib/utils.js +1 -1
  268. package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
  269. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  270. package/dist/{mentions-D-uyCh01.js → mentions-utuUvH1K.js} +144 -142
  271. package/dist/mentions-utuUvH1K.js.map +1 -0
  272. package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
  273. package/dist/message-DZ_ruyUV.js.map +1 -0
  274. package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
  275. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  276. package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
  277. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  278. package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
  279. package/dist/navigation-BzhHI3lo.js.map +1 -0
  280. package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  281. package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  282. package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
  283. package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
  284. package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
  285. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  286. package/dist/{overlays-I0axtYA6.js → overlays-DNWmZrJ4.js} +14 -12
  287. package/dist/overlays-DNWmZrJ4.js.map +1 -0
  288. package/dist/{page-B5dTH9gE.js → page-Bgl1F560.js} +8 -8
  289. package/dist/{page-B5dTH9gE.js.map → page-Bgl1F560.js.map} +1 -1
  290. package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
  291. package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
  292. package/dist/pagination-BL25hu2s.js +158 -0
  293. package/dist/pagination-BL25hu2s.js.map +1 -0
  294. package/dist/{popover-Di55PyAI.js → popover-7_m66eYW.js} +8 -7
  295. package/dist/{popover-Di55PyAI.js.map → popover-7_m66eYW.js.map} +1 -1
  296. package/dist/popover-menu-B9WWygpa.js +100 -0
  297. package/dist/popover-menu-B9WWygpa.js.map +1 -0
  298. package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
  299. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  300. package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
  301. package/dist/primitives-BFK08r9M.js.map +1 -0
  302. package/dist/primitives.js +4 -4
  303. package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
  304. package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
  305. package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
  306. package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  307. package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
  308. package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
  309. package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
  310. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  311. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  312. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  313. package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
  314. package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
  315. package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
  316. package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
  317. package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
  318. package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
  319. package/dist/services/actions.js +1 -1
  320. package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
  321. package/dist/settings-ybnjVwbd.js.map +1 -0
  322. package/dist/{sheet-4SEvVYzA.js → sheet-CGpB3omz.js} +8 -7
  323. package/dist/{sheet-4SEvVYzA.js.map → sheet-CGpB3omz.js.map} +1 -1
  324. package/dist/{sidebar-d7Dg80ln.js → sidebar-A0ElHINE.js} +14 -13
  325. package/dist/{sidebar-d7Dg80ln.js.map → sidebar-A0ElHINE.js.map} +1 -1
  326. package/dist/{sidebar-C7WWR29L.js → sidebar-CPx_7YBa.js} +183 -182
  327. package/dist/sidebar-CPx_7YBa.js.map +1 -0
  328. package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
  329. package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  330. package/dist/smart-card-DiC5aac3.js +604 -0
  331. package/dist/smart-card-DiC5aac3.js.map +1 -0
  332. package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
  333. package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
  334. package/dist/style.css +1 -1
  335. package/dist/table-BweFy_P9.js +1530 -0
  336. package/dist/table-BweFy_P9.js.map +1 -0
  337. package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
  338. package/dist/table-DsfzoUia.js.map +1 -0
  339. package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
  340. package/dist/tabs-CDocW5D1.js.map +1 -0
  341. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  342. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  343. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  344. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  345. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  346. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  347. package/dist/theme.css +285 -228
  348. package/dist/themes/green.css +16 -12
  349. package/dist/timelines-CwM_9IhD.js +457 -0
  350. package/dist/timelines-CwM_9IhD.js.map +1 -0
  351. package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
  352. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  353. package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
  354. package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
  355. package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
  356. package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
  357. package/dist/typography/rich-text.js +1 -1
  358. package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
  359. package/dist/typography-UTnveOEy.js.map +1 -0
  360. package/dist/typography.js +2 -2
  361. package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
  362. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  363. package/dist/ui-provider.js +2 -2
  364. package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
  365. package/dist/upload-CXyxmQBP.js.map +1 -0
  366. package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
  367. package/dist/upload-queue-Boscubn9.js.map +1 -0
  368. package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
  369. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  370. package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
  371. package/dist/utils-BRhFDwuU.js.map +1 -0
  372. package/dist/{value-inputs-TAYMX111.js → value-inputs-DXPDjvBU.js} +268 -252
  373. package/dist/value-inputs-DXPDjvBU.js.map +1 -0
  374. package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
  375. package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  376. package/dist/{workspace-DH0v0KcB.js → workspace-Cdrg7k9f.js} +34 -33
  377. package/dist/workspace-Cdrg7k9f.js.map +1 -0
  378. package/docs/consumer-skill/SKILL.md +2 -2
  379. package/docs/consumer-skill/references/agents-md.md +1 -1
  380. package/docs/consumer-skill/references/composition.md +8 -6
  381. package/docs/consumer-skill/references/integration.md +4 -3
  382. package/docs/consumer-skill/references/public-api.json +105 -2
  383. package/docs/consumer-skill/references/review.md +7 -0
  384. package/docs/consumer-skill/references/theming.md +71 -6
  385. package/docs/consumer-skill/references/tokens.json +1 -1
  386. package/docs/consumer-skill/references/workflows.md +25 -0
  387. package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
  388. package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
  389. package/package.json +8 -4
  390. package/dist/accordion-B6a3vVgA.js.map +0 -1
  391. package/dist/action-menu-TzCoSlwL.js +0 -280
  392. package/dist/action-menu-TzCoSlwL.js.map +0 -1
  393. package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
  394. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
  395. package/dist/ai-artifact-BMJdv-6q.js +0 -1115
  396. package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
  397. package/dist/attachment-BtfhGm8i.js +0 -245
  398. package/dist/attachment-BtfhGm8i.js.map +0 -1
  399. package/dist/auth-CYxKfo69.js.map +0 -1
  400. package/dist/avatar-BBnEJIx8.js.map +0 -1
  401. package/dist/badge-MrKVNzW9.js.map +0 -1
  402. package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
  403. package/dist/breadcrumbs-D5t7I023.js.map +0 -1
  404. package/dist/buttons-SbIcm1HJ.js.map +0 -1
  405. package/dist/cards-CiiHpKYd.js +0 -66
  406. package/dist/cards-CiiHpKYd.js.map +0 -1
  407. package/dist/chart-QfrARkXl.js.map +0 -1
  408. package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
  409. package/dist/code-block-Dgbu-CU3.js.map +0 -1
  410. package/dist/combobox-2Ic8N9bL.js +0 -278
  411. package/dist/combobox-2Ic8N9bL.js.map +0 -1
  412. package/dist/combobox-DLl0bfiq.js +0 -867
  413. package/dist/combobox-DLl0bfiq.js.map +0 -1
  414. package/dist/comments-BpDuCUUu.js.map +0 -1
  415. package/dist/data-display-DafIvCl5.js.map +0 -1
  416. package/dist/date-picker-CF-DtUpF.js.map +0 -1
  417. package/dist/date-pickers-BmzxJl5l.js +0 -174
  418. package/dist/date-pickers-BmzxJl5l.js.map +0 -1
  419. package/dist/display-DsQTVzMz.js.map +0 -1
  420. package/dist/dropdown-menu-E2qmdC7o.js +0 -193
  421. package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
  422. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  423. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  424. package/dist/feedback-qNuMBtRH.js +0 -233
  425. package/dist/feedback-qNuMBtRH.js.map +0 -1
  426. package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
  427. package/dist/filters-BkHH53uv.js.map +0 -1
  428. package/dist/form-field-DUt4UxSV.js.map +0 -1
  429. package/dist/form-sizing-By94KzXE.js.map +0 -1
  430. package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
  431. package/dist/header-BOefOKd1.js.map +0 -1
  432. package/dist/input-DWhBBBww.js +0 -262
  433. package/dist/input-DWhBBBww.js.map +0 -1
  434. package/dist/input-Ddi_LSYv.js +0 -20
  435. package/dist/input-Ddi_LSYv.js.map +0 -1
  436. package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
  437. package/dist/item-DEmDiTlD.js +0 -265
  438. package/dist/item-DEmDiTlD.js.map +0 -1
  439. package/dist/media-gallery-DcTtAaeC.js.map +0 -1
  440. package/dist/mentions-D-uyCh01.js.map +0 -1
  441. package/dist/message-CdHgIWKf.js.map +0 -1
  442. package/dist/metadata-list-X5rYAKSB.js.map +0 -1
  443. package/dist/navigation-D3KwXmaq.js.map +0 -1
  444. package/dist/navigation-HJf5zxlH.js.map +0 -1
  445. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
  446. package/dist/overlays-I0axtYA6.js.map +0 -1
  447. package/dist/pagination-3bPA_a6K.js +0 -149
  448. package/dist/pagination-3bPA_a6K.js.map +0 -1
  449. package/dist/popover-menu-B71Tn2Qz.js +0 -99
  450. package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
  451. package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
  452. package/dist/primitives-B-CkiEMU.js.map +0 -1
  453. package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
  454. package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
  455. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
  456. package/dist/settings-CQW3b-Cu.js.map +0 -1
  457. package/dist/sidebar-C7WWR29L.js.map +0 -1
  458. package/dist/smart-card-lFKxn5Hu.js +0 -595
  459. package/dist/smart-card-lFKxn5Hu.js.map +0 -1
  460. package/dist/spinner-fa3h1Aif.js +0 -80
  461. package/dist/spinner-fa3h1Aif.js.map +0 -1
  462. package/dist/table-CIKyLUsy.js.map +0 -1
  463. package/dist/table-CrcLN9Io.js +0 -1458
  464. package/dist/table-CrcLN9Io.js.map +0 -1
  465. package/dist/tabs-DwBJfjxX.js.map +0 -1
  466. package/dist/text-inputs-aaK9wcDT.js +0 -326
  467. package/dist/text-inputs-aaK9wcDT.js.map +0 -1
  468. package/dist/theme-scope-kStaAer0.js +0 -39
  469. package/dist/theme-scope-kStaAer0.js.map +0 -1
  470. package/dist/timelines-C_SBwHNP.js +0 -442
  471. package/dist/timelines-C_SBwHNP.js.map +0 -1
  472. package/dist/tone-recipes-CPoExcTE.js.map +0 -1
  473. package/dist/typography-DTRkE9zL.js.map +0 -1
  474. package/dist/ui-provider-1D_NSYzO.js.map +0 -1
  475. package/dist/upload-BO8-CLN6.js.map +0 -1
  476. package/dist/upload-queue-EOC8g1gf.js.map +0 -1
  477. package/dist/usage-card-obRaBskq.js.map +0 -1
  478. package/dist/utils-l5LpDw2z.js.map +0 -1
  479. package/dist/value-inputs-TAYMX111.js.map +0 -1
  480. package/dist/workspace-DH0v0KcB.js.map +0 -1
package/dist/blocks/ai.js CHANGED
@@ -1,34 +1,35 @@
1
1
  "use client";
2
2
  import { mergeStrings 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, t as o } 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, t as o } from "../typography-UTnveOEy.js";
6
6
  import { t as s } from "../focus-recipes-B653VaLq.js";
7
- import { r as c, t as l } from "../structure-DC2dygdA.js";
8
- import { r as u } from "../tone-recipes-CPoExcTE.js";
9
- import { t as d } from "../progress-rnS8-uAW.js";
10
- import { t as f } from "../interaction-recipes-CHr0dJUs.js";
11
- import { g as p, m } from "../primitives-B-CkiEMU.js";
12
- import { n as h, t as g } from "../number-DMhe-Vsk.js";
13
- import { t as _ } from "../icon-badge-CAuKupo9.js";
14
- import { t as v } from "../badge-MrKVNzW9.js";
15
- import { d as y } from "../text-inputs-aaK9wcDT.js";
16
- import { a as b, c as x, i as S, n as C, o as ee, r as w, t as T, u as E } from "../item-DEmDiTlD.js";
17
- import { m as D } from "../data-display-DafIvCl5.js";
18
- import { C as te, S as ne, _ as re, a as ie, b as ae, c as O, d as oe, f as se, g as ce, h as le, i as ue, l as de, m as fe, n as pe, o as me, p as he, r as ge, s as _e, t as ve, u as ye, v as be, x as xe, y as Se } from "../ai-artifact-BMJdv-6q.js";
19
- import { t as Ce } from "../tree-BiKhg8AY.js";
20
- import { useMemo as we, useState as k } from "react";
21
- import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
22
- import { ChevronDown as Te, ChevronRight as Ee, ExternalLink as N, File as De, FileCode as Oe, FileText as ke, Folder as Ae, FolderOpen as je, ThumbsDown as Me, ThumbsUp as P } from "lucide-react";
7
+ import { r as c, t as l } from "../structure-BmisBK-3.js";
8
+ import { i as u } from "../tone-recipes-BPsRAvhu.js";
9
+ import { t as d } from "../smart-card-DiC5aac3.js";
10
+ import { t as f } from "../progress-B1VnCT0K.js";
11
+ import { t as p } from "../interaction-recipes-XR9ZpVYL.js";
12
+ import { _ as m, g as h, m as g } from "../primitives-BFK08r9M.js";
13
+ import { n as _, t as v } from "../number-DbV1Dija.js";
14
+ import { t as y } from "../icon-badge-DYKIwvOV.js";
15
+ import { t as b } from "../badge-HpFqoqSY.js";
16
+ import { d as x } from "../text-inputs-f9Ia-aCi.js";
17
+ import { a as S, c as C, i as w, n as ee, o as te, r as T, t as E, u as D } from "../item-K5_ghvze.js";
18
+ import { m as O } from "../data-display-DT_khPl_.js";
19
+ import { C as ne, S as re, _ as ie, a as ae, b as oe, c as se, d as ce, f as le, g as ue, h as de, i as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe, v as Se, x as Ce, y as we } from "../ai-artifact-DvTwDVyL.js";
20
+ import { t as k } from "../tree-WnKQzwbq.js";
21
+ import { useMemo as Te, useState as A } from "react";
22
+ import { Fragment as Ee, jsx as j, jsxs as M } from "react/jsx-runtime";
23
+ import { ChevronDown as De, ChevronRight as Oe, ExternalLink as N, File as ke, FileCode as Ae, FileText as je, Folder as Me, FolderOpen as Ne, ThumbsDown as Pe, ThumbsUp as P } from "lucide-react";
23
24
  //#region src/components/blocks/ai/ai.strings.ts
24
- var F = {
25
+ var Fe = {
25
26
  regenerate: "Regenerate",
26
27
  confidenceLevels: {
27
28
  low: "low",
28
29
  medium: "medium",
29
30
  high: "high"
30
31
  }
31
- }, Ne = {
32
+ }, Ie = {
32
33
  title: "Classification",
33
34
  complexityLabel: "Complexity",
34
35
  flagsLabel: "Flags",
@@ -39,20 +40,20 @@ var F = {
39
40
  medium: "Medium",
40
41
  high: "High"
41
42
  }
42
- }, Pe = {
43
+ }, F = {
43
44
  low: 1,
44
45
  medium: 2,
45
46
  high: 3
46
47
  };
47
- function Fe({ level: e, label: t }) {
48
- let r = Pe[e];
48
+ function Le({ level: e, label: t }) {
49
+ let r = F[e];
49
50
  return /* @__PURE__ */ M("div", {
50
51
  className: "ai-summary--confidence flex items-center gap-space-sm",
51
52
  children: [/* @__PURE__ */ j("div", {
52
53
  className: "flex items-center gap-space-2xs",
53
54
  "aria-hidden": "true",
54
55
  children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ j("div", { className: n("h-2.5 w-1 rounded-radius-sm", t < r ? "bg-muted-foreground" : "bg-muted") }, `bar-${String(t)}`))
55
- }), /* @__PURE__ */ j(a, {
56
+ }), /* @__PURE__ */ j(i, {
56
57
  size: "xs",
57
58
  type: "secondary",
58
59
  tag: "span",
@@ -61,30 +62,31 @@ function Fe({ level: e, label: t }) {
61
62
  })]
62
63
  });
63
64
  }
64
- function Ie({ data: e, children: i, metadata: o, actions: s, footer: c, className: u, strings: d }) {
65
- let f = t(F, d), m = /* @__PURE__ */ M("div", {
65
+ function Re({ data: e, children: a, metadata: o, actions: s, footer: c, className: u, strings: d }) {
66
+ let f = t(Fe, d), p = /* @__PURE__ */ M("div", {
66
67
  className: "ai-summary--metadata flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs",
67
- children: [!!e.generatedAt && /* @__PURE__ */ j(p, {
68
+ children: [!!e.generatedAt && /* @__PURE__ */ j(h, {
68
69
  size: "xs",
69
70
  className: "min-w-0",
70
71
  children: e.generatedAt
71
- }), !!e.model && /* @__PURE__ */ j(p, {
72
+ }), !!e.model && /* @__PURE__ */ j(h, {
72
73
  size: "xs",
73
74
  className: "min-w-0 truncate",
74
75
  children: e.model
75
76
  })]
76
- }), h = e.onRegenerate ? /* @__PURE__ */ j(r, {
77
+ }), m = e.onRegenerate ? /* @__PURE__ */ j(r, {
77
78
  tone: "secondary",
78
79
  buttonStyle: "ghost",
79
80
  onClick: e.onRegenerate,
80
81
  children: f.regenerate
81
- }) : null, g = o === void 0 ? m : o, _ = s === void 0 ? h : s, y = c === void 0 ? (g || _) && /* @__PURE__ */ M(A, { children: [g, _] }) : c;
82
+ }) : null, g = o === void 0 ? p : o, _ = s === void 0 ? m : s, v = c === void 0 ? (g || _) && /* @__PURE__ */ M(Ee, { children: [g, _] }) : c;
82
83
  return /* @__PURE__ */ M(l, {
83
84
  "data-component": "ai-summary",
84
85
  "data-slot": "ai-summary",
85
86
  className: n("ai-summary--component", u),
86
87
  children: [
87
- /* @__PURE__ */ j(a, {
88
+ /* @__PURE__ */ j(i, {
89
+ type: "inherit",
88
90
  lineHeight: "relaxed",
89
91
  children: e.summary
90
92
  }),
@@ -93,17 +95,17 @@ function Ie({ data: e, children: i, metadata: o, actions: s, footer: c, classNam
93
95
  wrap: !0,
94
96
  gap: "sm",
95
97
  className: "ai-summary--entities min-w-0",
96
- children: e.entities.map((e) => /* @__PURE__ */ j(v, {
98
+ children: e.entities.map((e) => /* @__PURE__ */ j(b, {
97
99
  tone: "secondary",
98
100
  children: e
99
101
  }, e))
100
102
  }),
101
- /* @__PURE__ */ j(Fe, {
103
+ /* @__PURE__ */ j(Le, {
102
104
  level: e.confidence,
103
105
  label: f.confidenceLevels[e.confidence]
104
106
  }),
105
- i,
106
- !!y && /* @__PURE__ */ j(l, {
107
+ a,
108
+ !!v && /* @__PURE__ */ j(l, {
107
109
  direction: {
108
110
  base: "vertical",
109
111
  sm: "horizontal"
@@ -111,19 +113,19 @@ function Ie({ data: e, children: i, metadata: o, actions: s, footer: c, classNam
111
113
  gap: "md",
112
114
  justify: { sm: "between" },
113
115
  className: "ai-summary--footer pt-space-xs",
114
- children: y
116
+ children: v
115
117
  })
116
118
  ]
117
119
  });
118
120
  }
119
121
  //#endregion
120
122
  //#region src/components/blocks/ai/ai-classification/ai-classification.tsx
121
- function Le({ data: e, children: r, className: i, strings: o }) {
122
- let s = t(Ne, o), c = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
123
+ function ze({ data: e, children: r, className: a, strings: o }) {
124
+ let s = t(Ie, o), c = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
123
125
  return /* @__PURE__ */ M(l, {
124
126
  "data-component": "ai-classification",
125
127
  "data-slot": "ai-classification",
126
- className: n("ai-classification--component", i),
128
+ className: n("ai-classification--component", a),
127
129
  children: [
128
130
  /* @__PURE__ */ M(l, {
129
131
  direction: "horizontal",
@@ -131,27 +133,26 @@ function Le({ data: e, children: r, className: i, strings: o }) {
131
133
  align: "center",
132
134
  gap: "sm",
133
135
  children: [
134
- /* @__PURE__ */ j(v, { children: e.requestType }),
135
- /* @__PURE__ */ j(v, {
136
+ /* @__PURE__ */ j(b, { children: e.requestType }),
137
+ /* @__PURE__ */ j(b, {
136
138
  tone: e.urgencyTone,
137
139
  children: e.urgency
138
140
  }),
139
- /* @__PURE__ */ j(v, {
141
+ /* @__PURE__ */ j(b, {
140
142
  tone: e.sentimentTone,
141
143
  dot: !0,
142
144
  children: e.tone
143
145
  })
144
146
  ]
145
147
  }),
146
- /* @__PURE__ */ j(D, {
148
+ /* @__PURE__ */ j(O, {
147
149
  label: s.complexityLabel,
148
- labelClassName: "text-sm font-medium text-foreground",
149
150
  value: /* @__PURE__ */ M("span", {
150
151
  className: "flex items-center gap-space-md",
151
152
  children: [/* @__PURE__ */ j("span", {
152
153
  className: "flex items-center gap-space-xs",
153
154
  children: Array.from({ length: 5 }, (t, r) => /* @__PURE__ */ j("span", { className: n("h-1.5 w-3 rounded-radius-sm", r < e.complexityScore ? "bg-muted-foreground" : "bg-muted") }, `cx-${String(r)}`))
154
- }), /* @__PURE__ */ M(a, {
155
+ }), /* @__PURE__ */ M(i, {
155
156
  tag: "span",
156
157
  size: "xs",
157
158
  type: "secondary",
@@ -159,35 +160,33 @@ function Le({ data: e, children: r, className: i, strings: o }) {
159
160
  })]
160
161
  })
161
162
  }),
162
- e.flags.length > 0 && /* @__PURE__ */ j(D, {
163
+ e.flags.length > 0 && /* @__PURE__ */ j(O, {
163
164
  label: s.flagsLabel,
164
- labelClassName: "text-sm font-medium text-foreground",
165
165
  value: /* @__PURE__ */ j("span", {
166
166
  className: "flex gap-space-xs",
167
- children: e.flags.map((e) => /* @__PURE__ */ j(v, { children: e }, e))
167
+ children: e.flags.map((e) => /* @__PURE__ */ j(b, { children: e }, e))
168
168
  })
169
169
  }),
170
- /* @__PURE__ */ j(D, {
170
+ /* @__PURE__ */ j(O, {
171
171
  label: s.nextStepLabel,
172
- labelClassName: "text-sm font-medium text-foreground",
173
172
  value: e.suggestedAction,
174
173
  valueClassName: "text-right"
175
174
  }),
176
- /* @__PURE__ */ j(a, {
175
+ /* @__PURE__ */ j(i, {
177
176
  lineHeight: "relaxed",
178
177
  type: "secondary",
179
178
  children: e.summary
180
179
  }),
181
180
  /* @__PURE__ */ M("div", {
182
181
  className: "flex items-center gap-space-md",
183
- children: [/* @__PURE__ */ M(v, {
182
+ children: [/* @__PURE__ */ M(b, {
184
183
  tone: "secondary",
185
184
  children: [
186
185
  s.confidencePrefix,
187
186
  ": ",
188
187
  c
189
188
  ]
190
- }), /* @__PURE__ */ j(a, {
189
+ }), /* @__PURE__ */ j(i, {
191
190
  size: "xs",
192
191
  type: "discrete",
193
192
  tag: "span",
@@ -210,11 +209,11 @@ var I = {
210
209
  };
211
210
  //#endregion
212
211
  //#region src/components/blocks/ai/ai-confidence/ai-confidence.tsx
213
- function Re(e) {
212
+ function Be(e) {
214
213
  return e >= .85 ? "success" : e >= .6 ? "warning" : "destructive";
215
214
  }
216
215
  function L({ score: e, model: r, factors: o, className: s, strings: c }) {
217
- let u = t(I, c), f = Math.round(e * 100), p = Re(e), m = p === "success" ? u.levelHigh : p === "warning" ? u.levelMedium : u.levelLow, g = 2 * Math.PI * 24, _ = g - f / 100 * g;
216
+ let u = t(I, c), d = Math.round(e * 100), p = Be(e), m = p === "success" ? u.levelHigh : p === "warning" ? u.levelMedium : u.levelLow, h = 2 * Math.PI * 24, g = h - d / 100 * h;
218
217
  return /* @__PURE__ */ M(l, {
219
218
  "data-component": "ai-confidence",
220
219
  "data-slot": "ai-confidence",
@@ -246,29 +245,30 @@ function L({ score: e, model: r, factors: o, className: s, strings: c }) {
246
245
  stroke: "currentColor",
247
246
  strokeWidth: "5",
248
247
  strokeLinecap: "round",
249
- strokeDasharray: g,
250
- strokeDashoffset: _,
248
+ strokeDasharray: h,
249
+ strokeDashoffset: g,
251
250
  transform: "rotate(-90 32 32)",
252
251
  className: n(p === "success" && "text-success", p === "warning" && "text-warning-accent", p === "destructive" && "text-destructive")
253
252
  })]
254
253
  }), /* @__PURE__ */ j("div", {
255
254
  className: "absolute inset-0 flex flex-col items-center justify-center",
256
- children: /* @__PURE__ */ j(h, {
257
- value: f,
255
+ children: /* @__PURE__ */ j(_, {
256
+ type: "inherit",
257
+ value: d,
258
258
  scaled: !0,
259
259
  weight: "semibold",
260
- className: "leading-none"
260
+ lineHeight: "none"
261
261
  })
262
262
  })]
263
263
  }), /* @__PURE__ */ M(l, {
264
264
  gap: "sm",
265
- children: [/* @__PURE__ */ j(i, { children: u.confidenceLabel }), /* @__PURE__ */ M(l, {
265
+ children: [/* @__PURE__ */ j(a, { children: u.confidenceLabel }), /* @__PURE__ */ M(l, {
266
266
  direction: "horizontal",
267
267
  gap: "sm",
268
- children: [/* @__PURE__ */ j(v, {
268
+ children: [/* @__PURE__ */ j(b, {
269
269
  tone: p,
270
270
  children: m
271
- }), !!r && /* @__PURE__ */ j(a, {
271
+ }), !!r && /* @__PURE__ */ j(i, {
272
272
  size: "xs",
273
273
  type: "secondary",
274
274
  className: "truncate",
@@ -278,16 +278,17 @@ function L({ score: e, model: r, factors: o, className: s, strings: c }) {
278
278
  })]
279
279
  }), !!o && o.length > 0 && /* @__PURE__ */ M(l, {
280
280
  gap: "md",
281
- children: [/* @__PURE__ */ j(i, { children: u.factorsLabel }), o.map((e) => /* @__PURE__ */ M(l, {
281
+ children: [/* @__PURE__ */ j(a, { children: u.factorsLabel }), o.map((e) => /* @__PURE__ */ M(l, {
282
282
  gap: "sm",
283
- children: [/* @__PURE__ */ j(D, {
283
+ children: [/* @__PURE__ */ j(O, {
284
284
  label: e.label,
285
- value: /* @__PURE__ */ j(h, {
285
+ value: /* @__PURE__ */ j(_, {
286
+ type: "inherit",
286
287
  value: e.score,
287
288
  size: "xs",
288
289
  weight: "semibold"
289
290
  })
290
- }), /* @__PURE__ */ j(d, {
291
+ }), /* @__PURE__ */ j(f, {
291
292
  value: Math.round(e.score * 100),
292
293
  "aria-label": e.label
293
294
  })]
@@ -313,26 +314,26 @@ function z({ suggestions: e, onPick: r, className: i, strings: a }) {
313
314
  children: [/* @__PURE__ */ M(l, {
314
315
  gap: "normal",
315
316
  className: "ai-prompt-suggestions--intro",
316
- children: [/* @__PURE__ */ j(E, { children: o.title }), /* @__PURE__ */ j(S, { children: o.hint })]
317
+ children: [/* @__PURE__ */ j(D, { children: o.title }), /* @__PURE__ */ j(w, { children: o.hint })]
317
318
  }), /* @__PURE__ */ j("div", {
318
319
  className: "grid grid-cols-[repeat(auto-fit,minmax(min(15rem,100%),1fr))] gap-space-xl",
319
320
  children: e.map((e) => {
320
321
  let t = e.icon;
321
- return /* @__PURE__ */ M(T, {
322
+ return /* @__PURE__ */ M(E, {
322
323
  variant: "outline",
323
324
  render: /* @__PURE__ */ j("button", {
324
325
  type: "button",
325
326
  onClick: () => r?.(e)
326
327
  }),
327
- className: n("ai-prompt-suggestions--item h-full items-start gap-space-lg p-surface", f.rowHover),
328
- children: [!!t && /* @__PURE__ */ j(x, { children: /* @__PURE__ */ j(_, {
328
+ className: n("ai-prompt-suggestions--item h-full items-start gap-space-lg p-surface", p.rowHover),
329
+ children: [!!t && /* @__PURE__ */ j(C, { children: /* @__PURE__ */ j(y, {
329
330
  icon: t,
330
331
  tone: "neutral",
331
332
  size: "md",
332
333
  shape: "square"
333
- }) }), /* @__PURE__ */ M(w, {
334
+ }) }), /* @__PURE__ */ M(T, {
334
335
  className: "min-w-0 gap-space-sm",
335
- children: [/* @__PURE__ */ j(E, { children: e.label }), !!e.description && /* @__PURE__ */ j(S, { children: e.description })]
336
+ children: [/* @__PURE__ */ j(D, { children: e.label }), !!e.description && /* @__PURE__ */ j(w, { children: e.description })]
336
337
  })]
337
338
  }, e.id);
338
339
  })
@@ -351,8 +352,8 @@ var B = {
351
352
  };
352
353
  //#endregion
353
354
  //#region src/components/blocks/ai/ai-token-usage/ai-token-usage.tsx
354
- function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, className: d, strings: f }) {
355
- let p = t(B, f), m = r + o, _ = u ? Math.min(100, Math.round(m / u * 100)) : 0;
355
+ function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, className: d, strings: p }) {
356
+ let h = t(B, p), g = r + o, y = u ? Math.min(100, Math.round(g / u * 100)) : 0;
356
357
  return /* @__PURE__ */ M(l, {
357
358
  "data-component": "ai-token-usage",
358
359
  "data-slot": "ai-token-usage",
@@ -360,7 +361,7 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, c
360
361
  children: [
361
362
  !!e && /* @__PURE__ */ j("div", {
362
363
  className: "ai-token-usage--metadata flex min-w-0 justify-start",
363
- children: /* @__PURE__ */ j(v, {
364
+ children: /* @__PURE__ */ j(b, {
364
365
  tone: "secondary",
365
366
  children: e
366
367
  })
@@ -370,20 +371,21 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, c
370
371
  gap: "md",
371
372
  children: [
372
373
  {
373
- label: p.input,
374
+ label: h.input,
374
375
  value: r
375
376
  },
376
377
  {
377
- label: p.output,
378
+ label: h.output,
378
379
  value: o
379
380
  },
380
381
  {
381
- label: p.total,
382
- value: m
382
+ label: h.total,
383
+ value: g
383
384
  }
384
385
  ].map((e) => /* @__PURE__ */ M(l, {
385
386
  gap: "2xs",
386
- children: [/* @__PURE__ */ j(i, { children: e.label }), /* @__PURE__ */ j(g, {
387
+ children: [/* @__PURE__ */ j(a, { children: e.label }), /* @__PURE__ */ j(v, {
388
+ type: "inherit",
387
389
  value: e.value,
388
390
  weight: "semibold",
389
391
  align: "left"
@@ -392,54 +394,60 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, c
392
394
  }),
393
395
  !!u && /* @__PURE__ */ M(l, {
394
396
  gap: "xs",
395
- children: [/* @__PURE__ */ j(D, {
397
+ children: [/* @__PURE__ */ j(O, {
396
398
  label: /* @__PURE__ */ M("span", {
397
399
  className: "inline-flex items-center gap-space-xs",
398
400
  children: [
399
- /* @__PURE__ */ j(g, {
400
- value: m,
401
+ /* @__PURE__ */ j(v, {
402
+ type: "inherit",
403
+ value: g,
401
404
  size: "xs",
402
405
  align: "left"
403
406
  }),
404
- /* @__PURE__ */ j(a, {
407
+ /* @__PURE__ */ j(i, {
408
+ type: "inherit",
405
409
  tag: "span",
406
410
  size: "xs",
407
411
  "aria-hidden": !0,
408
412
  children: "/"
409
413
  }),
410
- /* @__PURE__ */ j(g, {
414
+ /* @__PURE__ */ j(v, {
415
+ type: "inherit",
411
416
  value: u,
412
417
  size: "xs",
413
418
  align: "left"
414
419
  })
415
420
  ]
416
421
  }),
417
- value: /* @__PURE__ */ j(h, {
418
- value: _,
422
+ value: /* @__PURE__ */ j(_, {
423
+ type: "inherit",
424
+ value: y,
419
425
  scaled: !0,
420
426
  size: "xs",
421
427
  weight: "semibold",
422
428
  align: "right"
423
- }),
424
- valueClassName: "text-xs font-semibold"
425
- }), /* @__PURE__ */ j("div", {
426
- className: "h-1.5 w-full overflow-hidden rounded-full bg-muted",
427
- children: /* @__PURE__ */ j("div", {
428
- className: "h-full rounded-full bg-primary",
429
- style: { width: `${_}%` }
430
429
  })
430
+ }), /* @__PURE__ */ j(f, {
431
+ value: y,
432
+ "aria-label": h.title,
433
+ className: "ai-token-usage--bar"
431
434
  })]
432
435
  }),
433
- !!s && /* @__PURE__ */ j(D, {
434
- label: /* @__PURE__ */ j(a, {
436
+ !!s && /* @__PURE__ */ j(O, {
437
+ label: /* @__PURE__ */ j(i, {
438
+ type: "inherit",
435
439
  tag: "span",
436
440
  size: "xs",
437
441
  weight: "medium",
438
442
  lineHeight: "tight",
439
- children: p.cost
443
+ children: h.cost
444
+ }),
445
+ value: /* @__PURE__ */ j(m, {
446
+ type: "inherit",
447
+ weight: "semibold",
448
+ children: s
440
449
  }),
441
- value: s,
442
- valueClassName: "text-sm font-bold tabular-nums"
450
+ valueClassName: "tabular-nums"
443
451
  })
444
452
  ]
445
453
  });
@@ -457,14 +465,14 @@ var H = {
457
465
  };
458
466
  //#endregion
459
467
  //#region src/components/blocks/ai/ai-feedback/ai-feedback.tsx
460
- function U({ value: e, onVote: i, onSubmitComment: o, allowComment: s = !0, submitted: c = !1, className: d, strings: p }) {
461
- let m = t(H, p), [h, g] = k(null), [_, v] = k(""), b = e ?? h, x = (t) => {
462
- let n = b === t ? null : t;
463
- e === void 0 && g(n), i?.(n);
468
+ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, submitted: c = !1, className: d, strings: f }) {
469
+ let m = t(H, f), [h, g] = A(null), [_, v] = A(""), y = e ?? h, b = (t) => {
470
+ let n = y === t ? null : t;
471
+ e === void 0 && g(n), a?.(n);
464
472
  };
465
473
  return c ? /* @__PURE__ */ M("div", {
466
474
  className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-radius px-space-lg py-space-sm", u.success.wash, d),
467
- children: [/* @__PURE__ */ j(P, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(a, {
475
+ children: [/* @__PURE__ */ j(P, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(i, {
468
476
  size: "xs",
469
477
  type: "success",
470
478
  weight: "medium",
@@ -475,7 +483,7 @@ function U({ value: e, onVote: i, onSubmitComment: o, allowComment: s = !0, subm
475
483
  children: [/* @__PURE__ */ M("div", {
476
484
  className: "flex items-center gap-space-md",
477
485
  children: [
478
- /* @__PURE__ */ j(a, {
486
+ /* @__PURE__ */ j(i, {
479
487
  size: "xs",
480
488
  type: "secondary",
481
489
  children: m.prompt
@@ -487,9 +495,9 @@ function U({ value: e, onVote: i, onSubmitComment: o, allowComment: s = !0, subm
487
495
  size: "sm",
488
496
  iconOnly: !0,
489
497
  "aria-label": m.thumbsUpAria,
490
- "aria-pressed": b === "up",
491
- onClick: () => x("up"),
492
- className: b === "up" ? f.togglePressed : f.toggleHoverButton,
498
+ "aria-pressed": y === "up",
499
+ onClick: () => b("up"),
500
+ className: y === "up" ? p.togglePressed : p.toggleHoverButton,
493
501
  children: /* @__PURE__ */ j(P, { className: "size-icon-md" })
494
502
  }),
495
503
  /* @__PURE__ */ j(r, {
@@ -499,15 +507,15 @@ function U({ value: e, onVote: i, onSubmitComment: o, allowComment: s = !0, subm
499
507
  size: "sm",
500
508
  iconOnly: !0,
501
509
  "aria-label": m.thumbsDownAria,
502
- "aria-pressed": b === "down",
503
- onClick: () => x("down"),
504
- className: b === "down" ? f.togglePressed : f.toggleHoverButton,
505
- children: /* @__PURE__ */ j(Me, { className: "size-icon-md" })
510
+ "aria-pressed": y === "down",
511
+ onClick: () => b("down"),
512
+ className: y === "down" ? p.togglePressed : p.toggleHoverButton,
513
+ children: /* @__PURE__ */ j(Pe, { className: "size-icon-md" })
506
514
  })
507
515
  ]
508
- }), !!s && !!b && /* @__PURE__ */ M(l, {
516
+ }), !!s && !!y && /* @__PURE__ */ M(l, {
509
517
  gap: "md",
510
- children: [/* @__PURE__ */ j(y, {
518
+ children: [/* @__PURE__ */ j(x, {
511
519
  value: _,
512
520
  onChange: (e) => v(e.target.value),
513
521
  placeholder: m.commentPlaceholder,
@@ -520,7 +528,7 @@ function U({ value: e, onVote: i, onSubmitComment: o, allowComment: s = !0, subm
520
528
  tone: "primary",
521
529
  type: "button",
522
530
  onClick: () => {
523
- o?.(_, b), v("");
531
+ o?.(_, y), v("");
524
532
  },
525
533
  disabled: !_.trim(),
526
534
  children: m.submit
@@ -543,12 +551,14 @@ var W = {
543
551
  };
544
552
  //#endregion
545
553
  //#region src/components/blocks/ai/ai-citation/ai-citation.tsx
546
- function G({ sources: t, expanded: i, defaultExpanded: o = !1, onExpandedChange: s, maxCollapsedRows: c = 0, className: u, strings: d }) {
547
- let p = e(W, d), [m, h] = k(o), g = i ?? m, _ = (e) => {
548
- i === void 0 && h(e), s?.(e);
549
- }, v = g ? t : t.slice(0, Math.max(0, c)), y = t.length - v.length;
550
- return /* @__PURE__ */ j("div", {
551
- className: n("ai-citation--component", "rounded-radius border border-border bg-card px-surface-xs py-surface-xs shadow-xs", u),
554
+ function G({ sources: t, expanded: a, defaultExpanded: o = !1, onExpandedChange: s, maxCollapsedRows: c = 0, className: u, strings: f }) {
555
+ let m = e(W, f), [h, g] = A(o), _ = a ?? h, v = (e) => {
556
+ a === void 0 && g(e), s?.(e);
557
+ }, y = _ ? t : t.slice(0, Math.max(0, c)), b = t.length - y.length;
558
+ return /* @__PURE__ */ j(d, {
559
+ surface: "card",
560
+ padding: "sm",
561
+ className: n("ai-citation--component", u),
552
562
  children: /* @__PURE__ */ M(l, {
553
563
  gap: "lg",
554
564
  children: [/* @__PURE__ */ M(r, {
@@ -556,52 +566,58 @@ function G({ sources: t, expanded: i, defaultExpanded: o = !1, onExpandedChange:
556
566
  tone: "secondary",
557
567
  buttonStyle: "ghost",
558
568
  size: "sm",
559
- onClick: () => _(!g),
560
- className: n("ai-citation--trigger h-auto min-h-0 justify-start gap-space-sm rounded-inner px-control py-row-y", `text-muted-foreground ${f.rowHover}`),
561
- "aria-expanded": g,
562
- "aria-label": g ? p.collapse : p.expand,
563
- children: [/* @__PURE__ */ M(a, {
569
+ onClick: () => v(!_),
570
+ className: n("ai-citation--trigger h-auto min-h-0 justify-start gap-space-sm rounded-inner px-control py-row-y", `text-muted-foreground ${p.rowHover}`),
571
+ "aria-expanded": _,
572
+ "aria-label": _ ? m.collapse : m.expand,
573
+ children: [/* @__PURE__ */ M(i, {
574
+ type: "inherit",
564
575
  weight: "medium",
565
576
  children: [
566
- p.title,
577
+ m.title,
567
578
  " · ",
568
- p.sourceCount(t.length)
579
+ m.sourceCount(t.length)
569
580
  ]
570
- }), j(g ? Te : Ee, { className: "size-icon-md" })]
571
- }), (g || c > 0) && /* @__PURE__ */ M(ee, { children: [v.map((e, t) => /* @__PURE__ */ j(ze, {
581
+ }), j(_ ? De : Oe, { className: "size-icon-md" })]
582
+ }), (_ || c > 0) && /* @__PURE__ */ M(te, { children: [y.map((e, t) => /* @__PURE__ */ j(Ve, {
572
583
  source: e,
573
584
  index: t + 1,
574
- strings: p
575
- }, e.id)), !g && y > 0 && /* @__PURE__ */ j(a, {
585
+ strings: m
586
+ }, e.id)), !_ && b > 0 && /* @__PURE__ */ j(i, {
576
587
  size: "xs",
577
588
  type: "secondary",
578
- children: p.hiddenCount(y)
589
+ children: m.hiddenCount(b)
579
590
  })] })]
580
591
  })
581
592
  });
582
593
  }
583
594
  G.displayName = "AiCitation";
584
- function ze({ source: e, index: t, strings: r }) {
585
- let i = typeof e.relevance == "number" ? Math.round(Math.max(0, Math.min(1, e.relevance)) * 100) : null, o = e.url ? "a" : "span", s = e.url ? {
595
+ function Ve({ source: e, index: t, strings: r }) {
596
+ let a = typeof e.relevance == "number" ? Math.round(Math.max(0, Math.min(1, e.relevance)) * 100) : null, o = e.url ? "a" : "span", s = e.url ? {
586
597
  href: e.url,
587
598
  target: "_blank",
588
599
  rel: "noopener noreferrer"
589
600
  } : {};
590
- return /* @__PURE__ */ M(T, {
601
+ return /* @__PURE__ */ M(E, {
591
602
  variant: "outline",
592
603
  size: "sm",
593
604
  className: "items-start px-surface-xs py-surface-xs",
594
605
  children: [
595
- /* @__PURE__ */ j(x, { children: /* @__PURE__ */ j(g, {
596
- value: t,
597
- size: "xs",
598
- weight: "semibold",
599
- type: "secondary",
600
- align: "center",
601
- className: "inline-flex size-icon-lg shrink-0 items-center justify-center rounded-full bg-muted"
606
+ /* @__PURE__ */ j(C, { children: /* @__PURE__ */ j(y, {
607
+ tone: "neutral",
608
+ size: "sm",
609
+ "aria-hidden": !1,
610
+ className: "shrink-0",
611
+ children: /* @__PURE__ */ j(v, {
612
+ value: t,
613
+ size: "xs",
614
+ weight: "semibold",
615
+ type: "secondary",
616
+ align: "center"
617
+ })
602
618
  }) }),
603
- /* @__PURE__ */ M(w, { children: [
604
- /* @__PURE__ */ j(E, {
619
+ /* @__PURE__ */ M(T, { children: [
620
+ /* @__PURE__ */ j(D, {
605
621
  className: "truncate",
606
622
  children: /* @__PURE__ */ M(o, {
607
623
  ...s,
@@ -609,50 +625,44 @@ function ze({ source: e, index: t, strings: r }) {
609
625
  children: [e.title, !!e.url && /* @__PURE__ */ j(N, { className: "ml-1 inline size-icon-sm align-baseline" })]
610
626
  })
611
627
  }),
612
- !!e.snippet && /* @__PURE__ */ j(S, {
628
+ !!e.snippet && /* @__PURE__ */ j(w, {
613
629
  clamp: 2,
614
630
  children: e.snippet
615
631
  }),
616
- (e.publisher || e.publishedAt) && /* @__PURE__ */ M(b, {
632
+ (e.publisher || e.publishedAt) && /* @__PURE__ */ M(S, {
617
633
  className: "mt-1 justify-start gap-space-sm",
618
634
  children: [
619
- !!e.publisher && /* @__PURE__ */ j(a, {
635
+ !!e.publisher && /* @__PURE__ */ j(i, {
620
636
  size: "xs",
621
637
  type: "discrete",
622
638
  children: e.publisher
623
639
  }),
624
- !!e.publisher && !!e.publishedAt && /* @__PURE__ */ j(a, {
640
+ !!e.publisher && !!e.publishedAt && /* @__PURE__ */ j(i, {
625
641
  size: "xs",
626
642
  type: "discrete",
627
643
  children: "·"
628
644
  }),
629
- !!e.publishedAt && /* @__PURE__ */ j(p, {
645
+ !!e.publishedAt && /* @__PURE__ */ j(h, {
630
646
  size: "xs",
631
- className: "tabular-nums opacity-80",
647
+ className: "tabular-nums",
632
648
  children: e.publishedAt
633
649
  })
634
650
  ]
635
651
  })
636
652
  ] }),
637
- i !== null && /* @__PURE__ */ M(C, {
653
+ a !== null && /* @__PURE__ */ M(ee, {
638
654
  className: "w-16 flex-col items-end gap-space-2xs",
639
- children: [/* @__PURE__ */ j(h, {
640
- value: i,
655
+ children: [/* @__PURE__ */ j(_, {
656
+ value: a,
641
657
  scaled: !0,
642
658
  size: "xs",
643
659
  type: "secondary",
644
660
  weight: "medium"
645
- }), /* @__PURE__ */ j("div", {
646
- className: "h-1 w-full overflow-hidden rounded-full bg-muted",
647
- role: "progressbar",
661
+ }), /* @__PURE__ */ j(f, {
662
+ value: a,
663
+ size: "sm",
648
664
  "aria-label": r.relevance,
649
- "aria-valuemin": 0,
650
- "aria-valuemax": 100,
651
- "aria-valuenow": i,
652
- children: /* @__PURE__ */ j("div", {
653
- className: "h-full rounded-full bg-primary",
654
- style: { width: `${i}%` }
655
- })
665
+ className: "ai-citation--relevance"
656
666
  })]
657
667
  })
658
668
  ]
@@ -666,55 +676,58 @@ var K = {
666
676
  };
667
677
  //#endregion
668
678
  //#region src/components/blocks/ai/ai-inline-citation/ai-inline-citation.tsx
669
- function Be(e, t) {
679
+ function He(e, t) {
670
680
  return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
671
681
  let r = t[n];
672
682
  return r === void 0 ? e : String(r);
673
683
  });
674
684
  }
675
- function q({ index: t, title: r, url: i, onSelect: c, className: l, strings: u }) {
676
- let d = e(K, u), p = Be(d.openAria, {
685
+ function q({ index: t, title: r, url: a, onSelect: c, className: l, strings: u }) {
686
+ let d = e(K, u), f = He(d.openAria, {
677
687
  n: t,
678
688
  title: r ?? ""
679
- }), m = r ? `${d.sourcePrefix} ${t}: ${r}` : `${d.sourcePrefix} ${t}`, h = n("box-border inline-flex h-action-xs min-w-action-xs -translate-y-px items-center justify-center rounded-inner border-0 px-control-xs font-sans", "align-middle tabular-nums", "bg-muted text-muted-foreground", f.rowHover, "transition-colors duration-150", `focus-visible:outline-none ${s.edge}`, l);
680
- return i ? /* @__PURE__ */ j(o, {
681
- href: i,
689
+ }), m = r ? `${d.sourcePrefix} ${t}: ${r}` : `${d.sourcePrefix} ${t}`, h = n("box-border inline-flex h-action-xs min-w-action-xs -translate-y-px items-center justify-center rounded-inner border-0 px-control-xs font-sans", "align-middle tabular-nums", "bg-muted text-muted-foreground", p.rowHover, "transition-colors duration-150", `focus-visible:outline-none ${s.edge}`, l);
690
+ return a ? /* @__PURE__ */ j(o, {
691
+ href: a,
682
692
  size: "inherit",
683
693
  underline: !1,
684
694
  target: "_blank",
685
695
  rel: "noopener noreferrer",
686
696
  title: m,
687
- "aria-label": p,
697
+ "aria-label": f,
688
698
  className: n("ai-inline-citation--component", h),
689
- children: /* @__PURE__ */ j(a, {
699
+ children: /* @__PURE__ */ j(i, {
700
+ type: "inherit",
690
701
  tag: "span",
691
702
  size: "xs",
692
703
  weight: "medium",
693
- className: "leading-none",
704
+ lineHeight: "none",
694
705
  children: t
695
706
  })
696
707
  }) : c ? /* @__PURE__ */ j("button", {
697
708
  type: "button",
698
709
  onClick: c,
699
710
  title: m,
700
- "aria-label": p,
711
+ "aria-label": f,
701
712
  className: n("ai-inline-citation--component", h),
702
- children: /* @__PURE__ */ j(a, {
713
+ children: /* @__PURE__ */ j(i, {
714
+ type: "inherit",
703
715
  tag: "span",
704
716
  size: "xs",
705
717
  weight: "medium",
706
- className: "leading-none",
718
+ lineHeight: "none",
707
719
  children: t
708
720
  })
709
721
  }) : /* @__PURE__ */ j("span", {
710
722
  title: m,
711
- "aria-label": p,
723
+ "aria-label": f,
712
724
  className: n("ai-inline-citation--component", h),
713
- children: /* @__PURE__ */ j(a, {
725
+ children: /* @__PURE__ */ j(i, {
726
+ type: "inherit",
714
727
  tag: "span",
715
728
  size: "xs",
716
729
  weight: "medium",
717
- className: "leading-none",
730
+ lineHeight: "none",
718
731
  children: t
719
732
  })
720
733
  });
@@ -734,8 +747,9 @@ var J = {
734
747
  };
735
748
  //#endregion
736
749
  //#region src/components/blocks/ai/ai-package-info/ai-package-info.tsx
737
- function Y({ name: e, version: i, description: s, license: c, publishedAt: u, homepage: d, repository: p, weeklyDownloads: h, keywords: g, onSelect: _, className: y, strings: b }) {
738
- let x = t(J, b), S = /* @__PURE__ */ j(A, { children: /* @__PURE__ */ M("div", {
750
+ function Y({ name: e, version: a, description: s, license: c, publishedAt: u, homepage: f, repository: m, weeklyDownloads: h, keywords: _, onSelect: v, className: y, strings: x }) {
751
+ let S = t(J, x), C = /* @__PURE__ */ M(l, {
752
+ gap: "md",
739
753
  className: "min-w-0 flex-1",
740
754
  children: [
741
755
  /* @__PURE__ */ M(l, {
@@ -744,19 +758,20 @@ function Y({ name: e, version: i, description: s, license: c, publishedAt: u, ho
744
758
  direction: "horizontal",
745
759
  gap: "md",
746
760
  align: "center",
747
- children: [/* @__PURE__ */ j(m, {
761
+ children: [/* @__PURE__ */ j(g, {
762
+ type: "inherit",
748
763
  weight: "semibold",
749
764
  className: "truncate",
750
765
  children: e
751
- }), !!i && /* @__PURE__ */ j(v, {
766
+ }), !!a && /* @__PURE__ */ j(b, {
752
767
  tone: "secondary",
753
- children: /* @__PURE__ */ M(m, {
768
+ children: /* @__PURE__ */ M(g, {
754
769
  size: "xs",
755
770
  className: "text-inherit",
756
- children: ["v", i.replace(/^v/, "")]
771
+ children: ["v", a.replace(/^v/, "")]
757
772
  })
758
773
  })]
759
- }), !!s && /* @__PURE__ */ j(a, {
774
+ }), !!s && /* @__PURE__ */ j(i, {
760
775
  size: "xs",
761
776
  type: "secondary",
762
777
  className: "line-clamp-2",
@@ -764,86 +779,91 @@ function Y({ name: e, version: i, description: s, license: c, publishedAt: u, ho
764
779
  })]
765
780
  }),
766
781
  (c || u || h !== void 0) && /* @__PURE__ */ M("div", {
767
- className: "mt-space-md flex flex-wrap items-center gap-x-space-lg gap-y-space-xs",
782
+ className: "ai-package-info--meta flex flex-wrap items-center gap-x-space-lg gap-y-space-xs",
768
783
  children: [
769
784
  !!c && /* @__PURE__ */ j(X, {
770
- label: x.licenseLabel,
785
+ label: S.licenseLabel,
771
786
  value: c
772
787
  }),
773
788
  !!u && /* @__PURE__ */ j(X, {
774
- label: x.publishedLabel,
789
+ label: S.publishedLabel,
775
790
  value: u
776
791
  }),
777
792
  h !== void 0 && /* @__PURE__ */ j(X, {
778
- label: x.weeklyDownloadsLabel,
793
+ label: S.weeklyDownloadsLabel,
779
794
  value: String(h)
780
795
  })
781
796
  ]
782
797
  }),
783
- !!g?.length && /* @__PURE__ */ j("div", {
784
- className: "mt-space-md flex flex-wrap gap-space-xs",
785
- children: g.slice(0, 6).map((e) => /* @__PURE__ */ j(v, {
798
+ !!_?.length && /* @__PURE__ */ j(l, {
799
+ direction: "horizontal",
800
+ gap: "xs",
801
+ className: "ai-package-info--keywords",
802
+ children: _.slice(0, 6).map((e) => /* @__PURE__ */ j(b, {
786
803
  tone: "secondary",
787
804
  children: e
788
805
  }, e))
789
806
  })
790
807
  ]
791
- }) }), C = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
792
- return /* @__PURE__ */ M("div", {
793
- className: n("ai-package-info--component block w-full overflow-hidden rounded-radius border border-border/60 bg-card", y),
794
- children: [_ ? /* @__PURE__ */ j(r, {
808
+ }), w = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
809
+ return /* @__PURE__ */ M(d, {
810
+ surface: "card",
811
+ padding: "none",
812
+ className: n("ai-package-info--component", y),
813
+ children: [v ? /* @__PURE__ */ j(r, {
795
814
  type: "button",
796
815
  tone: "secondary",
797
816
  buttonStyle: "ghost",
798
- onClick: _,
799
- className: n(C, `h-auto min-h-0 justify-start rounded-none whitespace-normal transition-colors ${f.rowHover}`),
800
- children: S
817
+ onClick: v,
818
+ className: n(w, `h-auto min-h-0 justify-start rounded-none whitespace-normal transition-colors ${p.rowHover}`),
819
+ children: C
801
820
  }) : /* @__PURE__ */ j("div", {
802
- className: C,
803
- children: S
804
- }), (d || p) && /* @__PURE__ */ j("div", {
821
+ className: w,
822
+ children: C
823
+ }), (f || m) && /* @__PURE__ */ j("div", {
805
824
  className: "ai-package-info--footer px-surface-xs pb-surface-xs",
806
825
  children: /* @__PURE__ */ M(l, {
807
826
  direction: "horizontal",
808
827
  align: "center",
809
828
  gap: "md",
810
829
  children: [
811
- !!d && /* @__PURE__ */ M(o, {
812
- href: d,
830
+ !!f && /* @__PURE__ */ M(o, {
831
+ href: f,
813
832
  size: "inherit",
814
833
  underline: !1,
815
834
  target: "_blank",
816
835
  rel: "noopener noreferrer",
817
836
  onClick: (e) => e.stopPropagation(),
818
- "aria-label": x.homepageAria,
837
+ "aria-label": S.homepageAria,
819
838
  className: "inline-flex items-center gap-space-xs rounded-radius-xs text-muted-foreground hover:text-foreground",
820
- children: [/* @__PURE__ */ j(a, {
839
+ children: [/* @__PURE__ */ j(i, {
840
+ type: "inherit",
821
841
  tag: "span",
822
842
  weight: "medium",
823
- children: x.homepageLabel
843
+ children: S.homepageLabel
824
844
  }), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
825
845
  }),
826
- !!d && !!p && /* @__PURE__ */ j(a, {
846
+ !!f && !!m && /* @__PURE__ */ j(i, {
827
847
  tag: "span",
828
848
  size: "xs",
829
849
  type: "secondary",
830
- className: "opacity-40",
831
850
  "aria-hidden": !0,
832
851
  children: "·"
833
852
  }),
834
- !!p && /* @__PURE__ */ M(o, {
835
- href: p,
853
+ !!m && /* @__PURE__ */ M(o, {
854
+ href: m,
836
855
  size: "inherit",
837
856
  underline: !1,
838
857
  target: "_blank",
839
858
  rel: "noopener noreferrer",
840
859
  onClick: (e) => e.stopPropagation(),
841
- "aria-label": x.repositoryAria,
860
+ "aria-label": S.repositoryAria,
842
861
  className: "inline-flex items-center gap-space-xs rounded-radius-xs text-muted-foreground hover:text-foreground",
843
- children: [/* @__PURE__ */ j(a, {
862
+ children: [/* @__PURE__ */ j(i, {
863
+ type: "inherit",
844
864
  tag: "span",
845
865
  weight: "medium",
846
- children: x.repositoryLabel
866
+ children: S.repositoryLabel
847
867
  }), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
848
868
  })
849
869
  ]
@@ -855,11 +875,11 @@ Y.displayName = "AiPackageInfo";
855
875
  function X({ label: e, value: t }) {
856
876
  return /* @__PURE__ */ M("div", {
857
877
  className: "inline-flex items-baseline gap-space-xs",
858
- children: [/* @__PURE__ */ j(a, {
878
+ children: [/* @__PURE__ */ j(i, {
859
879
  size: "xs",
860
880
  type: "discrete",
861
881
  children: e
862
- }), /* @__PURE__ */ j(p, {
882
+ }), /* @__PURE__ */ j(h, {
863
883
  size: "xs",
864
884
  weight: "medium",
865
885
  className: "tabular-nums",
@@ -879,18 +899,18 @@ var Z = {
879
899
  removed: "D",
880
900
  renamed: "R"
881
901
  }
882
- }, Ve = {
902
+ }, Ue = {
883
903
  added: "success",
884
904
  modified: "warning",
885
905
  removed: "destructive",
886
906
  renamed: "info"
887
- }, He = {
907
+ }, We = {
888
908
  added: "text-success",
889
909
  modified: "text-warning-accent",
890
910
  removed: "text-destructive",
891
911
  renamed: "text-info"
892
912
  };
893
- function Ue(e) {
913
+ function Ge(e) {
894
914
  let t = e.split(".").pop()?.toLowerCase() ?? "";
895
915
  return [
896
916
  "ts",
@@ -907,20 +927,20 @@ function Ue(e) {
907
927
  "py",
908
928
  "rs",
909
929
  "go"
910
- ].includes(t) ? Oe : [
930
+ ].includes(t) ? Ae : [
911
931
  "md",
912
932
  "mdx",
913
933
  "txt"
914
- ].includes(t) ? ke : De;
934
+ ].includes(t) ? je : ke;
915
935
  }
916
936
  function Q(e, t = 0) {
917
937
  return e.flatMap((e) => [...e.kind === "directory" && (e.defaultExpanded ?? t < 1) ? [e.id] : [], ...Q(e.children ?? [], t + 1)]);
918
938
  }
919
- function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, indent: o, density: s = "compact", disabled: c, expandedIds: u, defaultExpandedIds: d, onExpandedIdsChange: f, className: h, strings: g, ..._ }) {
920
- let y = t(Z, g), [b, x] = k(() => d ?? Q(e)), S = u ?? b, C = we(() => {
939
+ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, indent: o, density: s = "compact", disabled: c, expandedIds: u, defaultExpandedIds: d, onExpandedIdsChange: f, className: p, strings: m, ..._ }) {
940
+ let v = t(Z, m), [y, x] = A(() => d ?? Q(e)), S = u ?? y, C = Te(() => {
921
941
  function t(e) {
922
942
  return e.map((e) => {
923
- let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ? je : Ae : Ue(e.name));
943
+ let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ? Ne : Me : Ge(e.name));
924
944
  return {
925
945
  value: e.id,
926
946
  label: e.name,
@@ -930,19 +950,19 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
930
950
  children: r ? t(e.children ?? []) : void 0,
931
951
  icon: /* @__PURE__ */ j(i, {
932
952
  "aria-hidden": "true",
933
- className: n("size-icon", e.status && He[e.status])
953
+ className: n("size-icon", e.status && We[e.status])
934
954
  }),
935
955
  trailing: /* @__PURE__ */ M(l, {
936
956
  direction: "horizontal",
937
957
  gap: "xs",
938
958
  align: "center",
939
959
  className: "shrink-0",
940
- children: [e.status && !a && /* @__PURE__ */ j(v, {
941
- tone: Ve[e.status],
960
+ children: [e.status && !a && /* @__PURE__ */ j(b, {
961
+ tone: Ue[e.status],
942
962
  size: "sm",
943
963
  title: e.status,
944
- children: y.statusLabels[e.status]
945
- }), e.trailing != null && /* @__PURE__ */ j(p, {
964
+ children: v.statusLabels[e.status]
965
+ }), e.trailing != null && /* @__PURE__ */ j(h, {
946
966
  size: "xs",
947
967
  className: "tabular-nums",
948
968
  children: e.trailing
@@ -956,11 +976,11 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
956
976
  e,
957
977
  S,
958
978
  a,
959
- y.statusLabels
979
+ v.statusLabels
960
980
  ]);
961
- return /* @__PURE__ */ j(Ce, {
981
+ return /* @__PURE__ */ j(k, {
962
982
  ..._,
963
- "aria-label": _["aria-label"] ?? y.treeAria,
983
+ "aria-label": _["aria-label"] ?? v.treeAria,
964
984
  items: C,
965
985
  selectedValues: r === void 0 ? [] : [r],
966
986
  expandedValues: S,
@@ -969,8 +989,8 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
969
989
  disabled: c,
970
990
  indent: o,
971
991
  strings: {
972
- expand: (e) => `${y.expandAria}: ${e}`,
973
- collapse: (e) => `${y.collapseAria}: ${e}`
992
+ expand: (e) => `${v.expandAria}: ${e}`,
993
+ collapse: (e) => `${v.collapseAria}: ${e}`
974
994
  },
975
995
  onExpandedValuesChange: (e, t) => {
976
996
  u === void 0 && x(e), f?.(e, t.data);
@@ -978,17 +998,17 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
978
998
  onSelectedValuesChange: (e, t) => {
979
999
  t.data?.kind === "file" && i?.(t.data);
980
1000
  },
981
- renderLabel: (e) => /* @__PURE__ */ j(m, {
1001
+ renderLabel: (e) => /* @__PURE__ */ j(g, {
982
1002
  size: "inherit",
983
1003
  weight: "regular",
984
1004
  className: n("ai-file-tree--name text-inherit wrap-anywhere", e.data?.status === "removed" && "line-through"),
985
1005
  children: e.label
986
1006
  }),
987
- className: n("ai-file-tree--component", h)
1007
+ className: n("ai-file-tree--component", p)
988
1008
  });
989
1009
  }
990
1010
  $.displayName = "AiFileTree";
991
1011
  //#endregion
992
- export { he as AiAgent, ve as AiArtifact, le as AiAttachment, ie as AiChainOfThought, G as AiCitation, Le as AiClassificationPanel, re as AiCodeBlock, L as AiConfidence, oe as AiConfirmation, U as AiFeedback, $ as AiFileTree, q as AiInlineCitation, ne as AiMessageBubble, Y as AiPackageInfo, z as AiPromptSuggestions, _e as AiReasoning, Se as AiShimmer, de as AiSources, Ie as AiSummaryBlock, ge as AiTask, V as AiTokenUsage, ae as AiToolCall, fe as defaultAiAgentStrings, pe as defaultAiArtifactStrings, ce as defaultAiAttachmentStrings, me as defaultAiChainOfThoughtStrings, W as defaultAiCitationStrings, be as defaultAiCodeBlockStrings, I as defaultAiConfidenceStrings, se as defaultAiConfirmationStrings, H as defaultAiFeedbackStrings, Z as defaultAiFileTreeStrings, K as defaultAiInlineCitationStrings, te as defaultAiMessageBubbleStrings, J as defaultAiPackageInfoStrings, R as defaultAiPromptSuggestionsStrings, O as defaultAiReasoningStrings, ye as defaultAiSourcesStrings, ue as defaultAiTaskStrings, B as defaultAiTokenUsageStrings, xe as defaultAiToolCallStrings };
1012
+ export { _e as AiAgent, be as AiArtifact, de as AiAttachment, ae as AiChainOfThought, G as AiCitation, ze as AiClassificationPanel, ie as AiCodeBlock, L as AiConfidence, ce as AiConfirmation, U as AiFeedback, $ as AiFileTree, q as AiInlineCitation, re as AiMessageBubble, Y as AiPackageInfo, z as AiPromptSuggestions, ye as AiReasoning, we as AiShimmer, pe as AiSources, Re as AiSummaryBlock, ve as AiTask, V as AiTokenUsage, oe as AiToolCall, me as defaultAiAgentStrings, he as defaultAiArtifactStrings, ue as defaultAiAttachmentStrings, ge as defaultAiChainOfThoughtStrings, W as defaultAiCitationStrings, Se as defaultAiCodeBlockStrings, I as defaultAiConfidenceStrings, le as defaultAiConfirmationStrings, H as defaultAiFeedbackStrings, Z as defaultAiFileTreeStrings, K as defaultAiInlineCitationStrings, ne as defaultAiMessageBubbleStrings, J as defaultAiPackageInfoStrings, R as defaultAiPromptSuggestionsStrings, se as defaultAiReasoningStrings, xe as defaultAiSourcesStrings, fe as defaultAiTaskStrings, B as defaultAiTokenUsageStrings, Ce as defaultAiToolCallStrings };
993
1013
 
994
1014
  //# sourceMappingURL=ai.js.map