themelia-react-ui 2.0.2 → 2.0.4

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 (435) hide show
  1. package/CHANGELOG.md +67 -7
  2. package/README.md +70 -37
  3. package/THIRD_PARTY_NOTICES.md +6 -12
  4. package/dist/{accordion-Cjb6sx0G.js → accordion-96o0pN62.js} +5 -5
  5. package/dist/{accordion-Cjb6sx0G.js.map → accordion-96o0pN62.js.map} +1 -1
  6. package/dist/action-menu-CHgs8vmj.js +281 -0
  7. package/dist/action-menu-CHgs8vmj.js.map +1 -0
  8. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-B8yGOr8-.js} +7 -1
  9. package/dist/affordance-geometry.generated-B8yGOr8-.js.map +1 -0
  10. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-BZUGwBq6.js} +277 -276
  11. package/dist/ai-artifact-BZUGwBq6.js.map +1 -0
  12. package/dist/{app-shell-C4FhvCqF.js → app-shell-D63ATkIK.js} +84 -83
  13. package/dist/app-shell-D63ATkIK.js.map +1 -0
  14. package/dist/{attachment-BxDfL2mw.js → attachment-DkoqHPPl.js} +7 -7
  15. package/dist/{attachment-BxDfL2mw.js.map → attachment-DkoqHPPl.js.map} +1 -1
  16. package/dist/{auth-ax2BqjrI.js → auth-D2FVZ1MH.js} +10 -10
  17. package/dist/{auth-ax2BqjrI.js.map → auth-D2FVZ1MH.js.map} +1 -1
  18. package/dist/{avatar-DAPlDvhJ.js → avatar-DWO_HHhB.js} +5 -5
  19. package/dist/{avatar-DAPlDvhJ.js.map → avatar-DWO_HHhB.js.map} +1 -1
  20. package/dist/{badge-HpFqoqSY.js → badge-DErMA7ul.js} +4 -4
  21. package/dist/{badge-HpFqoqSY.js.map → badge-DErMA7ul.js.map} +1 -1
  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 +3 -3
  31. package/dist/base/cascader.js +13 -13
  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 +2 -2
  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 +3 -3
  43. package/dist/base/inline-edit.js +10 -10
  44. package/dist/base/item.js +1 -1
  45. package/dist/base/media-gallery.js +1 -1
  46. package/dist/base/metadata-list.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 +1 -1
  51. package/dist/base/repeaters.js +9 -9
  52. package/dist/base/sheet.js +1 -1
  53. package/dist/base/sidebar.js +1 -1
  54. package/dist/base/signature-pad.js +6 -6
  55. package/dist/base/skeleton.js +1 -1
  56. package/dist/base/spinner.js +4 -4
  57. package/dist/base/structure.js +1 -1
  58. package/dist/base/table.js +1 -1
  59. package/dist/base/text-inputs.js +2 -2
  60. package/dist/base/toaster.js +3 -3
  61. package/dist/base/tree.js +1 -1
  62. package/dist/base/upload-queue.js +1 -1
  63. package/dist/base/upload.js +3 -3
  64. package/dist/base/value-inputs.js +1 -1
  65. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-CdfIkCsV.js} +4 -4
  66. package/dist/{batch-action-bar-DnUJ21NQ.js.map → batch-action-bar-CdfIkCsV.js.map} +1 -1
  67. package/dist/blocks/admin.js +20 -20
  68. package/dist/blocks/admin.js.map +1 -1
  69. package/dist/blocks/ai.js +15 -15
  70. package/dist/blocks/analytics/usage-card.js +1 -1
  71. package/dist/blocks/analytics.js +17 -17
  72. package/dist/blocks/analytics.js.map +1 -1
  73. package/dist/blocks/collaboration.js +1 -1
  74. package/dist/blocks/commerce/receipt.js +1 -1
  75. package/dist/blocks/commerce.js +570 -567
  76. package/dist/blocks/commerce.js.map +1 -1
  77. package/dist/blocks/data-display.js +2 -2
  78. package/dist/blocks/onboarding.js +5 -5
  79. package/dist/blocks/planning.js +11 -11
  80. package/dist/blocks/timelines.js +1 -1
  81. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-B-WFKecD.js} +4 -4
  82. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-B-WFKecD.js.map} +1 -1
  83. package/dist/{button-DVzspB_G.js → button-DkmK-z8E.js} +2 -2
  84. package/dist/{button-DVzspB_G.js.map → button-DkmK-z8E.js.map} +1 -1
  85. package/dist/{buttons-DPZekJFu.js → buttons-BbfzgczK.js} +8 -8
  86. package/dist/{buttons-DPZekJFu.js.map → buttons-BbfzgczK.js.map} +1 -1
  87. package/dist/{cards-BaBZR-AU.js → cards-4JTWqvVe.js} +10 -10
  88. package/dist/cards-4JTWqvVe.js.map +1 -0
  89. package/dist/{chart-ZOYyK2xG.js → chart-C19flDQb.js} +4 -4
  90. package/dist/{chart-ZOYyK2xG.js.map → chart-C19flDQb.js.map} +1 -1
  91. package/dist/{checkbox-AWIhNhmo.js → checkbox-CzYUTPeJ.js} +9 -5
  92. package/dist/checkbox-CzYUTPeJ.js.map +1 -0
  93. package/dist/{choice-inputs-CNHvARCJ.js → choice-inputs-JLtij2y4.js} +182 -176
  94. package/dist/choice-inputs-JLtij2y4.js.map +1 -0
  95. package/dist/{code-block-DeneBJR_.js → code-block-CGNaUtAE.js} +7 -7
  96. package/dist/{code-block-DeneBJR_.js.map → code-block-CGNaUtAE.js.map} +1 -1
  97. package/dist/{collapsible-C-_l4hpy.js → collapsible-Do4G0zcC.js} +3 -3
  98. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-Do4G0zcC.js.map} +1 -1
  99. package/dist/{collection-content-By56pLog.js → collection-content-C0e8SsTm.js} +3 -3
  100. package/dist/{collection-content-By56pLog.js.map → collection-content-C0e8SsTm.js.map} +1 -1
  101. package/dist/{combobox-C0EQW6dr.js → combobox-CBJDs6w_.js} +349 -347
  102. package/dist/combobox-CBJDs6w_.js.map +1 -0
  103. package/dist/{combobox-xCQ2RMNE.js → combobox-hbhSS18O.js} +158 -112
  104. package/dist/combobox-hbhSS18O.js.map +1 -0
  105. package/dist/{command-C25VMRII.js → command-D8NrBj-b.js} +7 -7
  106. package/dist/{command-C25VMRII.js.map → command-D8NrBj-b.js.map} +1 -1
  107. package/dist/{comments-BYYlTA8E.js → comments-Di4w0H_S.js} +383 -382
  108. package/dist/comments-Di4w0H_S.js.map +1 -0
  109. package/dist/components/base/action-menu/action-menu.d.ts +2 -0
  110. package/dist/components/base/cards/card.recipes.d.ts +12 -5
  111. package/dist/components/base/cards/smart-card.types.d.ts +12 -7
  112. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  113. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  114. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  115. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  116. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  117. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  118. package/dist/components/base/forms/form-field.d.ts +5 -3
  119. package/dist/components/base/forms/index.d.ts +1 -0
  120. package/dist/components/base/forms/server-errors.d.ts +16 -0
  121. package/dist/components/base/forms/workflow.d.ts +5 -2
  122. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  123. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -2
  124. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  125. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  126. package/dist/components/base/text-inputs/input.d.ts +4 -2
  127. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  128. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  129. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  130. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  131. package/dist/components/typography/text.styles.d.ts +26 -1
  132. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  133. package/dist/components/ui/combobox.d.ts +11 -6
  134. package/dist/components/ui/dialog.d.ts +1 -1
  135. package/dist/components/ui/popover.d.ts +1 -1
  136. package/dist/components/ui/sheet.d.ts +1 -1
  137. package/dist/composition.recipes-COdiFhxB.js +19 -0
  138. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  139. package/dist/containers-CRmHf7GP.js +104 -0
  140. package/dist/containers-CRmHf7GP.js.map +1 -0
  141. package/dist/{copyable-ClBuk_UK.js → copyable-CnGCZdX4.js} +4 -4
  142. package/dist/{copyable-ClBuk_UK.js.map → copyable-CnGCZdX4.js.map} +1 -1
  143. package/dist/{data-display-DT_khPl_.js → data-display-D4oujtx0.js} +239 -238
  144. package/dist/data-display-D4oujtx0.js.map +1 -0
  145. package/dist/{date-DCrsDTZc.js → date-Q7jnXxpk.js} +5 -5
  146. package/dist/{date-DCrsDTZc.js.map → date-Q7jnXxpk.js.map} +1 -1
  147. package/dist/{date-picker-ay0Pha_a.js → date-picker-zOt1oNss.js} +102 -90
  148. package/dist/date-picker-zOt1oNss.js.map +1 -0
  149. package/dist/date-pickers-cj8IXbDC.js +179 -0
  150. package/dist/date-pickers-cj8IXbDC.js.map +1 -0
  151. package/dist/{display-hAc1HjpI.js → display-BB4BL_-K.js} +8 -8
  152. package/dist/{display-hAc1HjpI.js.map → display-BB4BL_-K.js.map} +1 -1
  153. package/dist/{dropdown-menu-Cl4X7L5S.js → dropdown-menu-CjY8Vt7W.js} +8 -8
  154. package/dist/{dropdown-menu-Cl4X7L5S.js.map → dropdown-menu-CjY8Vt7W.js.map} +1 -1
  155. package/dist/features/activities.js +11 -11
  156. package/dist/features/ai-chat.js +9 -9
  157. package/dist/features/appointment-calendar.js +222 -220
  158. package/dist/features/appointment-calendar.js.map +1 -1
  159. package/dist/features/async-preview.js +8 -8
  160. package/dist/features/combobox.js +1 -1
  161. package/dist/features/comments.js +1 -1
  162. package/dist/features/data-view.js +10 -10
  163. package/dist/features/email-composer.js +275 -274
  164. package/dist/features/email-composer.js.map +1 -1
  165. package/dist/features/event-calendar.js +199 -198
  166. package/dist/features/event-calendar.js.map +1 -1
  167. package/dist/features/filters.js +1 -1
  168. package/dist/features/global-search.js +12 -12
  169. package/dist/features/kanban.js +4 -4
  170. package/dist/features/map.js +7 -7
  171. package/dist/features/media-library.js +623 -622
  172. package/dist/features/media-library.js.map +1 -1
  173. package/dist/features/mentions.js +1 -1
  174. package/dist/features/overlays.js +1 -1
  175. package/dist/features/products.js +973 -969
  176. package/dist/features/products.js.map +1 -1
  177. package/dist/features/questionnaire.js +12 -12
  178. package/dist/features/resource-assignment.js +8 -8
  179. package/dist/features/resource.js +113 -112
  180. package/dist/features/resource.js.map +1 -1
  181. package/dist/features/rich-text-editor.js +2 -2
  182. package/dist/features/schema-form.js +254 -253
  183. package/dist/features/schema-form.js.map +1 -1
  184. package/dist/features/suggestions.js +3 -3
  185. package/dist/features/sync.js +3 -3
  186. package/dist/features/table.js +1 -1
  187. package/dist/features/theme-tweaker.js +19 -19
  188. package/dist/features/theme-tweaker.js.map +1 -1
  189. package/dist/{feedback-BYIhtitP.js → feedback-DZNL5Lg1.js} +9 -9
  190. package/dist/{feedback-BYIhtitP.js.map → feedback-DZNL5Lg1.js.map} +1 -1
  191. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DjwGx8eM.js} +2 -2
  192. package/dist/{field-affordance-recipes-DZhnIL_Y.js.map → field-affordance-recipes-DjwGx8eM.js.map} +1 -1
  193. package/dist/{filters-BGfvjP4d.js → filters-BcT-uoFy.js} +19 -19
  194. package/dist/{filters-BGfvjP4d.js.map → filters-BcT-uoFy.js.map} +1 -1
  195. package/dist/{form-field-CwH9y77i.js → form-field-CsgRmdit.js} +14 -8
  196. package/dist/form-field-CsgRmdit.js.map +1 -0
  197. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-NXgjkmBG.js} +3 -3
  198. package/dist/{form-sizing-BdP_Mf5p.js.map → form-sizing-NXgjkmBG.js.map} +1 -1
  199. package/dist/{forms-B9G_xwzi.js → forms-BV5m5aQF.js} +83 -65
  200. package/dist/forms-BV5m5aQF.js.map +1 -0
  201. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-Cd33AKbD.js} +288 -288
  202. package/dist/forms-numeric-Cd33AKbD.js.map +1 -0
  203. package/dist/{header-CGXuhcRm.js → header-BA697l4a.js} +14 -14
  204. package/dist/{header-CGXuhcRm.js.map → header-BA697l4a.js.map} +1 -1
  205. package/dist/hooks/useFormErrors.d.ts +1 -1
  206. package/dist/{hooks-Dkz0K2WT.js → hooks-BQ-L7Uu2.js} +2 -2
  207. package/dist/{hooks-Dkz0K2WT.js.map → hooks-BQ-L7Uu2.js.map} +1 -1
  208. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-COWbCCWu.js} +3 -3
  209. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-COWbCCWu.js.map} +1 -1
  210. package/dist/index.js +2 -2
  211. package/dist/input-Cdw4k0fb.js +289 -0
  212. package/dist/input-Cdw4k0fb.js.map +1 -0
  213. package/dist/{input-CZw8iU99.js → input-DOPL5_QE.js} +3 -3
  214. package/dist/{input-CZw8iU99.js.map → input-DOPL5_QE.js.map} +1 -1
  215. package/dist/item-BvZ2DR_x.js +277 -0
  216. package/dist/item-BvZ2DR_x.js.map +1 -0
  217. package/dist/layout/app-shell.js +1 -1
  218. package/dist/layout/auth.js +1 -1
  219. package/dist/layout/containers.js +1 -1
  220. package/dist/layout/header.js +1 -1
  221. package/dist/layout/hooks.js +1 -1
  222. package/dist/layout/navigation.js +1 -1
  223. package/dist/layout/page.js +1 -1
  224. package/dist/layout/settings.js +1 -1
  225. package/dist/layout/sidebar.js +2 -2
  226. package/dist/layout/workspace.js +1 -1
  227. package/dist/layout.js +10 -10
  228. package/dist/lib/affordance-geometry.generated.d.ts +6 -0
  229. package/dist/lib/ui-provider/types.d.ts +1 -1
  230. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  231. package/dist/lib/utils.js +1 -1
  232. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-CSl5W1Fy.js} +6 -6
  233. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-CSl5W1Fy.js.map} +1 -1
  234. package/dist/{mentions-utuUvH1K.js → mentions-RKOQaaIB.js} +8 -8
  235. package/dist/{mentions-utuUvH1K.js.map → mentions-RKOQaaIB.js.map} +1 -1
  236. package/dist/{message-DZ_ruyUV.js → message-INU2xsxu.js} +4 -4
  237. package/dist/{message-DZ_ruyUV.js.map → message-INU2xsxu.js.map} +1 -1
  238. package/dist/metadata-list-qVV7AVxa.js +443 -0
  239. package/dist/metadata-list-qVV7AVxa.js.map +1 -0
  240. package/dist/{navigation-BzhHI3lo.js → navigation-BQNcg1jT.js} +8 -8
  241. package/dist/{navigation-BzhHI3lo.js.map → navigation-BQNcg1jT.js.map} +1 -1
  242. package/dist/{navigation-Bnotn4AQ.js → navigation-DLF3E1IC.js} +7 -7
  243. package/dist/{navigation-Bnotn4AQ.js.map → navigation-DLF3E1IC.js.map} +1 -1
  244. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-WZEs-hYo.js} +2 -2
  245. package/dist/{navigation-row-recipes-BFLCk_Aq.js.map → navigation-row-recipes-WZEs-hYo.js.map} +1 -1
  246. package/dist/{number-DbV1Dija.js → number-E_OiIfJz.js} +5 -5
  247. package/dist/{number-DbV1Dija.js.map → number-E_OiIfJz.js.map} +1 -1
  248. package/dist/{overflow-tab-bar-CWY7Nogn.js → overflow-tab-bar-CrbqMteP.js} +107 -105
  249. package/dist/overflow-tab-bar-CrbqMteP.js.map +1 -0
  250. package/dist/{overlays-DNWmZrJ4.js → overlays-BlKynmde.js} +322 -319
  251. package/dist/overlays-BlKynmde.js.map +1 -0
  252. package/dist/page-CIwNUtGr.js +227 -0
  253. package/dist/page-CIwNUtGr.js.map +1 -0
  254. package/dist/page-header-commands-DFMlNYzN.js +128 -0
  255. package/dist/page-header-commands-DFMlNYzN.js.map +1 -0
  256. package/dist/{pagination-BL25hu2s.js → pagination-Ch8X_47u.js} +5 -5
  257. package/dist/{pagination-BL25hu2s.js.map → pagination-Ch8X_47u.js.map} +1 -1
  258. package/dist/{popover-menu-B9WWygpa.js → popover-menu-BYaCdFhf.js} +6 -6
  259. package/dist/{popover-menu-B9WWygpa.js.map → popover-menu-BYaCdFhf.js.map} +1 -1
  260. package/dist/{popover-7_m66eYW.js → popover-uwzX2vo7.js} +65 -63
  261. package/dist/popover-uwzX2vo7.js.map +1 -0
  262. package/dist/{primitives-BFK08r9M.js → primitives-Du64iDbb.js} +6 -6
  263. package/dist/{primitives-BFK08r9M.js.map → primitives-Du64iDbb.js.map} +1 -1
  264. package/dist/primitives.js +4 -4
  265. package/dist/{progress-B1VnCT0K.js → progress-BvF2oCdV.js} +5 -5
  266. package/dist/{progress-B1VnCT0K.js.map → progress-BvF2oCdV.js.map} +1 -1
  267. package/dist/{receipt-BVSOH3Xo.js → receipt-D789Jwyy.js} +6 -6
  268. package/dist/{receipt-BVSOH3Xo.js.map → receipt-D789Jwyy.js.map} +1 -1
  269. package/dist/{rich-text-GOUyKQ-s.js → rich-text-CLJEf76s.js} +4 -4
  270. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-CLJEf76s.js.map} +1 -1
  271. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-Cm1dpUpQ.js} +10 -10
  272. package/dist/{rich-text-editor-cRLC-eBK.js.map → rich-text-editor-Cm1dpUpQ.js.map} +1 -1
  273. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-L__e4x47.js} +4 -4
  274. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js.map → rich-text-editor-toolbar-L__e4x47.js.map} +1 -1
  275. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-La5RXsEk.js} +2 -2
  276. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-La5RXsEk.js.map} +1 -1
  277. package/dist/{separator-Bom7NsGO.js → separator-DAEV0w65.js} +2 -2
  278. package/dist/{separator-Bom7NsGO.js.map → separator-DAEV0w65.js.map} +1 -1
  279. package/dist/{separator-BDV-Y648.js → separator-GNfPG-90.js} +3 -3
  280. package/dist/{separator-BDV-Y648.js.map → separator-GNfPG-90.js.map} +1 -1
  281. package/dist/services/actions.js +1 -1
  282. package/dist/settings-BA2iboic.js +174 -0
  283. package/dist/settings-BA2iboic.js.map +1 -0
  284. package/dist/{sheet-CGpB3omz.js → sheet-DoAxTb2J.js} +75 -73
  285. package/dist/sheet-DoAxTb2J.js.map +1 -0
  286. package/dist/{sidebar-A0ElHINE.js → sidebar-ByqKR_W5.js} +13 -13
  287. package/dist/{sidebar-A0ElHINE.js.map → sidebar-ByqKR_W5.js.map} +1 -1
  288. package/dist/{sidebar-CPx_7YBa.js → sidebar-D2iSnGJ7.js} +11 -11
  289. package/dist/{sidebar-CPx_7YBa.js.map → sidebar-D2iSnGJ7.js.map} +1 -1
  290. package/dist/{skeleton-Byjnt7qr.js → skeleton-CUj8O5Bd.js} +3 -3
  291. package/dist/{skeleton-Byjnt7qr.js.map → skeleton-CUj8O5Bd.js.map} +1 -1
  292. package/dist/smart-card-CqkzQsK-.js +614 -0
  293. package/dist/smart-card-CqkzQsK-.js.map +1 -0
  294. package/dist/{structure-BmisBK-3.js → structure-C0V0_Fyf.js} +3 -3
  295. package/dist/{structure-BmisBK-3.js.map → structure-C0V0_Fyf.js.map} +1 -1
  296. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  297. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  298. package/dist/style.css +1 -1
  299. package/dist/{table-DsfzoUia.js → table-CpvnzJn9.js} +3 -3
  300. package/dist/{table-DsfzoUia.js.map → table-CpvnzJn9.js.map} +1 -1
  301. package/dist/{table-BweFy_P9.js → table-DH7rozUv.js} +19 -19
  302. package/dist/{table-BweFy_P9.js.map → table-DH7rozUv.js.map} +1 -1
  303. package/dist/{tabs-CDocW5D1.js → tabs-eqVsJZWO.js} +7 -7
  304. package/dist/{tabs-CDocW5D1.js.map → tabs-eqVsJZWO.js.map} +1 -1
  305. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-DXItiR0O.js} +101 -98
  306. package/dist/text-inputs-DXItiR0O.js.map +1 -0
  307. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  308. package/dist/text.styles-B64My8RZ.js.map +1 -0
  309. package/dist/theme.css +152 -112
  310. package/dist/{timelines-CwM_9IhD.js → timelines-DmtztAY_.js} +10 -10
  311. package/dist/{timelines-CwM_9IhD.js.map → timelines-DmtztAY_.js.map} +1 -1
  312. package/dist/{tooltip-yiRJUFjp.js → tooltip-B4hjKtoV.js} +3 -3
  313. package/dist/{tooltip-yiRJUFjp.js.map → tooltip-B4hjKtoV.js.map} +1 -1
  314. package/dist/{tree-WnKQzwbq.js → tree-CV11PURP.js} +8 -8
  315. package/dist/{tree-WnKQzwbq.js.map → tree-CV11PURP.js.map} +1 -1
  316. package/dist/typography/rich-text.js +1 -1
  317. package/dist/typography-CSyJrh28.js +117 -0
  318. package/dist/typography-CSyJrh28.js.map +1 -0
  319. package/dist/typography.js +1 -1
  320. package/dist/{ui-provider-C_U0Xma4.js → ui-provider-CQCuCBcy.js} +3 -3
  321. package/dist/ui-provider-CQCuCBcy.js.map +1 -0
  322. package/dist/ui-provider.js +1 -1
  323. package/dist/{upload-CXyxmQBP.js → upload-C9SA0X-8.js} +11 -11
  324. package/dist/{upload-CXyxmQBP.js.map → upload-C9SA0X-8.js.map} +1 -1
  325. package/dist/{upload-queue-Boscubn9.js → upload-queue-DhQJiSRc.js} +9 -9
  326. package/dist/{upload-queue-Boscubn9.js.map → upload-queue-DhQJiSRc.js.map} +1 -1
  327. package/dist/{usage-card-BhO5eqkX.js → usage-card-DVTRDmGz.js} +134 -133
  328. package/dist/usage-card-DVTRDmGz.js.map +1 -0
  329. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  330. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  331. package/dist/{utils-BRhFDwuU.js → utils-CF3c95Io.js} +68 -5
  332. package/dist/utils-CF3c95Io.js.map +1 -0
  333. package/dist/value-inputs-C0o70p-U.js +980 -0
  334. package/dist/value-inputs-C0o70p-U.js.map +1 -0
  335. package/dist/{value-typography-BP8OG6h5.js → value-typography-ClupF0Gz.js} +2 -2
  336. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-ClupF0Gz.js.map} +1 -1
  337. package/dist/workspace-9EFVXUyk.js +410 -0
  338. package/dist/workspace-9EFVXUyk.js.map +1 -0
  339. package/docs/consumer-skill/SKILL.md +14 -129
  340. package/docs/consumer-skill/examples/app-layout.tsx +22 -12
  341. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  342. package/docs/consumer-skill/examples/edit.tsx +30 -38
  343. package/docs/consumer-skill/examples/manifest.json +51 -1
  344. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  345. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  346. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +92 -0
  347. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  348. package/docs/consumer-skill/references/agents-md.md +17 -7
  349. package/docs/consumer-skill/references/authentication.md +42 -0
  350. package/docs/consumer-skill/references/component-contracts.json +319824 -0
  351. package/docs/consumer-skill/references/composition-mapping.md +92 -0
  352. package/docs/consumer-skill/references/composition.md +43 -19
  353. package/docs/consumer-skill/references/design-contract.md +32 -0
  354. package/docs/consumer-skill/references/discovery.md +84 -7
  355. package/docs/consumer-skill/references/installation.md +45 -35
  356. package/docs/consumer-skill/references/integration.md +6 -2
  357. package/docs/consumer-skill/references/public-api.json +1520 -66
  358. package/docs/consumer-skill/references/review.md +9 -4
  359. package/docs/consumer-skill/references/rhf-workflows.md +86 -0
  360. package/docs/consumer-skill/references/screen-archetypes.md +22 -0
  361. package/docs/consumer-skill/references/theming.md +8 -9
  362. package/docs/consumer-skill/references/tokens.json +12 -3
  363. package/docs/consumer-skill/references/workflows.md +7 -5
  364. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  365. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  366. package/docs/consumer-skill/scripts/composition.mjs +198 -0
  367. package/docs/consumer-skill/scripts/discovery.mjs +42 -10
  368. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  369. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  370. package/docs/consumer-skill/scripts/inspection.mjs +138 -0
  371. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  372. package/docs/consumer-skill/scripts/setup-skills.mjs +76 -0
  373. package/docs/consumer-skills/themelia-components/SKILL.md +30 -0
  374. package/docs/consumer-skills/themelia-composition/SKILL.md +35 -0
  375. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  376. package/docs/consumer-skills/themelia-foundation/SKILL.md +14 -0
  377. package/docs/consumer-skills/themelia-tokenization/SKILL.md +35 -0
  378. package/package.json +6 -4
  379. package/templates/README.md +39 -0
  380. package/templates/admin-shell-template.tsx +382 -0
  381. package/templates/analytics-operations-template.tsx +376 -0
  382. package/templates/customers-template.tsx +509 -0
  383. package/templates/index.ts +29 -0
  384. package/templates/orders-template.tsx +1102 -0
  385. package/templates/products-template.tsx +834 -0
  386. package/templates/user-permissions-template.tsx +450 -0
  387. package/dist/action-menu-CllU52Mm.js +0 -280
  388. package/dist/action-menu-CllU52Mm.js.map +0 -1
  389. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  390. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  391. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  392. package/dist/cards-BaBZR-AU.js.map +0 -1
  393. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  394. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  395. package/dist/combobox-C0EQW6dr.js.map +0 -1
  396. package/dist/combobox-xCQ2RMNE.js.map +0 -1
  397. package/dist/comments-BYYlTA8E.js.map +0 -1
  398. package/dist/containers-Mu1LMGV1.js +0 -103
  399. package/dist/containers-Mu1LMGV1.js.map +0 -1
  400. package/dist/data-display-DT_khPl_.js.map +0 -1
  401. package/dist/date-picker-ay0Pha_a.js.map +0 -1
  402. package/dist/date-pickers-Ccw8DL2b.js +0 -175
  403. package/dist/date-pickers-Ccw8DL2b.js.map +0 -1
  404. package/dist/form-field-CwH9y77i.js.map +0 -1
  405. package/dist/forms-B9G_xwzi.js.map +0 -1
  406. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  407. package/dist/input-DQdEd0YD.js +0 -263
  408. package/dist/input-DQdEd0YD.js.map +0 -1
  409. package/dist/item-K5_ghvze.js +0 -275
  410. package/dist/item-K5_ghvze.js.map +0 -1
  411. package/dist/metadata-list-8N16ZMW_.js +0 -405
  412. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  413. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  414. package/dist/overlays-DNWmZrJ4.js.map +0 -1
  415. package/dist/page-Bgl1F560.js +0 -224
  416. package/dist/page-Bgl1F560.js.map +0 -1
  417. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  418. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  419. package/dist/popover-7_m66eYW.js.map +0 -1
  420. package/dist/settings-ybnjVwbd.js +0 -171
  421. package/dist/settings-ybnjVwbd.js.map +0 -1
  422. package/dist/sheet-CGpB3omz.js.map +0 -1
  423. package/dist/smart-card-DiC5aac3.js +0 -604
  424. package/dist/smart-card-DiC5aac3.js.map +0 -1
  425. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  426. package/dist/text.styles-g4He6UIW.js.map +0 -1
  427. package/dist/typography-UTnveOEy.js +0 -117
  428. package/dist/typography-UTnveOEy.js.map +0 -1
  429. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  430. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  431. package/dist/utils-BRhFDwuU.js.map +0 -1
  432. package/dist/value-inputs-DXPDjvBU.js +0 -963
  433. package/dist/value-inputs-DXPDjvBU.js.map +0 -1
  434. package/dist/workspace-Cdrg7k9f.js +0 -408
  435. package/dist/workspace-Cdrg7k9f.js.map +0 -1
@@ -1,27 +1,28 @@
1
1
  "use client";
2
2
  import { mergeStrings as e, useStrings as t } from "./lib/strings.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";
3
+ import { t as n } from "./utils-CF3c95Io.js";
4
+ import { n as r } from "./buttons-BbfzgczK.js";
5
+ import { c as i, o as a, t as o } from "./typography-CSyJrh28.js";
6
6
  import { t as s } from "./focus-recipes-B653VaLq.js";
7
- import { t as c } from "./structure-BmisBK-3.js";
7
+ import { t as c } from "./structure-C0V0_Fyf.js";
8
8
  import { i as l } from "./tone-recipes-BPsRAvhu.js";
9
- import { t as u } from "./smart-card-DiC5aac3.js";
10
- import { t as d } from "./interaction-recipes-XR9ZpVYL.js";
11
- import { g as f, m as p, r as m } from "./primitives-BFK08r9M.js";
12
- import { t as h } from "./number-DbV1Dija.js";
13
- import { t as g } from "./icon-badge-DYKIwvOV.js";
14
- import { t as _ } from "./badge-HpFqoqSY.js";
15
- import { a as v, c as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./attachment-BxDfL2mw.js";
16
- import { t as E } from "./message-DZ_ruyUV.js";
17
- import { t as D } from "./code-block-DeneBJR_.js";
18
- import { useEffect as O, useRef as k, useState as A } from "react";
19
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
20
- import { AlertCircle as P, Bot as F, Brain as ee, Check as I, ChevronDown as L, ChevronRight as R, Circle as te, Copy as ne, Download as re, ExternalLink as z, FileText as ie, Globe as ae, Loader2 as B, MinusCircle as oe, RotateCcw as se, User as ce, X as V, XCircle as le } from "lucide-react";
9
+ import { t as u } from "./smart-card-CqkzQsK-.js";
10
+ import { n as d } from "./composition.recipes-COdiFhxB.js";
11
+ import { t as f } from "./interaction-recipes-XR9ZpVYL.js";
12
+ import { g as p, m, r as h } from "./primitives-Du64iDbb.js";
13
+ import { t as g } from "./number-E_OiIfJz.js";
14
+ import { t as _ } from "./icon-badge-COWbCCWu.js";
15
+ import { t as v } from "./badge-DErMA7ul.js";
16
+ import { a as y, c as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./attachment-DkoqHPPl.js";
17
+ import { t as D } from "./message-INU2xsxu.js";
18
+ import { t as O } from "./code-block-CGNaUtAE.js";
19
+ import { useEffect as k, useRef as A, useState as j } from "react";
20
+ import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
21
+ import { AlertCircle as F, Bot as ee, Brain as te, Check as I, ChevronDown as L, ChevronRight as R, Circle as ne, Copy as re, Download as ie, ExternalLink as z, FileText as ae, Globe as oe, Loader2 as B, MinusCircle as se, RotateCcw as ce, User as le, X as V, XCircle as ue } from "lucide-react";
21
22
  //#region src/components/blocks/ai/use-copy-feedback.ts
22
23
  function H(e, t) {
23
- let [n, r] = A(!1), [i, a] = A(!1), o = k(!1), s = k(0), c = k(void 0);
24
- return O(() => (o.current = !0, r(!1), a(!1), () => {
24
+ let [n, r] = j(!1), [i, a] = j(!1), o = A(!1), s = A(0), c = A(void 0);
25
+ return k(() => (o.current = !0, r(!1), a(!1), () => {
25
26
  o.current = !1, s.current += 1, clearTimeout(c.current);
26
27
  }), [t]), {
27
28
  copied: n,
@@ -49,14 +50,14 @@ var U = {
49
50
  };
50
51
  //#endregion
51
52
  //#region src/components/blocks/ai/ai-message-bubble/ai-message-bubble.tsx
52
- function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, timestamp: c, children: l, plainText: u, loading: d = !1, onCopy: f, onRegenerate: p, onCopyError: m, className: h, strings: _ }) {
53
- let v = t(U, _), y = u ?? (typeof l == "string" ? l : ""), { copied: b, failed: x, copy: S } = H(m, y), C = a ?? /* @__PURE__ */ M(g, {
54
- icon: e === "user" ? ce : F,
53
+ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, timestamp: c, children: l, plainText: u, loading: d = !1, onCopy: f, onRegenerate: p, onCopyError: m, className: h, strings: g }) {
54
+ let v = t(U, g), y = u ?? (typeof l == "string" ? l : ""), { copied: b, failed: x, copy: S } = H(m, y), C = a ?? /* @__PURE__ */ N(_, {
55
+ icon: e === "user" ? le : ee,
55
56
  tone: "neutral",
56
57
  size: "sm",
57
58
  "aria-label": o
58
59
  }), w = (f !== void 0 || u || p) && e === "assistant";
59
- return /* @__PURE__ */ M(E, {
60
+ return /* @__PURE__ */ N(D, {
60
61
  align: e === "user" ? "end" : "start",
61
62
  tone: e === "user" ? "primary" : e === "system" ? "muted" : "surface",
62
63
  avatar: C,
@@ -65,8 +66,8 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
65
66
  loading: d,
66
67
  strings: { loading: v.loading },
67
68
  className: n("ai-message-bubble--component", h),
68
- actions: w ? /* @__PURE__ */ N(j, { children: [
69
- /* @__PURE__ */ M(r, {
69
+ actions: w ? /* @__PURE__ */ P(M, { children: [
70
+ /* @__PURE__ */ N(r, {
70
71
  type: "button",
71
72
  tone: "secondary",
72
73
  buttonStyle: "ghost",
@@ -77,17 +78,17 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
77
78
  onClick: async () => {
78
79
  y && await S(y) && f?.();
79
80
  },
80
- children: /* @__PURE__ */ M(ne, {
81
+ children: /* @__PURE__ */ N(re, {
81
82
  "aria-hidden": "true",
82
83
  className: "size-icon-md"
83
84
  })
84
85
  }),
85
- b && /* @__PURE__ */ M(i, {
86
+ b && /* @__PURE__ */ N(i, {
86
87
  size: "xs",
87
88
  type: "success",
88
89
  children: v.copied
89
90
  }),
90
- p && /* @__PURE__ */ M(r, {
91
+ p && /* @__PURE__ */ N(r, {
91
92
  type: "button",
92
93
  tone: "secondary",
93
94
  buttonStyle: "ghost",
@@ -95,12 +96,12 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
95
96
  iconOnly: !0,
96
97
  "aria-label": v.regenerateAria,
97
98
  onClick: p,
98
- children: /* @__PURE__ */ M(se, {
99
+ children: /* @__PURE__ */ N(ce, {
99
100
  "aria-hidden": "true",
100
101
  className: "size-icon-md"
101
102
  })
102
103
  }),
103
- x && /* @__PURE__ */ M(i, {
104
+ x && /* @__PURE__ */ N(i, {
104
105
  role: "alert",
105
106
  size: "xs",
106
107
  type: "error",
@@ -123,7 +124,7 @@ var G = {
123
124
  args: "Arguments",
124
125
  result: "Result",
125
126
  durationLabel: "Took"
126
- }, ue = {
127
+ }, de = {
127
128
  pending: { tone: "secondary" },
128
129
  running: {
129
130
  tone: "info",
@@ -132,13 +133,13 @@ var G = {
132
133
  success: { tone: "success" },
133
134
  error: { tone: "destructive" }
134
135
  };
135
- function de({ label: e, ms: t }) {
136
- return /* @__PURE__ */ N("span", {
136
+ function fe({ label: e, ms: t }) {
137
+ return /* @__PURE__ */ P("span", {
137
138
  className: "inline-flex shrink-0 items-baseline gap-space-xs",
138
- children: [/* @__PURE__ */ M(f, {
139
+ children: [/* @__PURE__ */ N(p, {
139
140
  size: "xs",
140
141
  children: e
141
- }), /* @__PURE__ */ M(m, {
142
+ }), /* @__PURE__ */ N(h, {
142
143
  value: t,
143
144
  from: "milliseconds",
144
145
  maxParts: 1,
@@ -149,68 +150,68 @@ function de({ label: e, ms: t }) {
149
150
  })]
150
151
  });
151
152
  }
152
- function K({ name: e, status: i, icon: a, args: o, result: s, error: f, durationMs: m, expanded: h, defaultExpanded: v = !1, onExpandedChange: y, className: b, strings: x }) {
153
- let S = t(G, x), [C, w] = A(v), T = h ?? C, E = (e) => {
153
+ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, durationMs: p, expanded: h, defaultExpanded: g = !1, onExpandedChange: y, className: b, strings: x }) {
154
+ let S = t(G, x), [C, w] = j(g), T = h ?? C, E = (e) => {
154
155
  h === void 0 && w(e), y?.(e);
155
156
  }, D = {
156
157
  pending: S.pending,
157
158
  running: S.running,
158
159
  success: S.success,
159
160
  error: S.error
160
- }, O = ue[i], k = !!(o || s || f);
161
- return /* @__PURE__ */ N(u, {
161
+ }, O = de[i], k = !!(o || s || d);
162
+ return /* @__PURE__ */ P(u, {
162
163
  surface: "card",
163
164
  padding: "none",
164
165
  className: n("ai-tool-call--component", i === "error" && n(l.destructive.edge, l.destructive.wash), b),
165
- children: [/* @__PURE__ */ N(r, {
166
+ children: [/* @__PURE__ */ P(r, {
166
167
  type: "button",
167
168
  tone: "secondary",
168
169
  buttonStyle: "ghost",
169
170
  size: "md",
170
171
  onClick: () => k && E(!T),
171
- className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap", k ? `cursor-pointer ${d.rowHover}` : "cursor-default"),
172
+ className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap", k ? `cursor-pointer ${f.rowHover}` : "cursor-default"),
172
173
  "aria-expanded": k ? T : void 0,
173
174
  "aria-label": k ? T ? S.collapse : S.expand : void 0,
174
175
  children: [
175
- !!a && /* @__PURE__ */ M(g, {
176
+ !!a && /* @__PURE__ */ N(_, {
176
177
  icon: a,
177
178
  tone: "neutral",
178
179
  size: "md",
179
180
  shape: "square"
180
181
  }),
181
- /* @__PURE__ */ M("div", {
182
+ /* @__PURE__ */ N("div", {
182
183
  className: "min-w-0 flex-1",
183
- children: /* @__PURE__ */ M(p, {
184
+ children: /* @__PURE__ */ N(m, {
184
185
  type: "inherit",
185
186
  className: "truncate",
186
187
  children: e
187
188
  })
188
189
  }),
189
- /* @__PURE__ */ N("span", {
190
+ /* @__PURE__ */ P("span", {
190
191
  className: "ai-tool-call--meta order-last flex w-full flex-wrap items-center gap-space-sm @md/card:order-none @md/card:w-auto @md/card:flex-nowrap",
191
- children: [/* @__PURE__ */ M(_, {
192
+ children: [/* @__PURE__ */ N(v, {
192
193
  tone: O.tone,
193
194
  dot: O.live,
194
195
  pulse: O.live,
195
196
  children: D[i]
196
- }), !!m && /* @__PURE__ */ M(de, {
197
+ }), !!p && /* @__PURE__ */ N(fe, {
197
198
  label: S.durationLabel,
198
- ms: m
199
+ ms: p
199
200
  })]
200
201
  }),
201
- k && M(T ? L : R, { className: "size-icon-md shrink-0 text-muted-foreground" })
202
+ k && N(T ? L : R, { className: "size-icon-md shrink-0 text-muted-foreground" })
202
203
  ]
203
- }), !!T && k && /* @__PURE__ */ N(c, {
204
+ }), !!T && k && /* @__PURE__ */ P(c, {
204
205
  gap: "md",
205
206
  className: "ai-tool-call--details border-t border-border/60 bg-muted/30 px-space-lg py-space-md",
206
- children: [!!o && /* @__PURE__ */ M(q, {
207
+ children: [!!o && /* @__PURE__ */ N(q, {
207
208
  label: S.args,
208
209
  children: o
209
- }), i === "error" && f ? /* @__PURE__ */ M(q, {
210
+ }), i === "error" && d ? /* @__PURE__ */ N(q, {
210
211
  label: S.error,
211
212
  tone: "destructive",
212
- children: f
213
- }) : !!s && /* @__PURE__ */ M(q, {
213
+ children: d
214
+ }) : !!s && /* @__PURE__ */ N(q, {
214
215
  label: S.result,
215
216
  children: s
216
217
  })]
@@ -219,10 +220,10 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: f, duration
219
220
  }
220
221
  K.displayName = "AiToolCall";
221
222
  function q({ label: e, children: t, tone: r = "neutral" }) {
222
- return /* @__PURE__ */ N(c, {
223
+ return /* @__PURE__ */ P(c, {
223
224
  gap: "sm",
224
225
  className: "ai-tool-call--detail-block",
225
- children: [/* @__PURE__ */ M(a, { children: e }), /* @__PURE__ */ M("pre", {
226
+ children: [/* @__PURE__ */ N(a, { children: e }), /* @__PURE__ */ N("pre", {
226
227
  tabIndex: 0,
227
228
  className: n("box-border m-0 max-w-full overflow-x-auto rounded-inner bg-card text-card-foreground px-space-md py-space-md font-mono text-xs leading-relaxed", r === "destructive" && n(l.destructive.ink, l.destructive.wash)),
228
229
  children: t
@@ -232,7 +233,7 @@ function q({ label: e, children: t, tone: r = "neutral" }) {
232
233
  //#endregion
233
234
  //#region src/components/blocks/ai/ai-shimmer/ai-shimmer.tsx
234
235
  function J({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, size: a, className: o }) {
235
- if (t) return /* @__PURE__ */ M(i, {
236
+ if (t) return /* @__PURE__ */ N(i, {
236
237
  tag: "span",
237
238
  type: "secondary",
238
239
  size: a,
@@ -241,7 +242,7 @@ function J({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, siz
241
242
  children: e
242
243
  });
243
244
  let s = { "--ai-shimmer-duration": `${r}s` };
244
- return /* @__PURE__ */ M(i, {
245
+ return /* @__PURE__ */ N(i, {
245
246
  tag: "span",
246
247
  size: a,
247
248
  weight: "medium",
@@ -267,7 +268,7 @@ var Y = {
267
268
  //#region src/components/blocks/ai/ai-code-block/ai-code-block.tsx
268
269
  function X({ strings: e, className: r, onCopy: i, ...a }) {
269
270
  let o = t(Y, e);
270
- return /* @__PURE__ */ M(D, {
271
+ return /* @__PURE__ */ N(O, {
271
272
  ...a,
272
273
  className: n("ai-code-block--component", r),
273
274
  onCopy: i ? () => i() : void 0,
@@ -290,9 +291,9 @@ var Z = {
290
291
  };
291
292
  //#endregion
292
293
  //#region src/components/blocks/ai/ai-attachment/ai-attachment.tsx
293
- function fe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
294
+ function pe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
294
295
  let h = t(Z, m), g = !u && typeof l == "number" && l >= 0 && l < 1;
295
- return /* @__PURE__ */ N(T, {
296
+ return /* @__PURE__ */ P(E, {
296
297
  name: e,
297
298
  layout: "compact",
298
299
  status: u ? "error" : g ? "uploading" : void 0,
@@ -300,28 +301,28 @@ function fe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
300
301
  strings: { preview: () => h.openAria },
301
302
  className: n("ai-attachment--component inline-flex w-auto", p),
302
303
  children: [
303
- /* @__PURE__ */ M(S, {
304
+ /* @__PURE__ */ N(C, {
304
305
  variant: c ? "image" : "icon",
305
- children: c ? /* @__PURE__ */ M("img", {
306
+ children: c ? /* @__PURE__ */ N("img", {
306
307
  src: c,
307
308
  alt: ""
308
- }) : u ? /* @__PURE__ */ M(P, { "aria-hidden": "true" }) : s ? /* @__PURE__ */ M(s, { "aria-hidden": "true" }) : /* @__PURE__ */ M(v, {
309
+ }) : u ? /* @__PURE__ */ N(F, { "aria-hidden": "true" }) : s ? /* @__PURE__ */ N(s, { "aria-hidden": "true" }) : /* @__PURE__ */ N(y, {
309
310
  name: e,
310
311
  kind: o
311
312
  })
312
313
  }),
313
- /* @__PURE__ */ N(C, { children: [
314
- /* @__PURE__ */ M(y, {
314
+ /* @__PURE__ */ P(w, { children: [
315
+ /* @__PURE__ */ N(b, {
315
316
  title: e,
316
317
  children: e
317
318
  }),
318
- a && /* @__PURE__ */ M(b, {
319
+ a && /* @__PURE__ */ N(x, {
319
320
  clamp: 1,
320
321
  children: a
321
322
  }),
322
- u && /* @__PURE__ */ M(b, {
323
+ u && /* @__PURE__ */ N(x, {
323
324
  clamp: "none",
324
- children: /* @__PURE__ */ M(i, {
325
+ children: /* @__PURE__ */ N(i, {
325
326
  tag: "span",
326
327
  size: "xs",
327
328
  type: "error",
@@ -329,13 +330,13 @@ function fe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
329
330
  children: h.error ?? Z.error
330
331
  })
331
332
  }),
332
- g && /* @__PURE__ */ M(w, {
333
+ g && /* @__PURE__ */ N(T, {
333
334
  value: Math.round((l ?? 0) * 100),
334
335
  size: "sm",
335
336
  "aria-label": h.uploadProgressAria
336
337
  })
337
338
  ] }),
338
- f && /* @__PURE__ */ M(x, { children: /* @__PURE__ */ M(r, {
339
+ f && /* @__PURE__ */ N(S, { children: /* @__PURE__ */ N(r, {
339
340
  type: "button",
340
341
  tone: "secondary",
341
342
  buttonStyle: "ghost",
@@ -343,7 +344,7 @@ function fe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
343
344
  iconOnly: !0,
344
345
  "aria-label": h.removeAria,
345
346
  onClick: f,
346
- children: /* @__PURE__ */ M(V, {
347
+ children: /* @__PURE__ */ N(V, {
347
348
  "aria-hidden": "true",
348
349
  className: "size-icon-sm"
349
350
  })
@@ -351,17 +352,17 @@ function fe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
351
352
  ]
352
353
  });
353
354
  }
354
- fe.displayName = "AiAttachment";
355
+ pe.displayName = "AiAttachment";
355
356
  //#endregion
356
357
  //#region src/components/blocks/ai/ai-agent/types.ts
357
- var pe = { statusLabels: {
358
+ var me = { statusLabels: {
358
359
  idle: "Idle",
359
360
  thinking: "Thinking",
360
361
  working: "Working",
361
362
  done: "Done",
362
363
  error: "Error",
363
364
  offline: "Offline"
364
- } }, me = {
365
+ } }, he = {
365
366
  idle: "secondary",
366
367
  thinking: "info",
367
368
  working: "info",
@@ -369,68 +370,68 @@ var pe = { statusLabels: {
369
370
  error: "destructive",
370
371
  offline: "secondary"
371
372
  };
372
- function he({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", status: l, variant: d = "inline", trailing: f, className: p, strings: m }) {
373
- let h = t(pe, m), v = a ?? /* @__PURE__ */ M(g, {
374
- icon: r ?? F,
373
+ function ge({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", status: l, variant: d = "inline", trailing: f, className: p, strings: m }) {
374
+ let h = t(me, m), g = a ?? /* @__PURE__ */ N(_, {
375
+ icon: r ?? ee,
375
376
  tone: s,
376
377
  size: d === "card" ? "md" : "sm"
377
- }), y = l === "thinking" || l === "working", b = !!l && /* @__PURE__ */ M(_, {
378
- tone: me[l],
378
+ }), y = l === "thinking" || l === "working", b = !!l && /* @__PURE__ */ N(v, {
379
+ tone: he[l],
379
380
  dot: !0,
380
381
  pulse: y,
381
382
  children: h.statusLabels[l]
382
383
  });
383
- return d === "card" ? /* @__PURE__ */ M(u, {
384
+ return d === "card" ? /* @__PURE__ */ N(u, {
384
385
  surface: "card",
385
386
  padding: "sm",
386
387
  className: n("ai-agent--component", p),
387
- children: /* @__PURE__ */ N(c, {
388
+ children: /* @__PURE__ */ P(c, {
388
389
  direction: "horizontal",
389
390
  align: "center",
390
391
  gap: "lg",
391
392
  children: [
392
- v,
393
- /* @__PURE__ */ N(c, {
393
+ g,
394
+ /* @__PURE__ */ P(c, {
394
395
  gap: "dense",
395
396
  className: "min-w-0 flex-1",
396
- children: [/* @__PURE__ */ N("div", {
397
+ children: [/* @__PURE__ */ P("div", {
397
398
  className: "flex items-center gap-space-md",
398
- children: [/* @__PURE__ */ M(i, {
399
+ children: [/* @__PURE__ */ N(i, {
399
400
  type: "inherit",
400
401
  weight: "semibold",
401
402
  className: "truncate",
402
403
  children: e
403
404
  }), b]
404
- }), !!o && /* @__PURE__ */ M(i, {
405
+ }), !!o && /* @__PURE__ */ N(i, {
405
406
  size: "xs",
406
407
  type: "secondary",
407
408
  className: "line-clamp-1",
408
409
  children: o
409
410
  })]
410
411
  }),
411
- !!f && /* @__PURE__ */ M("div", {
412
+ !!f && /* @__PURE__ */ N("div", {
412
413
  className: "ml-auto flex items-center gap-space-xs",
413
414
  children: f
414
415
  })
415
416
  ]
416
417
  })
417
- }) : /* @__PURE__ */ N("div", {
418
+ }) : /* @__PURE__ */ P("div", {
418
419
  className: n("ai-agent--component", "inline-flex items-center gap-space-md", p),
419
420
  children: [
420
- v,
421
- /* @__PURE__ */ N(c, {
421
+ g,
422
+ /* @__PURE__ */ P(c, {
422
423
  direction: "horizontal",
423
424
  align: "center",
424
425
  gap: "md",
425
426
  className: "min-w-0",
426
427
  children: [
427
- /* @__PURE__ */ M(i, {
428
+ /* @__PURE__ */ N(i, {
428
429
  type: "inherit",
429
430
  weight: "medium",
430
431
  className: "truncate",
431
432
  children: e
432
433
  }),
433
- !!o && /* @__PURE__ */ M(i, {
434
+ !!o && /* @__PURE__ */ N(i, {
434
435
  size: "xs",
435
436
  type: "secondary",
436
437
  className: "truncate",
@@ -439,23 +440,23 @@ function he({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", sta
439
440
  b
440
441
  ]
441
442
  }),
442
- !!f && /* @__PURE__ */ M("div", {
443
+ !!f && /* @__PURE__ */ N("div", {
443
444
  className: "ml-1 flex items-center gap-space-xs",
444
445
  children: f
445
446
  })
446
447
  ]
447
448
  });
448
449
  }
449
- he.displayName = "AiAgent";
450
+ ge.displayName = "AiAgent";
450
451
  //#endregion
451
452
  //#region src/components/blocks/ai/ai-confirmation/types.ts
452
- var ge = {
453
+ var _e = {
453
454
  approve: "Approve",
454
455
  reject: "Reject",
455
456
  pending: "Awaiting your approval",
456
457
  approved: "Approved",
457
458
  rejected: "Rejected"
458
- }, _e = {
459
+ }, ve = {
459
460
  neutral: { icon: "neutral" },
460
461
  destructive: {
461
462
  ring: `${l.destructive.edge} ${l.destructive.wash}`,
@@ -474,93 +475,93 @@ var ge = {
474
475
  icon: "primary"
475
476
  }
476
477
  };
477
- function ve({ title: e, description: a, icon: o, tone: s = "neutral", status: l = "pending", onApprove: d, onReject: f, approveLabel: p, rejectLabel: m, details: h, className: _, strings: v }) {
478
- let y = t(ge, v), b = o, x = _e[s];
479
- return /* @__PURE__ */ M(u, {
478
+ function ye({ title: e, description: a, icon: o, tone: s = "neutral", status: l = "pending", onApprove: f, onReject: p, approveLabel: m, rejectLabel: h, details: g, className: v, strings: y }) {
479
+ let b = t(_e, y), x = o, S = ve[s];
480
+ return /* @__PURE__ */ N(u, {
480
481
  role: "region",
481
482
  "aria-live": "polite",
482
483
  surface: "card",
483
484
  padding: "sm",
484
- className: n("ai-confirmation--component", x.ring, _),
485
- children: /* @__PURE__ */ N(c, {
485
+ className: n("ai-confirmation--component", S.ring, v),
486
+ children: /* @__PURE__ */ P(c, {
486
487
  gap: "lg",
487
- children: [/* @__PURE__ */ N("div", {
488
+ children: [/* @__PURE__ */ P("div", {
488
489
  className: "ai-confirmation--header flex items-start gap-space-lg",
489
- children: [!!b && /* @__PURE__ */ M(g, {
490
- icon: b,
491
- tone: x.icon,
490
+ children: [!!x && /* @__PURE__ */ N(_, {
491
+ icon: x,
492
+ tone: S.icon,
492
493
  size: "md",
493
494
  shape: "square"
494
- }), /* @__PURE__ */ N(c, {
495
+ }), /* @__PURE__ */ P(c, {
495
496
  gap: "md",
496
497
  className: "min-w-0 flex-1",
497
- children: [/* @__PURE__ */ N(c, {
498
+ children: [/* @__PURE__ */ P(c, {
498
499
  gap: "normal",
499
- children: [/* @__PURE__ */ M(i, {
500
+ children: [/* @__PURE__ */ N(i, {
500
501
  type: "inherit",
501
502
  weight: "semibold",
502
503
  children: e
503
- }), !!a && /* @__PURE__ */ M(i, {
504
+ }), !!a && /* @__PURE__ */ N(i, {
504
505
  type: "secondary",
505
506
  children: a
506
507
  })]
507
- }), !!h && /* @__PURE__ */ M("div", {
508
+ }), !!g && /* @__PURE__ */ N("div", {
508
509
  className: "ai-confirmation--details min-w-0",
509
- children: h
510
+ children: g
510
511
  })]
511
512
  })]
512
- }), l === "pending" ? /* @__PURE__ */ N("div", {
513
+ }), l === "pending" ? /* @__PURE__ */ P("div", {
513
514
  className: "ai-confirmation--footer flex flex-col items-stretch gap-space-md @sm/card:flex-row @sm/card:items-center @sm/card:justify-between",
514
- children: [/* @__PURE__ */ M(i, {
515
+ children: [/* @__PURE__ */ N(i, {
515
516
  size: "xs",
516
517
  type: "secondary",
517
- children: y.pending
518
- }), /* @__PURE__ */ N(c, {
518
+ children: b.pending
519
+ }), /* @__PURE__ */ P(c, {
519
520
  direction: "horizontal",
520
521
  align: "center",
521
522
  justify: "end",
522
- gap: "md",
523
+ gap: d.commands,
523
524
  className: "ai-confirmation--actions",
524
- children: [/* @__PURE__ */ M(r, {
525
+ children: [/* @__PURE__ */ N(r, {
525
526
  type: "button",
526
527
  tone: "secondary",
527
528
  buttonStyle: "ghost",
528
- onClick: f,
529
- children: m ?? y.reject
530
- }), /* @__PURE__ */ M(r, {
529
+ onClick: p,
530
+ children: h ?? b.reject
531
+ }), /* @__PURE__ */ N(r, {
531
532
  type: "button",
532
533
  tone: s === "destructive" ? "destructive" : "primary",
533
- onClick: d,
534
- children: p ?? y.approve
534
+ onClick: f,
535
+ children: m ?? b.approve
535
536
  })]
536
537
  })]
537
- }) : /* @__PURE__ */ M("div", {
538
+ }) : /* @__PURE__ */ N("div", {
538
539
  className: "ai-confirmation--footer flex items-center gap-space-md",
539
- children: l === "approved" ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(I, {
540
+ children: l === "approved" ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(I, {
540
541
  "aria-hidden": "true",
541
542
  className: "size-icon-md text-success"
542
- }), /* @__PURE__ */ M(i, {
543
+ }), /* @__PURE__ */ N(i, {
543
544
  size: "xs",
544
545
  type: "success",
545
546
  weight: "medium",
546
- children: y.approved
547
- })] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(V, {
547
+ children: b.approved
548
+ })] }) : /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(V, {
548
549
  "aria-hidden": "true",
549
550
  className: "size-icon-md text-muted-foreground"
550
- }), /* @__PURE__ */ M(i, {
551
+ }), /* @__PURE__ */ N(i, {
551
552
  size: "xs",
552
553
  type: "secondary",
553
554
  weight: "medium",
554
- children: y.rejected
555
+ children: b.rejected
555
556
  })] })
556
557
  })]
557
558
  })
558
559
  });
559
560
  }
560
- ve.displayName = "AiConfirmation";
561
+ ye.displayName = "AiConfirmation";
561
562
  //#endregion
562
563
  //#region src/components/blocks/ai/ai-sources/types.ts
563
- var ye = {
564
+ var be = {
564
565
  title: "{{count}} sources",
565
566
  expand: "Show all sources",
566
567
  collapse: "Hide sources",
@@ -568,17 +569,17 @@ var ye = {
568
569
  };
569
570
  //#endregion
570
571
  //#region src/components/blocks/ai/ai-sources/ai-sources.tsx
571
- function be(e, t) {
572
+ function xe(e, t) {
572
573
  return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
573
574
  let r = t[n];
574
575
  return r === void 0 ? e : String(r);
575
576
  });
576
577
  }
577
- function xe({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, defaultExpanded: l = !1, onExpandedChange: f, onSelect: p, className: m, strings: h }) {
578
- let g = e(ye, h), [_, v] = A(l), y = s ?? _, b = (e) => {
579
- s === void 0 && v(e), f?.(e);
580
- }, x = be(g.title, { count: t.length });
581
- if (a === "avatars") return /* @__PURE__ */ M(Se, {
578
+ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, defaultExpanded: l = !1, onExpandedChange: d, onSelect: p, className: m, strings: h }) {
579
+ let g = e(be, h), [_, v] = j(l), y = s ?? _, b = (e) => {
580
+ s === void 0 && v(e), d?.(e);
581
+ }, x = xe(g.title, { count: t.length });
582
+ if (a === "avatars") return /* @__PURE__ */ N(Ce, {
582
583
  sources: t,
583
584
  max: o,
584
585
  title: x,
@@ -587,11 +588,11 @@ function xe({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
587
588
  className: n("ai-sources--component", m)
588
589
  });
589
590
  let S = y ? t : t.slice(0, 0);
590
- return /* @__PURE__ */ N(u, {
591
+ return /* @__PURE__ */ P(u, {
591
592
  surface: "card",
592
593
  padding: "none",
593
594
  className: n("ai-sources--component", m),
594
- children: [/* @__PURE__ */ N(r, {
595
+ children: [/* @__PURE__ */ P(r, {
595
596
  type: "button",
596
597
  tone: "secondary",
597
598
  buttonStyle: "ghost",
@@ -599,24 +600,24 @@ function xe({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
599
600
  onClick: () => b(!y),
600
601
  "aria-expanded": y,
601
602
  "aria-label": y ? g.collapse : g.expand,
602
- className: n("ai-sources--trigger h-auto min-h-0 w-full justify-start gap-space-md px-surface-xs py-row-y text-left", `rounded-inner ${d.rowHover}`),
603
+ className: n("ai-sources--trigger h-auto min-h-0 w-full justify-start gap-space-md px-surface-xs py-row-y text-left", `rounded-inner ${f.rowHover}`),
603
604
  children: [
604
- /* @__PURE__ */ M(Ce, { sources: t.slice(0, 4) }),
605
- /* @__PURE__ */ M(i, {
605
+ /* @__PURE__ */ N(we, { sources: t.slice(0, 4) }),
606
+ /* @__PURE__ */ N(i, {
606
607
  type: "inherit",
607
608
  weight: "medium",
608
609
  className: "flex-1",
609
610
  children: x
610
611
  }),
611
- M(y ? L : R, { className: "size-icon-md text-muted-foreground" })
612
+ N(y ? L : R, { className: "size-icon-md text-muted-foreground" })
612
613
  ]
613
- }), y && /* @__PURE__ */ M("div", {
614
+ }), y && /* @__PURE__ */ N("div", {
614
615
  className: "ai-sources--list border-t border-border/60 px-surface-xs py-row-y",
615
- children: /* @__PURE__ */ M(c, {
616
- render: /* @__PURE__ */ M("ol", {}),
616
+ children: /* @__PURE__ */ N(c, {
617
+ render: /* @__PURE__ */ N("ol", {}),
617
618
  gap: "2xs",
618
619
  className: "m-0 list-none p-0 font-sans",
619
- children: S.map((e, t) => /* @__PURE__ */ M(Te, {
620
+ children: S.map((e, t) => /* @__PURE__ */ N(Ee, {
620
621
  source: e,
621
622
  index: t + 1,
622
623
  onSelect: p ? () => p(e, t) : void 0,
@@ -626,26 +627,26 @@ function xe({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
626
627
  })]
627
628
  });
628
629
  }
629
- xe.displayName = "AiSources";
630
- function Se({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
630
+ Se.displayName = "AiSources";
631
+ function Ce({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
631
632
  let c = e.slice(0, t), l = e.length - c.length;
632
- return /* @__PURE__ */ N("div", {
633
+ return /* @__PURE__ */ P("div", {
633
634
  className: n("inline-flex items-center gap-space-md", s),
634
635
  children: [
635
- /* @__PURE__ */ M(Ce, {
636
+ /* @__PURE__ */ N(we, {
636
637
  sources: c,
637
638
  onSelect: o,
638
639
  visitLabel: a
639
640
  }),
640
- /* @__PURE__ */ M(i, {
641
+ /* @__PURE__ */ N(i, {
641
642
  size: "xs",
642
643
  type: "secondary",
643
644
  children: r
644
645
  }),
645
- l > 0 && /* @__PURE__ */ N(f, {
646
+ l > 0 && /* @__PURE__ */ P(p, {
646
647
  size: "xs",
647
648
  className: "tabular-nums",
648
- children: ["+", /* @__PURE__ */ M(h, {
649
+ children: ["+", /* @__PURE__ */ N(g, {
649
650
  value: l,
650
651
  size: "xs",
651
652
  type: "secondary",
@@ -655,67 +656,67 @@ function Se({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, classNam
655
656
  ]
656
657
  });
657
658
  }
658
- function Ce({ sources: e, onSelect: t, visitLabel: r }) {
659
- return /* @__PURE__ */ M("div", {
659
+ function we({ sources: e, onSelect: t, visitLabel: r }) {
660
+ return /* @__PURE__ */ N("div", {
660
661
  className: n("flex", t ? "gap-space-2xs" : "-space-x-space-sm"),
661
662
  children: e.map((e, n) => {
662
- let i = /* @__PURE__ */ M("span", {
663
+ let i = /* @__PURE__ */ N("span", {
663
664
  "aria-hidden": !0,
664
665
  title: typeof e.title == "string" ? e.title : void 0,
665
666
  className: "inline-flex size-icon-lg items-center justify-center overflow-hidden rounded-full border border-card bg-muted text-muted-foreground ring-1 ring-border/60",
666
- children: /* @__PURE__ */ M(we, { src: e.faviconUrl })
667
+ children: /* @__PURE__ */ N(Te, { src: e.faviconUrl })
667
668
  }, e.id);
668
- return t ? /* @__PURE__ */ M("button", {
669
+ return t ? /* @__PURE__ */ N("button", {
669
670
  type: "button",
670
671
  onClick: () => t(e, n),
671
672
  "aria-label": typeof e.title == "string" ? `${r}: ${e.title}` : r,
672
- className: `${d.nativeButtonReset} inline-flex size-action-xs shrink-0 items-center justify-center rounded-inner focus-visible:outline-none ${s.edge}`,
673
+ className: `${f.nativeButtonReset} inline-flex size-action-xs shrink-0 items-center justify-center rounded-inner focus-visible:outline-none ${s.edge}`,
673
674
  children: i
674
675
  }, e.id) : i;
675
676
  })
676
677
  });
677
678
  }
678
- function we({ src: e }) {
679
- let [t, n] = A(!1);
680
- return O(() => {
679
+ function Te({ src: e }) {
680
+ let [t, n] = j(!1);
681
+ return k(() => {
681
682
  n(!1);
682
- }, [e]), !e || t ? /* @__PURE__ */ M(ae, { className: "size-icon-sm" }) : /* @__PURE__ */ M("img", {
683
+ }, [e]), !e || t ? /* @__PURE__ */ N(oe, { className: "size-icon-sm" }) : /* @__PURE__ */ N("img", {
683
684
  src: e,
684
685
  alt: "",
685
686
  className: "size-full object-cover",
686
687
  onError: () => n(!0)
687
688
  });
688
689
  }
689
- function Te({ source: e, index: t, onSelect: r, visitLabel: a }) {
690
- let l = !!(e.url || r), u = n(d.nativeButtonReset, "group flex w-full items-start gap-space-lg rounded-inner px-row-x py-row-y-sm text-left text-foreground", l && `${d.rowHover} focus-visible:outline-none ${s.edge}`), f = /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(g, {
690
+ function Ee({ source: e, index: t, onSelect: r, visitLabel: a }) {
691
+ let l = !!(e.url || r), u = n(f.nativeButtonReset, "group flex w-full items-start gap-space-lg rounded-inner px-row-x py-row-y-sm text-left text-foreground", l && `${f.rowHover} focus-visible:outline-none ${s.edge}`), d = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(_, {
691
692
  tone: "neutral",
692
693
  size: "sm",
693
694
  "aria-hidden": !1,
694
695
  className: "shrink-0",
695
- children: /* @__PURE__ */ M(h, {
696
+ children: /* @__PURE__ */ N(g, {
696
697
  value: t,
697
698
  size: "xs",
698
699
  weight: "semibold",
699
700
  type: "secondary",
700
701
  align: "center"
701
702
  })
702
- }), /* @__PURE__ */ N(c, {
703
+ }), /* @__PURE__ */ P(c, {
703
704
  gap: "dense",
704
705
  className: "min-w-0 flex-1",
705
706
  children: [
706
- /* @__PURE__ */ N(i, {
707
+ /* @__PURE__ */ P(i, {
707
708
  type: "inherit",
708
709
  weight: "medium",
709
710
  className: "truncate",
710
- children: [e.title, !!e.url && /* @__PURE__ */ M(z, { className: "ml-1 inline size-icon-sm text-muted-foreground align-baseline" })]
711
+ children: [e.title, !!e.url && /* @__PURE__ */ N(z, { className: "ml-1 inline size-icon-sm text-muted-foreground align-baseline" })]
711
712
  }),
712
- !!e.publisher && /* @__PURE__ */ M(i, {
713
+ !!e.publisher && /* @__PURE__ */ N(i, {
713
714
  size: "xs",
714
715
  type: "secondary",
715
716
  className: "truncate",
716
717
  children: e.publisher
717
718
  }),
718
- !!e.snippet && /* @__PURE__ */ M(i, {
719
+ !!e.snippet && /* @__PURE__ */ N(i, {
719
720
  size: "xs",
720
721
  type: "secondary",
721
722
  className: "line-clamp-2",
@@ -723,7 +724,7 @@ function Te({ source: e, index: t, onSelect: r, visitLabel: a }) {
723
724
  })
724
725
  ]
725
726
  })] });
726
- return /* @__PURE__ */ M("li", { children: e.url && !r ? /* @__PURE__ */ M(o, {
727
+ return /* @__PURE__ */ N("li", { children: e.url && !r ? /* @__PURE__ */ N(o, {
727
728
  href: e.url,
728
729
  target: "_blank",
729
730
  rel: "noopener noreferrer",
@@ -731,21 +732,21 @@ function Te({ source: e, index: t, onSelect: r, visitLabel: a }) {
731
732
  underline: !1,
732
733
  className: u,
733
734
  "aria-label": a,
734
- children: f
735
- }) : r ? /* @__PURE__ */ M("button", {
735
+ children: d
736
+ }) : r ? /* @__PURE__ */ N("button", {
736
737
  type: "button",
737
738
  onClick: r,
738
739
  className: n(u, "h-auto justify-start whitespace-normal"),
739
740
  "aria-label": e.url ? a : void 0,
740
- children: f
741
- }) : /* @__PURE__ */ M("span", {
741
+ children: d
742
+ }) : /* @__PURE__ */ N("span", {
742
743
  className: u,
743
- children: f
744
+ children: d
744
745
  }) });
745
746
  }
746
747
  //#endregion
747
748
  //#region src/components/blocks/ai/ai-reasoning/types.ts
748
- var Ee = {
749
+ var De = {
749
750
  thinking: "Thinking…",
750
751
  thoughtFor: "Thought for {{duration}}",
751
752
  thoughtDone: "Reasoning complete",
@@ -754,11 +755,11 @@ var Ee = {
754
755
  };
755
756
  //#endregion
756
757
  //#region src/components/blocks/ai/ai-reasoning/ai-reasoning.tsx
757
- function De(e, t) {
758
+ function Oe(e, t) {
758
759
  let n = e.split(/\{\{\s*duration\s*\}\}/);
759
- return n.length === 1 ? e : /* @__PURE__ */ N(j, { children: [
760
+ return n.length === 1 ? e : /* @__PURE__ */ P(M, { children: [
760
761
  n[0],
761
- /* @__PURE__ */ M(m, {
762
+ /* @__PURE__ */ N(h, {
762
763
  value: t,
763
764
  maxParts: 1,
764
765
  align: "left"
@@ -766,30 +767,30 @@ function De(e, t) {
766
767
  n.slice(1).join("{{duration}}")
767
768
  ] });
768
769
  }
769
- function Oe({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: f, strings: p }) {
770
- let m = t(Ee, p), [h, g] = A(c), _ = l ?? h, v = (e) => {
770
+ function Q({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: d, strings: p }) {
771
+ let m = t(De, p), [h, g] = j(c), _ = l ?? h, v = (e) => {
771
772
  l === void 0 && g(e), u?.(e);
772
773
  };
773
- O(() => {
774
+ k(() => {
774
775
  a && s && !_ && v(!0), !a && s && _ && !c && l === void 0 && v(!1);
775
776
  }, [a]);
776
- let y = a ? /* @__PURE__ */ M(J, {
777
+ let y = a ? /* @__PURE__ */ N(J, {
777
778
  className: "flex-1",
778
779
  children: m.thinking
779
- }) : o === void 0 ? /* @__PURE__ */ M(i, {
780
+ }) : o === void 0 ? /* @__PURE__ */ N(i, {
780
781
  type: "inherit",
781
782
  weight: "medium",
782
783
  className: "flex-1",
783
784
  children: m.thoughtDone
784
- }) : /* @__PURE__ */ M(i, {
785
+ }) : /* @__PURE__ */ N(i, {
785
786
  type: "inherit",
786
787
  weight: "medium",
787
788
  className: "flex-1",
788
- children: De(m.thoughtFor, o)
789
+ children: Oe(m.thoughtFor, o)
789
790
  });
790
- return /* @__PURE__ */ N("div", {
791
- className: n("ai-reasoning--component", "overflow-hidden rounded-radius border border-border/60 bg-muted/30", f),
792
- children: [/* @__PURE__ */ N(r, {
791
+ return /* @__PURE__ */ P("div", {
792
+ className: n("ai-reasoning--component", "overflow-hidden rounded-radius border border-border/60 bg-muted/30", d),
793
+ children: [/* @__PURE__ */ P(r, {
793
794
  type: "button",
794
795
  tone: "secondary",
795
796
  buttonStyle: "ghost",
@@ -797,35 +798,35 @@ function Oe({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStr
797
798
  onClick: () => v(!_),
798
799
  "aria-expanded": _,
799
800
  "aria-label": _ ? m.collapseAria : m.expandAria,
800
- className: n("ai-reasoning--trigger h-auto min-h-0 w-full justify-start gap-space-md rounded-none px-surface-xs py-row-y text-left", d.rowHover),
801
+ className: n("ai-reasoning--trigger h-auto min-h-0 w-full justify-start gap-space-md rounded-none px-surface-xs py-row-y text-left", f.rowHover),
801
802
  children: [
802
- /* @__PURE__ */ M(ee, { className: "size-icon-md text-muted-foreground" }),
803
+ /* @__PURE__ */ N(te, { className: "size-icon-md text-muted-foreground" }),
803
804
  y,
804
- M(_ ? L : R, { className: "size-icon-md text-muted-foreground" })
805
+ N(_ ? L : R, { className: "size-icon-md text-muted-foreground" })
805
806
  ]
806
- }), _ && /* @__PURE__ */ M("div", {
807
+ }), _ && /* @__PURE__ */ N("div", {
807
808
  className: "ai-reasoning--body border-t border-border/60 p-surface-xs",
808
- children: typeof e == "string" ? /* @__PURE__ */ M(i, {
809
+ children: typeof e == "string" ? /* @__PURE__ */ N(i, {
809
810
  type: "secondary",
810
811
  lineHeight: "relaxed",
811
812
  className: "whitespace-pre-wrap",
812
813
  children: e
813
- }) : /* @__PURE__ */ M("div", {
814
+ }) : /* @__PURE__ */ N("div", {
814
815
  className: "whitespace-pre-wrap",
815
816
  children: e
816
817
  })
817
818
  })]
818
819
  });
819
820
  }
820
- Oe.displayName = "AiReasoning";
821
+ Q.displayName = "AiReasoning";
821
822
  //#endregion
822
823
  //#region src/components/blocks/ai/ai-chain-of-thought/types.ts
823
- var Q = {
824
+ var ke = {
824
825
  title: "Reasoning",
825
826
  streamingHint: "Working through the steps…"
826
- }, ke = {
827
+ }, Ae = {
827
828
  pending: {
828
- icon: te,
829
+ icon: ne,
829
830
  tone: "neutral"
830
831
  },
831
832
  active: {
@@ -839,60 +840,60 @@ var Q = {
839
840
  solid: !0
840
841
  },
841
842
  failed: {
842
- icon: P,
843
+ icon: F,
843
844
  tone: "destructive",
844
845
  solid: !0
845
846
  }
846
847
  };
847
- function Ae({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, strings: l }) {
848
- let d = t(Q, l);
849
- return /* @__PURE__ */ M(u, {
848
+ function je({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, strings: l }) {
849
+ let d = t(ke, l);
850
+ return /* @__PURE__ */ N(u, {
850
851
  surface: "card",
851
852
  className: n("ai-chain-of-thought--component", s),
852
- children: /* @__PURE__ */ N(c, {
853
+ children: /* @__PURE__ */ P(c, {
853
854
  gap: "lg",
854
- children: [!r && /* @__PURE__ */ M("div", {
855
+ children: [!r && /* @__PURE__ */ N("div", {
855
856
  className: "ai-chain-of-thought--header",
856
- children: /* @__PURE__ */ N(c, {
857
+ children: /* @__PURE__ */ P(c, {
857
858
  direction: "horizontal",
858
859
  gap: "sm",
859
860
  wrap: !1,
860
- children: [/* @__PURE__ */ M(a, { children: d.title }), o && /* @__PURE__ */ M(J, {
861
+ children: [/* @__PURE__ */ N(a, { children: d.title }), o && /* @__PURE__ */ N(J, {
861
862
  size: "xs",
862
863
  className: "ml-auto",
863
864
  children: d.streamingHint
864
865
  })]
865
866
  })
866
- }), /* @__PURE__ */ M("ol", {
867
+ }), /* @__PURE__ */ N("ol", {
867
868
  className: "ai-chain-of-thought--body m-0 list-none p-0 font-sans",
868
869
  children: e.map((t, r) => {
869
- let a = t.status ?? "pending", o = ke[a], s = t.icon ?? o.icon, l = r === e.length - 1;
870
- return /* @__PURE__ */ N("li", {
870
+ let a = t.status ?? "pending", o = Ae[a], s = t.icon ?? o.icon, l = r === e.length - 1;
871
+ return /* @__PURE__ */ P("li", {
871
872
  className: "ai-chain-of-thought--step flex gap-space-lg",
872
- children: [/* @__PURE__ */ N("span", {
873
+ children: [/* @__PURE__ */ P("span", {
873
874
  "aria-hidden": !0,
874
875
  className: "ai-chain-of-thought--marker flex shrink-0 flex-col items-center",
875
- children: [/* @__PURE__ */ M(g, {
876
+ children: [/* @__PURE__ */ N(_, {
876
877
  tone: o.tone,
877
878
  solid: o.solid,
878
879
  size: "sm",
879
- children: /* @__PURE__ */ M(s, { className: n(o.spin && "animate-spin") })
880
- }), !l && /* @__PURE__ */ M("span", { className: "ai-chain-of-thought--rail w-px flex-1 bg-border/60" })]
881
- }), /* @__PURE__ */ N(c, {
880
+ children: /* @__PURE__ */ N(s, { className: n(o.spin && "animate-spin") })
881
+ }), !l && /* @__PURE__ */ N("span", { className: "ai-chain-of-thought--rail w-px flex-1 bg-border/60" })]
882
+ }), /* @__PURE__ */ P(c, {
882
883
  gap: "md",
883
884
  className: n("min-w-0 flex-1", !l && "pb-space-lg"),
884
- children: [/* @__PURE__ */ N(c, {
885
+ children: [/* @__PURE__ */ P(c, {
885
886
  gap: "dense",
886
- children: [/* @__PURE__ */ M(i, {
887
+ children: [/* @__PURE__ */ N(i, {
887
888
  weight: a === "active" ? "semibold" : "medium",
888
889
  type: a === "pending" ? "secondary" : "inherit",
889
890
  children: t.title
890
- }), !!t.description && /* @__PURE__ */ M(i, {
891
+ }), !!t.description && /* @__PURE__ */ N(i, {
891
892
  size: "xs",
892
893
  type: "secondary",
893
894
  children: t.description
894
895
  })]
895
- }), !!t.body && /* @__PURE__ */ M("div", {
896
+ }), !!t.body && /* @__PURE__ */ N("div", {
896
897
  className: "ai-chain-of-thought--step-body min-w-0",
897
898
  children: t.body
898
899
  })]
@@ -903,10 +904,10 @@ function Ae({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
903
904
  })
904
905
  });
905
906
  }
906
- Ae.displayName = "AiChainOfThought";
907
+ je.displayName = "AiChainOfThought";
907
908
  //#endregion
908
909
  //#region src/components/blocks/ai/ai-task/types.ts
909
- var je = {
910
+ var Me = {
910
911
  statusLabels: {
911
912
  queued: "Queued",
912
913
  running: "Running",
@@ -917,9 +918,9 @@ var je = {
917
918
  },
918
919
  collapseSubtasks: "Collapse subtasks",
919
920
  expandSubtasks: "Expand subtasks"
920
- }, Me = {
921
+ }, Ne = {
921
922
  queued: {
922
- icon: te,
923
+ icon: ne,
923
924
  cls: "text-muted-foreground"
924
925
  },
925
926
  running: {
@@ -932,18 +933,18 @@ var je = {
932
933
  cls: "text-success"
933
934
  },
934
935
  failed: {
935
- icon: P,
936
+ icon: F,
936
937
  cls: "text-destructive"
937
938
  },
938
939
  cancelled: {
939
- icon: le,
940
+ icon: ue,
940
941
  cls: "text-muted-foreground"
941
942
  },
942
943
  skipped: {
943
- icon: oe,
944
+ icon: se,
944
945
  cls: "text-muted-foreground"
945
946
  }
946
- }, Ne = {
947
+ }, Pe = {
947
948
  queued: "secondary",
948
949
  running: "info",
949
950
  completed: "success",
@@ -951,13 +952,13 @@ var je = {
951
952
  cancelled: "secondary",
952
953
  skipped: "secondary"
953
954
  };
954
- function Pe({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
955
- let s = t(je, o);
956
- return /* @__PURE__ */ M(u, {
955
+ function Fe({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
956
+ let s = t(Me, o);
957
+ return /* @__PURE__ */ N(u, {
957
958
  surface: "card",
958
959
  padding: "none",
959
960
  className: n("ai-task--component", a),
960
- children: /* @__PURE__ */ M(Fe, {
961
+ children: /* @__PURE__ */ N(Ie, {
961
962
  item: e,
962
963
  depth: 0,
963
964
  density: r,
@@ -966,16 +967,16 @@ function Pe({ task: e, density: r = "compact", indent: i = 18, className: a, str
966
967
  })
967
968
  });
968
969
  }
969
- Pe.displayName = "AiTask";
970
- function Fe({ item: e, depth: t, density: a, indent: o, strings: s }) {
971
- let c = e.status ?? "queued", l = Me[c], u = e.icon ?? l.icon, d = !!e.children?.length, [f, p] = A(a === "expanded" || t === 0), m = c === "queued" || c === "cancelled" || c === "skipped";
972
- return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
970
+ Fe.displayName = "AiTask";
971
+ function Ie({ item: e, depth: t, density: a, indent: o, strings: s }) {
972
+ let c = e.status ?? "queued", l = Ne[c], u = e.icon ?? l.icon, d = !!e.children?.length, [f, p] = j(a === "expanded" || t === 0), m = c === "queued" || c === "cancelled" || c === "skipped";
973
+ return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("div", {
973
974
  className: n("ai-task--row grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-space-md gap-y-space-md px-row-x py-row-y", t > 0 && "border-t border-border/60"),
974
975
  style: { paddingInlineStart: `calc(var(--row-x) * var(--space-scale) + ${t * o}px)` },
975
976
  children: [
976
- /* @__PURE__ */ N("span", {
977
+ /* @__PURE__ */ P("span", {
977
978
  className: "ai-task--marker flex items-center gap-space-md",
978
- children: [d ? /* @__PURE__ */ M(r, {
979
+ children: [d ? /* @__PURE__ */ N(r, {
979
980
  type: "button",
980
981
  tone: "secondary",
981
982
  buttonStyle: "ghost",
@@ -985,43 +986,43 @@ function Fe({ item: e, depth: t, density: a, indent: o, strings: s }) {
985
986
  "aria-expanded": f,
986
987
  "aria-label": f ? s.collapseSubtasks : s.expandSubtasks,
987
988
  className: "ai-task--toggle",
988
- children: M(f ? L : R, {
989
+ children: N(f ? L : R, {
989
990
  "aria-hidden": "true",
990
991
  className: "size-icon-md"
991
992
  })
992
- }) : t > 0 && /* @__PURE__ */ M("span", {
993
+ }) : t > 0 && /* @__PURE__ */ N("span", {
993
994
  "aria-hidden": !0,
994
995
  className: "w-action-sm shrink-0"
995
- }), /* @__PURE__ */ M(u, {
996
+ }), /* @__PURE__ */ N(u, {
996
997
  "aria-hidden": "true",
997
998
  className: n("size-icon-md shrink-0", l.cls, l.spin && "animate-spin")
998
999
  })]
999
1000
  }),
1000
- /* @__PURE__ */ N("div", {
1001
+ /* @__PURE__ */ P("div", {
1001
1002
  className: "flex min-w-0 items-center gap-space-md",
1002
1003
  children: [
1003
- /* @__PURE__ */ M(i, {
1004
+ /* @__PURE__ */ N(i, {
1004
1005
  weight: c === "running" ? "semibold" : "medium",
1005
1006
  type: m ? "secondary" : "inherit",
1006
1007
  className: n("flex-1 truncate", c === "cancelled" && "line-through"),
1007
1008
  children: e.title
1008
1009
  }),
1009
- /* @__PURE__ */ M(_, {
1010
- tone: Ne[c],
1010
+ /* @__PURE__ */ N(v, {
1011
+ tone: Pe[c],
1011
1012
  children: s.statusLabels[c]
1012
1013
  }),
1013
- !!e.rightSlot && /* @__PURE__ */ M("span", {
1014
+ !!e.rightSlot && /* @__PURE__ */ N("span", {
1014
1015
  className: "tabular-nums text-muted-foreground",
1015
1016
  children: e.rightSlot
1016
1017
  })
1017
1018
  ]
1018
1019
  }),
1019
- !!e.body && /* @__PURE__ */ M("div", {
1020
+ !!e.body && /* @__PURE__ */ N("div", {
1020
1021
  className: "ai-task--body col-start-2 min-w-0",
1021
1022
  children: e.body
1022
1023
  })
1023
1024
  ]
1024
- }), d && f && /* @__PURE__ */ M("div", { children: e.children.map((e) => /* @__PURE__ */ M(Fe, {
1025
+ }), d && f && /* @__PURE__ */ N("div", { children: e.children.map((e) => /* @__PURE__ */ N(Ie, {
1025
1026
  item: e,
1026
1027
  depth: t + 1,
1027
1028
  density: a,
@@ -1042,54 +1043,54 @@ var $ = {
1042
1043
  };
1043
1044
  //#endregion
1044
1045
  //#region src/components/blocks/ai/ai-artifact/ai-artifact.tsx
1045
- function Ie({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapsed: d = !1, onOpen: f, actions: p, onDownload: m, onCopyError: h, className: _, strings: v }) {
1046
- let y = t($, v), b = o ?? ie, { copied: x, failed: S, copy: C } = H(h, s);
1047
- return /* @__PURE__ */ N(u, {
1046
+ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapsed: d = !1, onOpen: f, actions: p, onDownload: m, onCopyError: h, className: g, strings: v }) {
1047
+ let y = t($, v), b = o ?? ae, { copied: x, failed: S, copy: C } = H(h, s);
1048
+ return /* @__PURE__ */ P(u, {
1048
1049
  surface: "card",
1049
1050
  padding: "none",
1050
- className: n("ai-artifact--component", _),
1051
+ className: n("ai-artifact--component", g),
1051
1052
  children: [
1052
- /* @__PURE__ */ M("div", {
1053
+ /* @__PURE__ */ N("div", {
1053
1054
  className: "ai-artifact--header @container/ai-artifact-header border-b border-border/60 bg-muted/50 p-surface",
1054
- children: /* @__PURE__ */ N(c, {
1055
+ children: /* @__PURE__ */ P(c, {
1055
1056
  direction: "horizontal",
1056
1057
  align: "center",
1057
1058
  gap: "lg",
1058
- children: [/* @__PURE__ */ N("div", {
1059
+ children: [/* @__PURE__ */ P("div", {
1059
1060
  className: "ai-artifact--identity flex min-w-0 basis-full items-center gap-space-lg @sm/ai-artifact-header:flex-1 @sm/ai-artifact-header:basis-0",
1060
- children: [/* @__PURE__ */ M(g, {
1061
+ children: [/* @__PURE__ */ N(_, {
1061
1062
  icon: b,
1062
1063
  tone: "neutral",
1063
1064
  size: "md",
1064
1065
  shape: "square"
1065
- }), /* @__PURE__ */ N("div", {
1066
+ }), /* @__PURE__ */ P("div", {
1066
1067
  className: "min-w-0 flex-1",
1067
- children: [/* @__PURE__ */ M(i, {
1068
+ children: [/* @__PURE__ */ N(i, {
1068
1069
  type: "inherit",
1069
1070
  weight: "semibold",
1070
1071
  className: "break-words",
1071
1072
  children: e
1072
- }), !!a && /* @__PURE__ */ M(i, {
1073
+ }), !!a && /* @__PURE__ */ N(i, {
1073
1074
  size: "xs",
1074
1075
  type: "secondary",
1075
1076
  className: "break-words",
1076
1077
  children: a
1077
1078
  })]
1078
1079
  })]
1079
- }), /* @__PURE__ */ N("div", {
1080
+ }), /* @__PURE__ */ P("div", {
1080
1081
  className: "ai-artifact--actions flex flex-wrap items-center gap-space-xs",
1081
1082
  children: [
1082
1083
  p?.map((e) => {
1083
1084
  let t = e.icon;
1084
- return /* @__PURE__ */ N(r, {
1085
+ return /* @__PURE__ */ P(r, {
1085
1086
  type: "button",
1086
1087
  tone: "secondary",
1087
1088
  buttonStyle: "ghost",
1088
1089
  onClick: e.onSelect,
1089
- children: [!!t && /* @__PURE__ */ M(t, { className: "size-icon-md" }), e.label]
1090
+ children: [!!t && /* @__PURE__ */ N(t, { className: "size-icon-md" }), e.label]
1090
1091
  }, e.id);
1091
1092
  }),
1092
- !!s && /* @__PURE__ */ M(r, {
1093
+ !!s && /* @__PURE__ */ N(r, {
1093
1094
  type: "button",
1094
1095
  tone: "secondary",
1095
1096
  buttonStyle: "ghost",
@@ -1099,9 +1100,9 @@ function Ie({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1099
1100
  onClick: async () => {
1100
1101
  s && await C(s);
1101
1102
  },
1102
- children: x ? /* @__PURE__ */ M(I, { className: "size-icon-md text-success" }) : /* @__PURE__ */ M(ne, { className: "size-icon-md" })
1103
+ children: x ? /* @__PURE__ */ N(I, { className: "size-icon-md text-success" }) : /* @__PURE__ */ N(re, { className: "size-icon-md" })
1103
1104
  }),
1104
- !!m && /* @__PURE__ */ M(r, {
1105
+ !!m && /* @__PURE__ */ N(r, {
1105
1106
  type: "button",
1106
1107
  tone: "secondary",
1107
1108
  buttonStyle: "ghost",
@@ -1109,9 +1110,9 @@ function Ie({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1109
1110
  iconOnly: !0,
1110
1111
  "aria-label": y.downloadAria,
1111
1112
  onClick: m,
1112
- children: /* @__PURE__ */ M(re, { className: "size-icon-md" })
1113
+ children: /* @__PURE__ */ N(ie, { className: "size-icon-md" })
1113
1114
  }),
1114
- !!f && /* @__PURE__ */ M(r, {
1115
+ !!f && /* @__PURE__ */ N(r, {
1115
1116
  type: "button",
1116
1117
  tone: "secondary",
1117
1118
  buttonStyle: "ghost",
@@ -1119,19 +1120,19 @@ function Ie({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1119
1120
  iconOnly: !0,
1120
1121
  "aria-label": y.openAria,
1121
1122
  onClick: f,
1122
- children: /* @__PURE__ */ M(z, { className: "size-icon-md" })
1123
+ children: /* @__PURE__ */ N(z, { className: "size-icon-md" })
1123
1124
  })
1124
1125
  ]
1125
1126
  })]
1126
1127
  })
1127
1128
  }),
1128
- !d && !!l && /* @__PURE__ */ M("div", {
1129
+ !d && !!l && /* @__PURE__ */ N("div", {
1129
1130
  className: "ai-artifact--body min-w-0",
1130
1131
  children: l
1131
1132
  }),
1132
- S && /* @__PURE__ */ M("div", {
1133
+ S && /* @__PURE__ */ N("div", {
1133
1134
  className: "px-control py-row-y",
1134
- children: /* @__PURE__ */ M(i, {
1135
+ children: /* @__PURE__ */ N(i, {
1135
1136
  role: "alert",
1136
1137
  size: "xs",
1137
1138
  type: "error",
@@ -1141,8 +1142,8 @@ function Ie({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1141
1142
  ]
1142
1143
  });
1143
1144
  }
1144
- Ie.displayName = "AiArtifact";
1145
+ Le.displayName = "AiArtifact";
1145
1146
  //#endregion
1146
- export { U as C, W as S, X as _, Ae as a, K as b, Ee as c, ve as d, ge as f, Z as g, fe as h, je as i, xe as l, pe as m, $ as n, Q as o, he as p, Pe as r, Oe as s, Ie as t, ye as u, Y as v, G as x, J as y };
1147
+ export { U as C, W as S, X as _, je as a, K as b, De as c, ye as d, _e as f, Z as g, pe as h, Me as i, Se as l, me as m, $ as n, ke as o, ge as p, Fe as r, Q as s, Le as t, be as u, Y as v, G as x, J as y };
1147
1148
 
1148
- //# sourceMappingURL=ai-artifact-DvTwDVyL.js.map
1149
+ //# sourceMappingURL=ai-artifact-BZUGwBq6.js.map