themelia-react-ui 2.0.3 → 2.0.5

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 (648) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/README.md +168 -36
  3. package/dist/{accordion-Cjb6sx0G.js → accordion-B9MHG0cT.js} +11 -11
  4. package/dist/accordion-B9MHG0cT.js.map +1 -0
  5. package/dist/action-menu-Dr8K-ghE.js +284 -0
  6. package/dist/action-menu-Dr8K-ghE.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-P-aVJisu.js} +42 -36
  8. package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
  9. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-C58tQcBy.js} +387 -350
  10. package/dist/ai-artifact-C58tQcBy.js.map +1 -0
  11. package/dist/app-shell-B_IuNWOo.js +321 -0
  12. package/dist/app-shell-B_IuNWOo.js.map +1 -0
  13. package/dist/{attachment-BxDfL2mw.js → attachment-Dg_69lPS.js} +9 -9
  14. package/dist/{attachment-BxDfL2mw.js.map → attachment-Dg_69lPS.js.map} +1 -1
  15. package/dist/{auth-BGua8ouh.js → auth-DTkkshS8.js} +44 -47
  16. package/dist/auth-DTkkshS8.js.map +1 -0
  17. package/dist/{avatar-DAPlDvhJ.js → avatar-CeZaFmNH.js} +8 -8
  18. package/dist/avatar-CeZaFmNH.js.map +1 -0
  19. package/dist/{badge-HpFqoqSY.js → badge-xIiV_E7f.js} +5 -5
  20. package/dist/{badge-HpFqoqSY.js.map → badge-xIiV_E7f.js.map} +1 -1
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +1 -1
  27. package/dist/base/buttons.js +1 -1
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +3 -3
  30. package/dist/base/cascader.js +2 -372
  31. package/dist/base/chart.js +1 -1
  32. package/dist/base/choice-inputs.js +2 -2
  33. package/dist/base/code-block.js +1 -1
  34. package/dist/base/combobox.js +2 -2
  35. package/dist/base/command.js +1 -1
  36. package/dist/base/copyable.js +1 -1
  37. package/dist/base/date-pickers.js +2 -2
  38. package/dist/base/display.js +6 -6
  39. package/dist/base/feedback.js +3 -3
  40. package/dist/base/forms-numeric.js +1 -1
  41. package/dist/base/forms.js +3 -3
  42. package/dist/base/inline-edit.js +10 -10
  43. package/dist/base/item.js +1 -1
  44. package/dist/base/media-gallery.js +1 -1
  45. package/dist/base/metadata-list.js +1 -1
  46. package/dist/base/navigation.js +7 -7
  47. package/dist/base/popover-menu.js +1 -1
  48. package/dist/base/popover.js +1 -1
  49. package/dist/base/qr-code.js +1 -1
  50. package/dist/base/repeaters.js +12 -12
  51. package/dist/base/repeaters.js.map +1 -1
  52. package/dist/base/sheet.js +1 -1
  53. package/dist/base/sidebar.js +2 -2
  54. package/dist/base/signature-pad.js +7 -7
  55. package/dist/base/signature-pad.js.map +1 -1
  56. package/dist/base/skeleton.js +1 -1
  57. package/dist/base/spinner.js +4 -4
  58. package/dist/base/structure.js +1 -1
  59. package/dist/base/table.js +1 -1
  60. package/dist/base/text-inputs.js +2 -2
  61. package/dist/base/toaster.js +36 -36
  62. package/dist/base/toaster.js.map +1 -1
  63. package/dist/base/tree.js +1 -1
  64. package/dist/base/upload-queue.js +1 -1
  65. package/dist/base/upload.js +3 -3
  66. package/dist/base/value-inputs.js +1 -1
  67. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-Cb8cuvyy.js} +6 -6
  68. package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
  69. package/dist/blocks/admin.js +23 -23
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +230 -216
  72. package/dist/blocks/ai.js.map +1 -1
  73. package/dist/blocks/analytics/usage-card.js +1 -1
  74. package/dist/blocks/analytics.js +326 -307
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +1 -1
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1247 -1169
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +2 -2
  81. package/dist/blocks/onboarding.js +6 -6
  82. package/dist/blocks/onboarding.js.map +1 -1
  83. package/dist/blocks/planning.js +11 -11
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-J-K2kl4c.js} +6 -6
  86. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
  87. package/dist/{button-DVzspB_G.js → button-S2Cubiiz.js} +3 -3
  88. package/dist/button-S2Cubiiz.js.map +1 -0
  89. package/dist/{buttons-DPZekJFu.js → buttons-BedGfygC.js} +16 -16
  90. package/dist/buttons-BedGfygC.js.map +1 -0
  91. package/dist/cards-rNX1M4Xn.js +69 -0
  92. package/dist/cards-rNX1M4Xn.js.map +1 -0
  93. package/dist/cascader-B1MiqkBq.js +439 -0
  94. package/dist/cascader-B1MiqkBq.js.map +1 -0
  95. package/dist/chart-Darg_0Kv.js +162 -0
  96. package/dist/chart-Darg_0Kv.js.map +1 -0
  97. package/dist/{checkbox-AWIhNhmo.js → checkbox-fflqmODR.js} +9 -5
  98. package/dist/checkbox-fflqmODR.js.map +1 -0
  99. package/dist/choice-inputs-zUgBZfE4.js +777 -0
  100. package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
  101. package/dist/{code-block-DeneBJR_.js → code-block-BzmM9Eig.js} +9 -9
  102. package/dist/code-block-BzmM9Eig.js.map +1 -0
  103. package/dist/{collapsible-C-_l4hpy.js → collapsible-BkAI_XD4.js} +5 -5
  104. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-BkAI_XD4.js.map} +1 -1
  105. package/dist/{collection-content-By56pLog.js → collection-content-gDh1v6O4.js} +3 -3
  106. package/dist/{collection-content-By56pLog.js.map → collection-content-gDh1v6O4.js.map} +1 -1
  107. package/dist/combobox-BEx0vJgF.js +362 -0
  108. package/dist/combobox-BEx0vJgF.js.map +1 -0
  109. package/dist/{combobox-Dxo2fAYQ.js → combobox-BwzoXFSG.js} +254 -247
  110. package/dist/combobox-BwzoXFSG.js.map +1 -0
  111. package/dist/{command-C25VMRII.js → command-CrlPIL6m.js} +12 -12
  112. package/dist/command-CrlPIL6m.js.map +1 -0
  113. package/dist/{comments-DD0DUPwJ.js → comments-Dmpp0YIc.js} +380 -379
  114. package/dist/comments-Dmpp0YIc.js.map +1 -0
  115. package/dist/components/base/action-menu/action-menu.d.ts +9 -1
  116. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  117. package/dist/components/base/cards/card.recipes.d.ts +16 -7
  118. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
  119. package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
  120. package/dist/components/base/cards/smart-card.types.d.ts +11 -7
  121. package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
  122. package/dist/components/base/chart/chart.d.ts +6 -1
  123. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  124. package/dist/components/base/choice-inputs/choice-types.d.ts +1 -1
  125. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  126. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  127. package/dist/components/base/combobox/index.d.ts +4 -2
  128. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  129. package/dist/components/base/feedback/alert.d.ts +1 -1
  130. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  131. package/dist/components/base/forms/form-field.d.ts +5 -3
  132. package/dist/components/base/forms/form-sizing.d.ts +7 -7
  133. package/dist/components/base/forms/index.d.ts +1 -0
  134. package/dist/components/base/forms/server-errors.d.ts +16 -0
  135. package/dist/components/base/forms/workflow.d.ts +11 -2
  136. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -0
  137. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  138. package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
  139. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
  140. package/dist/components/base/navigation/page-header/page-header.d.ts +13 -4
  141. package/dist/components/base/popover/popover.d.ts +3 -3
  142. package/dist/components/base/popover/popover.recipes.d.ts +10 -6
  143. package/dist/components/base/sheet/sheet.d.ts +2 -0
  144. package/dist/components/base/sidebar/index.d.ts +1 -1
  145. package/dist/components/base/sidebar/sidebar.d.ts +27 -5
  146. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  147. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  148. package/dist/components/base/text-inputs/input.d.ts +4 -2
  149. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  150. package/dist/components/base/toaster/index.d.ts +1 -0
  151. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  152. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  153. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  154. package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
  155. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
  156. package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
  157. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  158. package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
  159. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
  160. package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
  161. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
  162. package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
  163. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
  164. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
  165. package/dist/components/blocks/commerce/index.d.ts +7 -6
  166. package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
  167. package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
  168. package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
  169. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  170. package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
  171. package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
  172. package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
  173. package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
  174. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
  175. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
  176. package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
  177. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
  178. package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
  179. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  180. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
  181. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  182. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
  183. package/dist/components/features/activities/activities.types.d.ts +8 -2
  184. package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
  185. package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
  186. package/dist/components/features/event-calendar/colors.d.ts +2 -2
  187. package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
  188. package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
  189. package/dist/components/features/filters/filters.strings.d.ts +4 -0
  190. package/dist/components/features/filters/filters.types.d.ts +3 -0
  191. package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
  192. package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
  193. package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
  194. package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
  195. package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
  196. package/dist/components/features/global-search/global-search.types.d.ts +2 -0
  197. package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
  198. package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
  199. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  200. package/dist/components/features/media-library/media-library.types.d.ts +14 -4
  201. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  202. package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
  203. package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
  204. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  205. package/dist/components/features/products/products.strings.d.ts +9 -1
  206. package/dist/components/features/products/products.types.d.ts +43 -6
  207. package/dist/components/features/resource/resource.d.ts +5 -1
  208. package/dist/components/features/resource/resource.types.d.ts +12 -1
  209. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
  210. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
  211. package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
  212. package/dist/components/features/table/table.types.d.ts +1 -1
  213. package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
  214. package/dist/components/layout/app-shell/index.d.ts +1 -1
  215. package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
  216. package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
  217. package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
  218. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  219. package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
  220. package/dist/components/layout/header/header.recipes.d.ts +6 -0
  221. package/dist/components/layout/header/header.types.d.ts +6 -6
  222. package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
  223. package/dist/components/layout/page/index.d.ts +2 -1
  224. package/dist/components/layout/page/page.d.ts +1 -0
  225. package/dist/components/layout/page/page.strings.d.ts +11 -0
  226. package/dist/components/layout/page/page.types.d.ts +69 -17
  227. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  228. package/dist/components/layout/settings/settings.d.ts +9 -2
  229. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  230. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
  231. package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
  232. package/dist/components/layout/sidebar/index.d.ts +2 -1
  233. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
  234. package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
  235. package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
  236. package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
  237. package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
  238. package/dist/components/typography/text.styles.d.ts +26 -1
  239. package/dist/components/ui/alert-dialog.d.ts +2 -2
  240. package/dist/components/ui/combobox.d.ts +1 -1
  241. package/dist/components/ui/dialog.d.ts +2 -2
  242. package/dist/components/ui/overlay-layer.d.ts +18 -0
  243. package/dist/components/ui/sheet.d.ts +5 -1
  244. package/dist/components/ui/sidebar-state.d.ts +82 -0
  245. package/dist/components/ui/sidebar.d.ts +5 -17
  246. package/dist/composition.recipes-COdiFhxB.js +19 -0
  247. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  248. package/dist/containers-CIxwbZt5.js +112 -0
  249. package/dist/containers-CIxwbZt5.js.map +1 -0
  250. package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
  251. package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
  252. package/dist/{copyable-ClBuk_UK.js → copyable-DIznBqiT.js} +7 -7
  253. package/dist/{copyable-ClBuk_UK.js.map → copyable-DIznBqiT.js.map} +1 -1
  254. package/dist/{data-display-DT_khPl_.js → data-display-BdgCAw8T.js} +277 -285
  255. package/dist/data-display-BdgCAw8T.js.map +1 -0
  256. package/dist/{date-DCrsDTZc.js → date-Cq8ioE4o.js} +5 -5
  257. package/dist/{date-DCrsDTZc.js.map → date-Cq8ioE4o.js.map} +1 -1
  258. package/dist/{date-picker-B2K3ucWn.js → date-picker-RlIzKom_.js} +501 -480
  259. package/dist/date-picker-RlIzKom_.js.map +1 -0
  260. package/dist/date-pickers-DY-CpXS1.js +179 -0
  261. package/dist/date-pickers-DY-CpXS1.js.map +1 -0
  262. package/dist/{display-hAc1HjpI.js → display-KsZLw9Ov.js} +9 -9
  263. package/dist/{display-hAc1HjpI.js.map → display-KsZLw9Ov.js.map} +1 -1
  264. package/dist/dropdown-menu-CLs8Lihj.js +194 -0
  265. package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
  266. package/dist/features/activities.js +302 -253
  267. package/dist/features/activities.js.map +1 -1
  268. package/dist/features/ai-chat.js +15 -14
  269. package/dist/features/ai-chat.js.map +1 -1
  270. package/dist/features/appointment-calendar.js +222 -220
  271. package/dist/features/appointment-calendar.js.map +1 -1
  272. package/dist/features/async-preview.js +11 -10
  273. package/dist/features/async-preview.js.map +1 -1
  274. package/dist/features/combobox.js +1 -1
  275. package/dist/features/comments.js +1 -1
  276. package/dist/features/data-view.js +13 -13
  277. package/dist/features/data-view.js.map +1 -1
  278. package/dist/features/email-composer.js +249 -249
  279. package/dist/features/email-composer.js.map +1 -1
  280. package/dist/features/event-calendar.js +264 -269
  281. package/dist/features/event-calendar.js.map +1 -1
  282. package/dist/features/filters.js +1 -1
  283. package/dist/features/global-search.js +167 -138
  284. package/dist/features/global-search.js.map +1 -1
  285. package/dist/features/kanban.js +6 -7
  286. package/dist/features/kanban.js.map +1 -1
  287. package/dist/features/map.js +269 -260
  288. package/dist/features/map.js.map +1 -1
  289. package/dist/features/media-library.js +827 -777
  290. package/dist/features/media-library.js.map +1 -1
  291. package/dist/features/mentions.js +1 -1
  292. package/dist/features/overlays.js +1 -1
  293. package/dist/features/products.js +1246 -1169
  294. package/dist/features/products.js.map +1 -1
  295. package/dist/features/questionnaire.js +13 -13
  296. package/dist/features/questionnaire.js.map +1 -1
  297. package/dist/features/resource-assignment.js +8 -8
  298. package/dist/features/resource.js +127 -123
  299. package/dist/features/resource.js.map +1 -1
  300. package/dist/features/rich-text-editor.js +2 -2
  301. package/dist/features/schema-form.js +254 -253
  302. package/dist/features/schema-form.js.map +1 -1
  303. package/dist/features/suggestions.js +3 -3
  304. package/dist/features/sync.js +3 -3
  305. package/dist/features/table.js +1 -1
  306. package/dist/features/theme-tweaker.js +95 -96
  307. package/dist/features/theme-tweaker.js.map +1 -1
  308. package/dist/{feedback-BYIhtitP.js → feedback-Dm4izqFn.js} +81 -80
  309. package/dist/feedback-Dm4izqFn.js.map +1 -0
  310. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
  311. package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
  312. package/dist/{filters-DJVAveHA.js → filters-DzgSJpMK.js} +693 -645
  313. package/dist/filters-DzgSJpMK.js.map +1 -0
  314. package/dist/{form-field-CwH9y77i.js → form-field-BriWAXyg.js} +14 -8
  315. package/dist/form-field-BriWAXyg.js.map +1 -0
  316. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-Bs2qFUeE.js} +4 -4
  317. package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
  318. package/dist/forms-C0RGnJTe.js +216 -0
  319. package/dist/forms-C0RGnJTe.js.map +1 -0
  320. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-DIhghX1Q.js} +295 -291
  321. package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
  322. package/dist/{header-BSfIEWbI.js → header-DMMxG__r.js} +67 -63
  323. package/dist/header-DMMxG__r.js.map +1 -0
  324. package/dist/header.recipes-BigdJjw1.js +6 -0
  325. package/dist/header.recipes-BigdJjw1.js.map +1 -0
  326. package/dist/hooks/useFormErrors.d.ts +1 -1
  327. package/dist/{hooks-ClH9thn4.js → hooks-DB6CJ4MR.js} +26 -14
  328. package/dist/hooks-DB6CJ4MR.js.map +1 -0
  329. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-DZF-YjQp.js} +4 -4
  330. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
  331. package/dist/index.js +4 -5
  332. package/dist/input-CvyDQlY7.js +289 -0
  333. package/dist/input-CvyDQlY7.js.map +1 -0
  334. package/dist/input-DMBwAZmr.js +21 -0
  335. package/dist/input-DMBwAZmr.js.map +1 -0
  336. package/dist/item-DjCcM18E.js +277 -0
  337. package/dist/item-DjCcM18E.js.map +1 -0
  338. package/dist/layout/app-shell.js +1 -1
  339. package/dist/layout/auth.js +1 -1
  340. package/dist/layout/containers.js +1 -1
  341. package/dist/layout/header.js +1 -1
  342. package/dist/layout/hooks.js +1 -1
  343. package/dist/layout/navigation.js +1 -1
  344. package/dist/layout/page.js +2 -2
  345. package/dist/layout/settings.js +1 -1
  346. package/dist/layout/sidebar.js +3 -3
  347. package/dist/layout/workspace.js +1 -1
  348. package/dist/layout.js +11 -11
  349. package/dist/lib/affordance-geometry.generated.d.ts +41 -35
  350. package/dist/lib/control-group-recipes.d.ts +5 -5
  351. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  352. package/dist/lib/motion-recipes.d.ts +3 -0
  353. package/dist/lib/navigation-row-recipes.d.ts +7 -7
  354. package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
  355. package/dist/lib/portal-recipes.d.ts +3 -0
  356. package/dist/lib/token-merge.generated.d.ts +13 -10
  357. package/dist/lib/ui-provider/types.d.ts +1 -1
  358. package/dist/lib/utils.js +1 -1
  359. package/dist/map-demo-tile.svg +1 -1
  360. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-C-vChPmE.js} +6 -6
  361. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-C-vChPmE.js.map} +1 -1
  362. package/dist/{mentions-CGlEJ15c.js → mentions-0_4nWuI-.js} +10 -10
  363. package/dist/{mentions-CGlEJ15c.js.map → mentions-0_4nWuI-.js.map} +1 -1
  364. package/dist/{message-DZ_ruyUV.js → message-g8p7eVtN.js} +7 -7
  365. package/dist/message-g8p7eVtN.js.map +1 -0
  366. package/dist/metadata-list-C3MkU-Om.js +443 -0
  367. package/dist/metadata-list-C3MkU-Om.js.map +1 -0
  368. package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
  369. package/dist/motion-recipes-DitYv6P2.js.map +1 -0
  370. package/dist/navigation-C90-oQFq.js +255 -0
  371. package/dist/navigation-C90-oQFq.js.map +1 -0
  372. package/dist/{navigation-BzhHI3lo.js → navigation-DaRjthVk.js} +101 -82
  373. package/dist/navigation-DaRjthVk.js.map +1 -0
  374. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
  375. package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
  376. package/dist/{number-DbV1Dija.js → number-CRU3kGuk.js} +5 -5
  377. package/dist/{number-DbV1Dija.js.map → number-CRU3kGuk.js.map} +1 -1
  378. package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
  379. package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
  380. package/dist/overlays-BSgCtM2v.js +1013 -0
  381. package/dist/overlays-BSgCtM2v.js.map +1 -0
  382. package/dist/page-DUUKDAjo.js +331 -0
  383. package/dist/page-DUUKDAjo.js.map +1 -0
  384. package/dist/page-header-commands-7P3sfE9u.js +193 -0
  385. package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
  386. package/dist/{pagination-BL25hu2s.js → pagination-CgCjElfu.js} +7 -7
  387. package/dist/{pagination-BL25hu2s.js.map → pagination-CgCjElfu.js.map} +1 -1
  388. package/dist/popover-B85RenIl.js +201 -0
  389. package/dist/popover-B85RenIl.js.map +1 -0
  390. package/dist/{popover-menu-Cn9rUkdc.js → popover-menu-DlnQ2zlR.js} +7 -7
  391. package/dist/{popover-menu-Cn9rUkdc.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
  392. package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
  393. package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
  394. package/dist/portal-recipes-BpsV_iRw.js +9 -0
  395. package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
  396. package/dist/{primitives-BFK08r9M.js → primitives-ByWgGUgt.js} +6 -6
  397. package/dist/{primitives-BFK08r9M.js.map → primitives-ByWgGUgt.js.map} +1 -1
  398. package/dist/primitives.js +4 -4
  399. package/dist/{progress-B1VnCT0K.js → progress-BJhQP9WX.js} +9 -9
  400. package/dist/{progress-B1VnCT0K.js.map → progress-BJhQP9WX.js.map} +1 -1
  401. package/dist/{receipt-BVSOH3Xo.js → receipt-tOc7B3hw.js} +7 -7
  402. package/dist/receipt-tOc7B3hw.js.map +1 -0
  403. package/dist/{rich-text-GOUyKQ-s.js → rich-text-Dth5E882.js} +4 -4
  404. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-Dth5E882.js.map} +1 -1
  405. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-C1fOjBTd.js} +429 -430
  406. package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
  407. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-laT3tpBT.js} +33 -29
  408. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
  409. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-B0dB2cBi.js} +2 -2
  410. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
  411. package/dist/{separator-Bom7NsGO.js → separator-Bb17I4pu.js} +2 -2
  412. package/dist/{separator-Bom7NsGO.js.map → separator-Bb17I4pu.js.map} +1 -1
  413. package/dist/{separator-BDV-Y648.js → separator-Ct_WSWTJ.js} +3 -3
  414. package/dist/{separator-BDV-Y648.js.map → separator-Ct_WSWTJ.js.map} +1 -1
  415. package/dist/services/actions.js +1 -1
  416. package/dist/settings-Bar5wiSo.js +167 -0
  417. package/dist/settings-Bar5wiSo.js.map +1 -0
  418. package/dist/sheet-BGPERY55.js +250 -0
  419. package/dist/sheet-BGPERY55.js.map +1 -0
  420. package/dist/sidebar-D-JYMMbY.js +686 -0
  421. package/dist/sidebar-D-JYMMbY.js.map +1 -0
  422. package/dist/sidebar-f9gRWXIR.js +1001 -0
  423. package/dist/sidebar-f9gRWXIR.js.map +1 -0
  424. package/dist/skeleton-BapcJd9C.js +265 -0
  425. package/dist/skeleton-BapcJd9C.js.map +1 -0
  426. package/dist/smart-card-CW0hjetE.js +617 -0
  427. package/dist/smart-card-CW0hjetE.js.map +1 -0
  428. package/dist/{structure-BmisBK-3.js → structure-DuxKl954.js} +3 -3
  429. package/dist/{structure-BmisBK-3.js.map → structure-DuxKl954.js.map} +1 -1
  430. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  431. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  432. package/dist/style.css +1 -1
  433. package/dist/{table-DsfzoUia.js → table-B4TE7iOV.js} +3 -3
  434. package/dist/{table-DsfzoUia.js.map → table-B4TE7iOV.js.map} +1 -1
  435. package/dist/{table-BweFy_P9.js → table-CFOWY9pQ.js} +394 -388
  436. package/dist/table-CFOWY9pQ.js.map +1 -0
  437. package/dist/{tabs-CDocW5D1.js → tabs-e7ko9S2o.js} +11 -11
  438. package/dist/tabs-e7ko9S2o.js.map +1 -0
  439. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-B1culiSK.js} +107 -104
  440. package/dist/text-inputs-B1culiSK.js.map +1 -0
  441. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  442. package/dist/text.styles-B64My8RZ.js.map +1 -0
  443. package/dist/theme.css +192 -149
  444. package/dist/{timelines-CwM_9IhD.js → timelines-D3Sl9ueq.js} +13 -12
  445. package/dist/timelines-D3Sl9ueq.js.map +1 -0
  446. package/dist/tooltip-8wz5S_Zr.js +113 -0
  447. package/dist/tooltip-8wz5S_Zr.js.map +1 -0
  448. package/dist/{tree-WnKQzwbq.js → tree-CzUJHnFs.js} +9 -9
  449. package/dist/{tree-WnKQzwbq.js.map → tree-CzUJHnFs.js.map} +1 -1
  450. package/dist/typography/rich-text.js +1 -1
  451. package/dist/typography-BQnine1k.js +117 -0
  452. package/dist/typography-BQnine1k.js.map +1 -0
  453. package/dist/typography.js +1 -1
  454. package/dist/ui-provider-C-74NVLc.js +178 -0
  455. package/dist/ui-provider-C-74NVLc.js.map +1 -0
  456. package/dist/ui-provider.js +2 -3
  457. package/dist/{upload-CXyxmQBP.js → upload-BOW6U2tI.js} +25 -24
  458. package/dist/upload-BOW6U2tI.js.map +1 -0
  459. package/dist/{upload-queue-Boscubn9.js → upload-queue-qUXn1ykN.js} +16 -14
  460. package/dist/upload-queue-qUXn1ykN.js.map +1 -0
  461. package/dist/{usage-card-BhO5eqkX.js → usage-card-BeSLY0i0.js} +145 -137
  462. package/dist/usage-card-BeSLY0i0.js.map +1 -0
  463. package/dist/{utils-BRhFDwuU.js → utils-B6kKb8jB.js} +303 -144
  464. package/dist/utils-B6kKb8jB.js.map +1 -0
  465. package/dist/value-inputs-skdVB2zh.js +980 -0
  466. package/dist/value-inputs-skdVB2zh.js.map +1 -0
  467. package/dist/{value-typography-BP8OG6h5.js → value-typography-uAmWUAL1.js} +2 -2
  468. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-uAmWUAL1.js.map} +1 -1
  469. package/dist/workspace-DHeHv0qw.js +411 -0
  470. package/dist/workspace-DHeHv0qw.js.map +1 -0
  471. package/docs/consumer-skill/SKILL.md +15 -129
  472. package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
  473. package/docs/consumer-skill/examples/app-layout.tsx +74 -13
  474. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  475. package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
  476. package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
  477. package/docs/consumer-skill/examples/detail.tsx +5 -4
  478. package/docs/consumer-skill/examples/edit.tsx +30 -38
  479. package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
  480. package/docs/consumer-skill/examples/index-table.tsx +4 -4
  481. package/docs/consumer-skill/examples/manifest.json +88 -1
  482. package/docs/consumer-skill/examples/product-media.tsx +41 -0
  483. package/docs/consumer-skill/examples/product-parts.tsx +81 -0
  484. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  485. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  486. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +105 -0
  487. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  488. package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
  489. package/docs/consumer-skill/references/agents-md.md +23 -11
  490. package/docs/consumer-skill/references/analytics.md +18 -1
  491. package/docs/consumer-skill/references/authentication.md +42 -0
  492. package/docs/consumer-skill/references/commerce-composition.md +97 -0
  493. package/docs/consumer-skill/references/component-contracts.json +325201 -0
  494. package/docs/consumer-skill/references/composition-mapping.md +106 -0
  495. package/docs/consumer-skill/references/composition.md +198 -46
  496. package/docs/consumer-skill/references/critique-rubric.md +98 -0
  497. package/docs/consumer-skill/references/custom-composition.md +261 -0
  498. package/docs/consumer-skill/references/data-reading.md +79 -0
  499. package/docs/consumer-skill/references/design-contract.md +43 -9
  500. package/docs/consumer-skill/references/discovery.md +109 -8
  501. package/docs/consumer-skill/references/domain-structures.md +124 -0
  502. package/docs/consumer-skill/references/installation.md +51 -36
  503. package/docs/consumer-skill/references/integration.md +41 -2
  504. package/docs/consumer-skill/references/product-composition.md +94 -0
  505. package/docs/consumer-skill/references/public-api.json +4390 -475
  506. package/docs/consumer-skill/references/review.md +47 -5
  507. package/docs/consumer-skill/references/rhf-workflows.md +93 -0
  508. package/docs/consumer-skill/references/screen-archetypes.md +34 -0
  509. package/docs/consumer-skill/references/screen-decisions.md +126 -0
  510. package/docs/consumer-skill/references/theming.md +25 -27
  511. package/docs/consumer-skill/references/tokens.json +20 -11
  512. package/docs/consumer-skill/references/view-craft.md +153 -0
  513. package/docs/consumer-skill/references/view-spec.md +73 -0
  514. package/docs/consumer-skill/references/workflows.md +9 -2
  515. package/docs/consumer-skill/scripts/composition-policy.mjs +39 -3
  516. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  517. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  518. package/docs/consumer-skill/scripts/composition.mjs +254 -0
  519. package/docs/consumer-skill/scripts/discovery.mjs +96 -10
  520. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  521. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  522. package/docs/consumer-skill/scripts/inspection.mjs +193 -0
  523. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  524. package/docs/consumer-skill/scripts/setup-skills.mjs +111 -0
  525. package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
  526. package/docs/consumer-skills/themelia-components/SKILL.md +31 -0
  527. package/docs/consumer-skills/themelia-composition/SKILL.md +34 -0
  528. package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
  529. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  530. package/docs/consumer-skills/themelia-foundation/SKILL.md +15 -0
  531. package/docs/consumer-skills/themelia-tokenization/SKILL.md +42 -0
  532. package/package.json +4 -2
  533. package/templates/README.md +39 -0
  534. package/templates/admin-shell-template.tsx +382 -0
  535. package/templates/analytics-operations-template.tsx +376 -0
  536. package/templates/customers-template.tsx +509 -0
  537. package/templates/index.ts +29 -0
  538. package/templates/orders-template.tsx +1102 -0
  539. package/templates/products-template.tsx +834 -0
  540. package/templates/user-permissions-template.tsx +450 -0
  541. package/dist/accordion-Cjb6sx0G.js.map +0 -1
  542. package/dist/action-menu-CllU52Mm.js +0 -280
  543. package/dist/action-menu-CllU52Mm.js.map +0 -1
  544. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  545. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  546. package/dist/app-shell-C4FhvCqF.js +0 -236
  547. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  548. package/dist/auth-BGua8ouh.js.map +0 -1
  549. package/dist/avatar-DAPlDvhJ.js.map +0 -1
  550. package/dist/base/cascader.js.map +0 -1
  551. package/dist/batch-action-bar-DnUJ21NQ.js.map +0 -1
  552. package/dist/button-DVzspB_G.js.map +0 -1
  553. package/dist/buttons-DPZekJFu.js.map +0 -1
  554. package/dist/cards-BaBZR-AU.js +0 -68
  555. package/dist/cards-BaBZR-AU.js.map +0 -1
  556. package/dist/chart-ZOYyK2xG.js +0 -155
  557. package/dist/chart-ZOYyK2xG.js.map +0 -1
  558. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  559. package/dist/choice-inputs-CNHvARCJ.js +0 -770
  560. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  561. package/dist/code-block-DeneBJR_.js.map +0 -1
  562. package/dist/combobox-DaHESuiL.js +0 -355
  563. package/dist/combobox-DaHESuiL.js.map +0 -1
  564. package/dist/combobox-Dxo2fAYQ.js.map +0 -1
  565. package/dist/command-C25VMRII.js.map +0 -1
  566. package/dist/comments-DD0DUPwJ.js.map +0 -1
  567. package/dist/containers-Mu1LMGV1.js +0 -103
  568. package/dist/containers-Mu1LMGV1.js.map +0 -1
  569. package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
  570. package/dist/data-display-DT_khPl_.js.map +0 -1
  571. package/dist/date-picker-B2K3ucWn.js.map +0 -1
  572. package/dist/date-pickers-Ds8gLaoP.js +0 -175
  573. package/dist/date-pickers-Ds8gLaoP.js.map +0 -1
  574. package/dist/dropdown-menu-Cl4X7L5S.js +0 -193
  575. package/dist/dropdown-menu-Cl4X7L5S.js.map +0 -1
  576. package/dist/feedback-BYIhtitP.js.map +0 -1
  577. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +0 -1
  578. package/dist/filters-DJVAveHA.js.map +0 -1
  579. package/dist/form-field-CwH9y77i.js.map +0 -1
  580. package/dist/form-sizing-BdP_Mf5p.js.map +0 -1
  581. package/dist/forms-B9G_xwzi.js +0 -194
  582. package/dist/forms-B9G_xwzi.js.map +0 -1
  583. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  584. package/dist/header-BSfIEWbI.js.map +0 -1
  585. package/dist/hooks-ClH9thn4.js.map +0 -1
  586. package/dist/input-CZw8iU99.js +0 -21
  587. package/dist/input-CZw8iU99.js.map +0 -1
  588. package/dist/input-DQdEd0YD.js +0 -263
  589. package/dist/input-DQdEd0YD.js.map +0 -1
  590. package/dist/item-K5_ghvze.js +0 -275
  591. package/dist/item-K5_ghvze.js.map +0 -1
  592. package/dist/message-DZ_ruyUV.js.map +0 -1
  593. package/dist/metadata-list-8N16ZMW_.js +0 -405
  594. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  595. package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
  596. package/dist/navigation-Bnotn4AQ.js +0 -145
  597. package/dist/navigation-Bnotn4AQ.js.map +0 -1
  598. package/dist/navigation-BzhHI3lo.js.map +0 -1
  599. package/dist/navigation-row-recipes-BFLCk_Aq.js.map +0 -1
  600. package/dist/overflow-tab-bar-CWY7Nogn.js +0 -282
  601. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  602. package/dist/overlays-tMkF-VAN.js +0 -1003
  603. package/dist/overlays-tMkF-VAN.js.map +0 -1
  604. package/dist/page-CL9YeH_V.js +0 -224
  605. package/dist/page-CL9YeH_V.js.map +0 -1
  606. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  607. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  608. package/dist/popover-gnTOhbFM.js +0 -198
  609. package/dist/popover-gnTOhbFM.js.map +0 -1
  610. package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
  611. package/dist/receipt-BVSOH3Xo.js.map +0 -1
  612. package/dist/rich-text-editor-cRLC-eBK.js.map +0 -1
  613. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +0 -1
  614. package/dist/settings-ybnjVwbd.js +0 -171
  615. package/dist/settings-ybnjVwbd.js.map +0 -1
  616. package/dist/sheet-ijlsjq-n.js +0 -213
  617. package/dist/sheet-ijlsjq-n.js.map +0 -1
  618. package/dist/sidebar-Db6gkh3U.js +0 -619
  619. package/dist/sidebar-Db6gkh3U.js.map +0 -1
  620. package/dist/sidebar-DkTO4VTO.js +0 -512
  621. package/dist/sidebar-DkTO4VTO.js.map +0 -1
  622. package/dist/skeleton-Byjnt7qr.js +0 -264
  623. package/dist/skeleton-Byjnt7qr.js.map +0 -1
  624. package/dist/smart-card-DiC5aac3.js +0 -604
  625. package/dist/smart-card-DiC5aac3.js.map +0 -1
  626. package/dist/table-BweFy_P9.js.map +0 -1
  627. package/dist/tabs-CDocW5D1.js.map +0 -1
  628. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  629. package/dist/text.styles-g4He6UIW.js.map +0 -1
  630. package/dist/theme-scope-BJ6eE2xt.js +0 -50
  631. package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
  632. package/dist/timelines-CwM_9IhD.js.map +0 -1
  633. package/dist/tooltip-yiRJUFjp.js +0 -111
  634. package/dist/tooltip-yiRJUFjp.js.map +0 -1
  635. package/dist/typography-UTnveOEy.js +0 -117
  636. package/dist/typography-UTnveOEy.js.map +0 -1
  637. package/dist/ui-provider-C_U0Xma4.js +0 -136
  638. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  639. package/dist/upload-CXyxmQBP.js.map +0 -1
  640. package/dist/upload-queue-Boscubn9.js.map +0 -1
  641. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  642. package/dist/use-mobile-vaLKwgyf.js +0 -15
  643. package/dist/use-mobile-vaLKwgyf.js.map +0 -1
  644. package/dist/utils-BRhFDwuU.js.map +0 -1
  645. package/dist/value-inputs-TaX4OjNk.js +0 -963
  646. package/dist/value-inputs-TaX4OjNk.js.map +0 -1
  647. package/dist/workspace-B-OEm3Kf.js +0 -408
  648. package/dist/workspace-B-OEm3Kf.js.map +0 -1
@@ -1,28 +1,28 @@
1
1
  "use client";
2
2
  import { useStrings as e } from "../lib/strings.js";
3
- import { t } from "../utils-BRhFDwuU.js";
4
- import { n } from "../buttons-DPZekJFu.js";
5
- import { c as r } from "../typography-UTnveOEy.js";
6
- import { i, t as a } from "../structure-BmisBK-3.js";
7
- import { h as o, p as s, t as c, v as l } from "../smart-card-DiC5aac3.js";
8
- import { n as u, t as d } from "../feedback-BYIhtitP.js";
9
- import { n as f, t as p } from "../action-menu-CllU52Mm.js";
10
- import { n as m, r as h, t as g } from "../overlays-tMkF-VAN.js";
11
- import { n as _ } from "../content-typography-CnwgMJ37.js";
12
- import { t as v } from "../accordion-Cjb6sx0G.js";
13
- import { t as y } from "../input-DQdEd0YD.js";
14
- import { t as b } from "../form-field-CwH9y77i.js";
15
- import { a as x, c as S, d as C, o as w, s as T } from "../text-inputs-f9Ia-aCi.js";
16
- import { l as E } from "../choice-inputs-CNHvARCJ.js";
17
- import { t as ee } from "../scroll-area-DcI-M1UT.js";
18
- import { i as D, n as O, r as te, t as ne } from "../tabs-CDocW5D1.js";
19
- import { t as k } from "../popover-menu-Cn9rUkdc.js";
20
- import { n as A, t as j } from "../rich-text-editor-toolbar-DfXg0-VC.js";
3
+ import { t } from "../utils-B6kKb8jB.js";
4
+ import { n } from "../buttons-BedGfygC.js";
5
+ import { c as r } from "../typography-BQnine1k.js";
6
+ import { i, t as a } from "../structure-DuxKl954.js";
7
+ import { h as o, p as s, t as c, v as l } from "../smart-card-CW0hjetE.js";
8
+ import { n as u, t as d } from "../feedback-Dm4izqFn.js";
9
+ import { n as f } from "../composition.recipes-COdiFhxB.js";
10
+ import { n as p, t as m } from "../action-menu-Dr8K-ghE.js";
11
+ import { n as h, r as g, t as _ } from "../overlays-BSgCtM2v.js";
12
+ import { t as v } from "../accordion-B9MHG0cT.js";
13
+ import { t as y } from "../input-CvyDQlY7.js";
14
+ import { t as b } from "../form-field-BriWAXyg.js";
15
+ import { a as x, c as S, d as C, o as w, s as T } from "../text-inputs-B1culiSK.js";
16
+ import { l as E } from "../choice-inputs-zUgBZfE4.js";
17
+ import { t as ee } from "../scroll-area-B0dB2cBi.js";
18
+ import { i as D, n as O, r as te, t as k } from "../tabs-e7ko9S2o.js";
19
+ import { t as ne } from "../popover-menu-DlnQ2zlR.js";
20
+ import { n as A, t as j } from "../rich-text-editor-toolbar-laT3tpBT.js";
21
21
  import { t as M } from "../rich-text-editor.strings-CB59ekH2.js";
22
22
  import { a as N, c as P, i as F, l as I, n as L, o as R, r as z, s as B, t as V, u as H } from "../http-D_6rOnzU.js";
23
- import { useEffect as U, useId as W, useImperativeHandle as G, useMemo as re, useRef as K, useState as q } from "react";
24
- import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
25
- import { Bold as ie, Italic as ae, Link as oe, List as se, ListOrdered as ce, Plus as Z, Redo2 as le, Undo2 as ue, X as de } from "lucide-react";
23
+ import { useEffect as U, useId as W, useImperativeHandle as G, useMemo as K, useRef as q, useState as J } from "react";
24
+ import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
25
+ import { Bold as re, Italic as ie, Link as ae, List as oe, ListOrdered as se, Plus as ce, Redo2 as le, Undo2 as ue, X as de } from "lucide-react";
26
26
  import { EditorContent as fe, Node as pe, generateJSON as me, mergeAttributes as he, useEditor as ge } from "@tiptap/react";
27
27
  import _e from "@tiptap/starter-kit";
28
28
  //#region src/components/features/email-composer/partials/data-status.tsx
@@ -30,7 +30,7 @@ function Q(e) {
30
30
  return !!(e?.loading || e?.error);
31
31
  }
32
32
  function ve({ state: e, label: t, retryLabel: n, report: r }) {
33
- return e?.loading ? /* @__PURE__ */ Y(u, { label: t }) : e?.error ? /* @__PURE__ */ Y(d, {
33
+ return e?.loading ? /* @__PURE__ */ X(u, { label: t }) : e?.error ? /* @__PURE__ */ X(d, {
34
34
  variant: "inline",
35
35
  description: e.error,
36
36
  retryLabel: n,
@@ -42,7 +42,7 @@ function ve({ state: e, label: t, retryLabel: n, report: r }) {
42
42
  //#endregion
43
43
  //#region src/components/features/email-composer/use-composer.ts
44
44
  function ye(t) {
45
- let n = e(H, t.strings), r = K(null);
45
+ let n = e(H, t.strings), r = q(null);
46
46
  r.current ||= structuredClone({
47
47
  to: [],
48
48
  cc: [],
@@ -55,7 +55,7 @@ function ye(t) {
55
55
  placeholderOverrides: {},
56
56
  ...t.value ?? t.defaultValue
57
57
  });
58
- let [i, a] = q(r.current), o = t.value ?? i, s = K({
58
+ let [i, a] = J(r.current), o = t.value ?? i, s = q({
59
59
  props: t,
60
60
  draft: o,
61
61
  strings: n
@@ -65,22 +65,22 @@ function ye(t) {
65
65
  draft: o,
66
66
  strings: n
67
67
  };
68
- let c = K(o);
68
+ let c = q(o);
69
69
  t.value !== void 0 && (c.current = t.value);
70
- let l = K(null), u = K(null), [d, f] = q(!1), [p, m] = q(""), [h, g] = q(""), [_, v] = q(!1), [y, b] = q([]), x = K(!0);
70
+ let l = q(null), u = q(null), [d, f] = J(!1), [p, m] = J(""), [h, g] = J(""), [_, v] = J(!1), [y, b] = J([]), x = q(!0);
71
71
  U(() => (x.current = !0, () => {
72
72
  x.current = !1;
73
73
  }), []);
74
- let S = re(() => {
74
+ let S = K(() => {
75
75
  let e = Object.create(null);
76
76
  for (let r of t.placeholders?.sets ?? []) for (let t of Object.keys(r.definitions)) {
77
77
  if (Object.hasOwn(e, t)) throw Error(n.duplicateVariable(t));
78
78
  r.definitions[t] && (e[t] = r.definitions[t]);
79
79
  }
80
80
  return e;
81
- }, [t.placeholders?.sets, n]), C = re(() => [...t.templates?.items ?? [], ...y], [t.templates?.items, y]), w = K(C);
81
+ }, [t.placeholders?.sets, n]), C = K(() => [...t.templates?.items ?? [], ...y], [t.templates?.items, y]), w = q(C);
82
82
  if (w.current = C, new Set(C.map((e) => e.id)).size !== C.length) throw Error(n.duplicateTemplate);
83
- let T = () => s.current.props.value ?? c.current, E = (e) => C.find((t) => t.id === e.templateId), ee = K(null), D = (e = T()) => {
83
+ let T = () => s.current.props.value ?? c.current, E = (e) => C.find((t) => t.id === e.templateId), ee = q(null), D = (e = T()) => {
84
84
  let t = s.current.props.context, n = E(e), r = s.current.strings, i = ee.current;
85
85
  if (i && i.draft === e && i.context === t && i.definitions === S && i.template === n && i.strings === r) return i.result;
86
86
  let a = L(e, t, S, n, r);
@@ -106,13 +106,13 @@ function ye(t) {
106
106
  field: "placeholders",
107
107
  message: t.dataUnavailable
108
108
  }), n;
109
- }, te = O().length > 0, ne = (e = T()) => structuredClone([...O(), ...D(e).issues]), k = () => {
109
+ }, te = O().length > 0, k = (e = T()) => structuredClone([...O(), ...D(e).issues]), ne = () => {
110
110
  let e = T(), t = [...D(e).rendered?.unresolved ?? []];
111
111
  return {
112
112
  draft: structuredClone(e),
113
113
  dirty: JSON.stringify(e) !== JSON.stringify(r.current),
114
114
  busy: u.current !== null,
115
- issues: ne(e),
115
+ issues: k(e),
116
116
  unresolvedPlaceholders: t
117
117
  };
118
118
  }, A = (e) => {
@@ -122,7 +122,7 @@ function ye(t) {
122
122
  if (!x.current || !n && u.current && u.current !== "action") return;
123
123
  let r = structuredClone(e(structuredClone(T())));
124
124
  s.current.props.value === void 0 && (c.current = r, a(r)), s.current.props.onChange?.(structuredClone(r)), s.current.props.onEdit?.(structuredClone(r), { source: t }), m(""), g("");
125
- }, M = K(null);
125
+ }, M = q(null);
126
126
  async function N(e, t, n = !1) {
127
127
  if (u.current && !(n && u.current === "action") || !x.current) return;
128
128
  let r = {
@@ -161,7 +161,7 @@ function ye(t) {
161
161
  placeholderOverrides: t.overrides === "reset" ? {} : n.placeholderOverrides
162
162
  }), "template", r);
163
163
  }
164
- let R = K(null), z = K(null);
164
+ let R = q(null), z = q(null);
165
165
  z.current ||= {
166
166
  getState: () => R.current.getState(),
167
167
  update: (e) => R.current.update(e),
@@ -195,12 +195,12 @@ function ye(t) {
195
195
  t = n;
196
196
  }
197
197
  x.current && (t = structuredClone(t), await e.onSend(structuredClone(t)), x.current && (g(n.sent), e.onSent?.(t)));
198
- }, e), J = (e = !1) => N("discard", async () => {
198
+ }, e), Y = (e = !1) => N("discard", async () => {
199
199
  let e = s.current.props, t = T();
200
200
  await e.onDiscard?.(B), x.current && T() === t && (j(() => r.current, "api", !0), v(!1), g(n.discarded), e.onClose?.());
201
201
  }, e);
202
202
  R.current = {
203
- getState: k,
203
+ getState: ne,
204
204
  update: (e) => j(e),
205
205
  setSubject: (e) => j((t) => ({
206
206
  ...t,
@@ -253,23 +253,23 @@ function ye(t) {
253
253
  if (!r) throw Error(n.unknownTemplate(e));
254
254
  F(r, t);
255
255
  },
256
- validate: () => ne(),
256
+ validate: () => k(),
257
257
  prepare: V,
258
258
  send: () => W(),
259
- discard: () => J()
259
+ discard: () => Y()
260
260
  }, G(t.apiRef, () => B, [B]);
261
- let Y = (e) => N("action", async () => {
261
+ let X = (e) => N("action", async () => {
262
262
  await e.onSelect(Object.assign(Object.create(B), {
263
263
  send: () => W(!0),
264
- discard: () => J(!0)
264
+ discard: () => Y(!0)
265
265
  }));
266
- }), X = () => N("import", async () => {
266
+ }), Z = () => N("import", async () => {
267
267
  let e = T(), t = await s.current.props.templates?.onImport?.();
268
268
  if (t && x.current) {
269
269
  if (w.current.some((e) => e.id === t.id)) throw Error(n.duplicateTemplate);
270
270
  b((e) => [...e, structuredClone(t)]), T() === e && F(t, {}, !0);
271
271
  }
272
- }), { rendered: ie, renderError: ae } = D(o);
272
+ }), { rendered: re, renderError: ie } = D(o);
273
273
  return {
274
274
  api: B,
275
275
  draft: o,
@@ -279,16 +279,16 @@ function ye(t) {
279
279
  error: p,
280
280
  notice: h,
281
281
  attempted: _,
282
- rendered: ie,
283
- renderError: ae,
282
+ rendered: re,
283
+ renderError: ie,
284
284
  definitions: S,
285
285
  templates: C,
286
- values: ie?.email.resolvedPlaceholders ?? {},
286
+ values: re?.email.resolvedPlaceholders ?? {},
287
287
  editorRef: l,
288
- state: k(),
288
+ state: ne(),
289
289
  report: A,
290
- runAction: Y,
291
- importTemplate: X,
290
+ runAction: X,
291
+ importTemplate: Z,
292
292
  changeBody: (e) => j((t) => ({
293
293
  ...t,
294
294
  body: e
@@ -306,7 +306,7 @@ function ye(t) {
306
306
  //#endregion
307
307
  //#region src/components/features/email-composer/partials/recipients.tsx
308
308
  function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a, change: o, remove: s, add: c, id: l, errorId: u }) {
309
- let [d, f] = q(F(e));
309
+ let [d, f] = J(F(e));
310
310
  U(() => {
311
311
  f(F(e));
312
312
  }, [e.name, e.email]);
@@ -316,9 +316,9 @@ function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
316
316
  ...z(d)
317
317
  });
318
318
  };
319
- return /* @__PURE__ */ X(x, {
319
+ return /* @__PURE__ */ Z(x, {
320
320
  className: "min-w-0 w-full",
321
- children: [/* @__PURE__ */ Y(S, {
321
+ children: [/* @__PURE__ */ X(S, {
322
322
  id: l,
323
323
  "aria-invalid": !!u,
324
324
  "aria-describedby": u,
@@ -332,17 +332,17 @@ function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
332
332
  onKeyDown: (t) => {
333
333
  t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(F(e)));
334
334
  }
335
- }), (h || c) && /* @__PURE__ */ X(w, {
335
+ }), (h || c) && /* @__PURE__ */ Z(w, {
336
336
  align: "inline-end",
337
- children: [h && /* @__PURE__ */ Y(T, {
337
+ children: [h && /* @__PURE__ */ X(T, {
338
338
  type: "button",
339
339
  iconOnly: !0,
340
340
  size: "sm",
341
341
  disabled: i,
342
342
  "aria-label": a.removeRecipient(e.email),
343
343
  onClick: s,
344
- children: /* @__PURE__ */ Y(de, { className: "size-icon" })
345
- }), c && /* @__PURE__ */ Y(T, {
344
+ children: /* @__PURE__ */ X(de, { className: "size-icon" })
345
+ }), c && /* @__PURE__ */ X(T, {
346
346
  type: "button",
347
347
  iconOnly: !0,
348
348
  size: "sm",
@@ -350,13 +350,13 @@ function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
350
350
  "aria-label": a.addRecipient(t),
351
351
  title: a.addRecipient(t),
352
352
  onClick: c,
353
- children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
353
+ children: /* @__PURE__ */ X(ce, { className: "size-icon" })
354
354
  })]
355
355
  })]
356
356
  });
357
357
  }
358
358
  function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange: o, error: s, actions: c, report: l }) {
359
- let [u, d] = q(!1), [f, p] = q(""), m = W(), h = s ? `${m}-error` : void 0, g = K(null), _ = n.mode !== "disabled" && n.allowAdd !== !1 && (n.mode !== "readonly" || n.allowAdd === !0), v = u || t.length === 0, y = Q(n), C = () => {
359
+ let [u, d] = J(!1), [f, p] = J(""), m = W(), h = s ? `${m}-error` : void 0, g = q(null), _ = n.mode !== "disabled" && n.allowAdd !== !1 && (n.mode !== "readonly" || n.allowAdd === !0), v = u || t.length === 0, y = Q(n), C = () => {
360
360
  if (r || !_ || !v || y) return;
361
361
  let e = z(f);
362
362
  f.trim() && !t.some((t) => t.email.toLowerCase() === e.email.toLowerCase()) && o([...t, e]), p(""), d(!1);
@@ -367,21 +367,21 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
367
367
  let E = () => {
368
368
  v && C(), d(!0), g.current?.focus();
369
369
  };
370
- return /* @__PURE__ */ Y(b, {
370
+ return /* @__PURE__ */ X(b, {
371
371
  label: i[e],
372
372
  required: e === "to",
373
373
  error: s,
374
374
  supportingTextId: h,
375
375
  htmlFor: t.length ? `${m}-0` : `${m}-new`,
376
- children: /* @__PURE__ */ X(a, {
376
+ children: /* @__PURE__ */ Z(a, {
377
377
  id: `${m}-group`,
378
378
  gap: "sm",
379
- children: [y ? /* @__PURE__ */ Y(ve, {
379
+ children: [y ? /* @__PURE__ */ X(ve, {
380
380
  state: n,
381
381
  label: i.loadingRecipients(i[e]),
382
382
  retryLabel: i.retry,
383
383
  report: l
384
- }) : /* @__PURE__ */ X(J, { children: [t.map((a, s) => /* @__PURE__ */ Y(be, {
384
+ }) : /* @__PURE__ */ Z(Y, { children: [t.map((a, s) => /* @__PURE__ */ X(be, {
385
385
  id: `${m}-${s}`,
386
386
  errorId: h,
387
387
  recipient: a,
@@ -393,9 +393,9 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
393
393
  change: (e) => o(t.map((t, n) => n === s ? e : t)),
394
394
  remove: () => o(t.filter((e, t) => t !== s)),
395
395
  add: _ && !v && s === t.length - 1 ? E : void 0
396
- }, a.id ?? s)), v && /* @__PURE__ */ X(x, {
396
+ }, a.id ?? s)), v && /* @__PURE__ */ Z(x, {
397
397
  className: "min-w-0 w-full",
398
- children: [/* @__PURE__ */ Y(S, {
398
+ children: [/* @__PURE__ */ X(S, {
399
399
  id: `${m}-new`,
400
400
  ref: g,
401
401
  autoFocus: e !== "to",
@@ -411,9 +411,9 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
411
411
  onKeyDown: (e) => {
412
412
  e.key === "Enter" && (e.preventDefault(), C()), e.key === "Escape" && (e.preventDefault(), p(""), d(!1));
413
413
  }
414
- }), _ && /* @__PURE__ */ Y(w, {
414
+ }), _ && /* @__PURE__ */ X(w, {
415
415
  align: "inline-end",
416
- children: /* @__PURE__ */ Y(T, {
416
+ children: /* @__PURE__ */ X(T, {
417
417
  type: "button",
418
418
  iconOnly: !0,
419
419
  size: "sm",
@@ -422,10 +422,10 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
422
422
  title: i.addRecipient(i[e]),
423
423
  onMouseDown: (e) => e.preventDefault(),
424
424
  onClick: E,
425
- children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
425
+ children: /* @__PURE__ */ X(ce, { className: "size-icon" })
426
426
  })
427
427
  })]
428
- })] }), c && /* @__PURE__ */ Y(a, {
428
+ })] }), c && /* @__PURE__ */ X(a, {
429
429
  direction: "horizontal",
430
430
  gap: "xs",
431
431
  justify: "end",
@@ -438,7 +438,7 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
438
438
  //#region src/components/features/email-composer/partials/variables.tsx
439
439
  function Se({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c, editable: l }) {
440
440
  let u = W();
441
- return /* @__PURE__ */ Y(i, {
441
+ return /* @__PURE__ */ X(i, {
442
442
  minColumnWidth: "sm",
443
443
  gap: "md",
444
444
  children: Object.keys(e).map((i) => {
@@ -447,36 +447,36 @@ function Se({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c,
447
447
  value: String(t[i] ?? ""),
448
448
  disabled: c,
449
449
  readOnly: !d.editable
450
- }, h = d.input === "textarea" ? /* @__PURE__ */ Y(C, {
450
+ }, h = d.input === "textarea" ? /* @__PURE__ */ X(C, {
451
451
  ...m,
452
452
  onChange: (e) => o.setPlaceholder(i, e.target.value)
453
- }) : d.input === "select" ? /* @__PURE__ */ Y(E, {
453
+ }) : d.input === "select" ? /* @__PURE__ */ X(E, {
454
454
  ...m,
455
455
  placeholder: s.choose,
456
456
  options: [...d.options ?? []],
457
457
  onValueChange: (e) => o.setPlaceholder(i, e ?? "")
458
- }) : /* @__PURE__ */ Y(y, {
458
+ }) : /* @__PURE__ */ X(y, {
459
459
  ...m,
460
460
  type: d.input === "number" ? "number" : d.input === "date" ? "date" : "text",
461
461
  onChange: (e) => o.setPlaceholder(i, d.input === "number" && e.target.value !== "" ? Number(e.target.value) : e.target.value)
462
462
  });
463
- return /* @__PURE__ */ Y(b, {
463
+ return /* @__PURE__ */ X(b, {
464
464
  label: d.group ? `${d.group} · ${d.label}` : d.label,
465
465
  htmlFor: p,
466
466
  required: d.required,
467
467
  helperText: `${f ? s.overridden : s.dynamic}${d.description ? ` · ${d.description}` : ""}`,
468
- children: /* @__PURE__ */ X(a, {
468
+ children: /* @__PURE__ */ Z(a, {
469
469
  id: `${p}-group`,
470
470
  direction: "horizontal",
471
471
  gap: "sm",
472
472
  align: "start",
473
473
  wrap: !1,
474
474
  children: [
475
- /* @__PURE__ */ Y("div", {
475
+ /* @__PURE__ */ X("div", {
476
476
  className: "min-w-0 flex-1",
477
477
  children: h
478
478
  }),
479
- /* @__PURE__ */ Y(n, {
479
+ /* @__PURE__ */ X(n, {
480
480
  type: "button",
481
481
  iconOnly: !0,
482
482
  size: "sm",
@@ -485,9 +485,9 @@ function Se({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c,
485
485
  disabled: c || !l,
486
486
  "aria-label": s.insertVariable(d.label),
487
487
  onClick: () => o.insertPlaceholder(i),
488
- children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
488
+ children: /* @__PURE__ */ X(ce, { className: "size-icon" })
489
489
  }),
490
- f && /* @__PURE__ */ Y(n, {
490
+ f && /* @__PURE__ */ X(n, {
491
491
  type: "button",
492
492
  size: "sm",
493
493
  buttonStyle: "ghost",
@@ -518,7 +518,7 @@ var Ce = pe.create({
518
518
  "span",
519
519
  he(t, {
520
520
  "data-placeholder": e.attrs.key,
521
- class: "rounded-inner bg-accent text-accent-foreground",
521
+ class: "rounded-radius bg-accent text-accent-foreground",
522
522
  contenteditable: "false"
523
523
  }),
524
524
  `{{${e.attrs.key}}}`
@@ -526,15 +526,15 @@ var Ce = pe.create({
526
526
  renderText: ({ node: e }) => `{{${e.attrs.key}}}`
527
527
  }), $ = [_e.configure({ link: { openOnClick: !1 } }), Ce];
528
528
  function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
529
- let u = K(i);
529
+ let u = q(i);
530
530
  u.current = i;
531
- let d = K(!1), [f, p] = q(!1), [m, g] = q(""), [v, x] = q(""), S = K({
531
+ let d = q(!1), [f, p] = J(!1), [m, h] = J(""), [_, v] = J(""), x = q({
532
532
  from: 1,
533
533
  to: 1
534
- }), C = e(M, {
534
+ }), S = e(M, {
535
535
  editorLabel: l.body,
536
536
  toolbar: l.toolbar
537
- }), w = ge({
537
+ }), C = ge({
538
538
  extensions: $,
539
539
  immediatelyRender: !1,
540
540
  shouldRerenderOnTransaction: !0,
@@ -544,7 +544,7 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
544
544
  role: "textbox",
545
545
  "aria-label": l.body,
546
546
  "aria-multiline": "true",
547
- class: _
547
+ class: A.editable
548
548
  } },
549
549
  onUpdate: ({ editor: e }) => {
550
550
  d.current || u.current({
@@ -554,26 +554,26 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
554
554
  }
555
555
  });
556
556
  U(() => {
557
- if (w) try {
558
- let e = n.kind === "rich" ? w.schema.nodeFromJSON(n.document).toJSON() : me(P(n), $);
559
- JSON.stringify(w.getJSON()) !== JSON.stringify(e) && w.commands.setContent(e, { emitUpdate: !1 });
557
+ if (C) try {
558
+ let e = n.kind === "rich" ? C.schema.nodeFromJSON(n.document).toJSON() : me(P(n), $);
559
+ JSON.stringify(C.getJSON()) !== JSON.stringify(e) && C.commands.setContent(e, { emitUpdate: !1 });
560
560
  } catch {}
561
561
  }), U(() => {
562
- w?.setEditable(!r && n.kind !== "html", !1);
562
+ C?.setEditable(!r && n.kind !== "html", !1);
563
563
  }, [
564
- w,
564
+ C,
565
565
  r,
566
566
  n.kind
567
567
  ]), U(() => {
568
568
  (r || n.kind === "html") && p(!1);
569
569
  }, [r, n.kind]), G(c, () => {
570
570
  let e = (e) => {
571
- if (!w) throw Error(l.editorNotReady);
571
+ if (!C) throw Error(l.editorNotReady);
572
572
  d.current = !0;
573
573
  try {
574
574
  return e(), {
575
575
  kind: "rich",
576
- document: w.getJSON()
576
+ document: C.getJSON()
577
577
  };
578
578
  } finally {
579
579
  d.current = !1;
@@ -581,121 +581,121 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
581
581
  };
582
582
  return {
583
583
  synchronize: (e) => {
584
- if (!w) return;
585
- let t = e.kind === "rich" ? w.schema.nodeFromJSON(e.document).toJSON() : me(P(e), $);
586
- JSON.stringify(w.getJSON()) !== JSON.stringify(t) && w.commands.setContent(t, { emitUpdate: !1 });
584
+ if (!C) return;
585
+ let t = e.kind === "rich" ? C.schema.nodeFromJSON(e.document).toJSON() : me(P(e), $);
586
+ JSON.stringify(C.getJSON()) !== JSON.stringify(t) && C.commands.setContent(t, { emitUpdate: !1 });
587
587
  },
588
588
  focus: () => {
589
- w?.commands.focus();
589
+ C?.commands.focus();
590
590
  },
591
591
  convert: (e) => ({
592
592
  kind: "rich",
593
593
  document: e.kind === "rich" ? e.document : me(P(e), $)
594
594
  }),
595
595
  insert: (t, n) => e(() => {
596
- n === "append" && w.commands.focus("end"), w.chain().focus().insertContent(t.kind === "rich" ? t.document.content ?? [] : P(t)).run();
596
+ n === "append" && C.commands.focus("end"), C.chain().focus().insertContent(t.kind === "rich" ? t.document.content ?? [] : P(t)).run();
597
597
  }),
598
598
  insertText: (t) => e(() => {
599
- t && w.chain().focus().insertContent({
599
+ t && C.chain().focus().insertContent({
600
600
  type: "text",
601
601
  text: t
602
602
  }).run();
603
603
  }),
604
604
  insertPlaceholder: (t) => e(() => {
605
- w.chain().focus().insertContent({
605
+ C.chain().focus().insertContent({
606
606
  type: "placeholderToken",
607
607
  attrs: { key: t }
608
608
  }).run();
609
609
  })
610
610
  };
611
- }, [w, l]);
612
- let T = [
611
+ }, [C, l]);
612
+ let w = [
613
613
  {
614
614
  id: "bold",
615
- icon: ie,
616
- label: C.toolbar.bold,
617
- isActive: () => !!w?.isActive("bold"),
615
+ icon: re,
616
+ label: S.toolbar.bold,
617
+ isActive: () => !!C?.isActive("bold"),
618
618
  run: () => {
619
- w?.chain().focus().toggleBold().run();
619
+ C?.chain().focus().toggleBold().run();
620
620
  }
621
621
  },
622
622
  {
623
623
  id: "italic",
624
- icon: ae,
625
- label: C.toolbar.italic,
626
- isActive: () => !!w?.isActive("italic"),
624
+ icon: ie,
625
+ label: S.toolbar.italic,
626
+ isActive: () => !!C?.isActive("italic"),
627
627
  run: () => {
628
- w?.chain().focus().toggleItalic().run();
628
+ C?.chain().focus().toggleItalic().run();
629
629
  }
630
630
  },
631
631
  {
632
632
  id: "bullet",
633
- icon: se,
634
- label: C.toolbar.bulletList,
635
- isActive: () => !!w?.isActive("bulletList"),
633
+ icon: oe,
634
+ label: S.toolbar.bulletList,
635
+ isActive: () => !!C?.isActive("bulletList"),
636
636
  run: () => {
637
- w?.chain().focus().toggleBulletList().run();
637
+ C?.chain().focus().toggleBulletList().run();
638
638
  }
639
639
  },
640
640
  {
641
641
  id: "ordered",
642
- icon: ce,
643
- label: C.toolbar.orderedList,
644
- isActive: () => !!w?.isActive("orderedList"),
642
+ icon: se,
643
+ label: S.toolbar.orderedList,
644
+ isActive: () => !!C?.isActive("orderedList"),
645
645
  run: () => {
646
- w?.chain().focus().toggleOrderedList().run();
646
+ C?.chain().focus().toggleOrderedList().run();
647
647
  }
648
648
  },
649
649
  {
650
650
  id: "undo",
651
651
  icon: ue,
652
- label: C.toolbar.undo,
652
+ label: S.toolbar.undo,
653
653
  isActive: () => !1,
654
654
  run: () => {
655
- w?.chain().focus().undo().run();
655
+ C?.chain().focus().undo().run();
656
656
  },
657
- disabled: !w?.can().undo()
657
+ disabled: !C?.can().undo()
658
658
  },
659
659
  {
660
660
  id: "redo",
661
661
  icon: le,
662
- label: C.toolbar.redo,
662
+ label: S.toolbar.redo,
663
663
  isActive: () => !1,
664
664
  run: () => {
665
- w?.chain().focus().redo().run();
665
+ C?.chain().focus().redo().run();
666
666
  },
667
- disabled: !w?.can().redo()
667
+ disabled: !C?.can().redo()
668
668
  }
669
669
  ];
670
- return /* @__PURE__ */ X(a, {
670
+ return /* @__PURE__ */ Z(a, {
671
671
  gap: "none",
672
672
  className: t("email-composer--editor", A.frame, r && A.disabled),
673
673
  children: [
674
- /* @__PURE__ */ Y(j, {
675
- buttons: T,
674
+ /* @__PURE__ */ X(j, {
675
+ buttons: w,
676
676
  disabled: r,
677
- hasEditor: !!w,
677
+ hasEditor: !!C,
678
678
  sourceMode: !1,
679
679
  hideSourceToggle: !0,
680
680
  toggleSourceMode: () => {},
681
- strings: C,
681
+ strings: S,
682
682
  extraToolbarItems: [{
683
683
  id: "link",
684
- icon: oe,
684
+ icon: ae,
685
685
  label: l.link,
686
686
  onClick: () => {
687
- w && (S.current = {
688
- from: w.state.selection.from,
689
- to: w.state.selection.to
690
- }, g(String(w.getAttributes("link").href ?? "")), x(""), p(!0));
687
+ C && (x.current = {
688
+ from: C.state.selection.from,
689
+ to: C.state.selection.to
690
+ }, h(String(C.getAttributes("link").href ?? "")), v(""), p(!0));
691
691
  }
692
692
  }]
693
693
  }),
694
- /* @__PURE__ */ Y(fe, {
695
- editor: w,
694
+ /* @__PURE__ */ X(fe, {
695
+ editor: C,
696
696
  className: t(A.content, "min-h-64 w-full min-w-0 [&_.ProseMirror]:min-h-64")
697
697
  }),
698
- /* @__PURE__ */ Y(h, {
698
+ /* @__PURE__ */ X(g, {
699
699
  open: f,
700
700
  onOpenChange: p,
701
701
  title: l.linkTitle,
@@ -708,22 +708,22 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
708
708
  onAsyncConfirm: async () => {
709
709
  let e = m.trim();
710
710
  if (e && !/^(https?:\/\/|mailto:)/i.test(e)) {
711
- x(l.invalidLink);
711
+ v(l.invalidLink);
712
712
  return;
713
713
  }
714
- w?.commands.setTextSelection(S.current), e ? w?.chain().focus().extendMarkRange("link").setLink({ href: e }).run() : w?.chain().focus().extendMarkRange("link").unsetLink().run(), p(!1);
714
+ C?.commands.setTextSelection(x.current), e ? C?.chain().focus().extendMarkRange("link").setLink({ href: e }).run() : C?.chain().focus().extendMarkRange("link").unsetLink().run(), p(!1);
715
715
  },
716
- children: /* @__PURE__ */ X(a, {
716
+ children: /* @__PURE__ */ Z(a, {
717
717
  gap: "md",
718
- children: [/* @__PURE__ */ Y(b, {
718
+ children: [/* @__PURE__ */ X(b, {
719
719
  label: l.linkUrl,
720
- children: /* @__PURE__ */ Y(y, {
720
+ children: /* @__PURE__ */ X(y, {
721
721
  value: m,
722
- onChange: (e) => g(e.target.value)
722
+ onChange: (e) => h(e.target.value)
723
723
  })
724
- }), v && /* @__PURE__ */ Y(s, {
724
+ }), _ && /* @__PURE__ */ X(s, {
725
725
  tone: "destructive",
726
- children: /* @__PURE__ */ Y(o, { children: v })
726
+ children: /* @__PURE__ */ X(o, { children: _ })
727
727
  })]
728
728
  })
729
729
  })
@@ -733,20 +733,20 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
733
733
  //#endregion
734
734
  //#region src/components/features/email-composer/partials/html-preview.tsx
735
735
  function Te({ html: e, subject: t, strings: n }) {
736
- return /* @__PURE__ */ X(a, {
736
+ return /* @__PURE__ */ Z(a, {
737
737
  gap: "normal",
738
738
  className: "min-w-0",
739
- children: [/* @__PURE__ */ X(r, {
739
+ children: [/* @__PURE__ */ Z(r, {
740
740
  type: "secondary",
741
741
  children: [
742
742
  n.subject,
743
743
  ": ",
744
744
  t
745
745
  ]
746
- }), /* @__PURE__ */ Y(c, {
746
+ }), /* @__PURE__ */ X(c, {
747
747
  surface: "card",
748
748
  padding: "none",
749
- children: /* @__PURE__ */ Y("iframe", {
749
+ children: /* @__PURE__ */ X("iframe", {
750
750
  title: n.previewLabel,
751
751
  sandbox: "",
752
752
  referrerPolicy: "no-referrer",
@@ -759,157 +759,157 @@ function Te({ html: e, subject: t, strings: n }) {
759
759
  //#endregion
760
760
  //#region src/components/features/email-composer/email-composer.tsx
761
761
  function Ee(e) {
762
- let r = ye(e), { api: i, draft: u, strings: d, busy: _, state: x } = r, [S, C] = q("editor"), [w, T] = q(e.placeholders?.showEditor ?? !1), [E, A] = q(!1), [j, M] = q(!1), [N, P] = q(!1), F = W(), I = S === "preview" || u.body.kind === "html", L = (t) => (e.actions ?? []).filter((e) => (e.position ?? "toolbar") === t && (e.visible?.(x) ?? !0)).map((e) => ({
762
+ let r = ye(e), { api: i, draft: u, strings: d, busy: x, state: S } = r, [C, w] = J("editor"), [T, E] = J(e.placeholders?.showEditor ?? !1), [A, j] = J(!1), [M, N] = J(!1), [P, F] = J(!1), I = W(), L = C === "preview" || u.body.kind === "html", R = (t) => (e.actions ?? []).filter((e) => (e.position ?? "toolbar") === t && (e.visible?.(S) ?? !0)).map((e) => ({
763
763
  id: e.id,
764
764
  label: e.label,
765
765
  icon: e.icon,
766
- disabled: _ || e.disabled?.(x),
766
+ disabled: x || e.disabled?.(S),
767
767
  onClick: () => {
768
768
  r.runAction(e);
769
769
  },
770
770
  buttonStyle: "ghost",
771
771
  tone: "secondary"
772
- })), R = /* @__PURE__ */ X(a, {
772
+ })), z = /* @__PURE__ */ Z(a, {
773
773
  direction: {
774
774
  base: "vertical",
775
775
  sm: "horizontal"
776
776
  },
777
- gap: "sm",
777
+ gap: f.commands,
778
778
  align: {
779
779
  base: "stretch",
780
780
  sm: "center"
781
781
  },
782
782
  justify: "between",
783
783
  className: "w-full",
784
- children: [/* @__PURE__ */ X(a, {
784
+ children: [/* @__PURE__ */ Z(a, {
785
785
  direction: "horizontal",
786
- gap: "sm",
787
- children: [e.buttons?.discard !== !1 && /* @__PURE__ */ Y(n, {
786
+ gap: f.commands,
787
+ children: [e.buttons?.discard !== !1 && /* @__PURE__ */ X(n, {
788
788
  type: "button",
789
789
  tone: "secondary",
790
790
  buttonStyle: "ghost",
791
- disabled: _,
791
+ disabled: x,
792
792
  onClick: () => {
793
793
  i.discard();
794
794
  },
795
795
  children: e.buttons?.discard?.label ?? d.discard
796
- }), /* @__PURE__ */ Y(p, { actions: L("footer-start") })]
797
- }), /* @__PURE__ */ X(a, {
796
+ }), /* @__PURE__ */ X(m, { actions: R("footer-start") })]
797
+ }), /* @__PURE__ */ Z(a, {
798
798
  direction: "horizontal",
799
- gap: "sm",
799
+ gap: f.commands,
800
800
  justify: "end",
801
- children: [/* @__PURE__ */ Y(p, { actions: L("footer-end") }), (e.buttons?.send !== !1 || !!L("overflow").length) && /* @__PURE__ */ X(a, {
801
+ children: [/* @__PURE__ */ X(m, { actions: R("footer-end") }), (e.buttons?.send !== !1 || !!R("overflow").length) && /* @__PURE__ */ Z(a, {
802
802
  direction: "horizontal",
803
- gap: "sm",
803
+ gap: f.commands,
804
804
  wrap: !1,
805
805
  className: "email-composer--send-commands",
806
- children: [e.buttons?.send !== !1 && /* @__PURE__ */ Y(n, {
806
+ children: [e.buttons?.send !== !1 && /* @__PURE__ */ X(n, {
807
807
  type: "button",
808
808
  tone: "primary",
809
- disabled: _ || r.dataPending,
810
- loading: _,
809
+ disabled: x || r.dataPending,
810
+ loading: x,
811
811
  strings: { loading: d.working },
812
812
  onClick: () => {
813
813
  i.send();
814
814
  },
815
- children: _ ? d.working : e.buttons?.send?.label ?? d.send
816
- }), !!L("overflow").length && /* @__PURE__ */ Y(f, {
817
- actions: L("overflow"),
815
+ children: x ? d.working : e.buttons?.send?.label ?? d.send
816
+ }), !!R("overflow").length && /* @__PURE__ */ X(p, {
817
+ actions: R("overflow"),
818
818
  srText: d.more,
819
- buttonProps: { disabled: _ }
819
+ buttonProps: { disabled: x }
820
820
  })]
821
821
  })]
822
822
  })]
823
- }), z = (e) => r.attempted ? x.issues.find((t) => t.field === e)?.message : void 0, B = /* @__PURE__ */ X(a, {
823
+ }), B = (e) => r.attempted ? S.issues.find((t) => t.field === e)?.message : void 0, V = /* @__PURE__ */ Z(a, {
824
824
  gap: "lg",
825
825
  className: "email-composer--body min-w-0",
826
826
  children: [
827
- /* @__PURE__ */ X(a, {
827
+ /* @__PURE__ */ Z(a, {
828
828
  gap: "md",
829
829
  className: "email-composer--details",
830
- children: [/* @__PURE__ */ Y(a, {
830
+ children: [/* @__PURE__ */ X(a, {
831
831
  gap: "md",
832
832
  children: [
833
833
  "to",
834
834
  "cc",
835
835
  "bcc"
836
- ].filter((t) => t === "to" || t === "cc" && (E || u.cc.length || Q(e.recipients?.cc)) || t === "bcc" && (j || u.bcc.length || Q(e.recipients?.bcc))).map((t) => /* @__PURE__ */ Y(xe, {
836
+ ].filter((t) => t === "to" || t === "cc" && (A || u.cc.length || Q(e.recipients?.cc)) || t === "bcc" && (M || u.bcc.length || Q(e.recipients?.bcc))).map((t) => /* @__PURE__ */ X(xe, {
837
837
  field: t,
838
838
  value: u[t],
839
839
  options: e.recipients?.[t],
840
840
  strings: d,
841
- busy: _,
841
+ busy: x,
842
842
  report: r.report,
843
- error: z(t),
843
+ error: B(t),
844
844
  onChange: (e) => r.changeRecipients(t, e),
845
- actions: t === "to" ? /* @__PURE__ */ X(J, { children: [!E && !u.cc.length && /* @__PURE__ */ Y(n, {
845
+ actions: t === "to" ? /* @__PURE__ */ Z(Y, { children: [!A && !u.cc.length && /* @__PURE__ */ X(n, {
846
846
  type: "button",
847
847
  size: "sm",
848
848
  buttonStyle: "ghost",
849
849
  tone: "secondary",
850
- disabled: _,
851
- onClick: () => A(!0),
850
+ disabled: x,
851
+ onClick: () => j(!0),
852
852
  children: d.cc
853
- }), !j && !u.bcc.length && /* @__PURE__ */ Y(n, {
853
+ }), !M && !u.bcc.length && /* @__PURE__ */ X(n, {
854
854
  type: "button",
855
855
  size: "sm",
856
856
  buttonStyle: "ghost",
857
857
  tone: "secondary",
858
- disabled: _,
859
- onClick: () => M(!0),
858
+ disabled: x,
859
+ onClick: () => N(!0),
860
860
  children: d.bcc
861
861
  })] }) : void 0
862
862
  }, t))
863
- }), /* @__PURE__ */ Y(b, {
863
+ }), /* @__PURE__ */ X(b, {
864
864
  label: d.subject,
865
865
  required: !0,
866
- htmlFor: `${F}-subject`,
867
- error: z("subject"),
868
- supportingTextId: `${F}-subject-error`,
869
- children: /* @__PURE__ */ Y(y, {
870
- id: `${F}-subject`,
866
+ htmlFor: `${I}-subject`,
867
+ error: B("subject"),
868
+ supportingTextId: `${I}-subject-error`,
869
+ children: /* @__PURE__ */ X(y, {
870
+ id: `${I}-subject`,
871
871
  value: u.subject,
872
872
  readOnly: e.subject?.readOnly,
873
- disabled: _,
874
- invalid: !!z("subject"),
875
- "aria-describedby": z("subject") ? `${F}-subject-error` : void 0,
873
+ disabled: x,
874
+ invalid: !!B("subject"),
875
+ "aria-describedby": B("subject") ? `${I}-subject-error` : void 0,
876
876
  onChange: (e) => r.changeSubject(e.target.value)
877
877
  })
878
878
  })]
879
879
  }),
880
- /* @__PURE__ */ Y(ne, {
881
- value: I ? "preview" : "editor",
880
+ /* @__PURE__ */ X(k, {
881
+ value: L ? "preview" : "editor",
882
882
  onValueChange: (e) => {
883
- e && C(e);
883
+ e && w(e);
884
884
  },
885
- children: /* @__PURE__ */ X(c, {
885
+ children: /* @__PURE__ */ Z(c, {
886
886
  surface: "flat",
887
887
  padding: "none",
888
888
  contentGap: "md",
889
889
  titleSize: "sm",
890
890
  title: d.body,
891
- headerAction: /* @__PURE__ */ X(te, { children: [/* @__PURE__ */ Y(D, {
891
+ headerAction: /* @__PURE__ */ Z(te, { children: [/* @__PURE__ */ X(D, {
892
892
  value: "editor",
893
893
  disabled: u.body.kind === "html",
894
894
  children: d.editor
895
- }), /* @__PURE__ */ Y(D, {
895
+ }), /* @__PURE__ */ X(D, {
896
896
  value: "preview",
897
897
  children: d.preview
898
898
  })] }),
899
899
  children: [
900
- (!!e.templates || !!r.templates.length || L("toolbar").length > 0) && /* @__PURE__ */ X(a, {
900
+ (!!e.templates || !!r.templates.length || R("toolbar").length > 0) && /* @__PURE__ */ Z(a, {
901
901
  direction: "horizontal",
902
- gap: "sm",
902
+ gap: f.commands,
903
903
  align: "center",
904
904
  className: "email-composer--message-actions",
905
905
  children: [
906
- (e.templates || !!r.templates.length) && /* @__PURE__ */ Y(k, {
907
- trigger: /* @__PURE__ */ Y(n, {
906
+ (e.templates || !!r.templates.length) && /* @__PURE__ */ X(ne, {
907
+ trigger: /* @__PURE__ */ X(n, {
908
908
  type: "button",
909
909
  tone: "secondary",
910
910
  buttonStyle: "outline",
911
911
  size: "sm",
912
- disabled: _,
912
+ disabled: x,
913
913
  children: d.templates
914
914
  }),
915
915
  items: r.templates.map((e) => ({
@@ -938,37 +938,37 @@ function Ee(e) {
938
938
  retry: d.retry
939
939
  }
940
940
  }),
941
- e.templates?.allowImport && e.templates.onImport && /* @__PURE__ */ Y(n, {
941
+ e.templates?.allowImport && e.templates.onImport && /* @__PURE__ */ X(n, {
942
942
  type: "button",
943
943
  tone: "secondary",
944
944
  buttonStyle: "ghost",
945
945
  size: "sm",
946
- disabled: _,
946
+ disabled: x,
947
947
  onClick: () => {
948
948
  r.importTemplate();
949
949
  },
950
950
  children: d.importTemplate
951
951
  }),
952
- /* @__PURE__ */ Y(p, {
952
+ /* @__PURE__ */ X(m, {
953
953
  size: "sm",
954
- actions: L("toolbar")
954
+ actions: R("toolbar")
955
955
  })
956
956
  ]
957
957
  }),
958
- /* @__PURE__ */ Y(O, {
958
+ /* @__PURE__ */ X(O, {
959
959
  value: "editor",
960
960
  keepMounted: !0,
961
- children: /* @__PURE__ */ Y(we, {
961
+ children: /* @__PURE__ */ X(we, {
962
962
  body: u.body,
963
- disabled: _ || I,
963
+ disabled: x || L,
964
964
  onChange: r.changeBody,
965
965
  adapterRef: r.editorRef,
966
966
  strings: d
967
967
  })
968
968
  }),
969
- /* @__PURE__ */ Y(O, {
969
+ /* @__PURE__ */ X(O, {
970
970
  value: "preview",
971
- children: r.rendered && /* @__PURE__ */ Y(Te, {
971
+ children: r.rendered && /* @__PURE__ */ X(Te, {
972
972
  html: r.rendered.email.html,
973
973
  subject: r.rendered.email.subject,
974
974
  strings: d
@@ -977,110 +977,110 @@ function Ee(e) {
977
977
  ]
978
978
  })
979
979
  }),
980
- (!!Object.keys(r.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ Y(v, {
981
- value: w ? ["variables"] : [],
982
- onValueChange: (e) => T(e.includes("variables")),
980
+ (!!Object.keys(r.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ X(v, {
981
+ value: T ? ["variables"] : [],
982
+ onValueChange: (e) => E(e.includes("variables")),
983
983
  items: [{
984
984
  value: "variables",
985
985
  title: d.variables,
986
986
  description: d.variablesDescription,
987
- content: Q(e.placeholders) ? /* @__PURE__ */ Y(ve, {
987
+ content: Q(e.placeholders) ? /* @__PURE__ */ X(ve, {
988
988
  state: e.placeholders,
989
989
  label: d.loadingVariables,
990
990
  retryLabel: d.retry,
991
991
  report: r.report
992
- }) : /* @__PURE__ */ Y(Se, {
992
+ }) : /* @__PURE__ */ X(Se, {
993
993
  definitions: r.definitions,
994
994
  values: r.values,
995
995
  draft: u,
996
996
  api: i,
997
997
  strings: d,
998
- busy: _,
999
- editable: !I
998
+ busy: x,
999
+ editable: !L
1000
1000
  })
1001
1001
  }]
1002
1002
  }),
1003
- u.body.kind === "html" && /* @__PURE__ */ Y(n, {
1003
+ u.body.kind === "html" && /* @__PURE__ */ X(n, {
1004
1004
  type: "button",
1005
1005
  tone: "secondary",
1006
1006
  buttonStyle: "outline",
1007
- disabled: _,
1008
- onClick: () => P(!0),
1007
+ disabled: x,
1008
+ onClick: () => F(!0),
1009
1009
  children: d.convert
1010
1010
  }),
1011
- (r.error || !r.dataPending && r.renderError) && /* @__PURE__ */ X(s, {
1011
+ (r.error || !r.dataPending && r.renderError) && /* @__PURE__ */ Z(s, {
1012
1012
  tone: "destructive",
1013
- children: [/* @__PURE__ */ Y(l, { children: d.errorTitle }), /* @__PURE__ */ Y(o, { children: r.error || r.renderError })]
1013
+ children: [/* @__PURE__ */ X(l, { children: d.errorTitle }), /* @__PURE__ */ X(o, { children: r.error || r.renderError })]
1014
1014
  }),
1015
- r.notice && /* @__PURE__ */ Y(s, {
1015
+ r.notice && /* @__PURE__ */ X(s, {
1016
1016
  tone: "success",
1017
1017
  role: "status",
1018
- children: /* @__PURE__ */ Y(o, { children: r.notice })
1018
+ children: /* @__PURE__ */ X(o, { children: r.notice })
1019
1019
  }),
1020
1020
  e.children?.(i)
1021
1021
  ]
1022
- }), V = e.title ?? d.title, H = e.onClose ? /* @__PURE__ */ Y(n, {
1022
+ }), H = e.title ?? d.title, U = e.onClose ? /* @__PURE__ */ X(n, {
1023
1023
  type: "button",
1024
1024
  iconOnly: !0,
1025
1025
  tone: "secondary",
1026
1026
  buttonStyle: "ghost",
1027
1027
  size: "sm",
1028
- disabled: _,
1028
+ disabled: x,
1029
1029
  "aria-label": d.close,
1030
1030
  onClick: e.onClose,
1031
- children: /* @__PURE__ */ Y(de, { className: "size-icon" })
1032
- }) : void 0, U, G = t("email-composer--component min-w-0", e.className);
1031
+ children: /* @__PURE__ */ X(de, { className: "size-icon" })
1032
+ }) : void 0, G, K = t("email-composer--component min-w-0", e.className);
1033
1033
  if (e.position === "dialog" || e.position === "sheet") {
1034
1034
  let t = {
1035
1035
  open: !0,
1036
- title: V,
1036
+ title: H,
1037
1037
  description: e.description,
1038
1038
  onOpenChange: (t) => {
1039
- !t && !_ && e.onClose?.();
1039
+ !t && !x && e.onClose?.();
1040
1040
  },
1041
- closeOnEscape: !_ && !!e.onClose,
1041
+ closeOnEscape: !x && !!e.onClose,
1042
1042
  closeOnBackdropClick: !1,
1043
- loading: _,
1043
+ loading: x,
1044
1044
  strings: { close: d.close },
1045
1045
  showCancel: !1,
1046
1046
  showConfirm: !1,
1047
- showCloseButton: !!e.onClose && !_,
1048
- footer: R,
1049
- className: G
1047
+ showCloseButton: !!e.onClose && !x,
1048
+ footer: z,
1049
+ className: K
1050
1050
  };
1051
- U = e.position === "dialog" ? /* @__PURE__ */ Y(h, {
1051
+ G = e.position === "dialog" ? /* @__PURE__ */ X(g, {
1052
1052
  ...t,
1053
1053
  size: "3xl",
1054
- showCloseButton: !!e.onClose && !_,
1055
- children: B
1056
- }) : /* @__PURE__ */ Y(m, {
1054
+ showCloseButton: !!e.onClose && !x,
1055
+ children: V
1056
+ }) : /* @__PURE__ */ X(h, {
1057
1057
  ...t,
1058
1058
  width: "3xl",
1059
- children: B
1059
+ children: V
1060
1060
  });
1061
1061
  } else {
1062
- let t = /* @__PURE__ */ Y(c, {
1063
- className: G,
1062
+ let t = /* @__PURE__ */ X(c, {
1063
+ className: K,
1064
1064
  surface: "card",
1065
- title: V,
1065
+ title: H,
1066
1066
  description: e.description,
1067
- headerAction: H,
1068
- headerClassName: e.position === "floating" && H ? "flex-nowrap [&>.card--header-start]:basis-0 [&>.card--header-end]:shrink-0" : void 0,
1069
- footerSlot: R,
1070
- children: B
1067
+ headerAction: U,
1068
+ headerClassName: e.position === "floating" && U ? "flex-nowrap [&>.card--header-start]:basis-0 [&>.card--header-end]:shrink-0" : void 0,
1069
+ footerSlot: z,
1070
+ children: V
1071
1071
  });
1072
- U = e.position === "floating" ? /* @__PURE__ */ Y("div", {
1072
+ G = e.position === "floating" ? /* @__PURE__ */ X("div", {
1073
1073
  className: "fixed bottom-space-md end-space-md z-40 w-[min(42rem,calc(100vw-2rem))]",
1074
- children: /* @__PURE__ */ Y(ee, {
1074
+ children: /* @__PURE__ */ X(ee, {
1075
1075
  className: "max-h-[calc(100dvh-2rem)]",
1076
1076
  viewportClassName: "max-h-[calc(100dvh-2rem)]",
1077
1077
  children: t
1078
1078
  })
1079
1079
  }) : t;
1080
1080
  }
1081
- return /* @__PURE__ */ X(J, { children: [U, /* @__PURE__ */ Y(g, {
1082
- open: N,
1083
- onOpenChange: P,
1081
+ return /* @__PURE__ */ Z(Y, { children: [G, /* @__PURE__ */ X(_, {
1082
+ open: P,
1083
+ onOpenChange: F,
1084
1084
  title: d.convertTitle,
1085
1085
  description: d.convertDescription,
1086
1086
  strings: {
@@ -1089,7 +1089,7 @@ function Ee(e) {
1089
1089
  close: d.closeConversion
1090
1090
  },
1091
1091
  onConfirm: () => {
1092
- !_ && r.editorRef.current && (i.setBody(r.editorRef.current.convert(u.body)), C("editor"));
1092
+ !x && r.editorRef.current && (i.setBody(r.editorRef.current.convert(u.body)), w("editor"));
1093
1093
  }
1094
1094
  })] });
1095
1095
  }