themelia-react-ui 0.0.0-stage → 1.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 (1338) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/LICENSE +21 -0
  3. package/README.md +249 -2
  4. package/THIRD_PARTY_NOTICES.md +65 -0
  5. package/dist/accordion-BRWh3BM1.js +205 -0
  6. package/dist/accordion-BRWh3BM1.js.map +1 -0
  7. package/dist/action-menu-Cx3SdfbN.js +265 -0
  8. package/dist/action-menu-Cx3SdfbN.js.map +1 -0
  9. package/dist/action-presentation.js +11 -0
  10. package/dist/action-presentation.js.map +1 -0
  11. package/dist/affordance-geometry.generated-DXl-Zb3Z.js +23 -0
  12. package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +1 -0
  13. package/dist/ai-artifact-DkOArd3-.js +1121 -0
  14. package/dist/ai-artifact-DkOArd3-.js.map +1 -0
  15. package/dist/anchored-positioning-DPnKTvNs.js +6 -0
  16. package/dist/anchored-positioning-DPnKTvNs.js.map +1 -0
  17. package/dist/app-shell-BH_bGcE2.js +235 -0
  18. package/dist/app-shell-BH_bGcE2.js.map +1 -0
  19. package/dist/attachment-DsLgNHXt.js +244 -0
  20. package/dist/attachment-DsLgNHXt.js.map +1 -0
  21. package/dist/auth-BDB1V_2q.js +704 -0
  22. package/dist/auth-BDB1V_2q.js.map +1 -0
  23. package/dist/avatar-CsnWaYmt.js +173 -0
  24. package/dist/avatar-CsnWaYmt.js.map +1 -0
  25. package/dist/badge-BZXZT9wd.js +92 -0
  26. package/dist/badge-BZXZT9wd.js.map +1 -0
  27. package/dist/base/accordion.js +3 -0
  28. package/dist/base/action-menu.js +3 -0
  29. package/dist/base/attachment.js +3 -0
  30. package/dist/base/avatar.js +3 -0
  31. package/dist/base/badge.js +3 -0
  32. package/dist/base/buttons.js +3 -0
  33. package/dist/base/cards.js +4 -0
  34. package/dist/base/carousel.js +251 -0
  35. package/dist/base/carousel.js.map +1 -0
  36. package/dist/base/cascader.js +361 -0
  37. package/dist/base/cascader.js.map +1 -0
  38. package/dist/base/chart.js +3 -0
  39. package/dist/base/choice-inputs.js +3 -0
  40. package/dist/base/code-block.js +3 -0
  41. package/dist/base/combobox.js +3 -0
  42. package/dist/base/command.js +3 -0
  43. package/dist/base/copyable.js +3 -0
  44. package/dist/base/date-pickers.js +4 -0
  45. package/dist/base/display.js +8 -0
  46. package/dist/base/feedback.js +4 -0
  47. package/dist/base/forms-numeric.js +3 -0
  48. package/dist/base/forms.js +4 -0
  49. package/dist/base/item.js +3 -0
  50. package/dist/base/media-gallery.js +3 -0
  51. package/dist/base/navigation.js +8 -0
  52. package/dist/base/popover-menu.js +3 -0
  53. package/dist/base/popover.js +3 -0
  54. package/dist/base/qr-code.js +63 -0
  55. package/dist/base/qr-code.js.map +1 -0
  56. package/dist/base/repeaters.js +620 -0
  57. package/dist/base/repeaters.js.map +1 -0
  58. package/dist/base/sheet.js +3 -0
  59. package/dist/base/sidebar.js +3 -0
  60. package/dist/base/signature-pad.js +364 -0
  61. package/dist/base/signature-pad.js.map +1 -0
  62. package/dist/base/skeleton.js +3 -0
  63. package/dist/base/spinner.js +3 -0
  64. package/dist/base/structure.js +3 -0
  65. package/dist/base/table.js +3 -0
  66. package/dist/base/text-inputs.js +4 -0
  67. package/dist/base/toaster.js +102 -0
  68. package/dist/base/toaster.js.map +1 -0
  69. package/dist/base/tree.js +3 -0
  70. package/dist/base/upload-queue.js +3 -0
  71. package/dist/base/upload.js +5 -0
  72. package/dist/base/value-inputs.js +3 -0
  73. package/dist/blocks/admin.js +478 -0
  74. package/dist/blocks/admin.js.map +1 -0
  75. package/dist/blocks/ai.js +1021 -0
  76. package/dist/blocks/ai.js.map +1 -0
  77. package/dist/blocks/analytics.js +1499 -0
  78. package/dist/blocks/analytics.js.map +1 -0
  79. package/dist/blocks/collaboration.js +3 -0
  80. package/dist/blocks/commerce/receipt.js +3 -0
  81. package/dist/blocks/commerce.js +3393 -0
  82. package/dist/blocks/commerce.js.map +1 -0
  83. package/dist/blocks/data-display.js +3 -0
  84. package/dist/blocks/onboarding.js +128 -0
  85. package/dist/blocks/onboarding.js.map +1 -0
  86. package/dist/blocks/timelines.js +3 -0
  87. package/dist/breadcrumbs-DdQ_I5ra.js +127 -0
  88. package/dist/breadcrumbs-DdQ_I5ra.js.map +1 -0
  89. package/dist/button-BS6l5JUw.js +47 -0
  90. package/dist/button-BS6l5JUw.js.map +1 -0
  91. package/dist/buttons-Co6GavvM.js +674 -0
  92. package/dist/buttons-Co6GavvM.js.map +1 -0
  93. package/dist/cards-BMB0laLG.js +66 -0
  94. package/dist/cards-BMB0laLG.js.map +1 -0
  95. package/dist/chart-DVfcwQu6.js +149 -0
  96. package/dist/chart-DVfcwQu6.js.map +1 -0
  97. package/dist/choice-inputs-CavA-SGV.js +644 -0
  98. package/dist/choice-inputs-CavA-SGV.js.map +1 -0
  99. package/dist/code-block-DIlqzoiD.js +183 -0
  100. package/dist/code-block-DIlqzoiD.js.map +1 -0
  101. package/dist/collapsible-DsnktFNv.js +81 -0
  102. package/dist/collapsible-DsnktFNv.js.map +1 -0
  103. package/dist/collection-content-C4fthJV_.js +53 -0
  104. package/dist/collection-content-C4fthJV_.js.map +1 -0
  105. package/dist/combobox-CHD750do.js +850 -0
  106. package/dist/combobox-CHD750do.js.map +1 -0
  107. package/dist/combobox-HDftpzxt.js +273 -0
  108. package/dist/combobox-HDftpzxt.js.map +1 -0
  109. package/dist/command-D0kWBZfd.js +421 -0
  110. package/dist/command-D0kWBZfd.js.map +1 -0
  111. package/dist/comments-CvYeglMS.js +1132 -0
  112. package/dist/comments-CvYeglMS.js.map +1 -0
  113. package/dist/component-vocabulary.js +26 -0
  114. package/dist/component-vocabulary.js.map +1 -0
  115. package/dist/components/base/accordion/accordion-variants.d.ts +36 -0
  116. package/dist/components/base/accordion/accordion.d.ts +20 -0
  117. package/dist/components/base/accordion/accordion.strings.d.ts +15 -0
  118. package/dist/components/base/accordion/accordion.types.d.ts +74 -0
  119. package/dist/components/base/accordion/index.d.ts +4 -0
  120. package/dist/components/base/accordion/smart-accordion.d.ts +7 -0
  121. package/dist/components/base/action-menu/action-menu.d.ts +147 -0
  122. package/dist/components/base/action-menu/action-menu.strings.d.ts +4 -0
  123. package/dist/components/base/action-menu/index.d.ts +11 -0
  124. package/dist/components/base/attachment/attachment.d.ts +17 -0
  125. package/dist/components/base/attachment/attachment.types.d.ts +49 -0
  126. package/dist/components/base/attachment/index.d.ts +2 -0
  127. package/dist/components/base/avatar/avatar.d.ts +24 -0
  128. package/dist/components/base/avatar/index.d.ts +14 -0
  129. package/dist/components/base/avatar/stacked-avatars.d.ts +39 -0
  130. package/dist/components/base/badge/badge.d.ts +22 -0
  131. package/dist/components/base/badge/badge.recipes.d.ts +20 -0
  132. package/dist/components/base/badge/index.d.ts +2 -0
  133. package/dist/components/base/buttons/base-button.d.ts +24 -0
  134. package/dist/components/base/buttons/button-group.d.ts +28 -0
  135. package/dist/components/base/buttons/button-group.recipes.d.ts +6 -0
  136. package/dist/components/base/buttons/button.d.ts +47 -0
  137. package/dist/components/base/buttons/button.recipes.d.ts +23 -0
  138. package/dist/components/base/buttons/button.variants.d.ts +8 -0
  139. package/dist/components/base/buttons/index.d.ts +7 -0
  140. package/dist/components/base/buttons/loader-button.d.ts +40 -0
  141. package/dist/components/base/buttons/text-button.d.ts +19 -0
  142. package/dist/components/base/buttons/tooltip-button.d.ts +7 -0
  143. package/dist/components/base/cards/card-actions.d.ts +41 -0
  144. package/dist/components/base/cards/card.recipes.d.ts +28 -0
  145. package/dist/components/base/cards/index.d.ts +5 -0
  146. package/dist/components/base/cards/partials/card-primitives.d.ts +21 -0
  147. package/dist/components/base/cards/partials/has-renderable-content.d.ts +8 -0
  148. package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +8 -0
  149. package/dist/components/base/cards/partials/smart-card-alert.d.ts +20 -0
  150. package/dist/components/base/cards/partials/smart-card-header-row.d.ts +33 -0
  151. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +16 -0
  152. package/dist/components/base/cards/smart-card.d.ts +9 -0
  153. package/dist/components/base/cards/smart-card.strings.d.ts +18 -0
  154. package/dist/components/base/cards/smart-card.tokens.d.ts +44 -0
  155. package/dist/components/base/cards/smart-card.types.d.ts +144 -0
  156. package/dist/components/base/carousel/carousel.d.ts +105 -0
  157. package/dist/components/base/carousel/carousel.strings.d.ts +6 -0
  158. package/dist/components/base/carousel/index.d.ts +2 -0
  159. package/dist/components/base/cascader/cascader.d.ts +2 -0
  160. package/dist/components/base/cascader/cascader.types.d.ts +57 -0
  161. package/dist/components/base/cascader/index.d.ts +2 -0
  162. package/dist/components/base/chart/chart.d.ts +99 -0
  163. package/dist/components/base/chart/index.d.ts +9 -0
  164. package/dist/components/base/choice-inputs/card-checkbox-group.d.ts +27 -0
  165. package/dist/components/base/choice-inputs/card-radio-group.d.ts +19 -0
  166. package/dist/components/base/choice-inputs/checkbox.d.ts +17 -0
  167. package/dist/components/base/choice-inputs/choice-types.d.ts +57 -0
  168. package/dist/components/base/choice-inputs/index.d.ts +28 -0
  169. package/dist/components/base/choice-inputs/list-radio-group.d.ts +13 -0
  170. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +27 -0
  171. package/dist/components/base/choice-inputs/select-popup.d.ts +26 -0
  172. package/dist/components/base/choice-inputs/select.d.ts +94 -0
  173. package/dist/components/base/choice-inputs/switch-card.d.ts +36 -0
  174. package/dist/components/base/choice-inputs/switch.d.ts +38 -0
  175. package/dist/components/base/choice-inputs/toggle-field.d.ts +41 -0
  176. package/dist/components/base/code-block/code-block.d.ts +3 -0
  177. package/dist/components/base/code-block/code-block.types.d.ts +46 -0
  178. package/dist/components/base/code-block/index.d.ts +2 -0
  179. package/dist/components/base/code-block/use-code-copy.d.ts +6 -0
  180. package/dist/components/base/combobox/index.d.ts +27 -0
  181. package/dist/components/base/command/command.d.ts +73 -0
  182. package/dist/components/base/command/index.d.ts +1 -0
  183. package/dist/components/base/copyable/copyable.d.ts +36 -0
  184. package/dist/components/base/copyable/index.d.ts +1 -0
  185. package/dist/components/base/date-pickers/date-picker-footer.d.ts +14 -0
  186. package/dist/components/base/date-pickers/date-picker-header.d.ts +10 -0
  187. package/dist/components/base/date-pickers/date-picker-helpers.d.ts +87 -0
  188. package/dist/components/base/date-pickers/date-picker-internals.d.ts +10 -0
  189. package/dist/components/base/date-pickers/date-picker-multiple.d.ts +20 -0
  190. package/dist/components/base/date-pickers/date-picker-range.d.ts +15 -0
  191. package/dist/components/base/date-pickers/date-picker-single.d.ts +15 -0
  192. package/dist/components/base/date-pickers/date-picker.d.ts +3 -0
  193. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +18 -0
  194. package/dist/components/base/date-pickers/date-pickers.strings.d.ts +14 -0
  195. package/dist/components/base/date-pickers/datepicker.types.d.ts +285 -0
  196. package/dist/components/base/date-pickers/index.d.ts +7 -0
  197. package/dist/components/base/date-pickers/month-year-picker.d.ts +4 -0
  198. package/dist/components/base/date-pickers/time-picker.d.ts +70 -0
  199. package/dist/components/base/display/alert-dialog.d.ts +25 -0
  200. package/dist/components/base/display/boolean-indicator.d.ts +25 -0
  201. package/dist/components/base/display/collapsible.d.ts +21 -0
  202. package/dist/components/base/display/content-block.d.ts +73 -0
  203. package/dist/components/base/display/content-block.strings.d.ts +5 -0
  204. package/dist/components/base/display/date-block.d.ts +70 -0
  205. package/dist/components/base/display/dialog.d.ts +35 -0
  206. package/dist/components/base/display/icon-badge/icon-badge.d.ts +45 -0
  207. package/dist/components/base/display/icon-badge/index.d.ts +1 -0
  208. package/dist/components/base/display/icon-size.d.ts +5 -0
  209. package/dist/components/base/display/index.d.ts +31 -0
  210. package/dist/components/base/display/placeholder-pattern.d.ts +7 -0
  211. package/dist/components/base/display/scroll-area.d.ts +12 -0
  212. package/dist/components/base/display/separator.d.ts +10 -0
  213. package/dist/components/base/display/surface-title.d.ts +10 -0
  214. package/dist/components/base/display/tooltip.d.ts +28 -0
  215. package/dist/components/base/display/visually-hidden.d.ts +14 -0
  216. package/dist/components/base/feedback/alert.d.ts +49 -0
  217. package/dist/components/base/feedback/empty.d.ts +48 -0
  218. package/dist/components/base/feedback/index.d.ts +27 -0
  219. package/dist/components/base/feedback/progress.d.ts +81 -0
  220. package/dist/components/base/feedback/progress.strings.d.ts +5 -0
  221. package/dist/components/base/feedback/state-display.d.ts +39 -0
  222. package/dist/components/base/forms/controlled-form-field.d.ts +32 -0
  223. package/dist/components/base/forms/controlled-form-field.strings.d.ts +7 -0
  224. package/dist/components/base/forms/form-field.d.ts +38 -0
  225. package/dist/components/base/forms/form-sizing.d.ts +86 -0
  226. package/dist/components/base/forms/index.d.ts +4 -0
  227. package/dist/components/base/forms/operation-password-form.d.ts +16 -0
  228. package/dist/components/base/forms/workflow.d.ts +68 -0
  229. package/dist/components/base/forms-numeric/coordinates-input.d.ts +47 -0
  230. package/dist/components/base/forms-numeric/currency-input.d.ts +44 -0
  231. package/dist/components/base/forms-numeric/decimal-input.d.ts +53 -0
  232. package/dist/components/base/forms-numeric/dimensions-input.d.ts +79 -0
  233. package/dist/components/base/forms-numeric/index.d.ts +21 -0
  234. package/dist/components/base/forms-numeric/money-input.d.ts +67 -0
  235. package/dist/components/base/forms-numeric/money-input.strings.d.ts +6 -0
  236. package/dist/components/base/forms-numeric/percentage-input.d.ts +8 -0
  237. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +12 -0
  238. package/dist/components/base/forms-numeric/weight-input.d.ts +54 -0
  239. package/dist/components/base/item/index.d.ts +2 -0
  240. package/dist/components/base/item/item.d.ts +12 -0
  241. package/dist/components/base/item/item.types.d.ts +100 -0
  242. package/dist/components/base/media-gallery/index.d.ts +2 -0
  243. package/dist/components/base/media-gallery/media-gallery.d.ts +45 -0
  244. package/dist/components/base/navigation/breadcrumbs.d.ts +37 -0
  245. package/dist/components/base/navigation/dropdown-menu.d.ts +45 -0
  246. package/dist/components/base/navigation/index.d.ts +21 -0
  247. package/dist/components/base/navigation/language-switcher.d.ts +12 -0
  248. package/dist/components/base/navigation/navigation-tabs.d.ts +40 -0
  249. package/dist/components/base/navigation/overflow-tab-bar.d.ts +43 -0
  250. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  251. package/dist/components/base/navigation/page-header/page-header.d.ts +88 -0
  252. package/dist/components/base/navigation/pagination.d.ts +61 -0
  253. package/dist/components/base/navigation/tab-scroll-viewport.d.ts +12 -0
  254. package/dist/components/base/navigation/tabs.d.ts +23 -0
  255. package/dist/components/base/popover/collection-content.d.ts +22 -0
  256. package/dist/components/base/popover/index.d.ts +1 -0
  257. package/dist/components/base/popover/popover.d.ts +54 -0
  258. package/dist/components/base/popover/popover.recipes.d.ts +29 -0
  259. package/dist/components/base/popover-menu/index.d.ts +3 -0
  260. package/dist/components/base/popover-menu/popover-menu.d.ts +82 -0
  261. package/dist/components/base/popover-menu/popover-menu.types.d.ts +30 -0
  262. package/dist/components/base/qr-code/index.d.ts +8 -0
  263. package/dist/components/base/qr-code/qr-code.d.ts +13 -0
  264. package/dist/components/base/repeaters/index.d.ts +21 -0
  265. package/dist/components/base/repeaters/key-value-editor.d.ts +27 -0
  266. package/dist/components/base/repeaters/localized-object-field.d.ts +35 -0
  267. package/dist/components/base/repeaters/localized-string-field.d.ts +25 -0
  268. package/dist/components/base/repeaters/localized-string-repeater.d.ts +44 -0
  269. package/dist/components/base/repeaters/object-repeater.d.ts +66 -0
  270. package/dist/components/base/repeaters/repeater.d.ts +87 -0
  271. package/dist/components/base/repeaters/repeaters.strings.d.ts +16 -0
  272. package/dist/components/base/repeaters/string-repeater.d.ts +65 -0
  273. package/dist/components/base/repeaters/string-repeater.utils.d.ts +2 -0
  274. package/dist/components/base/sheet/index.d.ts +1 -0
  275. package/dist/components/base/sheet/sheet.d.ts +35 -0
  276. package/dist/components/base/sidebar/index.d.ts +6 -0
  277. package/dist/components/base/sidebar/sidebar.d.ts +135 -0
  278. package/dist/components/base/signature-pad/index.d.ts +4 -0
  279. package/dist/components/base/signature-pad/signature-pad.d.ts +4 -0
  280. package/dist/components/base/signature-pad/signature-pad.types.d.ts +66 -0
  281. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +8 -0
  282. package/dist/components/base/skeleton/index.d.ts +14 -0
  283. package/dist/components/base/skeleton/skeleton.d.ts +54 -0
  284. package/dist/components/base/spinner/index.d.ts +1 -0
  285. package/dist/components/base/spinner/spinner.d.ts +32 -0
  286. package/dist/components/base/structure/adaptive-grid.d.ts +3 -0
  287. package/dist/components/base/structure/grid-cell.d.ts +3 -0
  288. package/dist/components/base/structure/grid.d.ts +3 -0
  289. package/dist/components/base/structure/index.d.ts +5 -0
  290. package/dist/components/base/structure/stack.d.ts +3 -0
  291. package/dist/components/base/structure/structure.context.d.ts +6 -0
  292. package/dist/components/base/structure/structure.recipes.d.ts +27 -0
  293. package/dist/components/base/structure/structure.responsive.d.ts +5 -0
  294. package/dist/components/base/structure/structure.types.d.ts +51 -0
  295. package/dist/components/base/table/index.d.ts +18 -0
  296. package/dist/components/base/text-inputs/hooks/index.d.ts +1 -0
  297. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +48 -0
  298. package/dist/components/base/text-inputs/index.d.ts +21 -0
  299. package/dist/components/base/text-inputs/input-group.d.ts +46 -0
  300. package/dist/components/base/text-inputs/input.d.ts +45 -0
  301. package/dist/components/base/text-inputs/password-input.d.ts +28 -0
  302. package/dist/components/base/text-inputs/slug-field.d.ts +21 -0
  303. package/dist/components/base/text-inputs/textarea.d.ts +37 -0
  304. package/dist/components/base/toaster/index.d.ts +1 -0
  305. package/dist/components/base/toaster/toaster.d.ts +6 -0
  306. package/dist/components/base/tree/hierarchy.d.ts +11 -0
  307. package/dist/components/base/tree/index.d.ts +2 -0
  308. package/dist/components/base/tree/tree.d.ts +3 -0
  309. package/dist/components/base/tree/tree.types.d.ts +47 -0
  310. package/dist/components/base/upload/avatar-upload.d.ts +39 -0
  311. package/dist/components/base/upload/dropzone.d.ts +40 -0
  312. package/dist/components/base/upload/file-picker-input.d.ts +15 -0
  313. package/dist/components/base/upload/file-upload.d.ts +9 -0
  314. package/dist/components/base/upload/file-upload.strings.d.ts +18 -0
  315. package/dist/components/base/upload/file-upload.types.d.ts +68 -0
  316. package/dist/components/base/upload/file-upload.validation.d.ts +21 -0
  317. package/dist/components/base/upload/image-upload.d.ts +57 -0
  318. package/dist/components/base/upload/index.d.ts +26 -0
  319. package/dist/components/base/upload/use-file-drop-target.d.ts +22 -0
  320. package/dist/components/base/upload-queue/index.d.ts +3 -0
  321. package/dist/components/base/upload-queue/upload-progress-list.d.ts +55 -0
  322. package/dist/components/base/upload-queue/upload-tray.d.ts +46 -0
  323. package/dist/components/base/value-inputs/color-input.d.ts +26 -0
  324. package/dist/components/base/value-inputs/date-time-input.d.ts +19 -0
  325. package/dist/components/base/value-inputs/index.d.ts +25 -0
  326. package/dist/components/base/value-inputs/phone-input.d.ts +48 -0
  327. package/dist/components/base/value-inputs/slider.d.ts +59 -0
  328. package/dist/components/base/value-inputs/tags-input.d.ts +67 -0
  329. package/dist/components/blocks/admin/action-surfaces/index.d.ts +127 -0
  330. package/dist/components/blocks/admin/admin.strings.d.ts +11 -0
  331. package/dist/components/blocks/admin/api-key-list/api-key-list.d.ts +2 -0
  332. package/dist/components/blocks/admin/api-key-list/api-key-list.strings.d.ts +16 -0
  333. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +58 -0
  334. package/dist/components/blocks/admin/api-key-list/index.d.ts +3 -0
  335. package/dist/components/blocks/admin/index.d.ts +4 -0
  336. package/dist/components/blocks/admin/role-permission/index.d.ts +2 -0
  337. package/dist/components/blocks/admin/role-permission/role-permission.d.ts +5 -0
  338. package/dist/components/blocks/admin/role-permission/types.d.ts +26 -0
  339. package/dist/components/blocks/ai/ai-agent/ai-agent.d.ts +5 -0
  340. package/dist/components/blocks/ai/ai-agent/index.d.ts +2 -0
  341. package/dist/components/blocks/ai/ai-agent/types.d.ts +30 -0
  342. package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +5 -0
  343. package/dist/components/blocks/ai/ai-artifact/index.d.ts +2 -0
  344. package/dist/components/blocks/ai/ai-artifact/types.d.ts +50 -0
  345. package/dist/components/blocks/ai/ai-attachment/ai-attachment.d.ts +5 -0
  346. package/dist/components/blocks/ai/ai-attachment/index.d.ts +2 -0
  347. package/dist/components/blocks/ai/ai-attachment/types.d.ts +35 -0
  348. package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +5 -0
  349. package/dist/components/blocks/ai/ai-chain-of-thought/index.d.ts +2 -0
  350. package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +36 -0
  351. package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +5 -0
  352. package/dist/components/blocks/ai/ai-citation/index.d.ts +2 -0
  353. package/dist/components/blocks/ai/ai-citation/types.d.ts +38 -0
  354. package/dist/components/blocks/ai/ai-classification/ai-classification.d.ts +2 -0
  355. package/dist/components/blocks/ai/ai-classification/index.d.ts +2 -0
  356. package/dist/components/blocks/ai/ai-classification/types.d.ts +27 -0
  357. package/dist/components/blocks/ai/ai-code-block/ai-code-block.d.ts +6 -0
  358. package/dist/components/blocks/ai/ai-code-block/index.d.ts +2 -0
  359. package/dist/components/blocks/ai/ai-code-block/types.d.ts +38 -0
  360. package/dist/components/blocks/ai/ai-confidence/ai-confidence.d.ts +5 -0
  361. package/dist/components/blocks/ai/ai-confidence/index.d.ts +2 -0
  362. package/dist/components/blocks/ai/ai-confidence/types.d.ts +25 -0
  363. package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +5 -0
  364. package/dist/components/blocks/ai/ai-confirmation/index.d.ts +2 -0
  365. package/dist/components/blocks/ai/ai-confirmation/types.d.ts +40 -0
  366. package/dist/components/blocks/ai/ai-feedback/ai-feedback.d.ts +5 -0
  367. package/dist/components/blocks/ai/ai-feedback/index.d.ts +2 -0
  368. package/dist/components/blocks/ai/ai-feedback/types.d.ts +24 -0
  369. package/dist/components/blocks/ai/ai-file-tree/ai-file-tree.d.ts +5 -0
  370. package/dist/components/blocks/ai/ai-file-tree/index.d.ts +2 -0
  371. package/dist/components/blocks/ai/ai-file-tree/types.d.ts +59 -0
  372. package/dist/components/blocks/ai/ai-inline-citation/ai-inline-citation.d.ts +5 -0
  373. package/dist/components/blocks/ai/ai-inline-citation/index.d.ts +2 -0
  374. package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +22 -0
  375. package/dist/components/blocks/ai/ai-message-bubble/ai-message-bubble.d.ts +6 -0
  376. package/dist/components/blocks/ai/ai-message-bubble/index.d.ts +2 -0
  377. package/dist/components/blocks/ai/ai-message-bubble/types.d.ts +35 -0
  378. package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +5 -0
  379. package/dist/components/blocks/ai/ai-package-info/index.d.ts +2 -0
  380. package/dist/components/blocks/ai/ai-package-info/types.d.ts +39 -0
  381. package/dist/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +5 -0
  382. package/dist/components/blocks/ai/ai-prompt-suggestions/index.d.ts +2 -0
  383. package/dist/components/blocks/ai/ai-prompt-suggestions/types.d.ts +26 -0
  384. package/dist/components/blocks/ai/ai-reasoning/ai-reasoning.d.ts +5 -0
  385. package/dist/components/blocks/ai/ai-reasoning/index.d.ts +2 -0
  386. package/dist/components/blocks/ai/ai-reasoning/types.d.ts +32 -0
  387. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +5 -0
  388. package/dist/components/blocks/ai/ai-shimmer/index.d.ts +2 -0
  389. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +11 -0
  390. package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +5 -0
  391. package/dist/components/blocks/ai/ai-sources/index.d.ts +2 -0
  392. package/dist/components/blocks/ai/ai-sources/types.d.ts +44 -0
  393. package/dist/components/blocks/ai/ai-summary/ai-summary.d.ts +2 -0
  394. package/dist/components/blocks/ai/ai-summary/index.d.ts +2 -0
  395. package/dist/components/blocks/ai/ai-summary/types.d.ts +32 -0
  396. package/dist/components/blocks/ai/ai-task/ai-task.d.ts +5 -0
  397. package/dist/components/blocks/ai/ai-task/index.d.ts +2 -0
  398. package/dist/components/blocks/ai/ai-task/types.d.ts +38 -0
  399. package/dist/components/blocks/ai/ai-token-usage/ai-token-usage.d.ts +5 -0
  400. package/dist/components/blocks/ai/ai-token-usage/index.d.ts +2 -0
  401. package/dist/components/blocks/ai/ai-token-usage/types.d.ts +22 -0
  402. package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +5 -0
  403. package/dist/components/blocks/ai/ai-tool-call/index.d.ts +2 -0
  404. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +38 -0
  405. package/dist/components/blocks/ai/ai.strings.d.ts +36 -0
  406. package/dist/components/blocks/ai/index.d.ts +24 -0
  407. package/dist/components/blocks/ai/use-copy-feedback.d.ts +6 -0
  408. package/dist/components/blocks/analytics/activity-heatmap/activity-heatmap.d.ts +5 -0
  409. package/dist/components/blocks/analytics/activity-heatmap/index.d.ts +2 -0
  410. package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +20 -0
  411. package/dist/components/blocks/analytics/analytics.strings.d.ts +35 -0
  412. package/dist/components/blocks/analytics/atoms/metric-skeleton.d.ts +13 -0
  413. package/dist/components/blocks/analytics/atoms/metric-sparkline.d.ts +15 -0
  414. package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +15 -0
  415. package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +42 -0
  416. package/dist/components/blocks/analytics/chart-card/index.d.ts +1 -0
  417. package/dist/components/blocks/analytics/format-metric-value.d.ts +8 -0
  418. package/dist/components/blocks/analytics/index.d.ts +34 -0
  419. package/dist/components/blocks/analytics/metric/index.d.ts +1 -0
  420. package/dist/components/blocks/analytics/metric/metric.d.ts +28 -0
  421. package/dist/components/blocks/analytics/metric-bar/index.d.ts +1 -0
  422. package/dist/components/blocks/analytics/metric-bar/metric-bar.d.ts +22 -0
  423. package/dist/components/blocks/analytics/metric-comparison/index.d.ts +1 -0
  424. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +26 -0
  425. package/dist/components/blocks/analytics/metric-gradient/index.d.ts +1 -0
  426. package/dist/components/blocks/analytics/metric-gradient/metric-gradient.d.ts +19 -0
  427. package/dist/components/blocks/analytics/metric-grid/index.d.ts +1 -0
  428. package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +33 -0
  429. package/dist/components/blocks/analytics/metric-micro-grid/index.d.ts +1 -0
  430. package/dist/components/blocks/analytics/metric-micro-grid/metric-micro-grid.d.ts +23 -0
  431. package/dist/components/blocks/analytics/time-ruler/index.d.ts +2 -0
  432. package/dist/components/blocks/analytics/time-ruler/time-ruler.d.ts +5 -0
  433. package/dist/components/blocks/analytics/time-ruler/types.d.ts +32 -0
  434. package/dist/components/blocks/analytics/types.d.ts +83 -0
  435. package/dist/components/blocks/collaboration/index.d.ts +1 -0
  436. package/dist/components/blocks/collaboration/message/index.d.ts +2 -0
  437. package/dist/components/blocks/collaboration/message/message.d.ts +8 -0
  438. package/dist/components/blocks/collaboration/message/message.types.d.ts +30 -0
  439. package/dist/components/blocks/commerce/address-card/address-card.d.ts +5 -0
  440. package/dist/components/blocks/commerce/address-card/index.d.ts +2 -0
  441. package/dist/components/blocks/commerce/address-card/types.d.ts +43 -0
  442. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +12 -0
  443. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +36 -0
  444. package/dist/components/blocks/commerce/booking-calendar-event-card/index.d.ts +2 -0
  445. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +5 -0
  446. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -0
  447. package/dist/components/blocks/commerce/cart-summary/types.d.ts +53 -0
  448. package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +5 -0
  449. package/dist/components/blocks/commerce/coupon-input/index.d.ts +2 -0
  450. package/dist/components/blocks/commerce/coupon-input/types.d.ts +35 -0
  451. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +5 -0
  452. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -0
  453. package/dist/components/blocks/commerce/discount-stack/types.d.ts +27 -0
  454. package/dist/components/blocks/commerce/format-signed-amount.d.ts +22 -0
  455. package/dist/components/blocks/commerce/giftcard-card/giftcard-card.d.ts +62 -0
  456. package/dist/components/blocks/commerce/giftcard-card/index.d.ts +2 -0
  457. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +10 -0
  458. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +9 -0
  459. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +7 -0
  460. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +11 -0
  461. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +10 -0
  462. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +10 -0
  463. package/dist/components/blocks/commerce/giftcard-card/types.d.ts +83 -0
  464. package/dist/components/blocks/commerce/index.d.ts +34 -0
  465. package/dist/components/blocks/commerce/inventory-level/index.d.ts +3 -0
  466. package/dist/components/blocks/commerce/inventory-level/inventory-level.d.ts +5 -0
  467. package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +10 -0
  468. package/dist/components/blocks/commerce/inventory-level/types.d.ts +20 -0
  469. package/dist/components/blocks/commerce/inventory-section/index.d.ts +2 -0
  470. package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +5 -0
  471. package/dist/components/blocks/commerce/inventory-section/types.d.ts +105 -0
  472. package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -0
  473. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +5 -0
  474. package/dist/components/blocks/commerce/invoice-header/types.d.ts +51 -0
  475. package/dist/components/blocks/commerce/invoice-line-items/index.d.ts +2 -0
  476. package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +5 -0
  477. package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +64 -0
  478. package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -0
  479. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +5 -0
  480. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +28 -0
  481. package/dist/components/blocks/commerce/loyalty-points/index.d.ts +2 -0
  482. package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +5 -0
  483. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +32 -0
  484. package/dist/components/blocks/commerce/order-status/index.d.ts +2 -0
  485. package/dist/components/blocks/commerce/order-status/order-status.d.ts +5 -0
  486. package/dist/components/blocks/commerce/order-status/types.d.ts +35 -0
  487. package/dist/components/blocks/commerce/order-timeline/index.d.ts +2 -0
  488. package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +5 -0
  489. package/dist/components/blocks/commerce/order-timeline/types.d.ts +22 -0
  490. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -0
  491. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +5 -0
  492. package/dist/components/blocks/commerce/payment-method/types.d.ts +33 -0
  493. package/dist/components/blocks/commerce/payment-timeline/index.d.ts +2 -0
  494. package/dist/components/blocks/commerce/payment-timeline/payment-timeline.d.ts +5 -0
  495. package/dist/components/blocks/commerce/payment-timeline/types.d.ts +15 -0
  496. package/dist/components/blocks/commerce/receipt/index.d.ts +3 -0
  497. package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +2 -0
  498. package/dist/components/blocks/commerce/receipt/receipt.d.ts +3 -0
  499. package/dist/components/blocks/commerce/receipt/types.d.ts +42 -0
  500. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -0
  501. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +5 -0
  502. package/dist/components/blocks/commerce/refund-status/types.d.ts +37 -0
  503. package/dist/components/blocks/commerce/seo-listing/index.d.ts +3 -0
  504. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +5 -0
  505. package/dist/components/blocks/commerce/seo-listing/seo-listing-score.d.ts +5 -0
  506. package/dist/components/blocks/commerce/seo-listing/types.d.ts +92 -0
  507. package/dist/components/blocks/commerce/shipment-tracking/index.d.ts +2 -0
  508. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +5 -0
  509. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +44 -0
  510. package/dist/components/blocks/commerce/subscription-summary/index.d.ts +2 -0
  511. package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +5 -0
  512. package/dist/components/blocks/commerce/subscription-summary/types.d.ts +39 -0
  513. package/dist/components/blocks/commerce/tax-breakdown/index.d.ts +2 -0
  514. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +5 -0
  515. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +34 -0
  516. package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -0
  517. package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +29 -0
  518. package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +5 -0
  519. package/dist/components/blocks/commerce/vendor-profile/index.d.ts +3 -0
  520. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +86 -0
  521. package/dist/components/blocks/commerce/vendor-profile/vendor-profile.d.ts +2 -0
  522. package/dist/components/blocks/commerce/voucher-entry/index.d.ts +2 -0
  523. package/dist/components/blocks/commerce/voucher-entry/types.d.ts +33 -0
  524. package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +5 -0
  525. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +6 -0
  526. package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +19 -0
  527. package/dist/components/blocks/data-display/dense-info-card/index.d.ts +7 -0
  528. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +5 -0
  529. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +5 -0
  530. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +5 -0
  531. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +5 -0
  532. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +5 -0
  533. package/dist/components/blocks/data-display/dense-info-card/types.d.ts +183 -0
  534. package/dist/components/blocks/data-display/empty-state/empty-state.d.ts +2 -0
  535. package/dist/components/blocks/data-display/empty-state/empty-state.strings.d.ts +19 -0
  536. package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +86 -0
  537. package/dist/components/blocks/data-display/empty-state/index.d.ts +5 -0
  538. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +9 -0
  539. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +9 -0
  540. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +25 -0
  541. package/dist/components/blocks/data-display/empty-state/partials/illustrations/search-glass.d.ts +9 -0
  542. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +11 -0
  543. package/dist/components/blocks/data-display/empty-state/partials/illustrations/types.d.ts +4 -0
  544. package/dist/components/blocks/data-display/empty-state/partials/illustrations/users-circle.d.ts +9 -0
  545. package/dist/components/blocks/data-display/index.d.ts +6 -0
  546. package/dist/components/blocks/data-display/inline-stat/index.d.ts +1 -0
  547. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +35 -0
  548. package/dist/components/blocks/data-display/metadata/index.d.ts +4 -0
  549. package/dist/components/blocks/data-display/metadata/metadata-list.d.ts +78 -0
  550. package/dist/components/blocks/data-display/metadata/metadata-list.strings.d.ts +18 -0
  551. package/dist/components/blocks/data-display/metadata/metadata-value.d.ts +142 -0
  552. package/dist/components/blocks/data-display/relationship-card-frame.d.ts +40 -0
  553. package/dist/components/blocks/onboarding/checklist/checklist.d.ts +2 -0
  554. package/dist/components/blocks/onboarding/checklist/checklist.strings.d.ts +15 -0
  555. package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +64 -0
  556. package/dist/components/blocks/onboarding/checklist/index.d.ts +4 -0
  557. package/dist/components/blocks/onboarding/checklist/partials/step-status-indicator.d.ts +12 -0
  558. package/dist/components/blocks/onboarding/index.d.ts +7 -0
  559. package/dist/components/blocks/timelines/changelog/changelog-timeline.d.ts +5 -0
  560. package/dist/components/blocks/timelines/changelog/index.d.ts +2 -0
  561. package/dist/components/blocks/timelines/changelog/types.d.ts +33 -0
  562. package/dist/components/blocks/timelines/index.d.ts +5 -0
  563. package/dist/components/blocks/timelines/milestones/index.d.ts +2 -0
  564. package/dist/components/blocks/timelines/milestones/milestones-timeline.d.ts +5 -0
  565. package/dist/components/blocks/timelines/milestones/types.d.ts +32 -0
  566. package/dist/components/blocks/timelines/shared/index.d.ts +1 -0
  567. package/dist/components/blocks/timelines/shared/timeline.d.ts +40 -0
  568. package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -0
  569. package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +9 -0
  570. package/dist/components/blocks/timelines/steps-card/types.d.ts +38 -0
  571. package/dist/components/features/activities/activities-feed.d.ts +5 -0
  572. package/dist/components/features/activities/activities.config.d.ts +6 -0
  573. package/dist/components/features/activities/activities.strings.d.ts +38 -0
  574. package/dist/components/features/activities/activities.types.d.ts +431 -0
  575. package/dist/components/features/activities/activity-event-adapter.d.ts +38 -0
  576. package/dist/components/features/activities/activity-log.d.ts +6 -0
  577. package/dist/components/features/activities/hooks/index.d.ts +2 -0
  578. package/dist/components/features/activities/hooks/use-activity-feed.d.ts +44 -0
  579. package/dist/components/features/activities/hooks/use-activity-resources.d.ts +22 -0
  580. package/dist/components/features/activities/index.d.ts +8 -0
  581. package/dist/components/features/activities/partials/activity-actions-menu.d.ts +11 -0
  582. package/dist/components/features/activities/partials/activity-changes.d.ts +8 -0
  583. package/dist/components/features/activities/partials/activity-date-label.d.ts +9 -0
  584. package/dist/components/features/activities/partials/activity-empty-state.d.ts +9 -0
  585. package/dist/components/features/activities/partials/activity-headline.d.ts +20 -0
  586. package/dist/components/features/activities/partials/activity-marker.d.ts +25 -0
  587. package/dist/components/features/activities/partials/activity-resource-tag.d.ts +11 -0
  588. package/dist/components/features/activities/partials/activity-row.d.ts +68 -0
  589. package/dist/components/features/activities/partials/index.d.ts +8 -0
  590. package/dist/components/features/activities/partials/tone-tokens.d.ts +25 -0
  591. package/dist/components/features/ai-chat/ai-chat.d.ts +81 -0
  592. package/dist/components/features/ai-chat/ai-chat.strings.d.ts +56 -0
  593. package/dist/components/features/ai-chat/ai-chat.types.d.ts +170 -0
  594. package/dist/components/features/ai-chat/hooks/index.d.ts +1 -0
  595. package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +15 -0
  596. package/dist/components/features/ai-chat/index.d.ts +5 -0
  597. package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +15 -0
  598. package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +28 -0
  599. package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +22 -0
  600. package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +21 -0
  601. package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +59 -0
  602. package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +19 -0
  603. package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +18 -0
  604. package/dist/components/features/ai-chat/partials/index.d.ts +7 -0
  605. package/dist/components/features/async-preview/async-preview.d.ts +84 -0
  606. package/dist/components/features/async-preview/async-preview.strings.d.ts +14 -0
  607. package/dist/components/features/async-preview/async-preview.types.d.ts +133 -0
  608. package/dist/components/features/async-preview/hooks/index.d.ts +1 -0
  609. package/dist/components/features/async-preview/hooks/use-async-preview.d.ts +8 -0
  610. package/dist/components/features/async-preview/index.d.ts +6 -0
  611. package/dist/components/features/async-preview/partials/index.d.ts +1 -0
  612. package/dist/components/features/async-preview/preview-trigger-cell.d.ts +45 -0
  613. package/dist/components/features/combobox/async-resource-combobox.d.ts +94 -0
  614. package/dist/components/features/combobox/combobox.d.ts +20 -0
  615. package/dist/components/features/combobox/combobox.strings.d.ts +14 -0
  616. package/dist/components/features/combobox/components/combobox-dropdown.d.ts +57 -0
  617. package/dist/components/features/combobox/components/error-message.d.ts +15 -0
  618. package/dist/components/features/combobox/components/highlighted-text.d.ts +14 -0
  619. package/dist/components/features/combobox/components/index.d.ts +13 -0
  620. package/dist/components/features/combobox/components/loading-more.d.ts +15 -0
  621. package/dist/components/features/combobox/components/status-content.d.ts +21 -0
  622. package/dist/components/features/combobox/constants.d.ts +19 -0
  623. package/dist/components/features/combobox/hooks/index.d.ts +2 -0
  624. package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +30 -0
  625. package/dist/components/features/combobox/hooks/use-debounced-search.d.ts +10 -0
  626. package/dist/components/features/combobox/hooks/use-grouped-items.d.ts +9 -0
  627. package/dist/components/features/combobox/hooks/use-load-more.d.ts +12 -0
  628. package/dist/components/features/combobox/index.d.ts +13 -0
  629. package/dist/components/features/combobox/types.d.ts +184 -0
  630. package/dist/components/features/comments/comments-provider.d.ts +15 -0
  631. package/dist/components/features/comments/comments.d.ts +2 -0
  632. package/dist/components/features/comments/comments.strings.d.ts +91 -0
  633. package/dist/components/features/comments/comments.types.d.ts +369 -0
  634. package/dist/components/features/comments/hooks/index.d.ts +4 -0
  635. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +28 -0
  636. package/dist/components/features/comments/hooks/use-comments.d.ts +34 -0
  637. package/dist/components/features/comments/index.d.ts +8 -0
  638. package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +23 -0
  639. package/dist/components/features/comments/partials/comment-composer.d.ts +12 -0
  640. package/dist/components/features/comments/partials/comment-content.d.ts +13 -0
  641. package/dist/components/features/comments/partials/comment-empty.d.ts +12 -0
  642. package/dist/components/features/comments/partials/comment-item.d.ts +3 -0
  643. package/dist/components/features/comments/partials/comment-timeline.d.ts +3 -0
  644. package/dist/components/features/comments/partials/index.d.ts +9 -0
  645. package/dist/components/features/data-view/data-view-filtering.d.ts +3 -0
  646. package/dist/components/features/data-view/data-view.d.ts +7 -0
  647. package/dist/components/features/data-view/data-view.strings.d.ts +9 -0
  648. package/dist/components/features/data-view/data-view.types.d.ts +191 -0
  649. package/dist/components/features/data-view/hooks/index.d.ts +1 -0
  650. package/dist/components/features/data-view/hooks/use-data-view.d.ts +2 -0
  651. package/dist/components/features/data-view/index.d.ts +4 -0
  652. package/dist/components/features/email-composer/document.d.ts +8 -0
  653. package/dist/components/features/email-composer/email-composer.d.ts +2 -0
  654. package/dist/components/features/email-composer/email-html.d.ts +5 -0
  655. package/dist/components/features/email-composer/engine.d.ts +18 -0
  656. package/dist/components/features/email-composer/http.d.ts +6 -0
  657. package/dist/components/features/email-composer/index.d.ts +6 -0
  658. package/dist/components/features/email-composer/partials/body-editor.d.ts +11 -0
  659. package/dist/components/features/email-composer/partials/data-status.d.ts +8 -0
  660. package/dist/components/features/email-composer/partials/html-preview.d.ts +6 -0
  661. package/dist/components/features/email-composer/partials/recipients.d.ts +14 -0
  662. package/dist/components/features/email-composer/partials/variables.d.ts +11 -0
  663. package/dist/components/features/email-composer/strings.d.ts +79 -0
  664. package/dist/components/features/email-composer/types.d.ts +195 -0
  665. package/dist/components/features/email-composer/use-composer.d.ts +119 -0
  666. package/dist/components/features/event-calendar/colors.d.ts +29 -0
  667. package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +5 -0
  668. package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +5 -0
  669. package/dist/components/features/event-calendar/event-calendar-event-card.d.ts +16 -0
  670. package/dist/components/features/event-calendar/event-calendar-header.d.ts +8 -0
  671. package/dist/components/features/event-calendar/event-calendar-legend.d.ts +5 -0
  672. package/dist/components/features/event-calendar/event-calendar.d.ts +5 -0
  673. package/dist/components/features/event-calendar/event-calendar.types.d.ts +350 -0
  674. package/dist/components/features/event-calendar/index.d.ts +11 -0
  675. package/dist/components/features/event-calendar/use-event-calendar-data.d.ts +15 -0
  676. package/dist/components/features/event-calendar/use-event-calendar.d.ts +24 -0
  677. package/dist/components/features/filters/facets/async-select-facet.d.ts +28 -0
  678. package/dist/components/features/filters/facets/date-facet.d.ts +18 -0
  679. package/dist/components/features/filters/facets/range-facet.d.ts +30 -0
  680. package/dist/components/features/filters/facets/search-facet.d.ts +27 -0
  681. package/dist/components/features/filters/facets/select-facet.d.ts +19 -0
  682. package/dist/components/features/filters/facets/tags-facet.d.ts +27 -0
  683. package/dist/components/features/filters/filter-context.d.ts +61 -0
  684. package/dist/components/features/filters/filter-layout.d.ts +16 -0
  685. package/dist/components/features/filters/filter-query.d.ts +21 -0
  686. package/dist/components/features/filters/filters.strings.d.ts +103 -0
  687. package/dist/components/features/filters/filters.types.d.ts +222 -0
  688. package/dist/components/features/filters/hooks/index.d.ts +3 -0
  689. package/dist/components/features/filters/hooks/use-async-options.d.ts +16 -0
  690. package/dist/components/features/filters/hooks/use-filter-groups.d.ts +16 -0
  691. package/dist/components/features/filters/index.d.ts +42 -0
  692. package/dist/components/features/filters/operator-options.d.ts +9 -0
  693. package/dist/components/features/filters/partials/active-filter-item.d.ts +37 -0
  694. package/dist/components/features/filters/partials/async-filter-content.d.ts +21 -0
  695. package/dist/components/features/filters/partials/date-filter-content.d.ts +14 -0
  696. package/dist/components/features/filters/partials/filter-error-boundary.d.ts +9 -0
  697. package/dist/components/features/filters/partials/filter-list-content.d.ts +24 -0
  698. package/dist/components/features/filters/partials/filter-list-item.d.ts +19 -0
  699. package/dist/components/features/filters/partials/filter-operator-select.d.ts +22 -0
  700. package/dist/components/features/filters/partials/filter-pill.d.ts +26 -0
  701. package/dist/components/features/filters/partials/filter-popover-content.d.ts +36 -0
  702. package/dist/components/features/filters/partials/filter-tabs.d.ts +14 -0
  703. package/dist/components/features/filters/partials/filter-value-display.d.ts +21 -0
  704. package/dist/components/features/filters/partials/filters-button.d.ts +32 -0
  705. package/dist/components/features/filters/partials/index.d.ts +14 -0
  706. package/dist/components/features/filters/partials/regular-filter-content.d.ts +28 -0
  707. package/dist/components/features/filters/partials/search-filters-list.d.ts +25 -0
  708. package/dist/components/features/filters/partials/tags-filter-content.d.ts +28 -0
  709. package/dist/components/features/filters/utils/filter-utils.d.ts +37 -0
  710. package/dist/components/features/filters/validators.d.ts +63 -0
  711. package/dist/components/features/global-search/global-search-dialog.d.ts +13 -0
  712. package/dist/components/features/global-search/global-search.d.ts +52 -0
  713. package/dist/components/features/global-search/global-search.strings.d.ts +36 -0
  714. package/dist/components/features/global-search/global-search.types.d.ts +105 -0
  715. package/dist/components/features/global-search/hooks/index.d.ts +2 -0
  716. package/dist/components/features/global-search/hooks/use-global-search.d.ts +33 -0
  717. package/dist/components/features/global-search/index.d.ts +9 -0
  718. package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +7 -0
  719. package/dist/components/features/global-search/partials/global-search-footer.d.ts +13 -0
  720. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +12 -0
  721. package/dist/components/features/global-search/partials/global-search-input.d.ts +17 -0
  722. package/dist/components/features/global-search/partials/global-search-result-row.d.ts +16 -0
  723. package/dist/components/features/global-search/partials/global-search-tabs.d.ts +13 -0
  724. package/dist/components/features/global-search/partials/index.d.ts +12 -0
  725. package/dist/components/features/global-search/partials/tone-palettes.d.ts +8 -0
  726. package/dist/components/features/kanban/hooks/index.d.ts +1 -0
  727. package/dist/components/features/kanban/hooks/use-kanban.d.ts +32 -0
  728. package/dist/components/features/kanban/index.d.ts +5 -0
  729. package/dist/components/features/kanban/kanban-context.d.ts +25 -0
  730. package/dist/components/features/kanban/kanban-keyboard.d.ts +10 -0
  731. package/dist/components/features/kanban/kanban.d.ts +38 -0
  732. package/dist/components/features/kanban/kanban.strings.d.ts +24 -0
  733. package/dist/components/features/kanban/kanban.types.d.ts +168 -0
  734. package/dist/components/features/map/index.d.ts +13 -0
  735. package/dist/components/features/map/map.d.ts +166 -0
  736. package/dist/components/features/map/place-autocomplete.d.ts +97 -0
  737. package/dist/components/features/map/public-leaflet.types.d.ts +71 -0
  738. package/dist/components/features/map/use-map-color-scheme.d.ts +2 -0
  739. package/dist/components/features/media-library/hooks/index.d.ts +1 -0
  740. package/dist/components/features/media-library/hooks/use-media-library.d.ts +5 -0
  741. package/dist/components/features/media-library/index.d.ts +6 -0
  742. package/dist/components/features/media-library/media-library.d.ts +3 -0
  743. package/dist/components/features/media-library/media-library.strings.d.ts +124 -0
  744. package/dist/components/features/media-library/media-library.types.d.ts +568 -0
  745. package/dist/components/features/media-library/media-resource-gallery.d.ts +2 -0
  746. package/dist/components/features/media-library/partials/index.d.ts +1 -0
  747. package/dist/components/features/media-library/partials/media-library-partials.d.ts +10 -0
  748. package/dist/components/features/mentions/hooks/index.d.ts +2 -0
  749. package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +41 -0
  750. package/dist/components/features/mentions/hooks/use-mentions.d.ts +35 -0
  751. package/dist/components/features/mentions/index.d.ts +5 -0
  752. package/dist/components/features/mentions/mentions.strings.d.ts +26 -0
  753. package/dist/components/features/mentions/mentions.types.d.ts +100 -0
  754. package/dist/components/features/mentions/partials/index.d.ts +4 -0
  755. package/dist/components/features/mentions/partials/mention-chip.d.ts +29 -0
  756. package/dist/components/features/mentions/partials/mention-content.d.ts +22 -0
  757. package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +36 -0
  758. package/dist/components/features/mentions/partials/mention-picker.d.ts +31 -0
  759. package/dist/components/features/mentions/utils/build-mention-html.d.ts +24 -0
  760. package/dist/components/features/mentions/utils/index.d.ts +3 -0
  761. package/dist/components/features/mentions/utils/parse-mentions-from-html.d.ts +13 -0
  762. package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +16 -0
  763. package/dist/components/features/overlays/alert-dialog.d.ts +4 -0
  764. package/dist/components/features/overlays/dialog.d.ts +4 -0
  765. package/dist/components/features/overlays/drawer.d.ts +4 -0
  766. package/dist/components/features/overlays/hooks/index.d.ts +2 -0
  767. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +24 -0
  768. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +36 -0
  769. package/dist/components/features/overlays/index.d.ts +6 -0
  770. package/dist/components/features/overlays/overlays.strings.d.ts +19 -0
  771. package/dist/components/features/overlays/overlays.types.d.ts +169 -0
  772. package/dist/components/features/products/components/index.d.ts +17 -0
  773. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  774. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  775. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  776. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  777. package/dist/components/features/products/components/product-options-matrix.d.ts +5 -0
  778. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  779. package/dist/components/features/products/components/product-overview.d.ts +5 -0
  780. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  781. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  782. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  783. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  784. package/dist/components/features/products/components/product-variant-action-menu.d.ts +5 -0
  785. package/dist/components/features/products/components/product-variant-details.d.ts +5 -0
  786. package/dist/components/features/products/components/product-variant-editor.d.ts +5 -0
  787. package/dist/components/features/products/components/product-variants-bulk-table.d.ts +5 -0
  788. package/dist/components/features/products/components/product-variants-manager.d.ts +5 -0
  789. package/dist/components/features/products/components/product-variants-table.d.ts +5 -0
  790. package/dist/components/features/products/index.d.ts +3 -0
  791. package/dist/components/features/products/partials/index.d.ts +7 -0
  792. package/dist/components/features/products/partials/product-actions.d.ts +10 -0
  793. package/dist/components/features/products/partials/product-empty-state.d.ts +10 -0
  794. package/dist/components/features/products/partials/product-metric-tile.d.ts +4 -0
  795. package/dist/components/features/products/partials/product-rows.d.ts +35 -0
  796. package/dist/components/features/products/partials/product-tone.d.ts +8 -0
  797. package/dist/components/features/products/partials/product-values.d.ts +1 -0
  798. package/dist/components/features/products/partials/product-variant-table-parts.d.ts +28 -0
  799. package/dist/components/features/products/products.strings.d.ts +308 -0
  800. package/dist/components/features/products/products.types.d.ts +906 -0
  801. package/dist/components/features/questionnaire/index.d.ts +3 -0
  802. package/dist/components/features/questionnaire/questionnaire-control.d.ts +3 -0
  803. package/dist/components/features/questionnaire/questionnaire.d.ts +2 -0
  804. package/dist/components/features/questionnaire/questionnaire.types.d.ts +98 -0
  805. package/dist/components/features/questionnaire/questionnaire.utils.d.ts +5 -0
  806. package/dist/components/features/resource/index.d.ts +3 -0
  807. package/dist/components/features/resource/resource.d.ts +8 -0
  808. package/dist/components/features/resource/resource.strings.d.ts +12 -0
  809. package/dist/components/features/resource/resource.types.d.ts +161 -0
  810. package/dist/components/features/resource-assignment/hooks/index.d.ts +2 -0
  811. package/dist/components/features/resource-assignment/hooks/use-shared-resource-card.d.ts +32 -0
  812. package/dist/components/features/resource-assignment/index.d.ts +6 -0
  813. package/dist/components/features/resource-assignment/partials/default-shared-resource-partials.d.ts +31 -0
  814. package/dist/components/features/resource-assignment/partials/index.d.ts +1 -0
  815. package/dist/components/features/resource-assignment/resource-assignment.d.ts +12 -0
  816. package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +17 -0
  817. package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +193 -0
  818. package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +6 -0
  819. package/dist/components/features/rich-text-editor/index.d.ts +5 -0
  820. package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +28 -0
  821. package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +32 -0
  822. package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +7 -0
  823. package/dist/components/features/rich-text-editor/partials/index.d.ts +7 -0
  824. package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +8 -0
  825. package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +3 -0
  826. package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +33 -0
  827. package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +3 -0
  828. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  829. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +32 -0
  830. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +111 -0
  831. package/dist/components/features/schema-form/hooks/index.d.ts +1 -0
  832. package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +23 -0
  833. package/dist/components/features/schema-form/index.d.ts +5 -0
  834. package/dist/components/features/schema-form/partials/index.d.ts +3 -0
  835. package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +23 -0
  836. package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +12 -0
  837. package/dist/components/features/schema-form/partials/schema-form-field.d.ts +12 -0
  838. package/dist/components/features/schema-form/schema-form.d.ts +5 -0
  839. package/dist/components/features/schema-form/schema-form.strings.d.ts +11 -0
  840. package/dist/components/features/schema-form/schema-form.types.d.ts +271 -0
  841. package/dist/components/features/schema-form/schema-form.utils.d.ts +18 -0
  842. package/dist/components/features/suggestions/hooks/index.d.ts +1 -0
  843. package/dist/components/features/suggestions/hooks/use-suggestions.d.ts +9 -0
  844. package/dist/components/features/suggestions/index.d.ts +4 -0
  845. package/dist/components/features/suggestions/suggestions.d.ts +5 -0
  846. package/dist/components/features/suggestions/suggestions.strings.d.ts +16 -0
  847. package/dist/components/features/suggestions/suggestions.types.d.ts +79 -0
  848. package/dist/components/features/sync/index.d.ts +3 -0
  849. package/dist/components/features/sync/sync-range-dialog-form.d.ts +5 -0
  850. package/dist/components/features/sync/sync.strings.d.ts +18 -0
  851. package/dist/components/features/sync/sync.types.d.ts +44 -0
  852. package/dist/components/features/table/column-visibility-toggle.d.ts +5 -0
  853. package/dist/components/features/table/data-table.d.ts +6 -0
  854. package/dist/components/features/table/filter-bar.d.ts +5 -0
  855. package/dist/components/features/table/hooks.d.ts +47 -0
  856. package/dist/components/features/table/index.d.ts +16 -0
  857. package/dist/components/features/table/pagination.d.ts +5 -0
  858. package/dist/components/features/table/partials/cell-renderers.d.ts +141 -0
  859. package/dist/components/features/table/partials/cell-value.d.ts +121 -0
  860. package/dist/components/features/table/partials/fullscreen-toggle.d.ts +16 -0
  861. package/dist/components/features/table/partials/resource-cell.d.ts +63 -0
  862. package/dist/components/features/table/partials/table-link.d.ts +3 -0
  863. package/dist/components/features/table/table-actions.d.ts +5 -0
  864. package/dist/components/features/table/table-body.d.ts +5 -0
  865. package/dist/components/features/table/table-header.d.ts +6 -0
  866. package/dist/components/features/table/table-helpers.d.ts +39 -0
  867. package/dist/components/features/table/table-toolbar.d.ts +5 -0
  868. package/dist/components/features/table/table.strings.d.ts +3 -0
  869. package/dist/components/features/table/table.types.d.ts +489 -0
  870. package/dist/components/features/theme-tweaker/admin-ui-theme-provider.d.ts +6 -0
  871. package/dist/components/features/theme-tweaker/index.d.ts +10 -0
  872. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +49 -0
  873. package/dist/components/features/theme-tweaker/theme-scope.d.ts +7 -0
  874. package/dist/components/features/theme-tweaker/theme-tweaker.d.ts +2 -0
  875. package/dist/components/features/theme-tweaker/theme-tweaker.fields.d.ts +7 -0
  876. package/dist/components/features/theme-tweaker/theme-tweaker.recipes.d.ts +25 -0
  877. package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +75 -0
  878. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +161 -0
  879. package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +23 -0
  880. package/dist/components/features/theme-tweaker/use-applied-theme.d.ts +11 -0
  881. package/dist/components/layout/app-shell/app-layout.d.ts +12 -0
  882. package/dist/components/layout/app-shell/app-shell.types.d.ts +151 -0
  883. package/dist/components/layout/app-shell/index.d.ts +6 -0
  884. package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +2 -0
  885. package/dist/components/layout/app-shell/stacked-layout.d.ts +2 -0
  886. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +2 -0
  887. package/dist/components/layout/auth/auth-card.d.ts +2 -0
  888. package/dist/components/layout/auth/auth-footer-links.d.ts +2 -0
  889. package/dist/components/layout/auth/auth-form.d.ts +11 -0
  890. package/dist/components/layout/auth/auth-hooks.d.ts +4 -0
  891. package/dist/components/layout/auth/auth-method-switch.d.ts +4 -0
  892. package/dist/components/layout/auth/auth-shell.d.ts +2 -0
  893. package/dist/components/layout/auth/auth-social-providers.d.ts +3 -0
  894. package/dist/components/layout/auth/auth-split-panel.d.ts +2 -0
  895. package/dist/components/layout/auth/auth.strings.d.ts +21 -0
  896. package/dist/components/layout/auth/auth.types.d.ts +282 -0
  897. package/dist/components/layout/auth/index.d.ts +10 -0
  898. package/dist/components/layout/containers/container.recipes.d.ts +5 -0
  899. package/dist/components/layout/containers/containers.types.d.ts +17 -0
  900. package/dist/components/layout/containers/content-container.d.ts +3 -0
  901. package/dist/components/layout/containers/index.d.ts +5 -0
  902. package/dist/components/layout/containers/page-viewport.d.ts +3 -0
  903. package/dist/components/layout/containers/section.d.ts +3 -0
  904. package/dist/components/layout/containers/two-column-layout.d.ts +27 -0
  905. package/dist/components/layout/header/header.d.ts +2 -0
  906. package/dist/components/layout/header/header.types.d.ts +198 -0
  907. package/dist/components/layout/header/index.d.ts +9 -0
  908. package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +4 -0
  909. package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +2 -0
  910. package/dist/components/layout/header/partials/header-notifications.d.ts +2 -0
  911. package/dist/components/layout/header/partials/header-search.d.ts +2 -0
  912. package/dist/components/layout/header/partials/header-tool-button.d.ts +4 -0
  913. package/dist/components/layout/header/partials/header-tool-popover.d.ts +2 -0
  914. package/dist/components/layout/header/partials/header-user-menu.d.ts +2 -0
  915. package/dist/components/layout/hooks/index.d.ts +3 -0
  916. package/dist/components/layout/hooks/use-active-path.d.ts +1 -0
  917. package/dist/components/layout/hooks/use-command-shortcut.d.ts +7 -0
  918. package/dist/components/layout/hooks/use-layout-link.d.ts +2 -0
  919. package/dist/components/layout/index.d.ts +24 -0
  920. package/dist/components/layout/layout.types.d.ts +91 -0
  921. package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +5 -0
  922. package/dist/components/layout/navigation/breadcrumb-progress/index.d.ts +2 -0
  923. package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +24 -0
  924. package/dist/components/layout/navigation/category-nav/category-nav.d.ts +5 -0
  925. package/dist/components/layout/navigation/category-nav/index.d.ts +2 -0
  926. package/dist/components/layout/navigation/category-nav/types.d.ts +22 -0
  927. package/dist/components/layout/navigation/index.d.ts +17 -0
  928. package/dist/components/layout/navigation/section-nav/index.d.ts +1 -0
  929. package/dist/components/layout/navigation/section-nav/section-nav.d.ts +29 -0
  930. package/dist/components/layout/navigation/side-nav.d.ts +58 -0
  931. package/dist/components/layout/page/index.d.ts +4 -0
  932. package/dist/components/layout/page/page.d.ts +3 -0
  933. package/dist/components/layout/page/page.types.d.ts +138 -0
  934. package/dist/components/layout/page/partials/page-actions.d.ts +2 -0
  935. package/dist/components/layout/page/partials/page-header.d.ts +2 -0
  936. package/dist/components/layout/settings/index.d.ts +1 -0
  937. package/dist/components/layout/settings/settings.d.ts +65 -0
  938. package/dist/components/layout/sidebar/app-sidebar.d.ts +7 -0
  939. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +4 -0
  940. package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +10 -0
  941. package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +2 -0
  942. package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +23 -0
  943. package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +4 -0
  944. package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +2 -0
  945. package/dist/components/layout/sidebar/index.d.ts +11 -0
  946. package/dist/components/layout/sidebar/sidebar.context.d.ts +17 -0
  947. package/dist/components/layout/sidebar/sidebar.d.ts +9 -0
  948. package/dist/components/layout/sidebar/sidebar.types.d.ts +218 -0
  949. package/dist/components/layout/sidebar/sidebar.utils.d.ts +29 -0
  950. package/dist/components/layout/workspace/index.d.ts +3 -0
  951. package/dist/components/layout/workspace/workspace.d.ts +6 -0
  952. package/dist/components/layout/workspace/workspace.strings.d.ts +18 -0
  953. package/dist/components/layout/workspace/workspace.types.d.ts +141 -0
  954. package/dist/components/primitives/date.d.ts +63 -0
  955. package/dist/components/primitives/dimensions.d.ts +30 -0
  956. package/dist/components/primitives/duration.d.ts +23 -0
  957. package/dist/components/primitives/file-size.d.ts +23 -0
  958. package/dist/components/primitives/index.d.ts +11 -0
  959. package/dist/components/primitives/initials-format.d.ts +21 -0
  960. package/dist/components/primitives/initials.d.ts +16 -0
  961. package/dist/components/primitives/link.d.ts +28 -0
  962. package/dist/components/primitives/money.d.ts +79 -0
  963. package/dist/components/primitives/name.d.ts +16 -0
  964. package/dist/components/primitives/number.d.ts +23 -0
  965. package/dist/components/primitives/value.d.ts +23 -0
  966. package/dist/components/typography/content-typography.d.ts +4 -0
  967. package/dist/components/typography/display-label.d.ts +5 -0
  968. package/dist/components/typography/heading.d.ts +16 -0
  969. package/dist/components/typography/index.d.ts +10 -0
  970. package/dist/components/typography/label.d.ts +8 -0
  971. package/dist/components/typography/rich-text/index.d.ts +2 -0
  972. package/dist/components/typography/rich-text/rich-text.d.ts +6 -0
  973. package/dist/components/typography/text-link.d.ts +7 -0
  974. package/dist/components/typography/text.d.ts +17 -0
  975. package/dist/components/typography/text.styles.d.ts +50 -0
  976. package/dist/components/ui/accordion.d.ts +6 -0
  977. package/dist/components/ui/alert-dialog.d.ts +21 -0
  978. package/dist/components/ui/avatar.d.ts +11 -0
  979. package/dist/components/ui/badge.d.ts +5 -0
  980. package/dist/components/ui/breadcrumb.d.ts +11 -0
  981. package/dist/components/ui/button-group.d.ts +12 -0
  982. package/dist/components/ui/button.d.ts +12 -0
  983. package/dist/components/ui/calendar.d.ts +10 -0
  984. package/dist/components/ui/card.d.ts +11 -0
  985. package/dist/components/ui/checkbox.d.ts +6 -0
  986. package/dist/components/ui/collapsible.d.ts +9 -0
  987. package/dist/components/ui/combobox.d.ts +40 -0
  988. package/dist/components/ui/command.d.ts +50 -0
  989. package/dist/components/ui/dialog.d.ts +26 -0
  990. package/dist/components/ui/disclosure-panel.d.ts +14 -0
  991. package/dist/components/ui/empty.d.ts +11 -0
  992. package/dist/components/ui/input-group.d.ts +18 -0
  993. package/dist/components/ui/input.d.ts +3 -0
  994. package/dist/components/ui/item.d.ts +22 -0
  995. package/dist/components/ui/overlay.recipes.d.ts +2 -0
  996. package/dist/components/ui/pagination.d.ts +17 -0
  997. package/dist/components/ui/popover.d.ts +22 -0
  998. package/dist/components/ui/select.d.ts +18 -0
  999. package/dist/components/ui/separator.d.ts +3 -0
  1000. package/dist/components/ui/sheet.d.ts +25 -0
  1001. package/dist/components/ui/sidebar.d.ts +64 -0
  1002. package/dist/components/ui/skeleton.d.ts +2 -0
  1003. package/dist/components/ui/slot.d.ts +6 -0
  1004. package/dist/components/ui/sonner.d.ts +3 -0
  1005. package/dist/components/ui/switch.d.ts +5 -0
  1006. package/dist/components/ui/table.d.ts +13 -0
  1007. package/dist/components/ui/tabs.d.ts +10 -0
  1008. package/dist/components/ui/textarea.d.ts +3 -0
  1009. package/dist/components/ui/toggle-group.d.ts +12 -0
  1010. package/dist/components/ui/toggle.d.ts +8 -0
  1011. package/dist/components/ui/tooltip.d.ts +13 -0
  1012. package/dist/containers-CPNyNo1_.js +124 -0
  1013. package/dist/containers-CPNyNo1_.js.map +1 -0
  1014. package/dist/content-typography-CnwgMJ37.js +6 -0
  1015. package/dist/content-typography-CnwgMJ37.js.map +1 -0
  1016. package/dist/copyable-B7SBXJMr.js +65 -0
  1017. package/dist/copyable-B7SBXJMr.js.map +1 -0
  1018. package/dist/data-display-b3d1TfL4.js +1129 -0
  1019. package/dist/data-display-b3d1TfL4.js.map +1 -0
  1020. package/dist/date-BFNMnrS5.js +140 -0
  1021. package/dist/date-BFNMnrS5.js.map +1 -0
  1022. package/dist/date-picker-DI6kPNof.js +1521 -0
  1023. package/dist/date-picker-DI6kPNof.js.map +1 -0
  1024. package/dist/date-pickers-ByP6Cv2z.js +224 -0
  1025. package/dist/date-pickers-ByP6Cv2z.js.map +1 -0
  1026. package/dist/disclosure-panel-B0HFNZ9x.js +35 -0
  1027. package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -0
  1028. package/dist/display-ByI5tkqy.js +343 -0
  1029. package/dist/display-ByI5tkqy.js.map +1 -0
  1030. package/dist/dropdown-menu-BlnyHr-9.js +186 -0
  1031. package/dist/dropdown-menu-BlnyHr-9.js.map +1 -0
  1032. package/dist/editable-text-recipe-Bkm6wKHp.js +10 -0
  1033. package/dist/editable-text-recipe-Bkm6wKHp.js.map +1 -0
  1034. package/dist/favicon.svg +1 -0
  1035. package/dist/features/activities.js +1360 -0
  1036. package/dist/features/activities.js.map +1 -0
  1037. package/dist/features/ai-chat.js +567 -0
  1038. package/dist/features/ai-chat.js.map +1 -0
  1039. package/dist/features/async-preview.js +478 -0
  1040. package/dist/features/async-preview.js.map +1 -0
  1041. package/dist/features/combobox.js +3 -0
  1042. package/dist/features/comments.js +3 -0
  1043. package/dist/features/data-view.js +519 -0
  1044. package/dist/features/data-view.js.map +1 -0
  1045. package/dist/features/email-composer/engine.js +2 -0
  1046. package/dist/features/email-composer.js +1099 -0
  1047. package/dist/features/email-composer.js.map +1 -0
  1048. package/dist/features/event-calendar.js +711 -0
  1049. package/dist/features/event-calendar.js.map +1 -0
  1050. package/dist/features/filters.js +3 -0
  1051. package/dist/features/global-search.js +593 -0
  1052. package/dist/features/global-search.js.map +1 -0
  1053. package/dist/features/kanban.js +425 -0
  1054. package/dist/features/kanban.js.map +1 -0
  1055. package/dist/features/map/images/layers-2x.png +0 -0
  1056. package/dist/features/map/images/layers.png +0 -0
  1057. package/dist/features/map/images/marker-icon-2x.png +0 -0
  1058. package/dist/features/map/images/marker-icon.png +0 -0
  1059. package/dist/features/map/images/marker-shadow.png +0 -0
  1060. package/dist/features/map/images/spritesheet-2x.png +0 -0
  1061. package/dist/features/map/images/spritesheet.png +0 -0
  1062. package/dist/features/map/images/spritesheet.svg +156 -0
  1063. package/dist/features/map/style.css +809 -0
  1064. package/dist/features/map.js +1052 -0
  1065. package/dist/features/map.js.map +1 -0
  1066. package/dist/features/media-library.js +2007 -0
  1067. package/dist/features/media-library.js.map +1 -0
  1068. package/dist/features/mentions.js +3 -0
  1069. package/dist/features/overlays.js +3 -0
  1070. package/dist/features/products.js +3076 -0
  1071. package/dist/features/products.js.map +1 -0
  1072. package/dist/features/questionnaire.js +365 -0
  1073. package/dist/features/questionnaire.js.map +1 -0
  1074. package/dist/features/resource-assignment.js +317 -0
  1075. package/dist/features/resource-assignment.js.map +1 -0
  1076. package/dist/features/resource.js +254 -0
  1077. package/dist/features/resource.js.map +1 -0
  1078. package/dist/features/rich-text-editor.js +23 -0
  1079. package/dist/features/rich-text-editor.js.map +1 -0
  1080. package/dist/features/schema-form.js +744 -0
  1081. package/dist/features/schema-form.js.map +1 -0
  1082. package/dist/features/suggestions.js +149 -0
  1083. package/dist/features/suggestions.js.map +1 -0
  1084. package/dist/features/sync.js +136 -0
  1085. package/dist/features/sync.js.map +1 -0
  1086. package/dist/features/table.js +3 -0
  1087. package/dist/features/theme-tweaker.js +2083 -0
  1088. package/dist/features/theme-tweaker.js.map +1 -0
  1089. package/dist/feedback-a9j9J-9A.js +391 -0
  1090. package/dist/feedback-a9j9J-9A.js.map +1 -0
  1091. package/dist/field-affordance-recipes-CHdUtn2Z.js +17 -0
  1092. package/dist/field-affordance-recipes-CHdUtn2Z.js.map +1 -0
  1093. package/dist/field-state-recipes-CBTRt9Bt.js +11 -0
  1094. package/dist/field-state-recipes-CBTRt9Bt.js.map +1 -0
  1095. package/dist/filters-qtrcv1hf.js +2203 -0
  1096. package/dist/filters-qtrcv1hf.js.map +1 -0
  1097. package/dist/form-field-C6W-y2hR.js +48 -0
  1098. package/dist/form-field-C6W-y2hR.js.map +1 -0
  1099. package/dist/form-sizing-39NohSqn.js +99 -0
  1100. package/dist/form-sizing-39NohSqn.js.map +1 -0
  1101. package/dist/format-iamDSqs2.js +110 -0
  1102. package/dist/format-iamDSqs2.js.map +1 -0
  1103. package/dist/forms-BF-HSbff.js +194 -0
  1104. package/dist/forms-BF-HSbff.js.map +1 -0
  1105. package/dist/forms-numeric-Y15Bg5Nr.js +867 -0
  1106. package/dist/forms-numeric-Y15Bg5Nr.js.map +1 -0
  1107. package/dist/header-B8ex54cY.js +452 -0
  1108. package/dist/header-B8ex54cY.js.map +1 -0
  1109. package/dist/hooks/use-debounce.d.ts +1 -0
  1110. package/dist/hooks/use-debounced-callback.d.ts +40 -0
  1111. package/dist/hooks/use-files.d.ts +48 -0
  1112. package/dist/hooks/use-mobile.d.ts +2 -0
  1113. package/dist/hooks/useFormErrors.d.ts +7 -0
  1114. package/dist/hooks-D6UBVzf2.js +88 -0
  1115. package/dist/hooks-D6UBVzf2.js.map +1 -0
  1116. package/dist/http-CLTVJc5I.js +331 -0
  1117. package/dist/http-CLTVJc5I.js.map +1 -0
  1118. package/dist/icon-badge-Dv0RYQwj.js +53 -0
  1119. package/dist/icon-badge-Dv0RYQwj.js.map +1 -0
  1120. package/dist/icon-size-B6PVwjbC.js +18 -0
  1121. package/dist/icon-size-B6PVwjbC.js.map +1 -0
  1122. package/dist/index.d.ts +14 -0
  1123. package/dist/index.js +7 -0
  1124. package/dist/initials-format-CDoQEOd_.js +35 -0
  1125. package/dist/initials-format-CDoQEOd_.js.map +1 -0
  1126. package/dist/input-DMorJiTI.js +202 -0
  1127. package/dist/input-DMorJiTI.js.map +1 -0
  1128. package/dist/input-ci9fIgFH.js +20 -0
  1129. package/dist/input-ci9fIgFH.js.map +1 -0
  1130. package/dist/item-pJ0GsOiJ.js +257 -0
  1131. package/dist/item-pJ0GsOiJ.js.map +1 -0
  1132. package/dist/layout/app-shell.js +3 -0
  1133. package/dist/layout/auth.js +3 -0
  1134. package/dist/layout/containers.js +3 -0
  1135. package/dist/layout/header.js +3 -0
  1136. package/dist/layout/hooks.js +3 -0
  1137. package/dist/layout/navigation.js +3 -0
  1138. package/dist/layout/page.js +3 -0
  1139. package/dist/layout/settings.js +3 -0
  1140. package/dist/layout/sidebar.js +4 -0
  1141. package/dist/layout/workspace.js +3 -0
  1142. package/dist/layout.js +13 -0
  1143. package/dist/layout.types-Cn7aUzJp.js +20 -0
  1144. package/dist/layout.types-Cn7aUzJp.js.map +1 -0
  1145. package/dist/lib/action-presentation.d.ts +15 -0
  1146. package/dist/lib/affordance-geometry.generated.d.ts +18 -0
  1147. package/dist/lib/anchored-positioning.d.ts +5 -0
  1148. package/dist/lib/command-filter.d.ts +1 -0
  1149. package/dist/lib/component-vocabulary.d.ts +12 -0
  1150. package/dist/lib/editable-text-recipe.d.ts +6 -0
  1151. package/dist/lib/email-composer.d.ts +6 -0
  1152. package/dist/lib/field-affordance-recipes.d.ts +20 -0
  1153. package/dist/lib/field-state-recipes.d.ts +10 -0
  1154. package/dist/lib/format.d.ts +53 -0
  1155. package/dist/lib/motion-recipes.d.ts +8 -0
  1156. package/dist/lib/navigation-row-recipes.d.ts +26 -0
  1157. package/dist/lib/overlay-anatomy-recipes.d.ts +8 -0
  1158. package/dist/lib/row-recipes.d.ts +3 -0
  1159. package/dist/lib/sanitize-html.d.ts +8 -0
  1160. package/dist/lib/strings.d.ts +16 -0
  1161. package/dist/lib/strings.js +32 -0
  1162. package/dist/lib/strings.js.map +1 -0
  1163. package/dist/lib/surface-recipes.d.ts +27 -0
  1164. package/dist/lib/theme-scope.d.ts +31 -0
  1165. package/dist/lib/token-merge.generated.d.ts +2 -0
  1166. package/dist/lib/track-recipes.d.ts +4 -0
  1167. package/dist/lib/ui-provider/defaults.d.ts +12 -0
  1168. package/dist/lib/ui-provider/hooks.d.ts +13 -0
  1169. package/dist/lib/ui-provider/index.d.ts +28 -0
  1170. package/dist/lib/ui-provider/provider.d.ts +15 -0
  1171. package/dist/lib/ui-provider/scale.d.ts +5 -0
  1172. package/dist/lib/ui-provider/store.d.ts +11 -0
  1173. package/dist/lib/ui-provider/types.d.ts +157 -0
  1174. package/dist/lib/utils.d.ts +2 -0
  1175. package/dist/lib/utils.js +2 -0
  1176. package/dist/map-demo-tile.svg +1 -0
  1177. package/dist/media-gallery-Ca4YmvBi.js +200 -0
  1178. package/dist/media-gallery-Ca4YmvBi.js.map +1 -0
  1179. package/dist/mentions-CRio8mTm.js +563 -0
  1180. package/dist/mentions-CRio8mTm.js.map +1 -0
  1181. package/dist/message-B5-6LeYl.js +108 -0
  1182. package/dist/message-B5-6LeYl.js.map +1 -0
  1183. package/dist/motion-recipes-B6jKXEcN.js +27 -0
  1184. package/dist/motion-recipes-B6jKXEcN.js.map +1 -0
  1185. package/dist/navigation-BTrEb5u4.js +267 -0
  1186. package/dist/navigation-BTrEb5u4.js.map +1 -0
  1187. package/dist/navigation-DqEITuD2.js +265 -0
  1188. package/dist/navigation-DqEITuD2.js.map +1 -0
  1189. package/dist/navigation-row-recipes-BFpvGPGE.js +29 -0
  1190. package/dist/navigation-row-recipes-BFpvGPGE.js.map +1 -0
  1191. package/dist/number-BNT_BIzJ.js +269 -0
  1192. package/dist/number-BNT_BIzJ.js.map +1 -0
  1193. package/dist/overlay.recipes-BxW5FIfK.js +6 -0
  1194. package/dist/overlay.recipes-BxW5FIfK.js.map +1 -0
  1195. package/dist/overlays-DBqV0J_V.js +982 -0
  1196. package/dist/overlays-DBqV0J_V.js.map +1 -0
  1197. package/dist/page-BMBGjJY8.js +202 -0
  1198. package/dist/page-BMBGjJY8.js.map +1 -0
  1199. package/dist/page-header-BH41wCyY.js +112 -0
  1200. package/dist/page-header-BH41wCyY.js.map +1 -0
  1201. package/dist/pagination-C29vvt3I.js +149 -0
  1202. package/dist/pagination-C29vvt3I.js.map +1 -0
  1203. package/dist/popover-TInGXsjg.js +194 -0
  1204. package/dist/popover-TInGXsjg.js.map +1 -0
  1205. package/dist/popover-menu-BzqXqE72.js +99 -0
  1206. package/dist/popover-menu-BzqXqE72.js.map +1 -0
  1207. package/dist/popover.recipes-zgBhMlUu.js +34 -0
  1208. package/dist/popover.recipes-zgBhMlUu.js.map +1 -0
  1209. package/dist/primitives-DKPOGVpj.js +330 -0
  1210. package/dist/primitives-DKPOGVpj.js.map +1 -0
  1211. package/dist/primitives.js +7 -0
  1212. package/dist/receipt-DYWTQGEc.js +113 -0
  1213. package/dist/receipt-DYWTQGEc.js.map +1 -0
  1214. package/dist/rich-text-B7sBAdDG.js +32 -0
  1215. package/dist/rich-text-B7sBAdDG.js.map +1 -0
  1216. package/dist/rich-text-editor-BZSJchAF.js +575 -0
  1217. package/dist/rich-text-editor-BZSJchAF.js.map +1 -0
  1218. package/dist/rich-text-editor.recipes-DxvOE0Lp.js +72 -0
  1219. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +1 -0
  1220. package/dist/rich-text-editor.strings-BpnIQgMl.js +25 -0
  1221. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +1 -0
  1222. package/dist/row-recipes-DL8n7t_b.js +10 -0
  1223. package/dist/row-recipes-DL8n7t_b.js.map +1 -0
  1224. package/dist/sanitize-html-BG9FGe-j.js +64 -0
  1225. package/dist/sanitize-html-BG9FGe-j.js.map +1 -0
  1226. package/dist/scroll-area-BheMQ270.js +47 -0
  1227. package/dist/scroll-area-BheMQ270.js.map +1 -0
  1228. package/dist/select-B2mb-qN2.js +108 -0
  1229. package/dist/select-B2mb-qN2.js.map +1 -0
  1230. package/dist/separator-DO0EbCEm.js +17 -0
  1231. package/dist/separator-DO0EbCEm.js.map +1 -0
  1232. package/dist/separator-Gk_WXH-l.js +21 -0
  1233. package/dist/separator-Gk_WXH-l.js.map +1 -0
  1234. package/dist/services/actions/action-adapters.d.ts +77 -0
  1235. package/dist/services/actions/action-overlay-outlet.d.ts +3 -0
  1236. package/dist/services/actions/action-provider.d.ts +7 -0
  1237. package/dist/services/actions/action-scope.d.ts +3 -0
  1238. package/dist/services/actions/action-store.d.ts +55 -0
  1239. package/dist/services/actions/actions.strings.d.ts +2 -0
  1240. package/dist/services/actions/actions.types.d.ts +322 -0
  1241. package/dist/services/actions/hooks.d.ts +8 -0
  1242. package/dist/services/actions/index.d.ts +8 -0
  1243. package/dist/services/actions.js +811 -0
  1244. package/dist/services/actions.js.map +1 -0
  1245. package/dist/settings-D9f_wdIC.js +160 -0
  1246. package/dist/settings-D9f_wdIC.js.map +1 -0
  1247. package/dist/sheet-vOUloJ4O.js +205 -0
  1248. package/dist/sheet-vOUloJ4O.js.map +1 -0
  1249. package/dist/sidebar-C3UKkbC5.js +501 -0
  1250. package/dist/sidebar-C3UKkbC5.js.map +1 -0
  1251. package/dist/sidebar-CNBKFDRW.js +598 -0
  1252. package/dist/sidebar-CNBKFDRW.js.map +1 -0
  1253. package/dist/skeleton-BvRhK8y-.js +264 -0
  1254. package/dist/skeleton-BvRhK8y-.js.map +1 -0
  1255. package/dist/slot-CLF9kLrS.js +16 -0
  1256. package/dist/slot-CLF9kLrS.js.map +1 -0
  1257. package/dist/smart-card-B5FcKODh.js +577 -0
  1258. package/dist/smart-card-B5FcKODh.js.map +1 -0
  1259. package/dist/spinner-JtlFJ7Nc.js +78 -0
  1260. package/dist/spinner-JtlFJ7Nc.js.map +1 -0
  1261. package/dist/structure-BvW4vG4H.js +95 -0
  1262. package/dist/structure-BvW4vG4H.js.map +1 -0
  1263. package/dist/structure.recipes-DjqnBpwz.js +548 -0
  1264. package/dist/structure.recipes-DjqnBpwz.js.map +1 -0
  1265. package/dist/style.css +3 -0
  1266. package/dist/surface-recipes-CQfRr-VL.js +27 -0
  1267. package/dist/surface-recipes-CQfRr-VL.js.map +1 -0
  1268. package/dist/table-DnlAJ-xR.js +146 -0
  1269. package/dist/table-DnlAJ-xR.js.map +1 -0
  1270. package/dist/table-ghtAQ-JJ.js +1424 -0
  1271. package/dist/table-ghtAQ-JJ.js.map +1 -0
  1272. package/dist/tabs-DY09eoZg.js +187 -0
  1273. package/dist/tabs-DY09eoZg.js.map +1 -0
  1274. package/dist/text-inputs-BhOcedTo.js +331 -0
  1275. package/dist/text-inputs-BhOcedTo.js.map +1 -0
  1276. package/dist/text.styles-BwB7vAF2.js +64 -0
  1277. package/dist/text.styles-BwB7vAF2.js.map +1 -0
  1278. package/dist/theme-scope-kStaAer0.js +39 -0
  1279. package/dist/theme-scope-kStaAer0.js.map +1 -0
  1280. package/dist/theme.css +872 -0
  1281. package/dist/timelines-CnZ2S_Gr.js +446 -0
  1282. package/dist/timelines-CnZ2S_Gr.js.map +1 -0
  1283. package/dist/track-recipes-LLPNVwFg.js +10 -0
  1284. package/dist/track-recipes-LLPNVwFg.js.map +1 -0
  1285. package/dist/tree-COD9BGdU.js +185 -0
  1286. package/dist/tree-COD9BGdU.js.map +1 -0
  1287. package/dist/types/index.d.ts +11 -0
  1288. package/dist/types/locale.types.d.ts +7 -0
  1289. package/dist/types/pagination.types.d.ts +24 -0
  1290. package/dist/typography/rich-text.js +3 -0
  1291. package/dist/typography-Cv8MT-82.js +96 -0
  1292. package/dist/typography-Cv8MT-82.js.map +1 -0
  1293. package/dist/typography.js +3 -0
  1294. package/dist/ui-provider-CftIB6TY.js +128 -0
  1295. package/dist/ui-provider-CftIB6TY.js.map +1 -0
  1296. package/dist/ui-provider.js +4 -0
  1297. package/dist/upload-DIzw1dx1.js +849 -0
  1298. package/dist/upload-DIzw1dx1.js.map +1 -0
  1299. package/dist/upload-queue-xRJ3qDmd.js +410 -0
  1300. package/dist/upload-queue-xRJ3qDmd.js.map +1 -0
  1301. package/dist/use-debounce-DZ_1ZBPa.js +18 -0
  1302. package/dist/use-debounce-DZ_1ZBPa.js.map +1 -0
  1303. package/dist/use-debounced-callback-Cx1h-hdv.js +30 -0
  1304. package/dist/use-debounced-callback-Cx1h-hdv.js.map +1 -0
  1305. package/dist/use-file-drop-target-BX7GnhoQ.js +39 -0
  1306. package/dist/use-file-drop-target-BX7GnhoQ.js.map +1 -0
  1307. package/dist/use-mobile-vaLKwgyf.js +15 -0
  1308. package/dist/use-mobile-vaLKwgyf.js.map +1 -0
  1309. package/dist/utils-C2EKeIw3.js +72 -0
  1310. package/dist/utils-C2EKeIw3.js.map +1 -0
  1311. package/dist/value-inputs-Co1fu-xv.js +824 -0
  1312. package/dist/value-inputs-Co1fu-xv.js.map +1 -0
  1313. package/dist/workspace-Cbqz4FzN.js +402 -0
  1314. package/dist/workspace-Cbqz4FzN.js.map +1 -0
  1315. package/docs/consumer-skill/SKILL.md +32 -0
  1316. package/docs/consumer-skill/examples/app-layout.tsx +31 -0
  1317. package/docs/consumer-skill/examples/composition.tsx +37 -0
  1318. package/docs/consumer-skill/examples/content-workflow.tsx +13 -0
  1319. package/docs/consumer-skill/examples/destructive-confirm.tsx +42 -0
  1320. package/docs/consumer-skill/examples/detail.tsx +28 -0
  1321. package/docs/consumer-skill/examples/edit.tsx +61 -0
  1322. package/docs/consumer-skill/examples/email-composer.tsx +25 -0
  1323. package/docs/consumer-skill/examples/hierarchy-capture.tsx +25 -0
  1324. package/docs/consumer-skill/examples/index-table.tsx +36 -0
  1325. package/docs/consumer-skill/examples/manifest.json +94 -0
  1326. package/docs/consumer-skill/examples/receipt.tsx +19 -0
  1327. package/docs/consumer-skill/references/composition.md +170 -0
  1328. package/docs/consumer-skill/references/design-contract.md +145 -0
  1329. package/docs/consumer-skill/references/discovery.md +33 -0
  1330. package/docs/consumer-skill/references/installation.md +66 -0
  1331. package/docs/consumer-skill/references/integration.md +57 -0
  1332. package/docs/consumer-skill/references/public-api.json +17527 -0
  1333. package/docs/consumer-skill/references/theming.md +56 -0
  1334. package/docs/consumer-skill/references/tokens.json +422 -0
  1335. package/docs/consumer-skill/references/workflows.md +39 -0
  1336. package/docs/consumer-skill/scripts/discovery.mjs +79 -0
  1337. package/docs/consumer-skill/scripts/find-components.mjs +11 -0
  1338. package/package.json +621 -4
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ import { p as e } from "./sidebar-CNBKFDRW.js";
3
+ import { n as t } from "./layout.types-Cn7aUzJp.js";
4
+ import { useCallback as n, useEffect as r, useMemo as i } from "react";
5
+ import { jsx as a } from "react/jsx-runtime";
6
+ //#region src/components/layout/hooks/use-layout-link.tsx
7
+ function o({ renderLink: e } = {}) {
8
+ return i(() => t({ renderLink: e }), [e]);
9
+ }
10
+ //#endregion
11
+ //#region src/components/layout/sidebar/sidebar.utils.tsx
12
+ function s(e) {
13
+ if (e.startsWith("#/")) return e.slice(1).split("?")[0]?.split("#")[0] || "/";
14
+ try {
15
+ return new URL(e, "http://local.invalid").pathname;
16
+ } catch {
17
+ return e;
18
+ }
19
+ }
20
+ function c(e, t) {
21
+ let n = s(e);
22
+ return n === t || n.startsWith(t + "/") || n.startsWith(t + "?");
23
+ }
24
+ function l(e) {
25
+ return e.label;
26
+ }
27
+ function u(e, t) {
28
+ let n = l(e);
29
+ return e.handle ?? e.href ?? (typeof n == "string" || typeof n == "number" ? n : `nav-${t ?? 0}`);
30
+ }
31
+ function d({ value: t, size: n = "md" }) {
32
+ return /* @__PURE__ */ a(e, {
33
+ inline: !0,
34
+ size: n,
35
+ children: t
36
+ });
37
+ }
38
+ function f(e, t, n) {
39
+ return e && n && n[e] != null ? n[e] : t;
40
+ }
41
+ function p({ icon: e, iconMap: t = {}, size: n = 20, className: r = "size-icon", ...i }) {
42
+ if (!e) return null;
43
+ if (typeof e == "string") {
44
+ let n = t[e];
45
+ return n ? /* @__PURE__ */ a(n, { className: r }) : null;
46
+ }
47
+ return typeof e == "function" || typeof e == "object" && e && "$$typeof" in e ? /* @__PURE__ */ a(e, {
48
+ className: r,
49
+ width: n,
50
+ height: n,
51
+ ...i
52
+ }) : null;
53
+ }
54
+ function m(e, t, n, r, i) {
55
+ return e({
56
+ href: t.href,
57
+ children: n,
58
+ className: r,
59
+ active: i,
60
+ disabled: t.disabled || !t.href,
61
+ external: t.external
62
+ });
63
+ }
64
+ //#endregion
65
+ //#region src/components/layout/hooks/use-active-path.ts
66
+ function h(e = "/") {
67
+ return n((t) => !!t && c(e, s(t)), [e]);
68
+ }
69
+ //#endregion
70
+ //#region src/components/layout/hooks/use-command-shortcut.ts
71
+ function g({ key: e, enabled: t = !0, onTrigger: n, preventDefault: i = !0 }) {
72
+ r(() => {
73
+ if (!t || !n || typeof document > "u") return;
74
+ let r = (t) => {
75
+ (t.metaKey || t.ctrlKey) && t.key.toLowerCase() === e.toLowerCase() && (i && t.preventDefault(), n());
76
+ };
77
+ return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
78
+ }, [
79
+ t,
80
+ e,
81
+ n,
82
+ i
83
+ ]);
84
+ }
85
+ //#endregion
86
+ export { u as a, m as c, o as d, d as i, f as l, h as n, l as o, p as r, c as s, g as t, s as u };
87
+
88
+ //# sourceMappingURL=hooks-D6UBVzf2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks-D6UBVzf2.js","names":["IconComponent","SidebarMenuBadge","resolveLayoutLinkRenderer","useLayoutLinkRenderer","useMemo","renderLink","toPath","href","isPathMatch","currentPath","currentUrl","path","getNavLabel","item","getNavKey","label","fallbackIndex","NavBadge","value","resolveNavBadge","handle","liveBadges","itemBadge","DynamicIcon","props","icon","IconComponent","iconMap","size","renderSidebarLink","useActivePath","useCallback","useCommandShortcut","enabled","onTrigger","handler","event","key","preventDefault"],"sources":["../src/components/layout/hooks/use-layout-link.tsx","../src/components/layout/sidebar/sidebar.utils.tsx","../src/components/layout/hooks/use-active-path.ts","../src/components/layout/hooks/use-command-shortcut.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport {\n\tresolveLayoutLinkRenderer,\n\ttype LayoutLinkRenderer,\n\ttype LayoutNavigationAdapter,\n} from '../layout.types';\n\nexport function useLayoutLinkRenderer({\n\trenderLink,\n}: LayoutNavigationAdapter = {}): LayoutLinkRenderer {\n\treturn useMemo(\n\t\t() => resolveLayoutLinkRenderer({ renderLink }),\n\t\t[renderLink],\n\t);\n}\n"," \n/** Sidebar utilities — pure path helpers, labels, icon rendering, badge pill. */\nimport * as React from 'react';\n\nimport { SidebarMenuBadge } from '../../base/sidebar';\n\nimport type { LayoutIconSource, LayoutLinkRenderer } from '../layout.types';\nimport type { SidebarNavItem } from './sidebar.types';\nimport type { ComponentScale } from '../../../lib/component-vocabulary';\n\nexport function toPath(href: string): string {\n\tif (href.startsWith('#/')) {\n\t\treturn href.slice(1).split('?')[0]?.split('#')[0] || '/';\n\t}\n\n\ttry {\n\t\treturn new URL(href, 'http://local.invalid').pathname;\n\t} catch {\n\t\treturn href;\n\t}\n}\n\nexport function isPathMatch(currentUrl: string, path: string): boolean {\n\tconst currentPath = toPath(currentUrl);\n\treturn currentPath === path || currentPath.startsWith(path + '/') || currentPath.startsWith(path + '?');\n}\n\nexport function getNavLabel(item: Pick<SidebarNavItem, 'label'>): React.ReactNode {\n\treturn item.label;\n}\n\nexport function getNavKey(item: SidebarNavItem, fallbackIndex?: number): React.Key {\n\tconst label = getNavLabel(item);\n\treturn item.handle ?? item.href ?? (typeof label === 'string' || typeof label === 'number' ? label : `nav-${fallbackIndex ?? 0}`);\n}\n\nexport function NavBadge({\n\tvalue,\n\tsize = 'md',\n}: {\n\t/** Current value. Controlled. */\n\tvalue: string | number;\n\t/** Size preset. */\n\tsize?: ComponentScale;\n}) {\n\treturn (\n\t\t<SidebarMenuBadge inline size={size}>\n\t\t\t{value}\n\t\t</SidebarMenuBadge>\n\t);\n}\n\nexport function resolveNavBadge(\n\thandle: string | undefined,\n\titemBadge: string | number | undefined,\n\tliveBadges: Record<string, string | number> | undefined,\n): string | number | undefined {\n\tif (handle && liveBadges && liveBadges[handle] != null) {\n\t\treturn liveBadges[handle];\n\t}\n\treturn itemBadge;\n}\n\nexport interface DynamicIconProps extends React.SVGProps<SVGSVGElement> {\n\t/** Leading glyph. */\n\ticon: LayoutIconSource;\n\t/** Resolves an item's icon name to a component, keeping navigation data serialisable. */\n\ticonMap?: Record<string, React.ComponentType<{ className?: string }>>;\n\t/** Size preset. */\n\tsize?: number;\n\tclassName?: string;\n}\n\nexport function DynamicIcon({\n\ticon,\n\ticonMap = {},\n\tsize = 20,\n\tclassName = 'size-icon',\n\t...props\n}: DynamicIconProps) {\n\tif (!icon) return null;\n\n\tif (typeof icon === 'string') {\n\t\tconst IconComponent = iconMap[icon];\n\t\treturn IconComponent ? <IconComponent className={className} /> : null;\n\t}\n\n\tif (\n\t\ttypeof icon === 'function'\n\t\t|| (typeof icon === 'object' && icon !== null && '$$typeof' in icon)\n\t) {\n\t\tconst IconComponent = icon as React.ElementType<React.SVGProps<SVGSVGElement>>;\n\t\treturn <IconComponent className={className} width={size} height={size} {...props} />;\n\t}\n\n\treturn null;\n}\n\nexport function renderSidebarLink(\n\trenderLink: LayoutLinkRenderer,\n\titem: SidebarNavItem,\n\tchildren: React.ReactNode,\n\tclassName?: string,\n\tactive?: boolean,\n) {\n\treturn renderLink({\n\t\thref: item.href,\n\t\tchildren,\n\t\tclassName,\n\t\tactive,\n\t\tdisabled: item.disabled || !item.href,\n\t\texternal: item.external,\n\t});\n}\n","import { useCallback } from 'react';\n\nimport { isPathMatch, toPath } from '../sidebar/sidebar.utils';\n\nexport function useActivePath(currentUrl = '/') {\n\treturn useCallback(\n\t\t(href?: string) => !!href && isPathMatch(currentUrl, toPath(href)),\n\t\t[currentUrl],\n\t);\n}\n","import { useEffect } from 'react';\n\nexport interface UseCommandShortcutOptions {\n\tkey: string;\n\tenabled?: boolean;\n\tonTrigger?: () => void;\n\tpreventDefault?: boolean;\n}\n\nexport function useCommandShortcut({\n\tkey,\n\tenabled = true,\n\tonTrigger,\n\tpreventDefault = true,\n}: UseCommandShortcutOptions) {\n\tuseEffect(() => {\n\t\tif (!enabled || !onTrigger || typeof document === 'undefined') return;\n\n\t\tconst handler = (event: KeyboardEvent) => {\n\t\t\tif (!(event.metaKey || event.ctrlKey)) return;\n\t\t\tif (event.key.toLowerCase() !== key.toLowerCase()) return;\n\t\t\tif (preventDefault) event.preventDefault();\n\t\t\tonTrigger();\n\t\t};\n\n\t\tdocument.addEventListener('keydown', handler);\n\t\treturn () => document.removeEventListener('keydown', handler);\n\t}, [enabled, key, onTrigger, preventDefault]);\n}\n"],"mappings":";;;;;;AAQA,SAAgBG,EAAsB,EACrC,kBAC4B,CAAC,GAAuB;CACpD,OAAOC,QACAF,EAA0B,EAAE,cAAW,CAAC,GAC9C,CAACG,CAAU,CACZ;AACD;;;ACLA,SAAgBC,EAAO,GAAsB;CAC5C,IAAIC,EAAK,WAAW,IAAI,GACvB,OAAOA,EAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM;CAGtD,IAAI;EACH,OAAO,IAAI,IAAIA,GAAM,sBAAsB,CAAC,CAAC;CAC9C,QAAQ;EACP,OAAOA;CACR;AACD;AAEA,SAAgBC,EAAY,GAAoB,GAAuB;CACtE,IAAMC,IAAcH,EAAOI,CAAU;CACrC,OAAOD,MAAgBE,KAAQF,EAAY,WAAWE,IAAO,GAAG,KAAKF,EAAY,WAAWE,IAAO,GAAG;AACvG;AAEA,SAAgBC,EAAY,GAAsD;CACjF,OAAOC,EAAK;AACb;AAEA,SAAgBC,EAAU,GAAsB,GAAmC;CAClF,IAAMC,IAAQH,EAAYC,CAAI;CAC9B,OAAOA,EAAK,UAAUA,EAAK,SAAS,OAAOE,KAAU,YAAY,OAAOA,KAAU,WAAWA,IAAQ,OAAOC,KAAiB;AAC9H;AAEA,SAAgBC,EAAS,EACxB,UACA,UAAO,QAML;CACF,OACC,kBAAChB,GAAD;EAAkB,QAAA;EAAa;EAC7B,UAAAiB;CACgB,CAAA;AAEpB;AAEA,SAAgBC,EACf,GACA,GACA,GAC8B;CAI9B,OAHIC,KAAUC,KAAcA,EAAWD,MAAW,OAC1CC,EAAWD,KAEZE;AACR;AAYA,SAAgBC,EAAY,EAC3B,SACA,aAAU,CAAC,GACX,UAAO,IACP,eAAY,aACZ,GAAGC,KACiB;CACpB,IAAI,CAACC,GAAM,OAAO;CAElB,IAAI,OAAOA,KAAS,UAAU;EAC7B,IAAMC,IAAgBC,EAAQF;EAC9B,OAAOC,IAAgB,kBAACA,GAAD,EAA0B,aAAY,CAAA,IAAI;CAClE;CAUA,OAPC,OAAOD,KAAS,cACZ,OAAOA,KAAS,YAAYA,KAAiB,cAAcA,IAGxD,kBAACzB,GAAD;EAA0B;EAAW,OAAO4B;EAAM,QAAQA;EAAM,GAAIJ;CAAQ,CAAA,IAG7E;AACR;AAEA,SAAgBK,EACf,GACA,GACA,GACA,GACA,GACC;CACD,OAAOxB,EAAW;EACjB,MAAMQ,EAAK;EACX;EACA;EACA;EACA,UAAUA,EAAK,YAAY,CAACA,EAAK;EACjC,UAAUA,EAAK;CAChB,CAAC;AACF;;;AC7GA,SAAgBiB,EAAc,IAAa,KAAK;CAC/C,OAAOC,GACL,MAAkB,CAAC,CAACxB,KAAQC,EAAYE,GAAYJ,EAAOC,CAAI,CAAC,GACjE,CAACG,CAAU,CACZ;AACD;;;ACAA,SAAgBsB,EAAmB,EAClC,QACA,aAAU,IACV,cACA,oBAAiB,MACY;CAC7B,QAAgB;EACf,IAAI,CAACC,KAAW,CAACC,KAAa,OAAO,WAAa,KAAa;EAE/D,IAAMC,KAAW,MAAyB;GACzC,CAAMC,EAAM,WAAWA,EAAM,YACzBA,EAAM,IAAI,YAAY,MAAMC,EAAI,YAAY,MAC5CC,KAAgBF,EAAM,eAAe,GACzCF,EAAU;EACX;EAGA,OADA,SAAS,iBAAiB,WAAWC,CAAO,SAC/B,SAAS,oBAAoB,WAAWA,CAAO;CAC7D,GAAG;EAACF;EAASI;EAAKH;EAAWI;CAAc,CAAC;AAC7C"}
@@ -0,0 +1,331 @@
1
+ import { t as e } from "./rich-text-editor.strings-BpnIQgMl.js";
2
+ import { fromHtml as t } from "hast-util-from-html";
3
+ import { sanitize as n } from "hast-util-sanitize";
4
+ import { toHtml as r } from "hast-util-to-html";
5
+ //#region src/components/features/email-composer/email-html.ts
6
+ var i = {
7
+ tagNames: /* @__PURE__ */ "a.b.blockquote.br.code.del.div.em.h1.h2.h3.h4.h5.h6.hr.i.img.li.mark.ol.p.pre.s.span.strong.sub.sup.table.tbody.td.th.thead.tfoot.tr.u.ul".split("."),
8
+ attributes: {
9
+ "*": [
10
+ "style",
11
+ "align",
12
+ "width",
13
+ "height"
14
+ ],
15
+ a: ["href", "title"],
16
+ img: [
17
+ "src",
18
+ "alt",
19
+ "title"
20
+ ],
21
+ span: ["dataPlaceholder"],
22
+ ol: ["start"],
23
+ td: ["colSpan", "rowSpan"],
24
+ th: ["colSpan", "rowSpan"],
25
+ table: [
26
+ "cellPadding",
27
+ "cellSpacing",
28
+ "border"
29
+ ]
30
+ },
31
+ protocols: {
32
+ href: [
33
+ "https",
34
+ "http",
35
+ "mailto"
36
+ ],
37
+ src: ["https"]
38
+ },
39
+ strip: [
40
+ "script",
41
+ "style",
42
+ "iframe",
43
+ "object",
44
+ "embed",
45
+ "svg",
46
+ "math",
47
+ "template",
48
+ "form",
49
+ "input",
50
+ "button"
51
+ ]
52
+ }, a = /* @__PURE__ */ new Set(/* @__PURE__ */ "color.background.background-color.border.border-top.border-right.border-bottom.border-left.border-color.border-width.border-style.border-collapse.border-spacing.border-radius.padding.padding-top.padding-right.padding-bottom.padding-left.margin.margin-top.margin-right.margin-bottom.margin-left.width.max-width.min-width.height.font-family.font-size.font-weight.font-style.line-height.text-align.text-decoration.vertical-align.white-space".split("."));
53
+ function o(e) {
54
+ if (e.type === "element") {
55
+ for (let t of ["href", "src"]) {
56
+ let n = e.properties[t];
57
+ typeof n == "string" && (n.trimStart().startsWith("//") || t === "src" && !/^https:\/\//i.test(n)) && delete e.properties[t];
58
+ }
59
+ let t = e.properties.style;
60
+ typeof t == "string" && (e.properties.style = t.split(";").flatMap((e) => {
61
+ let t = e.indexOf(":"), n = e.slice(0, t).trim().toLowerCase(), r = e.slice(t + 1).trim();
62
+ return t > 0 && a.has(n) && r && /^[\w\s#%.,()'"+\/-]+$/.test(r) && !/url\s*\(|expression|@|javascript|var\s*\(/i.test(r) ? [`${n}:${r}`] : [];
63
+ }).join(";"), e.properties.style || delete e.properties.style);
64
+ }
65
+ (e.type === "root" || e.type === "element") && e.children.forEach(o);
66
+ }
67
+ function s(e) {
68
+ return t(e, { fragment: !0 });
69
+ }
70
+ function c(e) {
71
+ let t = n(e, i);
72
+ if (t.type !== "root") throw Error("Expected an HTML document fragment.");
73
+ return o(t), t;
74
+ }
75
+ function l(e) {
76
+ return r(c(s(e)));
77
+ }
78
+ function u(e) {
79
+ return e.type === "text" ? e.value : e.type !== "root" && e.type !== "element" ? "" : e.type === "element" && e.tagName === "br" ? "\n" : e.children.map(u).join("") + (e.type === "element" && /^(p|div|li|h[1-6]|tr|blockquote|pre)$/.test(e.tagName) ? "\n" : "");
80
+ }
81
+ //#endregion
82
+ //#region src/components/features/email-composer/strings.ts
83
+ var d = {
84
+ toolbar: e.toolbar,
85
+ title: "New message",
86
+ to: "To",
87
+ cc: "Cc",
88
+ bcc: "Bcc",
89
+ subject: "Subject",
90
+ body: "Message body",
91
+ recipientPlaceholder: "Name <email@example.com>",
92
+ addRecipient: (e) => `Add ${e} recipient`,
93
+ recipientLabel: (e, t) => `${e} recipient ${t + 1}`,
94
+ removeRecipient: (e) => `Remove ${e}`,
95
+ newRecipient: (e) => `New ${e} recipient`,
96
+ templates: "Templates",
97
+ searchTemplates: "Search templates…",
98
+ noTemplates: "No templates found.",
99
+ importTemplate: "Import template",
100
+ templatesUnavailable: "Templates are unavailable. Wait for loading to finish or retry.",
101
+ loadingTemplates: "Loading templates…",
102
+ loadingVariables: "Loading variables…",
103
+ loadingRecipients: (e) => `Loading ${e} recipients…`,
104
+ retry: "Retry",
105
+ dataUnavailable: "Wait for required recipient and variable data to finish loading, or retry the failed request.",
106
+ variables: "Variables",
107
+ variablesDescription: "Insert a variable into the message, or override its live value for this draft.",
108
+ insertVariable: (e) => `Insert ${e}`,
109
+ reset: "Reset",
110
+ dynamic: "Dynamic value",
111
+ overridden: "Manual override",
112
+ choose: "Choose…",
113
+ editor: "Editor",
114
+ preview: "Preview",
115
+ previewLabel: "Email body preview",
116
+ send: "Send email",
117
+ discard: "Discard",
118
+ working: "Working…",
119
+ sent: "Email sent successfully.",
120
+ discarded: "Draft discarded.",
121
+ close: "Close composer",
122
+ more: "More actions",
123
+ link: "Add or edit link",
124
+ linkTitle: "Message link",
125
+ linkUrl: "Link URL",
126
+ closeLink: "Close link editor",
127
+ closeConversion: "Close conversion confirmation",
128
+ apply: "Apply",
129
+ cancel: "Cancel",
130
+ invalidLink: "Use an https://, http://, or mailto: URL.",
131
+ convert: "Convert to editable rich text",
132
+ convertTitle: "Convert HTML layout?",
133
+ convertDescription: "Unsupported layout elements and styling may be lost when converting to rich text.",
134
+ missingRecipient: "Add at least one recipient.",
135
+ invalidRecipients: (e) => `Check ${e} addresses.`,
136
+ invalidSubject: "Enter a single-line subject.",
137
+ invalidResolvedSubject: "Resolved subject must be a nonempty single line.",
138
+ emptyBody: "Enter a message.",
139
+ missingVariables: (e) => `Set values for: ${e.join(", ")}.`,
140
+ attributeVariables: "Placeholders in HTML attributes are unsupported. Put placeholders in visible text.",
141
+ unknownVariable: (e) => `Unknown placeholder: ${e}`,
142
+ duplicateVariable: (e) => `Duplicate placeholder: ${e}`,
143
+ unknownTemplate: (e) => `Unknown template: ${e}`,
144
+ duplicateTemplate: "Template IDs must be unique.",
145
+ editableRequired: "Use editable rich text for this operation.",
146
+ editorNotReady: "Editor is not ready.",
147
+ unsupportedNode: (e) => `Unsupported document node: ${e}`,
148
+ renderError: "Unable to render the message.",
149
+ errorTitle: "Message could not be completed"
150
+ }, f = {
151
+ type: "doc",
152
+ content: [{ type: "paragraph" }]
153
+ }, p = (e) => e.replace(/[&<>"']/g, (e) => ({
154
+ "&": "&amp;",
155
+ "<": "&lt;",
156
+ ">": "&gt;",
157
+ "\"": "&quot;",
158
+ "'": "&#39;"
159
+ })[e]);
160
+ function m(e, t = d) {
161
+ let n = () => (e.content ?? []).map((e) => m(e, t)).join("");
162
+ if (e.type === "text" || e.type === "placeholderToken") {
163
+ let n = p(String(e.attrs?.key ?? "")), r = e.type === "text" ? p(e.text ?? "") : `<span data-placeholder="${n}">{{${n}}}</span>`;
164
+ for (let n of e.marks ?? []) {
165
+ let e = {
166
+ bold: "strong",
167
+ italic: "em",
168
+ strike: "s",
169
+ underline: "u",
170
+ code: "code"
171
+ };
172
+ if (e[n.type]) r = `<${e[n.type]}>${r}</${e[n.type]}>`;
173
+ else if (n.type === "link") r = `<a href="${p(String(n.attrs?.href ?? ""))}">${r}</a>`;
174
+ else throw Error(t.unsupportedNode(n.type));
175
+ }
176
+ return r;
177
+ }
178
+ if (e.type === "doc") return n();
179
+ if (e.type === "hardBreak") return "<br>";
180
+ if (e.type === "horizontalRule") return "<hr>";
181
+ if (e.type === "heading") {
182
+ let t = Math.min(6, Math.max(1, Number(e.attrs?.level) || 2));
183
+ return `<h${t}>${n()}</h${t}>`;
184
+ }
185
+ if (e.type === "codeBlock") return `<pre><code>${n()}</code></pre>`;
186
+ if (e.type === "orderedList") return `<ol start="${Math.max(1, Math.trunc(Number(e.attrs?.start) || 1))}">${n()}</ol>`;
187
+ let r = {
188
+ paragraph: "p",
189
+ blockquote: "blockquote",
190
+ bulletList: "ul",
191
+ orderedList: "ol",
192
+ listItem: "li"
193
+ };
194
+ if (!e.type || !r[e.type]) throw Error(t.unsupportedNode(e.type ?? "unknown"));
195
+ return `<${r[e.type]}>${n()}</${r[e.type]}>`;
196
+ }
197
+ function h(e, t = d) {
198
+ return l(g(e, t));
199
+ }
200
+ function g(e, t) {
201
+ return e.kind === "html" ? e.html : e.kind === "text" ? `<p>${p(e.text).replace(/\n/g, "<br>")}</p>` : m(e.document, t);
202
+ }
203
+ //#endregion
204
+ //#region src/components/features/email-composer/engine.ts
205
+ var _ = /\{\{([a-zA-Z0-9_.-]+)\}\}/g;
206
+ function v(e, t, n, r) {
207
+ let i = Object.create(null);
208
+ for (let a of Object.keys(n)) {
209
+ let o = Object.hasOwn(e.placeholderOverrides, a) ? e.placeholderOverrides[a] : void 0;
210
+ i[a] = o === void 0 ? n[a].resolve(t) ?? r?.defaults?.[a] ?? n[a].fallback ?? null : o;
211
+ }
212
+ return i;
213
+ }
214
+ function y(e, t, n, i, a = d) {
215
+ let o = v(e, t, n, i), l = /* @__PURE__ */ new Set(), f = (e) => {
216
+ let t = Object.hasOwn(o, e) ? o[e] : null;
217
+ return t == null || t === "" ? (l.add(e), `{{${e}}}`) : String(t);
218
+ }, p = e.subject.replace(_, (e, t) => f(t)), m = s(g(e.body, a));
219
+ function h(e) {
220
+ if (e.type === "element") {
221
+ for (let [t, n] of Object.entries(e.properties)) if (t !== "dataPlaceholder" && typeof n == "string" && n.includes("{{")) throw Error(a.attributeVariables);
222
+ }
223
+ (e.type === "root" || e.type === "element") && (e.children = e.children.map((e) => e.type === "element" && e.properties.dataPlaceholder !== void 0 ? {
224
+ type: "text",
225
+ value: f(String(e.properties.dataPlaceholder))
226
+ } : e.type === "text" ? {
227
+ ...e,
228
+ value: e.value.replace(_, (e, t) => f(t))
229
+ } : (h(e), e)));
230
+ }
231
+ h(m);
232
+ for (let e of Object.keys(n)) n[e]?.required && (o[e] == null || o[e] === "") && l.add(e);
233
+ for (let e of i?.requiredPlaceholders ?? []) (o[e] == null || o[e] === "") && l.add(e);
234
+ let y = c(m);
235
+ return {
236
+ email: {
237
+ to: structuredClone(e.to),
238
+ cc: structuredClone(e.cc),
239
+ bcc: structuredClone(e.bcc),
240
+ subject: p,
241
+ html: r(y),
242
+ text: u(y).trim(),
243
+ templateId: e.templateId,
244
+ resolvedPlaceholders: o
245
+ },
246
+ unresolved: [...l]
247
+ };
248
+ }
249
+ function b(e, t, n, r, i = d) {
250
+ let a = [], o, s = "";
251
+ e.to.length || a.push({
252
+ field: "to",
253
+ message: i.missingRecipient
254
+ });
255
+ for (let t of [
256
+ "to",
257
+ "cc",
258
+ "bcc"
259
+ ]) e[t].some((e) => !/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/.test(e.email) || /[\r\n]/.test(e.name ?? "")) && a.push({
260
+ field: t,
261
+ message: i.invalidRecipients(i[t])
262
+ });
263
+ (!e.subject.trim() || /[\r\n]/.test(e.subject)) && a.push({
264
+ field: "subject",
265
+ message: i.invalidSubject
266
+ });
267
+ try {
268
+ let s = y(e, t, n, r, i);
269
+ o = s, s.email.text.trim() || a.push({
270
+ field: "body",
271
+ message: i.emptyBody
272
+ }), s.unresolved.length && a.push({
273
+ field: "placeholders",
274
+ message: i.missingVariables(s.unresolved)
275
+ }), (!s.email.subject.trim() || /[\r\n]/.test(s.email.subject)) && !a.some((e) => e.field === "subject") && a.push({
276
+ field: "subject",
277
+ message: i.invalidResolvedSubject
278
+ });
279
+ } catch (e) {
280
+ s = e instanceof Error ? e.message : i.renderError, a.push({
281
+ field: "body",
282
+ message: s
283
+ });
284
+ }
285
+ return {
286
+ rendered: o,
287
+ renderError: s,
288
+ issues: a
289
+ };
290
+ }
291
+ function x(e, t, n, r, i = d) {
292
+ return b(e, t, n, r, i).issues;
293
+ }
294
+ function S(e) {
295
+ return e.name ? `${e.name} <${e.email}>` : e.email;
296
+ }
297
+ function C(e) {
298
+ let t = e.trim().match(/^(.*?)\s*<([^<>]+)>$/);
299
+ return t ? {
300
+ name: t[1].trim(),
301
+ email: t[2].trim()
302
+ } : { email: e.trim() };
303
+ }
304
+ //#endregion
305
+ //#region src/components/features/email-composer/http.ts
306
+ function w(e, t = {}) {
307
+ return async (n) => {
308
+ let r = await fetch(e, {
309
+ method: "POST",
310
+ credentials: "same-origin",
311
+ headers: {
312
+ "Content-Type": "application/json",
313
+ ...t.headers
314
+ },
315
+ body: JSON.stringify(n),
316
+ signal: AbortSignal.timeout(t.timeoutMs ?? 3e4)
317
+ });
318
+ if (!r.ok) {
319
+ let e = `Email request failed (${r.status}).`;
320
+ try {
321
+ let t = await r.json();
322
+ t && typeof t == "object" && "message" in t && typeof t.message == "string" && (e = t.message);
323
+ } catch {}
324
+ throw Error(e);
325
+ }
326
+ };
327
+ }
328
+ //#endregion
329
+ export { y as a, h as c, S as i, f as l, b as n, v as o, C as r, x as s, w as t, d as u };
330
+
331
+ //# sourceMappingURL=http-CLTVJc5I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-CLTVJc5I.js","names":["defaultRichTextEditorStrings","schema","styleProperties","cleanProperties","node","key","value","style","split","declaration","name","parseEmailHtml","fromHtml","html","sanitizeEmailTree","cleaned","sanitize","tree","sanitizeEmailHtml","toHtml","emailHtmlText","defaultEmailComposerStrings","field","index","email","label","keys","id","emptyDocument","escapeEmailHtml","char","documentHtml","content","child","strings","text","mark","tags","level","bodyHtml","bodyMarkup","body","tokens","resolveValues","values","definitions","override","draft","context","template","renderEmail","unresolved","get","subject","visit","clean","inspectDraft","issues","rendered","renderError","r","result","issue","error","validate","recipientLabel","recipient","parseRecipient","match","createHttpSender","response","endpoint","options","message"],"sources":["../src/components/features/email-composer/email-html.ts","../src/components/features/email-composer/strings.ts","../src/components/features/email-composer/document.ts","../src/components/features/email-composer/engine.ts","../src/components/features/email-composer/http.ts"],"sourcesContent":["import { fromHtml } from 'hast-util-from-html';\nimport { sanitize, type Schema } from 'hast-util-sanitize';\nimport { toHtml } from 'hast-util-to-html';\nimport type { Root, RootContent } from 'hast';\nconst tags = ['a', 'b', 'blockquote', 'br', 'code', 'del', 'div', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'mark', 'ol', 'p', 'pre', 's', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'th', 'thead', 'tfoot', 'tr', 'u', 'ul'];\nconst schema: Schema = {\n\ttagNames: tags, attributes: { '*': ['style', 'align', 'width', 'height'], a: ['href', 'title'], img: ['src', 'alt', 'title'], span: ['dataPlaceholder'], ol: ['start'], td: ['colSpan', 'rowSpan'], th: ['colSpan', 'rowSpan'], table: ['cellPadding', 'cellSpacing', 'border'] },\n\tprotocols: { href: ['https', 'http', 'mailto'], src: ['https'] },\n\tstrip: ['script', 'style', 'iframe', 'object', 'embed', 'svg', 'math', 'template', 'form', 'input', 'button'],\n};\n// Email content has its own small allowlist; admin UI theme styles never enter it.\nconst styleProperties = new Set(['color', 'background', 'background-color', 'border', 'border-top', 'border-right', 'border-bottom', 'border-left', 'border-color', 'border-width', 'border-style', 'border-collapse', 'border-spacing', 'border-radius', 'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left', 'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', 'width', 'max-width', 'min-width', 'height', 'font-family', 'font-size', 'font-weight', 'font-style', 'line-height', 'text-align', 'text-decoration', 'vertical-align', 'white-space']);\nfunction cleanProperties(node: Root | RootContent): void {\n\tif (node.type === 'element') {\n\t\tfor (const key of ['href', 'src']) {\n\t\t\tconst value = node.properties[key];\n\t\t\tif (typeof value === 'string' && (value.trimStart().startsWith('//') || (key === 'src' && !/^https:\\/\\//i.test(value))))\n\t\t\t\tdelete node.properties[key];\n\t\t}\n\t\tconst style = node.properties.style;\n\t\tif (typeof style === 'string') {\n\t\t\tnode.properties.style = style.split(';').flatMap(declaration => {\n\t\t\t\tconst split = declaration.indexOf(':');\n\t\t\t\tconst name = declaration.slice(0, split).trim().toLowerCase();\n\t\t\t\tconst value = declaration.slice(split + 1).trim();\n\t\t\t\treturn split > 0 && styleProperties.has(name) && value && /^[\\w\\s#%.,()'\"+\\/-]+$/.test(value) && !/url\\s*\\(|expression|@|javascript|var\\s*\\(/i.test(value) ? [`${name}:${value}`] : [];\n\t\t\t}).join(';');\n\t\t\tif (!node.properties.style)\n\t\t\t\tdelete node.properties.style;\n\t\t}\n\t}\n\tif (node.type === 'root' || node.type === 'element')\n\t\tnode.children.forEach(cleanProperties);\n}\nexport function parseEmailHtml(html: string): Root { return fromHtml(html, { fragment: true }); }\nexport function sanitizeEmailTree(tree: Root): Root {\n\tconst cleaned = sanitize(tree, schema);\n\tif (cleaned.type !== 'root')\n\t\tthrow new Error('Expected an HTML document fragment.');\n\tcleanProperties(cleaned);\n\treturn cleaned;\n}\nexport function sanitizeEmailHtml(html: string): string { return toHtml(sanitizeEmailTree(parseEmailHtml(html))); }\nexport function emailHtmlText(tree: Root | RootContent): string {\n\tif (tree.type === 'text')\n\t\treturn tree.value;\n\tif (tree.type !== 'root' && tree.type !== 'element')\n\t\treturn '';\n\tif (tree.type === 'element' && tree.tagName === 'br')\n\t\treturn '\\n';\n\tconst text = tree.children.map(emailHtmlText).join('');\n\treturn text + (tree.type === 'element' && /^(p|div|li|h[1-6]|tr|blockquote|pre)$/.test(tree.tagName) ? '\\n' : '');\n}\n","import { defaultRichTextEditorStrings } from '../rich-text-editor/rich-text-editor.strings';\nexport const defaultEmailComposerStrings = {\n\ttoolbar: defaultRichTextEditorStrings.toolbar,\n\ttitle: 'New message', to: 'To', cc: 'Cc', bcc: 'Bcc', subject: 'Subject', body: 'Message body',\n\trecipientPlaceholder: 'Name <email@example.com>', addRecipient: (field: string) => `Add ${field} recipient`,\n\trecipientLabel: (field: string, index: number) => `${field} recipient ${index + 1}`,\n\tremoveRecipient: (email: string) => `Remove ${email}`, newRecipient: (field: string) => `New ${field} recipient`,\n\ttemplates: 'Templates', searchTemplates: 'Search templates…', noTemplates: 'No templates found.', importTemplate: 'Import template',\n\ttemplatesUnavailable: 'Templates are unavailable. Wait for loading to finish or retry.', loadingTemplates: 'Loading templates…', loadingVariables: 'Loading variables…', loadingRecipients: (field: string) => `Loading ${field} recipients…`, retry: 'Retry', dataUnavailable: 'Wait for required recipient and variable data to finish loading, or retry the failed request.',\n\tvariables: 'Variables', variablesDescription: 'Insert a variable into the message, or override its live value for this draft.', insertVariable: (label: string) => `Insert ${label}`, reset: 'Reset', dynamic: 'Dynamic value', overridden: 'Manual override',\n\tchoose: 'Choose…', editor: 'Editor', preview: 'Preview', previewLabel: 'Email body preview',\n\tsend: 'Send email', discard: 'Discard', working: 'Working…', sent: 'Email sent successfully.', discarded: 'Draft discarded.', close: 'Close composer', more: 'More actions',\n\tlink: 'Add or edit link', linkTitle: 'Message link', linkUrl: 'Link URL', closeLink: 'Close link editor', closeConversion: 'Close conversion confirmation', apply: 'Apply', cancel: 'Cancel',\n\tinvalidLink: 'Use an https://, http://, or mailto: URL.', convert: 'Convert to editable rich text',\n\tconvertTitle: 'Convert HTML layout?', convertDescription: 'Unsupported layout elements and styling may be lost when converting to rich text.',\n\tmissingRecipient: 'Add at least one recipient.', invalidRecipients: (field: string) => `Check ${field} addresses.`,\n\tinvalidSubject: 'Enter a single-line subject.', invalidResolvedSubject: 'Resolved subject must be a nonempty single line.', emptyBody: 'Enter a message.',\n\tmissingVariables: (keys: readonly string[]) => `Set values for: ${keys.join(', ')}.`,\n\tattributeVariables: 'Placeholders in HTML attributes are unsupported. Put placeholders in visible text.',\n\tunknownVariable: (key: string) => `Unknown placeholder: ${key}`, duplicateVariable: (key: string) => `Duplicate placeholder: ${key}`,\n\tunknownTemplate: (id: string) => `Unknown template: ${id}`, duplicateTemplate: 'Template IDs must be unique.',\n\teditableRequired: 'Use editable rich text for this operation.', editorNotReady: 'Editor is not ready.',\n\tunsupportedNode: (node: string) => `Unsupported document node: ${node}`, renderError: 'Unable to render the message.',\n\terrorTitle: 'Message could not be completed',\n};\nexport type EmailComposerStrings = typeof defaultEmailComposerStrings;\n","import type { JSONContent } from '@tiptap/react';\nimport type { EmailBody } from './types';\nimport { sanitizeEmailHtml } from './email-html';\nimport { defaultEmailComposerStrings, type EmailComposerStrings } from './strings';\nexport const emptyDocument: JSONContent = { type: 'doc', content: [{ type: 'paragraph' }] };\nexport const escapeEmailHtml = (value: string): string => value.replace(/[&<>\"']/g, char => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' })[char]!);\nexport function documentHtml(node: JSONContent, strings: EmailComposerStrings = defaultEmailComposerStrings): string {\n\tconst content = () => (node.content ?? []).map(child => documentHtml(child, strings)).join('');\n\tif (node.type === 'text' || node.type === 'placeholderToken') {\n\t\tconst key = escapeEmailHtml(String(node.attrs?.key ?? ''));\n\t\tlet text = node.type === 'text' ? escapeEmailHtml(node.text ?? '') : `<span data-placeholder=\"${key}\">{{${key}}}</span>`;\n\t\tfor (const mark of node.marks ?? []) {\n\t\t\tconst tags: Record<string, string> = { bold: 'strong', italic: 'em', strike: 's', underline: 'u', code: 'code' };\n\t\t\tif (tags[mark.type])\n\t\t\t\ttext = `<${tags[mark.type]}>${text}</${tags[mark.type]}>`;\n\t\t\telse if (mark.type === 'link')\n\t\t\t\ttext = `<a href=\"${escapeEmailHtml(String(mark.attrs?.href ?? ''))}\">${text}</a>`;\n\t\t\telse\n\t\t\t\tthrow new Error(strings.unsupportedNode(mark.type));\n\t\t}\n\t\treturn text;\n\t}\n\tif (node.type === 'doc')\n\t\treturn content();\n\tif (node.type === 'hardBreak')\n\t\treturn '<br>';\n\tif (node.type === 'horizontalRule')\n\t\treturn '<hr>';\n\tif (node.type === 'heading') {\n\t\tconst level = Math.min(6, Math.max(1, Number(node.attrs?.level) || 2));\n\t\treturn `<h${level}>${content()}</h${level}>`;\n\t}\n\tif (node.type === 'codeBlock')\n\t\treturn `<pre><code>${content()}</code></pre>`;\n\tif (node.type === 'orderedList')\n\t\treturn `<ol start=\"${Math.max(1, Math.trunc(Number(node.attrs?.start) || 1))}\">${content()}</ol>`;\n\tconst tags: Record<string, string> = { paragraph: 'p', blockquote: 'blockquote', bulletList: 'ul', orderedList: 'ol', listItem: 'li' };\n\tif (!node.type || !tags[node.type])\n\t\tthrow new Error(strings.unsupportedNode(node.type ?? 'unknown'));\n\treturn `<${tags[node.type]}>${content()}</${tags[node.type]}>`;\n}\nexport function bodyHtml(body: EmailBody, strings: EmailComposerStrings = defaultEmailComposerStrings): string {\n\treturn sanitizeEmailHtml(bodyMarkup(body, strings));\n}\nexport function bodyMarkup(body: EmailBody, strings: EmailComposerStrings): string {\n\treturn body.kind === 'html' ? body.html : body.kind === 'text' ? `<p>${escapeEmailHtml(body.text).replace(/\\n/g, '<br>')}</p>` : documentHtml(body.document, strings);\n}\n","import { toHtml } from 'hast-util-to-html';\nimport type { Root, RootContent } from 'hast';\nimport { bodyMarkup } from './document';\nimport { parseEmailHtml, sanitizeEmailTree, emailHtmlText } from './email-html';\nimport { defaultEmailComposerStrings, type EmailComposerStrings } from './strings';\nimport type { ComposerDraft, ComposerIssue, EmailTemplate, PlaceholderDefinition, PlaceholderValue, PreparedEmail, Recipient } from './types';\nconst tokens = /\\{\\{([a-zA-Z0-9_.-]+)\\}\\}/g;\nexport function resolveValues<C, K extends string>(draft: ComposerDraft<K>, context: C, definitions: Partial<Record<K, PlaceholderDefinition<C>>>, template?: EmailTemplate<K>): Partial<Record<K, PlaceholderValue>> {\n\tconst values: Partial<Record<K, PlaceholderValue>> = Object.create(null);\n\tfor (const key of Object.keys(definitions) as K[]) {\n\t\tconst override = Object.hasOwn(draft.placeholderOverrides, key) ? draft.placeholderOverrides[key] : undefined;\n\t\tvalues[key] = override !== undefined ? override : definitions[key]!.resolve(context) ?? template?.defaults?.[key] ?? definitions[key]!.fallback ?? null;\n\t}\n\treturn values;\n}\nexport function renderEmail<C, K extends string>(draft: ComposerDraft<K>, context: C, definitions: Partial<Record<K, PlaceholderDefinition<C>>>, template?: EmailTemplate<K>, strings: EmailComposerStrings = defaultEmailComposerStrings): {\n\temail: PreparedEmail<K>;\n\tunresolved: string[];\n} {\n\tconst values = resolveValues(draft, context, definitions, template);\n\tconst unresolved = new Set<string>();\n\tconst get = (key: string) => {\n\t\tconst value = Object.hasOwn(values, key) ? values[key as K] : null;\n\t\tif (value == null || value === '') {\n\t\t\tunresolved.add(key);\n\t\t\treturn `{{${key}}}`;\n\t\t}\n\t\treturn String(value);\n\t};\n\tconst subject = draft.subject.replace(tokens, (_, key: string) => get(key));\n\tconst tree = parseEmailHtml(bodyMarkup(draft.body, strings));\n\tfunction visit(node: Root | RootContent): void {\n\t\tif (node.type === 'element') {\n\t\t\tfor (const [key, value] of Object.entries(node.properties))\n\t\t\t\tif (key !== 'dataPlaceholder' && typeof value === 'string' && value.includes('{{'))\n\t\t\t\t\tthrow new Error(strings.attributeVariables);\n\t\t}\n\t\tif (node.type === 'root' || node.type === 'element')\n\t\t\tnode.children = node.children.map(child => {\n\t\t\t\tif (child.type === 'element' && child.properties.dataPlaceholder !== undefined)\n\t\t\t\t\treturn { type: 'text', value: get(String(child.properties.dataPlaceholder)) };\n\t\t\t\tif (child.type === 'text')\n\t\t\t\t\treturn { ...child, value: child.value.replace(tokens, (_, key: string) => get(key)) };\n\t\t\t\tvisit(child);\n\t\t\t\treturn child;\n\t\t\t});\n\t}\n\tvisit(tree);\n\tfor (const key of Object.keys(definitions) as K[])\n\t\tif (definitions[key]?.required && (values[key] == null || values[key] === ''))\n\t\t\tunresolved.add(key);\n\tfor (const key of template?.requiredPlaceholders ?? [])\n\t\tif (values[key] == null || values[key] === '')\n\t\t\tunresolved.add(key);\n\tconst clean = sanitizeEmailTree(tree);\n\treturn { email: { to: structuredClone(draft.to), cc: structuredClone(draft.cc), bcc: structuredClone(draft.bcc), subject, html: toHtml(clean), text: emailHtmlText(clean).trim(), templateId: draft.templateId, resolvedPlaceholders: values }, unresolved: [...unresolved] };\n}\nexport function inspectDraft<C, K extends string>(draft: ComposerDraft<K>, context: C, definitions: Partial<Record<K, PlaceholderDefinition<C>>>, template?: EmailTemplate<K>, strings: EmailComposerStrings = defaultEmailComposerStrings) {\n\tconst issues: ComposerIssue[] = [];\n\tlet rendered: ReturnType<typeof renderEmail<C, K>> | undefined;\n\tlet renderError = '';\n\tif (!draft.to.length)\n\t\tissues.push({ field: 'to', message: strings.missingRecipient });\n\tfor (const field of ['to', 'cc', 'bcc'] as const)\n\t\tif (draft[field].some(r => !/^[^\\s@<>]+@[^\\s@<>]+\\.[^\\s@<>]+$/.test(r.email) || /[\\r\\n]/.test(r.name ?? '')))\n\t\t\tissues.push({ field, message: strings.invalidRecipients(strings[field]) });\n\tif (!draft.subject.trim() || /[\\r\\n]/.test(draft.subject))\n\t\tissues.push({ field: 'subject', message: strings.invalidSubject });\n\ttry {\n\t\tconst result = renderEmail(draft, context, definitions, template, strings);\n\t\trendered = result;\n\t\tif (!result.email.text.trim())\n\t\t\tissues.push({ field: 'body', message: strings.emptyBody });\n\t\tif (result.unresolved.length)\n\t\t\tissues.push({ field: 'placeholders', message: strings.missingVariables(result.unresolved) });\n\t\tif ((!result.email.subject.trim() || /[\\r\\n]/.test(result.email.subject)) && !issues.some(issue => issue.field === 'subject'))\n\t\t\tissues.push({ field: 'subject', message: strings.invalidResolvedSubject });\n\t}\n\tcatch (error) {\n\t\trenderError = error instanceof Error ? error.message : strings.renderError;\n\t\tissues.push({ field: 'body', message: renderError });\n\t}\n\treturn { rendered, renderError, issues };\n}\nexport function validate<C, K extends string>(draft: ComposerDraft<K>, context: C, definitions: Partial<Record<K, PlaceholderDefinition<C>>>, template?: EmailTemplate<K>, strings: EmailComposerStrings = defaultEmailComposerStrings): ComposerIssue[] {\n\treturn inspectDraft(draft, context, definitions, template, strings).issues;\n}\nexport function recipientLabel(recipient: Recipient): string { return recipient.name ? `${recipient.name} <${recipient.email}>` : recipient.email; }\nexport function parseRecipient(value: string): Recipient {\n\tconst match = value.trim().match(/^(.*?)\\s*<([^<>]+)>$/);\n\treturn match ? { name: match[1].trim(), email: match[2].trim() } : { email: value.trim() };\n}\n","import type { PreparedEmail } from './types';\n/** Optional sender adapter. The consuming application owns the endpoint and delivery. */\nexport function createHttpSender(endpoint: string, options: {\n\theaders?: Record<string, string>;\n\ttimeoutMs?: number;\n} = {}) {\n\treturn async <K extends string>(email: PreparedEmail<K>): Promise<void> => {\n\t\tconst response = await fetch(endpoint, { method: 'POST', credentials: 'same-origin', headers: { 'Content-Type': 'application/json', ...options.headers }, body: JSON.stringify(email), signal: AbortSignal.timeout(options.timeoutMs ?? 30000) });\n\t\tif (!response.ok) {\n\t\t\tlet message = `Email request failed (${response.status}).`;\n\t\t\ttry {\n\t\t\t\tconst result: unknown = await response.json();\n\t\t\t\tif (result && typeof result === 'object' && 'message' in result && typeof result.message === 'string')\n\t\t\t\t\tmessage = result.message;\n\t\t\t}\n\t\t\tcatch { /* Response bodies are optional. */ }\n\t\t\tthrow new Error(message);\n\t\t}\n\t};\n}\n"],"mappings":"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"}
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import { _ as e, s as t } from "./ui-provider-CftIB6TY.js";
3
+ import { t as n } from "./utils-C2EKeIw3.js";
4
+ import { createElement as r } from "react";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ //#region src/components/base/display/icon-badge/icon-badge.tsx
7
+ var a = {
8
+ sm: {
9
+ box: "size-avatar-sm",
10
+ icon: "size-icon-sm"
11
+ },
12
+ md: {
13
+ box: "size-avatar",
14
+ icon: "size-icon"
15
+ },
16
+ lg: {
17
+ box: "size-avatar-lg",
18
+ icon: "size-icon-lg"
19
+ }
20
+ }, o = {
21
+ neutral: "bg-muted text-muted-foreground",
22
+ primary: "bg-primary/15 text-primary-accent",
23
+ secondary: "bg-foreground/8 text-muted-foreground",
24
+ success: "bg-success/15 text-success",
25
+ warning: "bg-warning/20 text-warning-accent",
26
+ destructive: "bg-destructive/12 text-destructive",
27
+ info: "bg-info/15 text-info"
28
+ }, s = {
29
+ neutral: "bg-foreground/70 text-background",
30
+ primary: "bg-primary text-primary-foreground",
31
+ secondary: "bg-secondary text-secondary-foreground",
32
+ success: "bg-success text-success-foreground",
33
+ warning: "bg-warning text-warning-foreground",
34
+ destructive: "bg-destructive text-destructive-foreground",
35
+ info: "bg-info text-info-foreground"
36
+ };
37
+ function c({ icon: c, children: l, size: u, shape: d = "circle", tone: f = "primary", solid: p = !1, bordered: m = !1, className: h, role: g, "aria-hidden": _, "aria-label": v, "aria-labelledby": y, ...b }) {
38
+ let { defaultScale: x } = t(), S = a[e(u, x)], C = p ? s[f] : o[f], w = !!(v || y);
39
+ return /* @__PURE__ */ i("span", {
40
+ role: g ?? (w ? "img" : void 0),
41
+ "aria-hidden": _ ?? (!w || void 0),
42
+ "aria-label": v,
43
+ "aria-labelledby": y,
44
+ className: n("icon-badge--component", "inline-flex shrink-0 items-center justify-center", d === "circle" ? "rounded-full" : "rounded-radius-md", S.box, C, m && "border border-border/60", h),
45
+ ...b,
46
+ children: c ? r(c, { className: S.icon }) : l
47
+ });
48
+ }
49
+ c.displayName = "IconBadge";
50
+ //#endregion
51
+ export { c as t };
52
+
53
+ //# sourceMappingURL=icon-badge-Dv0RYQwj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-badge-Dv0RYQwj.js","names":["resolveComponentScale","useDensityConfig","cn","SIZE_MAP","TONE_TINT","TONE_SOLID","IconBadge","Icon","sizeProp","ariaHidden","ariaLabel","ariaLabelledBy","props","sizes","defaultScale","tones","solid","tone","hasAccessibleName","role","shape","bordered","className","createElement","children"],"sources":["../src/components/base/display/icon-badge/icon-badge.tsx"],"sourcesContent":["/**\n * IconBadge — circular or square icon container with a tinted background.\n * Workhorse for \"row leading icon\" and \"feature illustration\" patterns —\n * coupon checks, conversation initials, search-result tones, AI-bot avatars.\n *\n * Tones reuse the shadcn semantic tokens, with the foreground colour picked\n * to read against a 10–15% background tint (e.g. `bg-success/15 text-success`).\n * For a fully-saturated mark (primary fill, inverse foreground), use\n * `tone=\"primary\"` and pass `solid`.\n *\n * Warning takes `--warning-accent` rather than `--warning-foreground`: the\n * latter is the colour for text on a SOLID warning fill and stays near-black\n * in both themes, so on a 20% tint it vanished in dark (1.87 contrast). Amber\n * is intrinsically light, so — as with `--primary-accent` — the tone needs a\n * separate foreground token that darkens in light and brightens in dark.\n */\nimport type { ComponentProps, ElementType, ReactNode } from 'react';\nimport { createElement } from 'react';\n\nimport { useDensityConfig, type ComponentScale } from '../../../../lib/ui-provider';\nimport { resolveComponentScale } from '../../../../lib/ui-provider/scale';\nimport { cn } from '../../../../lib/utils';\nimport type { SemanticTone } from '../../../../lib/component-vocabulary';\n\nexport type IconBadgeSize = ComponentScale;\nexport type IconBadgeShape = 'circle' | 'square';\nexport type IconBadgeTone = SemanticTone;\n\nexport interface IconBadgeProps extends Omit<ComponentProps<'span'>, 'children'> {\n\t/** Leading glyph. */\n\ticon?: ElementType;\n\tchildren?: ReactNode;\n\t/** Size preset. */\n\tsize?: IconBadgeSize;\n\tshape?: IconBadgeShape;\n\t/** Semantic tone driving the entry's colour. */\n\ttone?: IconBadgeTone;\n\t/** When true, fills the badge with the tone color and inverts the icon. */\n\tsolid?: boolean;\n\t/**\n\t * When true, renders a hairline `border-border/60` around the badge.\n\t * Useful for compact \"secret list\" / \"key list\" rows where the icon\n\t * needs a subtle outline against the surrounding card surface\n\t * (see `blocks/admin/api-key-list`).\n\t */\n\tbordered?: boolean;\n}\n\nconst SIZE_MAP: Record<IconBadgeSize, { box: string; icon: string }> = {\n\tsm: { box: 'size-avatar-sm', icon: 'size-icon-sm' },\n\tmd: { box: 'size-avatar', icon: 'size-icon' },\n\tlg: { box: 'size-avatar-lg', icon: 'size-icon-lg' },\n};\n\nconst TONE_TINT: Record<IconBadgeTone, string> = {\n\tneutral: 'bg-muted text-muted-foreground',\n\tprimary: 'bg-primary/15 text-primary-accent',\n\tsecondary: 'bg-foreground/8 text-muted-foreground',\n\tsuccess: 'bg-success/15 text-success',\n\twarning: 'bg-warning/20 text-warning-accent',\n\tdestructive: 'bg-destructive/12 text-destructive',\n\tinfo: 'bg-info/15 text-info',\n};\n\nconst TONE_SOLID: Record<IconBadgeTone, string> = {\n\tneutral: 'bg-foreground/70 text-background',\n\tprimary: 'bg-primary text-primary-foreground',\n\tsecondary: 'bg-secondary text-secondary-foreground',\n\tsuccess: 'bg-success text-success-foreground',\n\twarning: 'bg-warning text-warning-foreground',\n\tdestructive: 'bg-destructive text-destructive-foreground',\n\tinfo: 'bg-info text-info-foreground',\n};\n\nexport function IconBadge({\n\ticon: Icon,\n\tchildren,\n\tsize: sizeProp,\n\tshape = 'circle',\n\ttone = 'primary',\n\tsolid = false,\n\tbordered = false,\n\tclassName,\n\trole,\n\t'aria-hidden': ariaHidden,\n\t'aria-label': ariaLabel,\n\t'aria-labelledby': ariaLabelledBy,\n\t...props\n}: IconBadgeProps) {\n\tconst { defaultScale } = useDensityConfig();\n\tconst size = resolveComponentScale(sizeProp, defaultScale);\n\tconst sizes = SIZE_MAP[size];\n\tconst tones = solid ? TONE_SOLID[tone] : TONE_TINT[tone];\n\tconst hasAccessibleName = Boolean(ariaLabel || ariaLabelledBy);\n\n\treturn (\n\t\t<span\n\t\t\trole={role ?? (hasAccessibleName ? 'img' : undefined)}\n\t\t\taria-hidden={ariaHidden ?? (hasAccessibleName ? undefined : true)}\n\t\t\taria-label={ariaLabel}\n\t\t\taria-labelledby={ariaLabelledBy}\n\t\t\tclassName={cn('icon-badge--component', \n\t\t\t\t'inline-flex shrink-0 items-center justify-center',\n\t\t\t\tshape === 'circle' ? 'rounded-full' : 'rounded-radius-md',\n\t\t\t\tsizes.box,\n\t\t\t\ttones,\n\t\t\t\tbordered && 'border border-border/60',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{Icon ? createElement(Icon, { className: sizes.icon }) : children}\n\t\t</span>\n\t);\n}\n\nIconBadge.displayName = 'IconBadge';\n"],"mappings":";;;;;;AAgDA,IAAMG,IAAiE;CACtE,IAAI;EAAE,KAAK;EAAkB,MAAM;CAAe;CAClD,IAAI;EAAE,KAAK;EAAe,MAAM;CAAY;CAC5C,IAAI;EAAE,KAAK;EAAkB,MAAM;CAAe;AACnD,GAEMC,IAA2C;CAChD,SAAS;CACT,SAAS;CACT,WAAW;CACX,SAAS;CACT,SAAS;CACT,aAAa;CACb,MAAM;AACP,GAEMC,IAA4C;CACjD,SAAS;CACT,SAAS;CACT,WAAW;CACX,SAAS;CACT,SAAS;CACT,aAAa;CACb,MAAM;AACP;AAEA,SAAgBC,EAAU,EACzB,MAAMC,GACN,aACA,MAAMC,GACN,WAAQ,UACR,UAAO,WACP,WAAQ,IACR,cAAW,IACX,cACA,SACA,eAAeC,GACf,cAAcC,GACd,mBAAmBC,GACnB,GAAGC,KACe;CAClB,IAAM,EAAE,oBAAiBX,EAAiB,GAEpCY,IAAQV,EADDH,EAAsBQ,GAAUM,CACtB,IACjBC,IAAQC,IAAQX,EAAWY,KAAQb,EAAUa,IAC7CC,IAAoB,GAAQR,KAAaC;CAE/C,OACC,kBAAC,QAAD;EACC,MAAMQ,MAASD,IAAoB,QAAQ,KAAA;EAC3C,eAAaT,MAAe,MAAoB,KAAA;EAChD,cAAYC;EACZ,mBAAiBC;EACjB,WAAWT,EAAG,yBACb,oDACAkB,MAAU,WAAW,iBAAiB,qBACtCP,EAAM,KACNE,GACAM,KAAY,2BACZC,CACD;EACA,GAAIV;EAEH,UAAAL,IAAOgB,EAAchB,GAAM,EAAE,WAAWM,EAAM,KAAK,CAAC,IAAIW;CACpD,CAAA;AAER;AAEA,EAAU,cAAc"}
@@ -0,0 +1,18 @@
1
+ //#region src/components/base/display/icon-size.ts
2
+ var e = {
3
+ sm: "size-icon-sm",
4
+ md: "size-icon",
5
+ lg: "size-icon-lg"
6
+ }, t = {
7
+ sm: "[&>svg]:size-icon-sm",
8
+ md: "[&>svg]:size-icon",
9
+ lg: "[&>svg]:size-icon-lg"
10
+ }, n = {
11
+ sm: "[&_svg:not([class*='size-'])]:size-icon-sm",
12
+ md: "[&_svg:not([class*='size-'])]:size-icon",
13
+ lg: "[&_svg:not([class*='size-'])]:size-icon-lg"
14
+ };
15
+ //#endregion
16
+ export { n, e as r, t };
17
+
18
+ //# sourceMappingURL=icon-size-B6PVwjbC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-size-B6PVwjbC.js","names":["ICON_SIZE_CLASSNAMES","ICON_CHILD_SIZE_CLASSNAMES","ICON_DESCENDANT_SIZE_CLASSNAMES"],"sources":["../src/components/base/display/icon-size.ts"],"sourcesContent":["import type { ComponentScale } from '../../../lib/ui-provider';\n\nexport type IconScale = ComponentScale;\n\nexport const ICON_SIZE_CLASSNAMES: Record<IconScale, string> = {\n\tsm: 'size-icon-sm',\n\tmd: 'size-icon',\n\tlg: 'size-icon-lg',\n};\n\nexport const ICON_CHILD_SIZE_CLASSNAMES: Record<IconScale, string> = {\n\tsm: '[&>svg]:size-icon-sm',\n\tmd: '[&>svg]:size-icon',\n\tlg: '[&>svg]:size-icon-lg',\n};\n\nexport const ICON_DESCENDANT_SIZE_CLASSNAMES: Record<IconScale, string> = {\n\tsm: \"[&_svg:not([class*='size-'])]:size-icon-sm\",\n\tmd: \"[&_svg:not([class*='size-'])]:size-icon\",\n\tlg: \"[&_svg:not([class*='size-'])]:size-icon-lg\",\n};\n"],"mappings":";AAIA,IAAaA,IAAkD;CAC9D,IAAI;CACJ,IAAI;CACJ,IAAI;AACL,GAEaC,IAAwD;CACpE,IAAI;CACJ,IAAI;CACJ,IAAI;AACL,GAEaC,IAA6D;CACzE,IAAI;CACJ,IAAI;CACJ,IAAI;AACL"}
@@ -0,0 +1,14 @@
1
+ import './css/style.css';
2
+ /**
3
+ * Library root entry.
4
+ *
5
+ * Keep this surface optional-peer-free. Component families are published
6
+ * through explicit subpath entrypoints (`themelia-react-ui/base/item`,
7
+ * `themelia-react-ui/features/comments`, etc.) so a consumer only loads
8
+ * the optional peers used by the entrypoint they import.
9
+ */
10
+ export * from './lib/ui-provider';
11
+ export * from './lib/component-vocabulary';
12
+ export * from './lib/action-presentation';
13
+ export * from './lib/strings';
14
+ export { cn } from './lib/utils';
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g } from "./ui-provider-CftIB6TY.js";
2
+ import { CARD_SURFACES as _, COMPONENT_SCALES as v, DISCLOSURE_SURFACES as y, SEMANTIC_TONES as b } from "./component-vocabulary.js";
3
+ import { t as x } from "./theme-scope-kStaAer0.js";
4
+ import { ACTION_BUTTON_STYLES as S } from "./action-presentation.js";
5
+ import { interpolateString as C, mergeStrings as w, useStrings as T } from "./lib/strings.js";
6
+ import { t as E } from "./utils-C2EKeIw3.js";
7
+ export { S as ACTION_BUTTON_STYLES, _ as CARD_SURFACES, v as COMPONENT_SCALES, g as DEFAULT_UI_CONFIG, y as DISCLOSURE_SURFACES, m as DirectionProvider, b as SEMANTIC_TONES, x as ThemeScope, c as UIProvider, E as cn, C as interpolateString, a as isComponentScale, w as mergeStrings, e as resolveComponentScale, l as useBadgeConfig, f as useButtonConfig, o as useCardConfig, t as useCommentsConfig, u as useDatesConfig, p as useDensityConfig, n as useFormattingConfig, s as useItemConfig, h as useMoneyConfig, r as useSpinnerConfig, T as useStrings, i as useToastConfig, d as useTypographyConfig };