themelia-react-ui 1.0.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/CHANGELOG.md +281 -1
  2. package/README.md +10 -5
  3. package/dist/{accordion-BRTcsp8J.js → accordion-CQXVcd7Q.js} +13 -13
  4. package/dist/accordion-CQXVcd7Q.js.map +1 -0
  5. package/dist/action-menu-BTpyPWJ2.js +264 -0
  6. package/dist/action-menu-BTpyPWJ2.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-CCIXb2A1.js} +7 -2
  8. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
  9. package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-2PQ2fItc.js} +171 -176
  10. package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
  11. package/dist/{app-shell-C_fKpljx.js → app-shell-BE_j8-AT.js} +4 -4
  12. package/dist/{app-shell-C_fKpljx.js.map → app-shell-BE_j8-AT.js.map} +1 -1
  13. package/dist/{attachment-DbjUWsP0.js → attachment-q69dlt5Y.js} +9 -9
  14. package/dist/{attachment-DbjUWsP0.js.map → attachment-q69dlt5Y.js.map} +1 -1
  15. package/dist/{auth-CAQcasMV.js → auth-M3vGMgDR.js} +42 -42
  16. package/dist/{auth-CAQcasMV.js.map → auth-M3vGMgDR.js.map} +1 -1
  17. package/dist/{avatar-Bu2HhitA.js → avatar-djdaaQ_s.js} +14 -12
  18. package/dist/avatar-djdaaQ_s.js.map +1 -0
  19. package/dist/{badge-CzId1Wlm.js → badge-0tATj-tW.js} +9 -9
  20. package/dist/badge-0tATj-tW.js.map +1 -0
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/buttons.js +2 -2
  27. package/dist/base/cards.js +2 -2
  28. package/dist/base/carousel.js +11 -11
  29. package/dist/base/carousel.js.map +1 -1
  30. package/dist/base/cascader.js +244 -222
  31. package/dist/base/cascader.js.map +1 -1
  32. package/dist/base/chart.js +1 -1
  33. package/dist/base/choice-inputs.js +2 -2
  34. package/dist/base/code-block.js +1 -1
  35. package/dist/base/combobox.js +1 -1
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +2 -2
  39. package/dist/base/display.js +6 -6
  40. package/dist/base/feedback.js +3 -3
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +2 -2
  43. package/dist/base/inline-edit.js +81 -76
  44. package/dist/base/inline-edit.js.map +1 -1
  45. package/dist/base/item.js +1 -1
  46. package/dist/base/media-gallery.js +1 -1
  47. package/dist/base/navigation.js +6 -6
  48. package/dist/base/popover-menu.js +1 -1
  49. package/dist/base/popover.js +1 -1
  50. package/dist/base/qr-code.js +7 -4
  51. package/dist/base/qr-code.js.map +1 -1
  52. package/dist/base/repeaters.js +42 -42
  53. package/dist/base/repeaters.js.map +1 -1
  54. package/dist/base/sheet.js +1 -1
  55. package/dist/base/sidebar.js +1 -1
  56. package/dist/base/signature-pad.js +9 -9
  57. package/dist/base/signature-pad.js.map +1 -1
  58. package/dist/base/skeleton.js +1 -1
  59. package/dist/base/spinner.js +1 -1
  60. package/dist/base/structure.js +1 -1
  61. package/dist/base/table.js +1 -1
  62. package/dist/base/text-inputs.js +2 -2
  63. package/dist/base/toaster.js +4 -4
  64. package/dist/base/toaster.js.map +1 -1
  65. package/dist/base/tree.js +1 -1
  66. package/dist/base/upload-queue.js +1 -1
  67. package/dist/base/upload.js +3 -3
  68. package/dist/base/value-inputs.js +1 -1
  69. package/dist/blocks/admin.js +229 -220
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +147 -180
  72. package/dist/blocks/ai.js.map +1 -1
  73. package/dist/blocks/analytics/usage-card.js +1 -1
  74. package/dist/blocks/analytics.js +530 -523
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +1 -1
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1390 -1516
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +1 -1
  81. package/dist/blocks/onboarding.js +5 -5
  82. package/dist/blocks/planning.js +82 -91
  83. package/dist/blocks/planning.js.map +1 -1
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-BuYz5SDU.js → breadcrumbs-BG_FfMK4.js} +5 -5
  86. package/dist/{breadcrumbs-BuYz5SDU.js.map → breadcrumbs-BG_FfMK4.js.map} +1 -1
  87. package/dist/{button-BZDasD04.js → button-BS3KDg00.js} +185 -162
  88. package/dist/button-BS3KDg00.js.map +1 -0
  89. package/dist/{button-BZyfTvwm.js → button-R9CCoH7A.js} +2 -2
  90. package/dist/{button-BZyfTvwm.js.map → button-R9CCoH7A.js.map} +1 -1
  91. package/dist/{buttons-D_6KJvEE.js → buttons-DS0ZIwJ_.js} +11 -11
  92. package/dist/buttons-DS0ZIwJ_.js.map +1 -0
  93. package/dist/{cards-qGSErLw_.js → cards-QoJ4syG9.js} +7 -7
  94. package/dist/{cards-qGSErLw_.js.map → cards-QoJ4syG9.js.map} +1 -1
  95. package/dist/{chart-Bsc5BICK.js → chart-DwYRKKc-.js} +17 -15
  96. package/dist/chart-DwYRKKc-.js.map +1 -0
  97. package/dist/checkbox-B7ygNTYp.js +35 -0
  98. package/dist/checkbox-B7ygNTYp.js.map +1 -0
  99. package/dist/choice-inputs-DrJ17tpL.js +752 -0
  100. package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
  101. package/dist/{code-block-DzHKRybS.js → code-block-CD0B7M93.js} +19 -19
  102. package/dist/{code-block-DzHKRybS.js.map → code-block-CD0B7M93.js.map} +1 -1
  103. package/dist/{collapsible-ClvC7Bj3.js → collapsible-oMUGM4tr.js} +3 -3
  104. package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-oMUGM4tr.js.map} +1 -1
  105. package/dist/{collection-content-D6S8cv_n.js → collection-content-Ys-OZOkY.js} +3 -3
  106. package/dist/{collection-content-D6S8cv_n.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
  107. package/dist/{combobox-BFnbJJp3.js → combobox-6dvVny2q.js} +96 -97
  108. package/dist/combobox-6dvVny2q.js.map +1 -0
  109. package/dist/{combobox-hozNwUcc.js → combobox-CB7039j7.js} +326 -308
  110. package/dist/combobox-CB7039j7.js.map +1 -0
  111. package/dist/{command-BnmSchli.js → command-kPMPjIxJ.js} +34 -30
  112. package/dist/command-kPMPjIxJ.js.map +1 -0
  113. package/dist/{comments-u5L0OGip.js → comments-You0Bzbr.js} +349 -348
  114. package/dist/comments-You0Bzbr.js.map +1 -0
  115. package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
  116. package/dist/components/base/action-menu/action-menu.d.ts +7 -2
  117. package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
  118. package/dist/components/base/badge/badge.d.ts +1 -1
  119. package/dist/components/base/badge/badge.recipes.d.ts +4 -4
  120. package/dist/components/base/buttons/base-button.d.ts +7 -0
  121. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  122. package/dist/components/base/buttons/button.variants.d.ts +1 -0
  123. package/dist/components/base/buttons/loader-button.d.ts +3 -1
  124. package/dist/components/base/buttons/text-button.d.ts +2 -2
  125. package/dist/components/base/carousel/carousel.d.ts +3 -1
  126. package/dist/components/base/chart/chart.d.ts +7 -7
  127. package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
  128. package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
  129. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
  130. package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
  131. package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
  132. package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
  133. package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
  134. package/dist/components/base/display/alert-dialog.d.ts +8 -2
  135. package/dist/components/base/display/content-block.d.ts +4 -2
  136. package/dist/components/base/display/date-block.d.ts +1 -1
  137. package/dist/components/base/display/dialog.d.ts +12 -5
  138. package/dist/components/base/display/surface-title.d.ts +6 -1
  139. package/dist/components/base/feedback/alert.d.ts +1 -1
  140. package/dist/components/base/feedback/state-display.d.ts +5 -4
  141. package/dist/components/base/forms/form-sizing.d.ts +32 -0
  142. package/dist/components/base/forms/workflow.d.ts +2 -0
  143. package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
  144. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
  145. package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
  146. package/dist/components/base/navigation/language-switcher.d.ts +4 -1
  147. package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
  148. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
  149. package/dist/components/base/qr-code/qr-code.d.ts +2 -0
  150. package/dist/components/base/sheet/index.d.ts +29 -1
  151. package/dist/components/base/sheet/sheet.d.ts +14 -5
  152. package/dist/components/base/spinner/spinner.d.ts +3 -2
  153. package/dist/components/base/structure/structure.types.d.ts +1 -1
  154. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  155. package/dist/components/base/upload/upload.recipes.d.ts +11 -0
  156. package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
  157. package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
  158. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
  159. package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
  160. package/dist/components/blocks/analytics/index.d.ts +1 -1
  161. package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
  162. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  163. package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
  164. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
  165. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
  166. package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
  167. package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
  168. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
  169. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  170. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
  171. package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
  172. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
  173. package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
  174. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
  175. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
  176. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
  177. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
  178. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  179. package/dist/components/features/overlays/drawer.d.ts +1 -1
  180. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
  181. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
  182. package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
  183. package/dist/components/features/overlays/overlays.types.d.ts +42 -19
  184. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  185. package/dist/components/features/products/partials/index.d.ts +1 -1
  186. package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
  187. package/dist/components/features/products/partials/product-tone.d.ts +11 -1
  188. package/dist/components/features/products/products.types.d.ts +2 -1
  189. package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
  190. package/dist/components/layout/page/index.d.ts +1 -1
  191. package/dist/components/layout/page/page.types.d.ts +53 -3
  192. package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
  193. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  194. package/dist/components/primitives/date.d.ts +16 -3
  195. package/dist/components/primitives/dimensions.d.ts +6 -0
  196. package/dist/components/primitives/duration.d.ts +6 -0
  197. package/dist/components/primitives/file-size.d.ts +6 -0
  198. package/dist/components/primitives/index.d.ts +1 -1
  199. package/dist/components/primitives/initials.d.ts +11 -2
  200. package/dist/components/primitives/link.d.ts +7 -0
  201. package/dist/components/primitives/money.d.ts +29 -7
  202. package/dist/components/primitives/number.d.ts +17 -0
  203. package/dist/components/primitives/value-typography.d.ts +54 -0
  204. package/dist/components/primitives/value.d.ts +31 -6
  205. package/dist/components/typography/heading.d.ts +9 -1
  206. package/dist/components/typography/label.d.ts +3 -0
  207. package/dist/components/typography/running-text.d.ts +12 -0
  208. package/dist/components/typography/text-link.d.ts +23 -1
  209. package/dist/components/typography/text.d.ts +12 -0
  210. package/dist/components/typography/text.styles.d.ts +35 -13
  211. package/dist/components/ui/button.d.ts +1 -1
  212. package/dist/components/ui/checkbox.d.ts +5 -0
  213. package/dist/components/ui/overlay.recipes.d.ts +15 -2
  214. package/dist/components/ui/select.d.ts +3 -1
  215. package/dist/components/ui/switch.d.ts +5 -0
  216. package/dist/{containers-DqB-bSYE.js → containers-D_L4mTVb.js} +3 -3
  217. package/dist/{containers-DqB-bSYE.js.map → containers-D_L4mTVb.js.map} +1 -1
  218. package/dist/{copyable-BTSByfmq.js → copyable-DDjTeW_j.js} +4 -4
  219. package/dist/{copyable-BTSByfmq.js.map → copyable-DDjTeW_j.js.map} +1 -1
  220. package/dist/{data-display-Bihs9Ven.js → data-display-3xWQUnMA.js} +471 -478
  221. package/dist/data-display-3xWQUnMA.js.map +1 -0
  222. package/dist/date-picker-DrDFj8Lo.js +1527 -0
  223. package/dist/date-picker-DrDFj8Lo.js.map +1 -0
  224. package/dist/date-pickers-CnFCb0n2.js +174 -0
  225. package/dist/date-pickers-CnFCb0n2.js.map +1 -0
  226. package/dist/date-uf3z37Nm.js +144 -0
  227. package/dist/date-uf3z37Nm.js.map +1 -0
  228. package/dist/{display-CS6Hbk18.js → display-DrdvPwF0.js} +25 -25
  229. package/dist/display-DrdvPwF0.js.map +1 -0
  230. package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-CURh59jb.js} +22 -15
  231. package/dist/dropdown-menu-CURh59jb.js.map +1 -0
  232. package/dist/features/activities.js +38 -35
  233. package/dist/features/activities.js.map +1 -1
  234. package/dist/features/ai-chat.js +36 -35
  235. package/dist/features/ai-chat.js.map +1 -1
  236. package/dist/features/async-preview.js +8 -8
  237. package/dist/features/combobox.js +1 -1
  238. package/dist/features/comments.js +1 -1
  239. package/dist/features/data-view.js +10 -10
  240. package/dist/features/email-composer.js +325 -326
  241. package/dist/features/email-composer.js.map +1 -1
  242. package/dist/features/event-calendar.js +190 -200
  243. package/dist/features/event-calendar.js.map +1 -1
  244. package/dist/features/filters.js +1 -1
  245. package/dist/features/global-search.js +77 -77
  246. package/dist/features/global-search.js.map +1 -1
  247. package/dist/features/kanban.js +4 -4
  248. package/dist/features/map.js +8 -8
  249. package/dist/features/media-library.js +499 -502
  250. package/dist/features/media-library.js.map +1 -1
  251. package/dist/features/mentions.js +1 -1
  252. package/dist/features/overlays.js +1 -1
  253. package/dist/features/products.js +1216 -1248
  254. package/dist/features/products.js.map +1 -1
  255. package/dist/features/questionnaire.js +46 -44
  256. package/dist/features/questionnaire.js.map +1 -1
  257. package/dist/features/resource-assignment.js +96 -88
  258. package/dist/features/resource-assignment.js.map +1 -1
  259. package/dist/features/resource.js +11 -11
  260. package/dist/features/rich-text-editor.js +2 -2
  261. package/dist/features/schema-form.js +188 -184
  262. package/dist/features/schema-form.js.map +1 -1
  263. package/dist/features/suggestions.js +3 -3
  264. package/dist/features/sync.js +7 -7
  265. package/dist/features/sync.js.map +1 -1
  266. package/dist/features/table.js +1 -1
  267. package/dist/features/theme-tweaker.js +469 -470
  268. package/dist/features/theme-tweaker.js.map +1 -1
  269. package/dist/{feedback-CJkUAapr.js → feedback-C7nR0UtT.js} +9 -10
  270. package/dist/feedback-C7nR0UtT.js.map +1 -0
  271. package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
  272. package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
  273. package/dist/{field-state-recipes-DQQpiLWC.js → field-state-recipes-C-MFBX_8.js} +3 -3
  274. package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
  275. package/dist/{filters-D6FF8L6s.js → filters-Da-gNPsE.js} +467 -467
  276. package/dist/filters-Da-gNPsE.js.map +1 -0
  277. package/dist/{form-field-CZwrkP7m.js → form-field-VZRULhUK.js} +7 -7
  278. package/dist/{form-field-CZwrkP7m.js.map → form-field-VZRULhUK.js.map} +1 -1
  279. package/dist/form-sizing-uWP4lzVh.js +126 -0
  280. package/dist/form-sizing-uWP4lzVh.js.map +1 -0
  281. package/dist/{forms-B5NCbkSC.js → forms-DDeEnXSY.js} +11 -11
  282. package/dist/forms-DDeEnXSY.js.map +1 -0
  283. package/dist/forms-numeric-D3CO60IF.js +905 -0
  284. package/dist/forms-numeric-D3CO60IF.js.map +1 -0
  285. package/dist/{header-kxruN3RM.js → header-2ycNqGOR.js} +43 -42
  286. package/dist/header-2ycNqGOR.js.map +1 -0
  287. package/dist/{hooks-BrlnCwQd.js → hooks-DQ5SPwZw.js} +2 -2
  288. package/dist/{hooks-BrlnCwQd.js.map → hooks-DQ5SPwZw.js.map} +1 -1
  289. package/dist/{icon-badge-Btc6pQrp.js → icon-badge-DKlaKXoo.js} +3 -3
  290. package/dist/{icon-badge-Btc6pQrp.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
  291. package/dist/index.js +2 -2
  292. package/dist/{input-vxcaNCYC.js → input-BoLm9Hks.js} +3 -3
  293. package/dist/{input-vxcaNCYC.js.map → input-BoLm9Hks.js.map} +1 -1
  294. package/dist/input-DhQdBnV3.js +255 -0
  295. package/dist/{input-SX9V0AL3.js.map → input-DhQdBnV3.js.map} +1 -1
  296. package/dist/item-xzh8Df65.js +264 -0
  297. package/dist/item-xzh8Df65.js.map +1 -0
  298. package/dist/layout/app-shell.js +1 -1
  299. package/dist/layout/auth.js +1 -1
  300. package/dist/layout/containers.js +1 -1
  301. package/dist/layout/header.js +1 -1
  302. package/dist/layout/hooks.js +1 -1
  303. package/dist/layout/navigation.js +1 -1
  304. package/dist/layout/page.js +1 -1
  305. package/dist/layout/settings.js +1 -1
  306. package/dist/layout/sidebar.js +2 -2
  307. package/dist/layout/workspace.js +1 -1
  308. package/dist/layout.js +10 -10
  309. package/dist/lib/affordance-geometry.generated.d.ts +6 -1
  310. package/dist/lib/field-affordance-recipes.d.ts +35 -0
  311. package/dist/lib/field-state-recipes.d.ts +4 -2
  312. package/dist/lib/format.d.ts +9 -0
  313. package/dist/lib/money-format.d.ts +30 -0
  314. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -1
  315. package/dist/lib/surface-recipes.d.ts +8 -6
  316. package/dist/lib/token-merge.generated.d.ts +11 -11
  317. package/dist/lib/track-recipes.d.ts +1 -1
  318. package/dist/lib/ui-provider/provider.d.ts +7 -2
  319. package/dist/lib/ui-provider/store.d.ts +6 -2
  320. package/dist/lib/ui-provider/types.d.ts +5 -2
  321. package/dist/lib/utils.js +1 -1
  322. package/dist/{media-gallery-DLp3HAz0.js → media-gallery-DQUQ0m3O.js} +8 -8
  323. package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
  324. package/dist/{mentions-Cl0Kt_Pd.js → mentions-DwnO1hh4.js} +34 -35
  325. package/dist/{mentions-Cl0Kt_Pd.js.map → mentions-DwnO1hh4.js.map} +1 -1
  326. package/dist/{message-SZUNB1eX.js → message-YfFmbXNP.js} +5 -5
  327. package/dist/{message-SZUNB1eX.js.map → message-YfFmbXNP.js.map} +1 -1
  328. package/dist/{navigation-DyytsLRB.js → navigation-Cbp5V8gG.js} +33 -34
  329. package/dist/navigation-Cbp5V8gG.js.map +1 -0
  330. package/dist/{navigation-DnQSNMT0.js → navigation-Cs1npsPm.js} +111 -87
  331. package/dist/navigation-Cs1npsPm.js.map +1 -0
  332. package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-DlU-4QYO.js} +2 -2
  333. package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-DlU-4QYO.js.map} +1 -1
  334. package/dist/number-CKRBYmZK.js +352 -0
  335. package/dist/number-CKRBYmZK.js.map +1 -0
  336. package/dist/overlay.recipes-CNO2S9V6.js +34 -0
  337. package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
  338. package/dist/overlays-DhZO7N-I.js +994 -0
  339. package/dist/overlays-DhZO7N-I.js.map +1 -0
  340. package/dist/page-C6R_8jFt.js +325 -0
  341. package/dist/page-C6R_8jFt.js.map +1 -0
  342. package/dist/{page-header-D8nERkn5.js → page-header-hUTzcRZX.js} +9 -9
  343. package/dist/page-header-hUTzcRZX.js.map +1 -0
  344. package/dist/{pagination-NLGqRirf.js → pagination-Cm0jqa3I.js} +8 -8
  345. package/dist/{pagination-NLGqRirf.js.map → pagination-Cm0jqa3I.js.map} +1 -1
  346. package/dist/{popover-CghIYdQf.js → popover-Dcv_9jxr.js} +6 -6
  347. package/dist/{popover-CghIYdQf.js.map → popover-Dcv_9jxr.js.map} +1 -1
  348. package/dist/{popover-menu-B4PoWhRl.js → popover-menu-DnRFKnHP.js} +6 -6
  349. package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
  350. package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-wmbvL8Ah.js} +2 -2
  351. package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-wmbvL8Ah.js.map} +1 -1
  352. package/dist/primitives-BHrwQXFC.js +379 -0
  353. package/dist/primitives-BHrwQXFC.js.map +1 -0
  354. package/dist/primitives.js +5 -5
  355. package/dist/{progress-BroqrAyV.js → progress-Br9WTFya.js} +7 -7
  356. package/dist/progress-Br9WTFya.js.map +1 -0
  357. package/dist/{receipt-BuJynLgf.js → receipt-CV89q1fs.js} +6 -6
  358. package/dist/{receipt-BuJynLgf.js.map → receipt-CV89q1fs.js.map} +1 -1
  359. package/dist/{rich-text-editor-BKyG7rWz.js → rich-text-editor-CF8QYt5p.js} +6 -6
  360. package/dist/{rich-text-editor-BKyG7rWz.js.map → rich-text-editor-CF8QYt5p.js.map} +1 -1
  361. package/dist/{rich-text-editor.recipes-B72Nfuze.js → rich-text-editor.recipes-CnrbmTS1.js} +4 -4
  362. package/dist/{rich-text-editor.recipes-B72Nfuze.js.map → rich-text-editor.recipes-CnrbmTS1.js.map} +1 -1
  363. package/dist/{rich-text-DlxDOtf4.js → rich-text-j-FGAeZW.js} +4 -4
  364. package/dist/{rich-text-DlxDOtf4.js.map → rich-text-j-FGAeZW.js.map} +1 -1
  365. package/dist/{scroll-area-D-pIhEKl.js → scroll-area-DRdr16Pt.js} +3 -3
  366. package/dist/scroll-area-DRdr16Pt.js.map +1 -0
  367. package/dist/{separator-BhtFyo4x.js → separator-BMEvwnSX.js} +2 -2
  368. package/dist/{separator-BhtFyo4x.js.map → separator-BMEvwnSX.js.map} +1 -1
  369. package/dist/{separator-BNIgG3au.js → separator-Do5GWDYi.js} +4 -4
  370. package/dist/separator-Do5GWDYi.js.map +1 -0
  371. package/dist/services/actions/action-adapters.d.ts +4 -0
  372. package/dist/services/actions.js +8 -3
  373. package/dist/services/actions.js.map +1 -1
  374. package/dist/{settings-DOTOzeZ2.js → settings-DHk0L2MF.js} +17 -17
  375. package/dist/settings-DHk0L2MF.js.map +1 -0
  376. package/dist/sheet-DRFNY1_D.js +207 -0
  377. package/dist/sheet-DRFNY1_D.js.map +1 -0
  378. package/dist/sidebar-Cb8WzOvE.js +511 -0
  379. package/dist/sidebar-Cb8WzOvE.js.map +1 -0
  380. package/dist/{sidebar-CyR4XKwR.js → sidebar-Crc9M9JV.js} +18 -18
  381. package/dist/sidebar-Crc9M9JV.js.map +1 -0
  382. package/dist/{skeleton-3F0uhYn3.js → skeleton-DVMXr15h.js} +4 -4
  383. package/dist/{skeleton-3F0uhYn3.js.map → skeleton-DVMXr15h.js.map} +1 -1
  384. package/dist/{smart-card-DjGVV2xr.js → smart-card-Bek-TwUp.js} +222 -207
  385. package/dist/smart-card-Bek-TwUp.js.map +1 -0
  386. package/dist/{spinner-Cpf7oRkF.js → spinner-CmTAbEp0.js} +8 -6
  387. package/dist/spinner-CmTAbEp0.js.map +1 -0
  388. package/dist/{structure-CRdqVawd.js → structure-hzCW-XsV.js} +3 -3
  389. package/dist/{structure-CRdqVawd.js.map → structure-hzCW-XsV.js.map} +1 -1
  390. package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
  391. package/dist/structure.recipes-EPz60cU8.js.map +1 -0
  392. package/dist/style.css +1 -1
  393. package/dist/surface-recipes-DOdoBXGm.js +28 -0
  394. package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
  395. package/dist/table-D6zKeYQX.js +162 -0
  396. package/dist/table-D6zKeYQX.js.map +1 -0
  397. package/dist/{table-CcRDZiLP.js → table-Dn4XSrSB.js} +348 -348
  398. package/dist/table-Dn4XSrSB.js.map +1 -0
  399. package/dist/{tabs-BNgu7g0u.js → tabs-Dk8E_knt.js} +14 -13
  400. package/dist/tabs-Dk8E_knt.js.map +1 -0
  401. package/dist/{text-inputs-DsR56TR-.js → text-inputs-BFpku0Qd.js} +150 -149
  402. package/dist/text-inputs-BFpku0Qd.js.map +1 -0
  403. package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
  404. package/dist/text.styles-g4He6UIW.js.map +1 -0
  405. package/dist/theme.css +16 -12
  406. package/dist/themes/green.css +24 -0
  407. package/dist/{timelines-D1pkt3se.js → timelines-CxuAFIc2.js} +25 -38
  408. package/dist/timelines-CxuAFIc2.js.map +1 -0
  409. package/dist/track-recipes-CDcKmndW.js +10 -0
  410. package/dist/track-recipes-CDcKmndW.js.map +1 -0
  411. package/dist/{tree-BtmYyMZV.js → tree-BotPlyiD.js} +13 -13
  412. package/dist/{tree-BtmYyMZV.js.map → tree-BotPlyiD.js.map} +1 -1
  413. package/dist/typography/rich-text.js +1 -1
  414. package/dist/typography-CAr3dQhX.js +116 -0
  415. package/dist/typography-CAr3dQhX.js.map +1 -0
  416. package/dist/typography.js +2 -2
  417. package/dist/{ui-provider-DRPn3qNl.js → ui-provider-D2_TeLqw.js} +20 -21
  418. package/dist/ui-provider-D2_TeLqw.js.map +1 -0
  419. package/dist/ui-provider.js +1 -1
  420. package/dist/{upload-CDbYw1WN.js → upload-B0WHW7ak.js} +221 -220
  421. package/dist/upload-B0WHW7ak.js.map +1 -0
  422. package/dist/{upload-queue-CNd_hH_a.js → upload-queue-BHZ_wBfd.js} +59 -62
  423. package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
  424. package/dist/{usage-card-VyJLUwRr.js → usage-card-U0YBLTNT.js} +42 -43
  425. package/dist/{usage-card-VyJLUwRr.js.map → usage-card-U0YBLTNT.js.map} +1 -1
  426. package/dist/{utils-BvH9PSmq.js → utils-Cospvlj1.js} +221 -51
  427. package/dist/utils-Cospvlj1.js.map +1 -0
  428. package/dist/value-inputs-CjfzGMsN.js +854 -0
  429. package/dist/value-inputs-CjfzGMsN.js.map +1 -0
  430. package/dist/value-typography-Deb3yQZg.js +116 -0
  431. package/dist/value-typography-Deb3yQZg.js.map +1 -0
  432. package/dist/{workspace-CcR8r-Nt.js → workspace-YoFjXi6i.js} +44 -45
  433. package/dist/workspace-YoFjXi6i.js.map +1 -0
  434. package/docs/consumer-skill/SKILL.md +51 -38
  435. package/docs/consumer-skill/examples/app-layout.tsx +2 -4
  436. package/docs/consumer-skill/examples/detail.tsx +3 -4
  437. package/docs/consumer-skill/examples/edit.tsx +1 -1
  438. package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
  439. package/docs/consumer-skill/examples/manifest.json +28 -6
  440. package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
  441. package/docs/consumer-skill/references/composition.md +89 -17
  442. package/docs/consumer-skill/references/discovery.md +4 -0
  443. package/docs/consumer-skill/references/installation.md +22 -0
  444. package/docs/consumer-skill/references/integration.md +32 -1
  445. package/docs/consumer-skill/references/public-api.json +111 -70
  446. package/docs/consumer-skill/references/review.md +20 -4
  447. package/docs/consumer-skill/references/theming.md +7 -1
  448. package/docs/consumer-skill/references/tokens.json +5 -2
  449. package/docs/consumer-skill/references/workflows.md +4 -2
  450. package/docs/consumer-skill/scripts/composition-policy.mjs +93 -2
  451. package/docs/consumer-skill/scripts/discovery.mjs +11 -3
  452. package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
  453. package/package.json +5 -3
  454. package/dist/accordion-BRTcsp8J.js.map +0 -1
  455. package/dist/action-menu-Drxw_vJk.js +0 -265
  456. package/dist/action-menu-Drxw_vJk.js.map +0 -1
  457. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
  458. package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
  459. package/dist/avatar-Bu2HhitA.js.map +0 -1
  460. package/dist/badge-CzId1Wlm.js.map +0 -1
  461. package/dist/button-BZDasD04.js.map +0 -1
  462. package/dist/buttons-D_6KJvEE.js.map +0 -1
  463. package/dist/chart-Bsc5BICK.js.map +0 -1
  464. package/dist/checkbox-BQNDjUCh.js +0 -34
  465. package/dist/checkbox-BQNDjUCh.js.map +0 -1
  466. package/dist/choice-inputs-Mk3iWbhr.js +0 -725
  467. package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
  468. package/dist/combobox-BFnbJJp3.js.map +0 -1
  469. package/dist/combobox-hozNwUcc.js.map +0 -1
  470. package/dist/command-BnmSchli.js.map +0 -1
  471. package/dist/comments-u5L0OGip.js.map +0 -1
  472. package/dist/data-display-Bihs9Ven.js.map +0 -1
  473. package/dist/date-DOKhJPu7.js +0 -140
  474. package/dist/date-DOKhJPu7.js.map +0 -1
  475. package/dist/date-picker-DzP5HQq7.js +0 -1541
  476. package/dist/date-picker-DzP5HQq7.js.map +0 -1
  477. package/dist/date-pickers-BpgGz7S-.js +0 -196
  478. package/dist/date-pickers-BpgGz7S-.js.map +0 -1
  479. package/dist/display-CS6Hbk18.js.map +0 -1
  480. package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
  481. package/dist/feedback-CJkUAapr.js.map +0 -1
  482. package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
  483. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
  484. package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
  485. package/dist/filters-D6FF8L6s.js.map +0 -1
  486. package/dist/form-sizing-QP8aIRaW.js +0 -103
  487. package/dist/form-sizing-QP8aIRaW.js.map +0 -1
  488. package/dist/format-iamDSqs2.js +0 -110
  489. package/dist/format-iamDSqs2.js.map +0 -1
  490. package/dist/forms-B5NCbkSC.js.map +0 -1
  491. package/dist/forms-numeric-Crrm80Lm.js +0 -867
  492. package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
  493. package/dist/header-kxruN3RM.js.map +0 -1
  494. package/dist/input-SX9V0AL3.js +0 -255
  495. package/dist/item-DE4YnuJx.js +0 -258
  496. package/dist/item-DE4YnuJx.js.map +0 -1
  497. package/dist/media-gallery-DLp3HAz0.js.map +0 -1
  498. package/dist/navigation-DnQSNMT0.js.map +0 -1
  499. package/dist/navigation-DyytsLRB.js.map +0 -1
  500. package/dist/number-DasMFWEG.js +0 -269
  501. package/dist/number-DasMFWEG.js.map +0 -1
  502. package/dist/overlay.recipes-BxW5FIfK.js +0 -6
  503. package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
  504. package/dist/overlays-DUbs1KEi.js +0 -1011
  505. package/dist/overlays-DUbs1KEi.js.map +0 -1
  506. package/dist/page-hGmT4nWK.js +0 -213
  507. package/dist/page-hGmT4nWK.js.map +0 -1
  508. package/dist/page-header-D8nERkn5.js.map +0 -1
  509. package/dist/primitives-C7ff0QaI.js +0 -337
  510. package/dist/primitives-C7ff0QaI.js.map +0 -1
  511. package/dist/progress-BroqrAyV.js.map +0 -1
  512. package/dist/scroll-area-D-pIhEKl.js.map +0 -1
  513. package/dist/separator-BNIgG3au.js.map +0 -1
  514. package/dist/settings-DOTOzeZ2.js.map +0 -1
  515. package/dist/sheet-BFhrNehm.js +0 -205
  516. package/dist/sheet-BFhrNehm.js.map +0 -1
  517. package/dist/sidebar-CyR4XKwR.js.map +0 -1
  518. package/dist/sidebar-SvGJ0Zwi.js +0 -506
  519. package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
  520. package/dist/smart-card-DjGVV2xr.js.map +0 -1
  521. package/dist/spinner-Cpf7oRkF.js.map +0 -1
  522. package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
  523. package/dist/surface-recipes-Dd__PD-w.js +0 -28
  524. package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
  525. package/dist/table-CLtJTxoR.js +0 -147
  526. package/dist/table-CLtJTxoR.js.map +0 -1
  527. package/dist/table-CcRDZiLP.js.map +0 -1
  528. package/dist/tabs-BNgu7g0u.js.map +0 -1
  529. package/dist/text-inputs-DsR56TR-.js.map +0 -1
  530. package/dist/text.styles-Q4sGAIgA.js.map +0 -1
  531. package/dist/timelines-D1pkt3se.js.map +0 -1
  532. package/dist/track-recipes-LLPNVwFg.js +0 -10
  533. package/dist/track-recipes-LLPNVwFg.js.map +0 -1
  534. package/dist/typography-BxQgiZyw.js +0 -96
  535. package/dist/typography-BxQgiZyw.js.map +0 -1
  536. package/dist/ui-provider-DRPn3qNl.js.map +0 -1
  537. package/dist/upload-CDbYw1WN.js.map +0 -1
  538. package/dist/upload-queue-CNd_hH_a.js.map +0 -1
  539. package/dist/utils-BvH9PSmq.js.map +0 -1
  540. package/dist/value-inputs-D0KCrfVC.js +0 -840
  541. package/dist/value-inputs-D0KCrfVC.js.map +0 -1
  542. package/dist/workspace-CcR8r-Nt.js.map +0 -1
package/dist/blocks/ai.js CHANGED
@@ -1,56 +1,55 @@
1
1
  "use client";
2
2
  import { mergeStrings as e, useStrings as t } from "../lib/strings.js";
3
- import { t as n } from "../utils-BvH9PSmq.js";
4
- import { a as r, r as i, t as a } from "../typography-BxQgiZyw.js";
5
- import { t as o } from "../button-BZDasD04.js";
6
- import { i as s, t as c } from "../structure-CRdqVawd.js";
7
- import { t as l } from "../progress-BroqrAyV.js";
8
- import { g as u, m as d } from "../primitives-C7ff0QaI.js";
9
- import { n as f, t as p } from "../number-DasMFWEG.js";
10
- import { t as m } from "../icon-badge-Btc6pQrp.js";
11
- import { t as h } from "../badge-CzId1Wlm.js";
12
- import { t as g } from "../separator-BNIgG3au.js";
13
- import { d as _ } from "../text-inputs-DsR56TR-.js";
14
- import { a as v, c as y, i as b, n as x, o as S, r as C, t as w, u as T } from "../item-DE4YnuJx.js";
15
- import { g as E } from "../data-display-Bihs9Ven.js";
16
- import { C as ee, S as te, _ as D, a as O, b as ne, c as re, d as ie, f as ae, g as oe, h as se, i as ce, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "../ai-artifact-DLVdK0Py.js";
17
- import { t as xe } from "../tree-BtmYyMZV.js";
18
- import { useMemo as Se, useState as k } from "react";
3
+ import { t as n } from "../utils-Cospvlj1.js";
4
+ import { a as r, s as i, t as a } from "../typography-CAr3dQhX.js";
5
+ import { t as o } from "../button-BS3KDg00.js";
6
+ import { r as s, t as c } from "../structure-hzCW-XsV.js";
7
+ import { t as l } from "../progress-Br9WTFya.js";
8
+ import { g as u, m as d } from "../primitives-BHrwQXFC.js";
9
+ import { n as f, t as p } from "../number-CKRBYmZK.js";
10
+ import { t as m } from "../icon-badge-DKlaKXoo.js";
11
+ import { t as h } from "../badge-0tATj-tW.js";
12
+ import { d as g } from "../text-inputs-BFpku0Qd.js";
13
+ import { a as _, c as v, i as y, n as b, o as x, r as S, t as C, u as w } from "../item-xzh8Df65.js";
14
+ import { g as T } from "../data-display-3xWQUnMA.js";
15
+ import { C as ee, S as E, _ as D, a as te, b as ne, c as re, d as ie, f as ae, g as O, h as oe, i as se, l as ce, m as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge, v as _e, x as ve, y as ye } from "../ai-artifact-2PQ2fItc.js";
16
+ import { t as be } from "../tree-BotPlyiD.js";
17
+ import { useMemo as xe, useState as k } from "react";
19
18
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
20
- import { ChevronDown as Ce, ChevronRight as we, Code2 as Te, ExternalLink as N, File as Ee, FileCode as De, FileText as Oe, Folder as ke, FolderOpen as Ae, Globe as je, Package as P, Quote as Me, RefreshCw as Ne, ThumbsDown as Pe, ThumbsUp as F } from "lucide-react";
19
+ import { ChevronDown as Se, ChevronRight as Ce, ExternalLink as N, File as we, FileCode as Te, FileText as P, Folder as Ee, FolderOpen as De, ThumbsDown as Oe, ThumbsUp as F } from "lucide-react";
21
20
  //#region src/components/blocks/ai/ai.strings.ts
22
- var Fe = {
21
+ var ke = {
23
22
  regenerate: "Regenerate",
24
23
  confidenceLevels: {
25
24
  low: "low",
26
25
  medium: "medium",
27
26
  high: "high"
28
27
  }
29
- }, Ie = {
28
+ }, Ae = {
30
29
  title: "Classification",
31
30
  complexityLabel: "Complexity",
32
31
  flagsLabel: "Flags",
33
- nextStepLabel: "Next Step",
32
+ nextStepLabel: "Next step",
34
33
  confidencePrefix: "Confidence",
35
34
  confidenceBands: {
36
35
  low: "Low",
37
36
  medium: "Medium",
38
37
  high: "High"
39
38
  }
40
- }, Le = {
39
+ }, je = {
41
40
  low: 1,
42
41
  medium: 2,
43
42
  high: 3
44
43
  };
45
- function Re({ level: e, label: t }) {
46
- let i = Le[e];
44
+ function Me({ level: e, label: t }) {
45
+ let r = je[e];
47
46
  return /* @__PURE__ */ M("div", {
48
47
  className: "ai-summary--confidence flex items-center gap-space-sm",
49
48
  children: [/* @__PURE__ */ j("div", {
50
49
  className: "flex items-center gap-space-2xs",
51
50
  "aria-hidden": "true",
52
- children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ j("div", { className: n("h-2.5 w-1 rounded-radius-sm", t < i ? "bg-foreground/60" : "bg-muted-foreground/20") }, `bar-${String(t)}`))
53
- }), /* @__PURE__ */ j(r, {
51
+ children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ j("div", { className: n("h-2.5 w-1 rounded-radius-sm", t < r ? "bg-foreground/60" : "bg-muted-foreground/20") }, `bar-${String(t)}`))
52
+ }), /* @__PURE__ */ j(i, {
54
53
  size: "xs",
55
54
  type: "secondary",
56
55
  tag: "span",
@@ -59,8 +58,8 @@ function Re({ level: e, label: t }) {
59
58
  })]
60
59
  });
61
60
  }
62
- function ze({ data: e, children: i, metadata: a, actions: s, footer: l, className: d, strings: f }) {
63
- let p = t(Fe, f), m = /* @__PURE__ */ M("div", {
61
+ function Ne({ data: e, children: r, metadata: a, actions: s, footer: l, className: d, strings: f }) {
62
+ let p = t(ke, f), m = /* @__PURE__ */ M("div", {
64
63
  className: "ai-summary--metadata flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs",
65
64
  children: [!!e.generatedAt && /* @__PURE__ */ j(u, {
66
65
  size: "xs",
@@ -71,18 +70,18 @@ function ze({ data: e, children: i, metadata: a, actions: s, footer: l, classNam
71
70
  className: "min-w-0 truncate",
72
71
  children: e.model
73
72
  })]
74
- }), g = e.onRegenerate ? /* @__PURE__ */ M(o, {
73
+ }), g = e.onRegenerate ? /* @__PURE__ */ j(o, {
75
74
  tone: "secondary",
76
75
  buttonStyle: "ghost",
77
76
  onClick: e.onRegenerate,
78
- children: [/* @__PURE__ */ j(Ne, { className: "mr-1 h-3 w-3" }), p.regenerate]
77
+ children: p.regenerate
79
78
  }) : null, _ = a === void 0 ? m : a, v = s === void 0 ? g : s, y = l === void 0 ? (_ || v) && /* @__PURE__ */ M(A, { children: [_, v] }) : l;
80
79
  return /* @__PURE__ */ M(c, {
81
80
  "data-component": "ai-summary",
82
81
  "data-slot": "ai-summary",
83
82
  className: n("ai-summary--component", d),
84
83
  children: [
85
- /* @__PURE__ */ j(r, {
84
+ /* @__PURE__ */ j(i, {
86
85
  lineHeight: "relaxed",
87
86
  children: e.summary
88
87
  }),
@@ -96,11 +95,11 @@ function ze({ data: e, children: i, metadata: a, actions: s, footer: l, classNam
96
95
  children: e
97
96
  }, e))
98
97
  }),
99
- /* @__PURE__ */ j(Re, {
98
+ /* @__PURE__ */ j(Me, {
100
99
  level: e.confidence,
101
100
  label: p.confidenceLevels[e.confidence]
102
101
  }),
103
- i,
102
+ r,
104
103
  !!y && /* @__PURE__ */ j(c, {
105
104
  direction: {
106
105
  base: "vertical",
@@ -116,8 +115,8 @@ function ze({ data: e, children: i, metadata: a, actions: s, footer: l, classNam
116
115
  }
117
116
  //#endregion
118
117
  //#region src/components/blocks/ai/ai-classification/ai-classification.tsx
119
- function Be({ data: e, children: i, className: a, strings: o }) {
120
- let s = t(Ie, o), l = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
118
+ function Pe({ data: e, children: r, className: a, strings: o }) {
119
+ let s = t(Ae, o), l = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
121
120
  return /* @__PURE__ */ M(c, {
122
121
  "data-component": "ai-classification",
123
122
  "data-slot": "ai-classification",
@@ -129,10 +128,7 @@ function Be({ data: e, children: i, className: a, strings: o }) {
129
128
  align: "center",
130
129
  gap: "sm",
131
130
  children: [
132
- /* @__PURE__ */ j(h, {
133
- tone: "primary",
134
- children: e.requestType
135
- }),
131
+ /* @__PURE__ */ j(h, { children: e.requestType }),
136
132
  /* @__PURE__ */ j(h, {
137
133
  tone: e.urgencyTone,
138
134
  children: e.urgency
@@ -144,7 +140,7 @@ function Be({ data: e, children: i, className: a, strings: o }) {
144
140
  })
145
141
  ]
146
142
  }),
147
- /* @__PURE__ */ j(E, {
143
+ /* @__PURE__ */ j(T, {
148
144
  label: s.complexityLabel,
149
145
  labelClassName: "text-sm font-medium text-foreground",
150
146
  value: /* @__PURE__ */ M("span", {
@@ -152,7 +148,7 @@ function Be({ data: e, children: i, className: a, strings: o }) {
152
148
  children: [/* @__PURE__ */ j("span", {
153
149
  className: "flex items-center gap-space-xs",
154
150
  children: Array.from({ length: 5 }, (t, r) => /* @__PURE__ */ j("span", { className: n("h-1.5 w-3 rounded-radius-sm", r < e.complexityScore ? "bg-foreground/60" : "bg-muted") }, `cx-${String(r)}`))
155
- }), /* @__PURE__ */ M(r, {
151
+ }), /* @__PURE__ */ M(i, {
156
152
  tag: "span",
157
153
  size: "xs",
158
154
  type: "secondary",
@@ -160,31 +156,25 @@ function Be({ data: e, children: i, className: a, strings: o }) {
160
156
  })]
161
157
  })
162
158
  }),
163
- e.flags.length > 0 && /* @__PURE__ */ j(E, {
159
+ e.flags.length > 0 && /* @__PURE__ */ j(T, {
164
160
  label: s.flagsLabel,
165
161
  labelClassName: "text-sm font-medium text-foreground",
166
162
  value: /* @__PURE__ */ j("span", {
167
163
  className: "flex gap-space-xs",
168
- children: e.flags.map((e) => /* @__PURE__ */ j(h, {
169
- tone: "warning",
170
- children: e
171
- }, e))
164
+ children: e.flags.map((e) => /* @__PURE__ */ j(h, { children: e }, e))
172
165
  })
173
166
  }),
174
- /* @__PURE__ */ j(E, {
167
+ /* @__PURE__ */ j(T, {
175
168
  label: s.nextStepLabel,
176
169
  labelClassName: "text-sm font-medium text-foreground",
177
- value: /* @__PURE__ */ j(h, {
178
- tone: "info",
179
- children: e.suggestedAction
180
- })
170
+ value: e.suggestedAction,
171
+ valueClassName: "text-right"
181
172
  }),
182
- /* @__PURE__ */ j(r, {
173
+ /* @__PURE__ */ j(i, {
183
174
  lineHeight: "relaxed",
184
175
  type: "secondary",
185
176
  children: e.summary
186
177
  }),
187
- /* @__PURE__ */ j(g, {}),
188
178
  /* @__PURE__ */ M("div", {
189
179
  className: "flex items-center gap-space-md",
190
180
  children: [/* @__PURE__ */ M(h, {
@@ -194,14 +184,14 @@ function Be({ data: e, children: i, className: a, strings: o }) {
194
184
  ": ",
195
185
  l
196
186
  ]
197
- }), /* @__PURE__ */ j(r, {
187
+ }), /* @__PURE__ */ j(i, {
198
188
  size: "xs",
199
189
  type: "discrete",
200
190
  tag: "span",
201
191
  children: e.model
202
192
  })]
203
193
  }),
204
- i
194
+ r
205
195
  ]
206
196
  });
207
197
  }
@@ -217,11 +207,11 @@ var I = {
217
207
  };
218
208
  //#endregion
219
209
  //#region src/components/blocks/ai/ai-confidence/ai-confidence.tsx
220
- function Ve(e) {
210
+ function Fe(e) {
221
211
  return e >= .85 ? "success" : e >= .6 ? "warning" : "destructive";
222
212
  }
223
213
  function L({ score: e, model: a, factors: o, className: s, strings: u }) {
224
- let d = t(I, u), p = Math.round(e * 100), m = Ve(e), g = m === "success" ? d.levelHigh : m === "warning" ? d.levelMedium : d.levelLow, _ = 2 * Math.PI * 24, v = _ - p / 100 * _;
214
+ let d = t(I, u), p = Math.round(e * 100), m = Fe(e), g = m === "success" ? d.levelHigh : m === "warning" ? d.levelMedium : d.levelLow, _ = 2 * Math.PI * 24, v = _ - p / 100 * _;
225
215
  return /* @__PURE__ */ M(c, {
226
216
  "data-component": "ai-confidence",
227
217
  "data-slot": "ai-confidence",
@@ -269,13 +259,13 @@ function L({ score: e, model: a, factors: o, className: s, strings: u }) {
269
259
  })]
270
260
  }), /* @__PURE__ */ M(c, {
271
261
  gap: "sm",
272
- children: [/* @__PURE__ */ j(i, { children: d.confidenceLabel }), /* @__PURE__ */ M(c, {
262
+ children: [/* @__PURE__ */ j(r, { children: d.confidenceLabel }), /* @__PURE__ */ M(c, {
273
263
  direction: "horizontal",
274
264
  gap: "sm",
275
265
  children: [/* @__PURE__ */ j(h, {
276
266
  tone: m,
277
267
  children: g
278
- }), !!a && /* @__PURE__ */ j(r, {
268
+ }), !!a && /* @__PURE__ */ j(i, {
279
269
  size: "xs",
280
270
  type: "secondary",
281
271
  className: "truncate",
@@ -285,17 +275,15 @@ function L({ score: e, model: a, factors: o, className: s, strings: u }) {
285
275
  })]
286
276
  }), !!o && o.length > 0 && /* @__PURE__ */ M(c, {
287
277
  gap: "md",
288
- className: "mt-space-xl",
289
- children: [/* @__PURE__ */ j(i, { children: d.factorsLabel }), o.map((e) => /* @__PURE__ */ M(c, {
278
+ children: [/* @__PURE__ */ j(r, { children: d.factorsLabel }), o.map((e) => /* @__PURE__ */ M(c, {
290
279
  gap: "sm",
291
- children: [/* @__PURE__ */ j(E, {
280
+ children: [/* @__PURE__ */ j(T, {
292
281
  label: e.label,
293
282
  value: /* @__PURE__ */ j(f, {
294
283
  value: e.score,
295
284
  size: "xs",
296
285
  weight: "semibold"
297
- }),
298
- mono: !0
286
+ })
299
287
  }), /* @__PURE__ */ j(l, {
300
288
  value: Math.round(e.score * 100),
301
289
  "aria-label": e.label
@@ -322,26 +310,26 @@ function z({ suggestions: e, onPick: r, className: i, strings: a }) {
322
310
  children: [/* @__PURE__ */ M(c, {
323
311
  gap: "normal",
324
312
  className: "ai-prompt-suggestions--intro",
325
- children: [/* @__PURE__ */ j(T, { children: o.title }), /* @__PURE__ */ j(b, { children: o.hint })]
313
+ children: [/* @__PURE__ */ j(w, { children: o.title }), /* @__PURE__ */ j(y, { children: o.hint })]
326
314
  }), /* @__PURE__ */ j("div", {
327
315
  className: "grid grid-cols-[repeat(auto-fit,minmax(min(15rem,100%),1fr))] gap-space-xl",
328
316
  children: e.map((e) => {
329
317
  let t = e.icon;
330
- return /* @__PURE__ */ M(w, {
318
+ return /* @__PURE__ */ M(C, {
331
319
  variant: "outline",
332
320
  render: /* @__PURE__ */ j("button", {
333
321
  type: "button",
334
322
  onClick: () => r?.(e)
335
323
  }),
336
324
  className: n("ai-prompt-suggestions--item h-full items-start gap-space-lg p-surface transition-[border-color,background] duration-150", "hover:border-foreground/20 hover:bg-muted/40"),
337
- children: [!!t && /* @__PURE__ */ j(y, { children: /* @__PURE__ */ j(m, {
325
+ children: [!!t && /* @__PURE__ */ j(v, { children: /* @__PURE__ */ j(m, {
338
326
  icon: t,
339
- tone: "primary",
327
+ tone: "neutral",
340
328
  size: "md",
341
329
  shape: "square"
342
- }) }), /* @__PURE__ */ M(C, {
330
+ }) }), /* @__PURE__ */ M(S, {
343
331
  className: "min-w-0 gap-space-sm",
344
- children: [/* @__PURE__ */ j(T, { children: e.label }), !!e.description && /* @__PURE__ */ j(b, { children: e.description })]
332
+ children: [/* @__PURE__ */ j(w, { children: e.label }), !!e.description && /* @__PURE__ */ j(y, { children: e.description })]
345
333
  })]
346
334
  }, e.id);
347
335
  })
@@ -375,7 +363,7 @@ function V({ model: e, inputTokens: a, outputTokens: o, cost: l, maxTokens: u, c
375
363
  })
376
364
  }),
377
365
  /* @__PURE__ */ j(s, {
378
- minColumnWidth: "sm",
366
+ columns: 3,
379
367
  gap: "md",
380
368
  children: [
381
369
  {
@@ -390,21 +378,18 @@ function V({ model: e, inputTokens: a, outputTokens: o, cost: l, maxTokens: u, c
390
378
  label: g.total,
391
379
  value: _
392
380
  }
393
- ].map((e) => /* @__PURE__ */ j("div", {
394
- className: "rounded-radius bg-muted/40 p-surface-xs",
395
- children: /* @__PURE__ */ M(c, {
396
- gap: "2xs",
397
- children: [/* @__PURE__ */ j(i, { children: e.label }), /* @__PURE__ */ j(p, {
398
- value: e.value,
399
- weight: "semibold",
400
- align: "left"
401
- })]
402
- })
381
+ ].map((e) => /* @__PURE__ */ M(c, {
382
+ gap: "2xs",
383
+ children: [/* @__PURE__ */ j(r, { children: e.label }), /* @__PURE__ */ j(p, {
384
+ value: e.value,
385
+ weight: "semibold",
386
+ align: "left"
387
+ })]
403
388
  }, e.label))
404
389
  }),
405
- !!u && /* @__PURE__ */ M("div", {
406
- className: "mt-space-lg",
407
- children: [/* @__PURE__ */ j(E, {
390
+ !!u && /* @__PURE__ */ M(c, {
391
+ gap: "xs",
392
+ children: [/* @__PURE__ */ j(T, {
408
393
  label: /* @__PURE__ */ M("span", {
409
394
  className: "inline-flex items-center gap-space-xs",
410
395
  children: [
@@ -413,7 +398,7 @@ function V({ model: e, inputTokens: a, outputTokens: o, cost: l, maxTokens: u, c
413
398
  size: "xs",
414
399
  align: "left"
415
400
  }),
416
- /* @__PURE__ */ j(r, {
401
+ /* @__PURE__ */ j(i, {
417
402
  tag: "span",
418
403
  size: "xs",
419
404
  "aria-hidden": !0,
@@ -433,19 +418,17 @@ function V({ model: e, inputTokens: a, outputTokens: o, cost: l, maxTokens: u, c
433
418
  weight: "semibold",
434
419
  align: "right"
435
420
  }),
436
- mono: !0,
437
421
  valueClassName: "text-xs font-semibold"
438
422
  }), /* @__PURE__ */ j("div", {
439
- className: "mt-1 h-1.5 w-full overflow-hidden rounded-full bg-muted",
423
+ className: "h-1.5 w-full overflow-hidden rounded-full bg-muted",
440
424
  children: /* @__PURE__ */ j("div", {
441
425
  className: "h-full rounded-full bg-primary",
442
426
  style: { width: `${v}%` }
443
427
  })
444
428
  })]
445
429
  }),
446
- !!l && /* @__PURE__ */ j(E, {
447
- className: "mt-space-lg rounded-radius bg-primary/5 p-surface-xs",
448
- label: /* @__PURE__ */ j(r, {
430
+ !!l && /* @__PURE__ */ j(T, {
431
+ label: /* @__PURE__ */ j(i, {
449
432
  tag: "span",
450
433
  size: "xs",
451
434
  weight: "medium",
@@ -453,8 +436,7 @@ function V({ model: e, inputTokens: a, outputTokens: o, cost: l, maxTokens: u, c
453
436
  children: g.cost
454
437
  }),
455
438
  value: l,
456
- mono: !0,
457
- valueClassName: "text-sm font-bold"
439
+ valueClassName: "text-sm font-bold tabular-nums"
458
440
  })
459
441
  ]
460
442
  });
@@ -472,14 +454,14 @@ var H = {
472
454
  };
473
455
  //#endregion
474
456
  //#region src/components/blocks/ai/ai-feedback/ai-feedback.tsx
475
- function U({ value: e, onVote: i, onSubmitComment: a, allowComment: s = !0, submitted: l = !1, className: u, strings: d }) {
476
- let f = t(H, d), [p, m] = k(null), [h, g] = k(""), v = e ?? p, y = (t) => {
457
+ function U({ value: e, onVote: r, onSubmitComment: a, allowComment: s = !0, submitted: l = !1, className: u, strings: d }) {
458
+ let f = t(H, d), [p, m] = k(null), [h, _] = k(""), v = e ?? p, y = (t) => {
477
459
  let n = v === t ? null : t;
478
- e === void 0 && m(n), i?.(n);
460
+ e === void 0 && m(n), r?.(n);
479
461
  };
480
462
  return l ? /* @__PURE__ */ M("div", {
481
463
  className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-radius bg-success/10 px-space-lg py-space-sm", u),
482
- children: [/* @__PURE__ */ j(F, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(r, {
464
+ children: [/* @__PURE__ */ j(F, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(i, {
483
465
  size: "xs",
484
466
  type: "success",
485
467
  weight: "medium",
@@ -490,7 +472,7 @@ function U({ value: e, onVote: i, onSubmitComment: a, allowComment: s = !0, subm
490
472
  children: [/* @__PURE__ */ M("div", {
491
473
  className: "flex items-center gap-space-md",
492
474
  children: [
493
- /* @__PURE__ */ j(r, {
475
+ /* @__PURE__ */ j(i, {
494
476
  size: "xs",
495
477
  type: "secondary",
496
478
  children: f.prompt
@@ -517,14 +499,14 @@ function U({ value: e, onVote: i, onSubmitComment: a, allowComment: s = !0, subm
517
499
  "aria-pressed": v === "down",
518
500
  onClick: () => y("down"),
519
501
  className: n(v === "down" && "text-destructive bg-destructive/10 hover:bg-destructive/10"),
520
- children: /* @__PURE__ */ j(Pe, { className: "size-icon-md" })
502
+ children: /* @__PURE__ */ j(Oe, { className: "size-icon-md" })
521
503
  })
522
504
  ]
523
505
  }), !!s && !!v && /* @__PURE__ */ M(c, {
524
506
  gap: "md",
525
- children: [/* @__PURE__ */ j(_, {
507
+ children: [/* @__PURE__ */ j(g, {
526
508
  value: h,
527
- onChange: (e) => g(e.target.value),
509
+ onChange: (e) => _(e.target.value),
528
510
  placeholder: f.commentPlaceholder,
529
511
  minRows: 2
530
512
  }), /* @__PURE__ */ j(c, {
@@ -532,9 +514,10 @@ function U({ value: e, onVote: i, onSubmitComment: a, allowComment: s = !0, subm
532
514
  gap: "none",
533
515
  justify: "end",
534
516
  children: /* @__PURE__ */ j(o, {
517
+ tone: "primary",
535
518
  type: "button",
536
519
  onClick: () => {
537
- a?.(h, v), g("");
520
+ a?.(h, v), _("");
538
521
  },
539
522
  disabled: !h.trim(),
540
523
  children: f.submit
@@ -557,9 +540,9 @@ var W = {
557
540
  };
558
541
  //#endregion
559
542
  //#region src/components/blocks/ai/ai-citation/ai-citation.tsx
560
- function G({ sources: t, expanded: i, defaultExpanded: a = !1, onExpandedChange: s, maxCollapsedRows: l = 0, className: u, strings: d }) {
561
- let f = e(W, d), [p, m] = k(a), h = i ?? p, g = (e) => {
562
- i === void 0 && m(e), s?.(e);
543
+ function G({ sources: t, expanded: r, defaultExpanded: a = !1, onExpandedChange: s, maxCollapsedRows: l = 0, className: u, strings: d }) {
544
+ let f = e(W, d), [p, m] = k(a), h = r ?? p, g = (e) => {
545
+ r === void 0 && m(e), s?.(e);
563
546
  }, _ = h ? t : t.slice(0, Math.max(0, l)), v = t.length - _.length;
564
547
  return /* @__PURE__ */ j("div", {
565
548
  className: n("ai-citation--component", "rounded-radius border border-border bg-card px-surface-xs py-surface-xs shadow-xs", u),
@@ -571,26 +554,22 @@ function G({ sources: t, expanded: i, defaultExpanded: a = !1, onExpandedChange:
571
554
  buttonStyle: "ghost",
572
555
  size: "sm",
573
556
  onClick: () => g(!h),
574
- className: n("ai-citation--trigger h-auto justify-start gap-space-sm rounded-inner px-control py-row-y", "text-muted-foreground hover:text-foreground hover:bg-muted/40"),
557
+ 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 hover:text-foreground hover:bg-muted/40"),
575
558
  "aria-expanded": h,
576
559
  "aria-label": h ? f.collapse : f.expand,
577
- children: [
578
- /* @__PURE__ */ j(Me, { className: "size-icon-md" }),
579
- /* @__PURE__ */ M(r, {
580
- weight: "medium",
581
- children: [
582
- f.title,
583
- " · ",
584
- f.sourceCount(t.length)
585
- ]
586
- }),
587
- j(h ? Ce : we, { className: "size-icon-md" })
588
- ]
589
- }), (h || l > 0) && /* @__PURE__ */ M(S, { children: [_.map((e, t) => /* @__PURE__ */ j(He, {
560
+ children: [/* @__PURE__ */ M(i, {
561
+ weight: "medium",
562
+ children: [
563
+ f.title,
564
+ " · ",
565
+ f.sourceCount(t.length)
566
+ ]
567
+ }), j(h ? Se : Ce, { className: "size-icon-md" })]
568
+ }), (h || l > 0) && /* @__PURE__ */ M(x, { children: [_.map((e, t) => /* @__PURE__ */ j(Ie, {
590
569
  source: e,
591
570
  index: t + 1,
592
571
  strings: f
593
- }, e.id)), !h && v > 0 && /* @__PURE__ */ j(r, {
572
+ }, e.id)), !h && v > 0 && /* @__PURE__ */ j(i, {
594
573
  size: "xs",
595
574
  type: "secondary",
596
575
  children: f.hiddenCount(v)
@@ -599,18 +578,18 @@ function G({ sources: t, expanded: i, defaultExpanded: a = !1, onExpandedChange:
599
578
  });
600
579
  }
601
580
  G.displayName = "AiCitation";
602
- function He({ source: e, index: t, strings: i }) {
581
+ function Ie({ source: e, index: t, strings: r }) {
603
582
  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 ? {
604
583
  href: e.url,
605
584
  target: "_blank",
606
585
  rel: "noopener noreferrer"
607
586
  } : {};
608
- return /* @__PURE__ */ M(w, {
587
+ return /* @__PURE__ */ M(C, {
609
588
  variant: "outline",
610
589
  size: "sm",
611
590
  className: "items-start px-surface-xs py-surface-xs",
612
591
  children: [
613
- /* @__PURE__ */ j(y, { children: /* @__PURE__ */ j(p, {
592
+ /* @__PURE__ */ j(v, { children: /* @__PURE__ */ j(p, {
614
593
  value: t,
615
594
  size: "xs",
616
595
  weight: "semibold",
@@ -618,8 +597,8 @@ function He({ source: e, index: t, strings: i }) {
618
597
  align: "center",
619
598
  className: "inline-flex size-icon-lg shrink-0 items-center justify-center rounded-full bg-muted"
620
599
  }) }),
621
- /* @__PURE__ */ M(C, { children: [
622
- /* @__PURE__ */ j(T, {
600
+ /* @__PURE__ */ M(S, { children: [
601
+ /* @__PURE__ */ j(w, {
623
602
  className: "truncate",
624
603
  children: /* @__PURE__ */ M(o, {
625
604
  ...s,
@@ -627,19 +606,19 @@ function He({ source: e, index: t, strings: i }) {
627
606
  children: [e.title, !!e.url && /* @__PURE__ */ j(N, { className: "ml-1 inline size-icon-sm align-baseline" })]
628
607
  })
629
608
  }),
630
- !!e.snippet && /* @__PURE__ */ j(b, {
609
+ !!e.snippet && /* @__PURE__ */ j(y, {
631
610
  clamp: 2,
632
611
  children: e.snippet
633
612
  }),
634
- (e.publisher || e.publishedAt) && /* @__PURE__ */ M(v, {
613
+ (e.publisher || e.publishedAt) && /* @__PURE__ */ M(_, {
635
614
  className: "mt-1 justify-start gap-space-sm",
636
615
  children: [
637
- !!e.publisher && /* @__PURE__ */ j(r, {
616
+ !!e.publisher && /* @__PURE__ */ j(i, {
638
617
  size: "xs",
639
618
  type: "discrete",
640
619
  children: e.publisher
641
620
  }),
642
- !!e.publisher && !!e.publishedAt && /* @__PURE__ */ j(r, {
621
+ !!e.publisher && !!e.publishedAt && /* @__PURE__ */ j(i, {
643
622
  size: "xs",
644
623
  type: "discrete",
645
624
  children: "·"
@@ -652,7 +631,7 @@ function He({ source: e, index: t, strings: i }) {
652
631
  ]
653
632
  })
654
633
  ] }),
655
- a !== null && /* @__PURE__ */ M(x, {
634
+ a !== null && /* @__PURE__ */ M(b, {
656
635
  className: "w-16 flex-col items-end gap-space-2xs",
657
636
  children: [/* @__PURE__ */ j(f, {
658
637
  value: a,
@@ -663,7 +642,7 @@ function He({ source: e, index: t, strings: i }) {
663
642
  }), /* @__PURE__ */ j("div", {
664
643
  className: "h-1 w-full overflow-hidden rounded-full bg-muted",
665
644
  role: "progressbar",
666
- "aria-label": i.relevance,
645
+ "aria-label": r.relevance,
667
646
  "aria-valuemin": 0,
668
647
  "aria-valuemax": 100,
669
648
  "aria-valuenow": a,
@@ -684,17 +663,17 @@ var K = {
684
663
  };
685
664
  //#endregion
686
665
  //#region src/components/blocks/ai/ai-inline-citation/ai-inline-citation.tsx
687
- function Ue(e, t) {
666
+ function Le(e, t) {
688
667
  return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
689
668
  let r = t[n];
690
669
  return r === void 0 ? e : String(r);
691
670
  });
692
671
  }
693
- function q({ index: t, title: i, url: o, onSelect: s, className: c, strings: l }) {
694
- let u = e(K, l), d = Ue(u.openAria, {
672
+ function q({ index: t, title: r, url: o, onSelect: s, className: c, strings: l }) {
673
+ let u = e(K, l), d = Le(u.openAria, {
695
674
  n: t,
696
- title: i ?? ""
697
- }), f = i ? `${u.sourcePrefix} ${t}: ${i}` : `${u.sourcePrefix} ${t}`, p = 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", "hover:bg-primary/10 hover:text-primary-accent", "transition-colors duration-150", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", c);
675
+ title: r ?? ""
676
+ }), f = r ? `${u.sourcePrefix} ${t}: ${r}` : `${u.sourcePrefix} ${t}`, p = 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", "hover:bg-primary/10 hover:text-primary-accent", "transition-colors duration-150", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", c);
698
677
  return o ? /* @__PURE__ */ j(a, {
699
678
  href: o,
700
679
  size: "inherit",
@@ -704,7 +683,7 @@ function q({ index: t, title: i, url: o, onSelect: s, className: c, strings: l }
704
683
  title: f,
705
684
  "aria-label": d,
706
685
  className: n("ai-inline-citation--component", p),
707
- children: /* @__PURE__ */ j(r, {
686
+ children: /* @__PURE__ */ j(i, {
708
687
  tag: "span",
709
688
  size: "xs",
710
689
  weight: "medium",
@@ -717,7 +696,7 @@ function q({ index: t, title: i, url: o, onSelect: s, className: c, strings: l }
717
696
  title: f,
718
697
  "aria-label": d,
719
698
  className: n("ai-inline-citation--component", p),
720
- children: /* @__PURE__ */ j(r, {
699
+ children: /* @__PURE__ */ j(i, {
721
700
  tag: "span",
722
701
  size: "xs",
723
702
  weight: "medium",
@@ -728,7 +707,7 @@ function q({ index: t, title: i, url: o, onSelect: s, className: c, strings: l }
728
707
  title: f,
729
708
  "aria-label": d,
730
709
  className: n("ai-inline-citation--component", p),
731
- children: /* @__PURE__ */ j(r, {
710
+ children: /* @__PURE__ */ j(i, {
732
711
  tag: "span",
733
712
  size: "xs",
734
713
  weight: "medium",
@@ -752,12 +731,8 @@ var J = {
752
731
  };
753
732
  //#endregion
754
733
  //#region src/components/blocks/ai/ai-package-info/ai-package-info.tsx
755
- function Y({ name: e, version: i, description: s, license: l, publishedAt: u, homepage: f, repository: p, weeklyDownloads: m, keywords: g, onSelect: _, className: v, strings: y }) {
756
- let b = t(J, y), x = /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
757
- "aria-hidden": !0,
758
- className: "inline-flex size-9 shrink-0 items-center justify-center rounded-inner bg-muted text-muted-foreground",
759
- children: /* @__PURE__ */ j(P, { className: "size-icon" })
760
- }), /* @__PURE__ */ M("div", {
734
+ function Y({ name: e, version: r, description: s, license: l, publishedAt: u, homepage: f, repository: p, weeklyDownloads: m, keywords: g, onSelect: _, className: v, strings: y }) {
735
+ let b = t(J, y), x = /* @__PURE__ */ j(A, { children: /* @__PURE__ */ M("div", {
761
736
  className: "min-w-0 flex-1",
762
737
  children: [
763
738
  /* @__PURE__ */ M(c, {
@@ -770,15 +745,15 @@ function Y({ name: e, version: i, description: s, license: l, publishedAt: u, ho
770
745
  weight: "semibold",
771
746
  className: "truncate",
772
747
  children: e
773
- }), !!i && /* @__PURE__ */ j(h, {
748
+ }), !!r && /* @__PURE__ */ j(h, {
774
749
  tone: "secondary",
775
750
  children: /* @__PURE__ */ M(d, {
776
751
  size: "xs",
777
752
  className: "text-inherit",
778
- children: ["v", i.replace(/^v/, "")]
753
+ children: ["v", r.replace(/^v/, "")]
779
754
  })
780
755
  })]
781
- }), !!s && /* @__PURE__ */ j(r, {
756
+ }), !!s && /* @__PURE__ */ j(i, {
782
757
  size: "xs",
783
758
  type: "secondary",
784
759
  className: "line-clamp-2",
@@ -810,7 +785,7 @@ function Y({ name: e, version: i, description: s, license: l, publishedAt: u, ho
810
785
  }, e))
811
786
  })
812
787
  ]
813
- })] }), S = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
788
+ }) }), S = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
814
789
  return /* @__PURE__ */ M("div", {
815
790
  className: n("ai-package-info--component block w-full overflow-hidden rounded-radius border border-border/60 bg-card", v),
816
791
  children: [_ ? /* @__PURE__ */ j(o, {
@@ -818,13 +793,13 @@ function Y({ name: e, version: i, description: s, license: l, publishedAt: u, ho
818
793
  tone: "secondary",
819
794
  buttonStyle: "ghost",
820
795
  onClick: _,
821
- className: n(S, "h-auto justify-start rounded-none whitespace-normal transition-colors hover:bg-muted/40"),
796
+ className: n(S, "h-auto min-h-0 justify-start rounded-none whitespace-normal transition-colors hover:bg-muted/40"),
822
797
  children: x
823
798
  }) : /* @__PURE__ */ j("div", {
824
799
  className: S,
825
800
  children: x
826
801
  }), (f || p) && /* @__PURE__ */ j("div", {
827
- className: "ai-package-info--footer border-t border-border/60 bg-muted/20 px-surface-xs py-row-y",
802
+ className: "ai-package-info--footer px-surface-xs pb-surface-xs",
828
803
  children: /* @__PURE__ */ M(c, {
829
804
  direction: "horizontal",
830
805
  align: "center",
@@ -839,17 +814,13 @@ function Y({ name: e, version: i, description: s, license: l, publishedAt: u, ho
839
814
  onClick: (e) => e.stopPropagation(),
840
815
  "aria-label": b.homepageAria,
841
816
  className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
842
- children: [
843
- /* @__PURE__ */ j(je, { className: "size-icon-sm" }),
844
- /* @__PURE__ */ j(r, {
845
- tag: "span",
846
- weight: "medium",
847
- children: b.homepageLabel
848
- }),
849
- /* @__PURE__ */ j(N, { className: "size-icon-sm" })
850
- ]
817
+ children: [/* @__PURE__ */ j(i, {
818
+ tag: "span",
819
+ weight: "medium",
820
+ children: b.homepageLabel
821
+ }), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
851
822
  }),
852
- !!f && !!p && /* @__PURE__ */ j(r, {
823
+ !!f && !!p && /* @__PURE__ */ j(i, {
853
824
  tag: "span",
854
825
  size: "xs",
855
826
  type: "secondary",
@@ -866,15 +837,11 @@ function Y({ name: e, version: i, description: s, license: l, publishedAt: u, ho
866
837
  onClick: (e) => e.stopPropagation(),
867
838
  "aria-label": b.repositoryAria,
868
839
  className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
869
- children: [
870
- /* @__PURE__ */ j(Te, { className: "size-icon-sm" }),
871
- /* @__PURE__ */ j(r, {
872
- tag: "span",
873
- weight: "medium",
874
- children: b.repositoryLabel
875
- }),
876
- /* @__PURE__ */ j(N, { className: "size-icon-sm" })
877
- ]
840
+ children: [/* @__PURE__ */ j(i, {
841
+ tag: "span",
842
+ weight: "medium",
843
+ children: b.repositoryLabel
844
+ }), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
878
845
  })
879
846
  ]
880
847
  })
@@ -885,7 +852,7 @@ Y.displayName = "AiPackageInfo";
885
852
  function X({ label: e, value: t }) {
886
853
  return /* @__PURE__ */ M("div", {
887
854
  className: "inline-flex items-baseline gap-space-xs",
888
- children: [/* @__PURE__ */ j(r, {
855
+ children: [/* @__PURE__ */ j(i, {
889
856
  size: "xs",
890
857
  type: "discrete",
891
858
  children: e
@@ -909,18 +876,18 @@ var Z = {
909
876
  removed: "D",
910
877
  renamed: "R"
911
878
  }
912
- }, We = {
879
+ }, Re = {
913
880
  added: "success",
914
881
  modified: "warning",
915
882
  removed: "destructive",
916
883
  renamed: "info"
917
- }, Ge = {
884
+ }, ze = {
918
885
  added: "text-success",
919
886
  modified: "text-warning-accent",
920
887
  removed: "text-destructive",
921
888
  renamed: "text-info"
922
889
  };
923
- function Ke(e) {
890
+ function Be(e) {
924
891
  let t = e.split(".").pop()?.toLowerCase() ?? "";
925
892
  return [
926
893
  "ts",
@@ -937,20 +904,20 @@ function Ke(e) {
937
904
  "py",
938
905
  "rs",
939
906
  "go"
940
- ].includes(t) ? De : [
907
+ ].includes(t) ? Te : [
941
908
  "md",
942
909
  "mdx",
943
910
  "txt"
944
- ].includes(t) ? Oe : Ee;
911
+ ].includes(t) ? P : we;
945
912
  }
946
913
  function Q(e, t = 0) {
947
914
  return e.flatMap((e) => [...e.kind === "directory" && (e.defaultExpanded ?? t < 1) ? [e.id] : [], ...Q(e.children ?? [], t + 1)]);
948
915
  }
949
916
  function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, indent: o, density: s = "compact", disabled: l, expandedIds: f, defaultExpandedIds: p, onExpandedIdsChange: m, className: g, strings: _, ...v }) {
950
- let y = t(Z, _), [b, x] = k(() => p ?? Q(e)), S = f ?? b, C = Se(() => {
917
+ let y = t(Z, _), [b, x] = k(() => p ?? Q(e)), S = f ?? b, C = xe(() => {
951
918
  function t(e) {
952
919
  return e.map((e) => {
953
- let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ? Ae : ke : Ke(e.name));
920
+ let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ? De : Ee : Be(e.name));
954
921
  return {
955
922
  value: e.id,
956
923
  label: e.name,
@@ -960,7 +927,7 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
960
927
  children: r ? t(e.children ?? []) : void 0,
961
928
  icon: /* @__PURE__ */ j(i, {
962
929
  "aria-hidden": "true",
963
- className: n("size-icon", e.status && Ge[e.status])
930
+ className: n("size-icon", e.status && ze[e.status])
964
931
  }),
965
932
  trailing: /* @__PURE__ */ M(c, {
966
933
  direction: "horizontal",
@@ -968,7 +935,7 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
968
935
  align: "center",
969
936
  className: "shrink-0",
970
937
  children: [e.status && !a && /* @__PURE__ */ j(h, {
971
- tone: We[e.status],
938
+ tone: Re[e.status],
972
939
  size: "sm",
973
940
  title: e.status,
974
941
  children: y.statusLabels[e.status]
@@ -988,7 +955,7 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
988
955
  a,
989
956
  y.statusLabels
990
957
  ]);
991
- return /* @__PURE__ */ j(xe, {
958
+ return /* @__PURE__ */ j(be, {
992
959
  ...v,
993
960
  "aria-label": v["aria-label"] ?? y.treeAria,
994
961
  items: C,
@@ -1019,6 +986,6 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
1019
986
  }
1020
987
  $.displayName = "AiFileTree";
1021
988
  //#endregion
1022
- export { pe as AiAgent, ge as AiArtifact, se as AiAttachment, O as AiChainOfThought, G as AiCitation, Be as AiClassificationPanel, D as AiCodeBlock, L as AiConfidence, ie as AiConfirmation, U as AiFeedback, $ as AiFileTree, q as AiInlineCitation, te as AiMessageBubble, Y as AiPackageInfo, z as AiPromptSuggestions, he as AiReasoning, be as AiShimmer, le as AiSources, ze as AiSummaryBlock, me as AiTask, V as AiTokenUsage, ne as AiToolCall, ue as defaultAiAgentStrings, de as defaultAiArtifactStrings, oe as defaultAiAttachmentStrings, fe as defaultAiChainOfThoughtStrings, W as defaultAiCitationStrings, ve as defaultAiCodeBlockStrings, I as defaultAiConfidenceStrings, ae as defaultAiConfirmationStrings, H as defaultAiFeedbackStrings, Z as defaultAiFileTreeStrings, K as defaultAiInlineCitationStrings, ee as defaultAiMessageBubbleStrings, J as defaultAiPackageInfoStrings, R as defaultAiPromptSuggestionsStrings, re as defaultAiReasoningStrings, _e as defaultAiSourcesStrings, ce as defaultAiTaskStrings, B as defaultAiTokenUsageStrings, ye as defaultAiToolCallStrings };
989
+ export { fe as AiAgent, he as AiArtifact, oe as AiAttachment, te as AiChainOfThought, G as AiCitation, Pe as AiClassificationPanel, D as AiCodeBlock, L as AiConfidence, ie as AiConfirmation, U as AiFeedback, $ as AiFileTree, q as AiInlineCitation, E as AiMessageBubble, Y as AiPackageInfo, z as AiPromptSuggestions, me as AiReasoning, ye as AiShimmer, ce as AiSources, Ne as AiSummaryBlock, pe as AiTask, V as AiTokenUsage, ne as AiToolCall, le as defaultAiAgentStrings, ue as defaultAiArtifactStrings, O as defaultAiAttachmentStrings, de as defaultAiChainOfThoughtStrings, W as defaultAiCitationStrings, _e as defaultAiCodeBlockStrings, I as defaultAiConfidenceStrings, ae as defaultAiConfirmationStrings, H as defaultAiFeedbackStrings, Z as defaultAiFileTreeStrings, K as defaultAiInlineCitationStrings, ee as defaultAiMessageBubbleStrings, J as defaultAiPackageInfoStrings, R as defaultAiPromptSuggestionsStrings, re as defaultAiReasoningStrings, ge as defaultAiSourcesStrings, se as defaultAiTaskStrings, B as defaultAiTokenUsageStrings, ve as defaultAiToolCallStrings };
1023
990
 
1024
991
  //# sourceMappingURL=ai.js.map