@camunda/ccma-saas-frontend 0.0.45 → 0.1.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 (241) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
  3. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
  4. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
  5. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
  6. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
  7. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
  8. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
  9. package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
  10. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
  11. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
  12. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
  13. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
  14. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
  15. package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
  16. package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
  17. package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
  18. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
  19. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  20. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  21. package/lib/esm/components/c4-billing-page/elements/value-metric.js +2 -1
  22. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  23. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  24. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  25. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +1 -1
  26. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +1 -1
  27. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -1
  28. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  29. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  30. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  31. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  32. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  33. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  34. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  35. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  36. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  37. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  38. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  39. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  40. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  41. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +19 -5
  42. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +4 -0
  43. package/lib/esm/components/c4-cluster-overview/applications.js +2 -1
  44. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  45. package/lib/esm/components/c4-cluster-overview/cluster-details.js +12 -10
  46. package/lib/esm/components/c4-cluster-overview/cluster-load.js +1 -1
  47. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  48. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +6 -8
  49. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  50. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  51. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +17 -0
  52. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +75 -0
  53. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  54. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  55. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  56. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +4 -2
  57. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  58. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  59. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  60. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  61. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  62. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  63. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  64. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  65. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +44 -15
  66. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +4 -2
  67. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  68. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +2 -1
  69. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  70. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  71. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  72. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  73. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  74. package/lib/esm/components/c4-data-table/c4-data-table.js +194 -0
  75. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  76. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  77. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  78. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  79. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  80. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  81. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  82. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  83. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  84. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  85. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  86. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  87. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  88. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  89. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  90. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  91. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  92. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  93. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  94. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  95. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  96. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  97. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +1 -1
  98. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  99. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  100. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  101. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  102. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  103. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  104. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  105. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  106. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  107. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  108. package/lib/esm/components/c4-management-activity/c4-management-activity.js +7 -9
  109. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  110. package/lib/esm/components/c4-management-overview/c4-management-overview.js +8 -12
  111. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  112. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  113. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  114. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  115. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  116. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  117. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +2 -1
  118. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  119. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  120. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  121. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  122. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  123. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  124. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  125. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  126. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  127. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +41 -0
  128. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  129. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  130. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  131. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  132. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  133. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  134. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  135. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  136. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  137. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  138. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  139. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  140. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  141. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  142. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  143. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  144. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  145. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  146. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  147. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +2 -1
  148. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  149. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  150. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  151. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  152. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  153. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  154. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  155. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  156. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  157. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +1 -1
  158. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  159. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  160. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -1
  161. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  162. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  163. package/lib/esm/i18n/c4-console-i18n.js +12 -0
  164. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  165. package/lib/esm/i18n/en/pages/clusterdetails.json +5 -1
  166. package/lib/esm/i18n/en/pages/clusters.json +5 -1
  167. package/lib/esm/i18n/en/pages/orgmanagement.json +3 -1
  168. package/lib/esm/index.d.ts +17 -0
  169. package/lib/esm/index.js +13 -0
  170. package/lib/esm/runtime/c4-console-authz.d.ts +1 -0
  171. package/lib/esm/runtime/c4-console-authz.js +2 -1
  172. package/lib/esm/runtime/c4-console-authz.spec.js +3 -3
  173. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  174. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  175. package/lib/esm/runtime/c4-console-runtime.types.d.ts +8 -0
  176. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  177. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  178. package/lib/esm/ui/families.d.ts +42 -0
  179. package/lib/esm/ui/families.js +46 -0
  180. package/lib/esm/ui/index.d.ts +31 -0
  181. package/lib/esm/ui/index.js +94 -0
  182. package/lib/esm/ui/switchable.d.ts +14 -0
  183. package/lib/esm/ui/switchable.js +27 -0
  184. package/lib/esm/ui/tabs.d.ts +21 -0
  185. package/lib/esm/ui/tabs.js +27 -0
  186. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  187. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +18 -3
  188. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  189. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  190. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +10 -6
  191. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  192. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  193. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  194. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +7 -0
  195. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +8 -3
  196. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +49 -1
  197. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +7 -5
  198. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +54 -21
  199. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +96 -5
  200. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  201. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +58 -4
  202. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  203. package/lib/esm/widgets/clusters/c4-clusters-page.js +276 -40
  204. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +220 -0
  205. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
  206. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  207. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  208. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  209. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  210. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  211. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  212. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  213. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  214. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +54 -0
  215. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  216. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  217. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +10 -2
  218. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  219. package/lib/esm/widgets/job-worker/c4-job-worker.helpers.js +14 -2
  220. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  221. package/lib/esm/widgets/management/c4-management-app.js +57 -4
  222. package/lib/esm/widgets/management/c4-management-app.spec.js +141 -1
  223. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  224. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  225. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  226. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  227. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  228. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +2 -1
  229. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +10 -3
  230. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  231. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  232. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  233. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  234. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +47 -5
  235. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  236. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  237. package/lib/esm/widgets/use-extend-trial.js +36 -0
  238. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  239. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  240. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -4
  241. package/package.json +21 -14
@@ -0,0 +1,55 @@
1
+ import { type C3NavigationProps } from '@camunda/camunda-composite-components';
2
+ import { type JSX, type ReactNode } from 'react';
3
+ import type { C4FeedbackPayload } from '../c4-feedback-modal/c4-feedback-modal';
4
+ import { type C4HelpCenterData } from '../c4-help-center/c4-help-center';
5
+ export type C4NavigationProps = C3NavigationProps & {
6
+ /**
7
+ * ds-mode only: navigate to a cluster by uuid (the Cluster dropdown). Carbon
8
+ * mode ignores it. Org switching reuses orgSideBar.switchToOrg.
9
+ */
10
+ onSelectCluster?: (clusterUuid: string) => void;
11
+ /**
12
+ * ds-mode only: the page content rendered inside the DS app shell (right of
13
+ * the AppSidebar, below the AppHeader). Carbon mode renders it after the c3
14
+ * navigation, preserving the existing sibling layout.
15
+ */
16
+ children?: ReactNode;
17
+ /**
18
+ * ds-mode only: help destinations shown in a modal behind the header's help
19
+ * icon. The c3 help center (CMS recommendations + feedback) has no public
20
+ * equivalent, so ds mode surfaces a simple link list provided by the host.
21
+ * Omitted/empty hides the help icon. Carbon mode ignores it.
22
+ */
23
+ helpLinks?: Array<{
24
+ key: string;
25
+ label: string;
26
+ href: string;
27
+ }>;
28
+ /**
29
+ * ds-mode only: the host's app links. ds derives cluster-scoped apps from the
30
+ * cluster endpoints in c3Profile, but org-scoped apps (the Modeler) can't be —
31
+ * their URL comes from the host, so ds reads it from here. Carbon builds the
32
+ * full app list inside c3 and ignores this.
33
+ */
34
+ appElements?: Array<{
35
+ key: string;
36
+ label: string;
37
+ href?: string;
38
+ }>;
39
+ /**
40
+ * ds-mode only: submit handler for the DS-native "Share your feedback" modal.
41
+ * When provided, ds mode renders {@link C4FeedbackModal} (driven by the c3
42
+ * help-center open state) instead of the Carbon c3 help center. Carbon mode
43
+ * keeps the c3 help center and ignores this.
44
+ */
45
+ onSubmitFeedback?: (payload: C4FeedbackPayload) => Promise<void>;
46
+ /** ds-mode only: enterprise orgs get the Jira-support notice in the feedback modal. */
47
+ feedbackEnterprise?: boolean;
48
+ /**
49
+ * ds-mode only: async function that fetches help-center config and tiles from
50
+ * the CMS API. Called once when the help panel opens. Returns structured tabs
51
+ * and links for {@link C4HelpCenter}. Carbon mode ignores it.
52
+ */
53
+ onFetchHelpCenterData?: () => Promise<C4HelpCenterData | undefined>;
54
+ };
55
+ export declare const C4Navigation: (props: C4NavigationProps) => JSX.Element;
@@ -0,0 +1,175 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
7
+ import { C3Navigation, useC3HelpCenter, useC3Profile, } from '@camunda/camunda-composite-components';
8
+ import { AppHeader, AppSidebar, Badge, Button, DropdownMenuItem, NavBreadcrumb, NavBreadcrumbItem, SidebarProvider, TooltipProvider, UserMenu, } from '@camunda/design-system';
9
+ import { Activity, BarChart3, HelpCircle, LayoutDashboard, ListChecks, Moon, Sun, Workflow, } from 'lucide-react';
10
+ import { useEffect, useRef, useState } from 'react';
11
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
12
+ import { C4HelpCenter, FEEDBACK_TAB_ID, } from '../c4-help-center/c4-help-center.js';
13
+ /**
14
+ * Design-system-switchable navigation.
15
+ *
16
+ * Keeps the stable C3Navigation interface ('carbon' renders unchanged c3; 'ds'
17
+ * transforms onto DS patterns; c3 untouched). See docs/superpowers/specs/
18
+ * 2026-06-24-c3navigation-ds-transformation-design.md.
19
+ *
20
+ * ds shell: AppSidebar (Camunda apps; cluster-scoped apps grouped with one
21
+ * child per cluster linking to that cluster's app endpoint) + AppHeader (a
22
+ * clickable "Console" → dashboard, a NavBreadcrumb Organization/Cluster context
23
+ * switcher, and a UserMenu). Notifications and Help are deferred (their data /
24
+ * widgets are produced inside c3, not exposed in these props).
25
+ */
26
+ // C3 routeProps is opaque (`any`); navigate via the embedded mobx-router.
27
+ const navigate = (routeProps) => {
28
+ const rp = routeProps;
29
+ rp?.router?.goTo?.(rp.route, rp.params);
30
+ };
31
+ // Cluster-scoped Camunda apps (each cluster exposes its own endpoint URL).
32
+ const CLUSTER_APPS = [
33
+ { app: 'operate', label: 'Operate', icon: Activity },
34
+ { app: 'tasklist', label: 'Tasklist', icon: ListChecks },
35
+ { app: 'optimize', label: 'Optimize', icon: BarChart3 },
36
+ ];
37
+ function buildAppSidebarItems(clusters, onConsoleClick, modeler) {
38
+ const consoleItem = {
39
+ type: 'item',
40
+ key: 'console',
41
+ label: 'Console',
42
+ icon: LayoutDashboard,
43
+ isActive: true,
44
+ onClick: onConsoleClick,
45
+ };
46
+ // Org-scoped (not cluster-scoped): a single external link, like the cluster
47
+ // apps' children.
48
+ const modelerItem = modeler
49
+ ? [
50
+ {
51
+ type: 'item',
52
+ key: 'modeler',
53
+ label: modeler.label,
54
+ icon: Workflow,
55
+ linkProps: { href: modeler.href, target: '_blank' },
56
+ },
57
+ ]
58
+ : [];
59
+ const appGroups = CLUSTER_APPS.flatMap(({ app, label, icon }) => {
60
+ const children = (clusters ?? [])
61
+ .filter((cluster) => cluster.endpoints?.[app])
62
+ .map((cluster) => ({
63
+ type: 'item',
64
+ key: `${app}:${cluster.uuid}`,
65
+ label: cluster.name,
66
+ icon,
67
+ linkProps: { href: cluster.endpoints[app], target: '_blank' },
68
+ }));
69
+ return children.length > 0
70
+ ? [{ type: 'group', key: app, label, icon, children }]
71
+ : [];
72
+ });
73
+ return [consoleItem, ...modelerItem, ...appGroups];
74
+ }
75
+ function renderUserMenu(props) {
76
+ const userSideBar = props.userSideBar;
77
+ if (!userSideBar) {
78
+ return undefined;
79
+ }
80
+ const user = userSideBar.customElements?.profile?.user;
81
+ const allElements = [
82
+ ...(userSideBar.elements ?? []),
83
+ ...(userSideBar.bottomElements ?? []),
84
+ ];
85
+ const logout = allElements.find((e) => e.key === 'logout');
86
+ const items = allElements
87
+ .filter((e) => e.key !== 'logout' && e.onClick)
88
+ .map((e) => ({
89
+ key: e.key,
90
+ label: e.label,
91
+ onClick: e.onClick,
92
+ }));
93
+ return (_jsx(UserMenu, { userName: user?.name ?? '', userEmail: user?.email ?? '', items: items, onLogout: logout?.onClick ?? (() => { }), customSection: userSideBar.customElements?.customSection }));
94
+ }
95
+ export const C4Navigation = (props) => {
96
+ const designSystem = useC4DesignSystem();
97
+ const { orgs, activeOrg, clusters, resolvedTheme, onThemeChange } = useC3Profile();
98
+ // Same context pages use for `openHelpCenter('feedback')`. In carbon mode
99
+ // C3Navigation renders the help-center modal; in ds mode we render our own.
100
+ const { openHelpCenter, isHelpCenterOpen, setIsHelpCenterOpen, showTabId } = useC3HelpCenter();
101
+ // CMS-driven help center data (tabs + tiles + links).
102
+ const [helpCenterData, setHelpCenterData] = useState(undefined);
103
+ const [helpCenterLoading, setHelpCenterLoading] = useState(false);
104
+ // Ref to the fetch function so the effect doesn't re-run when the callback
105
+ // identity changes on every render (common for inline functions in the host).
106
+ const onFetchHelpCenterDataRef = useRef(props.onFetchHelpCenterData);
107
+ onFetchHelpCenterDataRef.current = props.onFetchHelpCenterData;
108
+ // Fetch CMS data once when the help panel opens; reset when it closes so
109
+ // re-opening always fetches fresh content.
110
+ useEffect(() => {
111
+ if (designSystem !== 'ds')
112
+ return;
113
+ if (!isHelpCenterOpen || isHelpCenterOpen === undefined) {
114
+ setHelpCenterData(undefined);
115
+ setHelpCenterLoading(false);
116
+ return;
117
+ }
118
+ const fn = onFetchHelpCenterDataRef.current;
119
+ if (!fn || helpCenterData !== undefined || helpCenterLoading)
120
+ return;
121
+ setHelpCenterLoading(true);
122
+ fn()
123
+ .then((d) => setHelpCenterData(d ?? undefined))
124
+ .catch(() => setHelpCenterData(undefined))
125
+ .finally(() => setHelpCenterLoading(false));
126
+ }, [designSystem, isHelpCenterOpen, helpCenterData, helpCenterLoading]);
127
+ if (designSystem !== 'ds') {
128
+ const { onSelectCluster: _onSelectCluster, helpLinks: _helpLinks, appElements: _appElements, onSubmitFeedback: _onSubmitFeedback, feedbackEnterprise: _feedbackEnterprise, onFetchHelpCenterData: _onFetchHelpCenterData, children, ...c3Props } = props;
129
+ return (_jsxs(_Fragment, { children: [_jsx(C3Navigation, { ...c3Props }), children] }));
130
+ }
131
+ const { onSelectCluster, helpLinks, children } = props;
132
+ const switchToOrg = props.orgSideBar?.switchToOrg;
133
+ const manageOrg = props.orgSideBar?.manageOrg;
134
+ const clustersElement = props.navbar?.elements?.find((e) => e.key === 'clusters');
135
+ const onConsoleClick = () => navigate(props.app?.routeProps);
136
+ const consoleButton = (_jsx("button", { type: 'button', onClick: onConsoleClick, style: {
137
+ background: 'none',
138
+ border: 0,
139
+ padding: 0,
140
+ cursor: 'pointer',
141
+ font: 'inherit',
142
+ fontWeight: 600,
143
+ color: 'inherit',
144
+ }, children: props.app?.name ?? 'Console' }));
145
+ const breadcrumb = (_jsxs(NavBreadcrumb, { "aria-label": 'Navigation', children: [_jsx(NavBreadcrumbItem, { label: activeOrg?.name ?? 'Organization', switchLabel: 'Switch organization', onClick: activeOrg && manageOrg ? () => manageOrg(activeOrg.uuid) : undefined, children: orgs && orgs.length > 0 && switchToOrg
146
+ ? orgs.map((org) => (_jsx(DropdownMenuItem, { onClick: () => switchToOrg(org.uuid), children: org.name }, org.uuid)))
147
+ : undefined }), _jsx(NavBreadcrumbItem, { label: 'Clusters', switchLabel: 'Switch cluster', onClick: clustersElement
148
+ ? () => navigate(clustersElement.routeProps)
149
+ : undefined, children: clusters && clusters.length > 0 && onSelectCluster
150
+ ? clusters.map((cluster) => (_jsx(DropdownMenuItem, { onClick: () => onSelectCluster(cluster.uuid), children: cluster.name }, cluster.uuid)))
151
+ : undefined })] }));
152
+ const modelerElement = props.appElements?.find((e) => e.key === 'modeler');
153
+ const appItems = buildAppSidebarItems(clusters, onConsoleClick, modelerElement?.href
154
+ ? { label: modelerElement.label, href: modelerElement.href }
155
+ : undefined);
156
+ // Internal/admin context tags (support-agent, forced org role) — pure UI from
157
+ // props.navbar.tags. Carbon's TagColor maps to the nearest Badge variant.
158
+ const tags = props.navbar?.tags;
159
+ const tagBadges = tags && tags.length > 0 ? (_jsx("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: tags.map((tag) => (_jsx(Badge, { variant: tag.color === 'red' ? 'danger' : 'neutral', children: tag.label }, tag.key))) })) : undefined;
160
+ // Show the help icon whenever there is anything to open.
161
+ const hasHelp = (helpLinks && helpLinks.length > 0) ||
162
+ !!props.onSubmitFeedback ||
163
+ !!props.helpCenter ||
164
+ !!props.onFetchHelpCenterData;
165
+ const helpControl = hasHelp ? (_jsx(Button, { variant: 'ghost', size: 'icon', "aria-label": 'Help', type: 'button', onClick: () => openHelpCenter(), children: _jsx(HelpCircle, { "aria-hidden": true, className: 'size-4' }) })) : undefined;
166
+ // Light/dark toggle. Drives the c3 theme (data-carbon-theme), which the
167
+ // runtime bridge mirrors to `.dark` for DS components — so both switch.
168
+ const isDark = resolvedTheme === 'dark';
169
+ const themeToggle = (_jsx(Button, { variant: 'ghost', size: 'icon', type: 'button', "aria-label": isDark ? 'Switch to light theme' : 'Switch to dark theme', onClick: () => onThemeChange(isDark ? 'light' : 'dark'), children: isDark ? (_jsx(Sun, { "aria-hidden": true, className: 'size-4' })) : (_jsx(Moon, { "aria-hidden": true, className: 'size-4' })) }));
170
+ const trailing = (_jsxs(_Fragment, { children: [themeToggle, helpControl, renderUserMenu(props)] }));
171
+ return (_jsx(TooltipProvider, { delayDuration: 0, children: _jsx(SidebarProvider, { children: _jsxs("div", { className: 'min-h-screen bg-background text-neutral-foreground-strong', children: [_jsx(AppHeader, { skipToContentTargetId: 'main-content', logo: consoleButton, breadcrumb: breadcrumb, trailing: trailing, children: tagBadges }), _jsx(AppSidebar, { ariaLabel: 'Camunda apps', items: appItems }), _jsx("main", { id: 'main-content', tabIndex: -1, style: { marginLeft: 'var(--app-sidebar-width, 16rem)' }, children: children }), _jsx(C4HelpCenter, { open: isHelpCenterOpen, onOpenChange: (open) => {
172
+ if (!open)
173
+ setIsHelpCenterOpen(false);
174
+ }, data: helpCenterData, isLoading: helpCenterLoading, helpLinks: helpLinks, onSubmitFeedback: props.onSubmitFeedback, feedbackEnterprise: props.feedbackEnterprise, initialTabId: showTabId === 'feedback' ? FEEDBACK_TAB_ID : undefined })] }) }) }));
175
+ };
@@ -5,7 +5,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C3ResponsiveStack } from '@camunda/camunda-composite-components';
8
- import { Button, Link, ListItem, OrderedList, Stack, Tile } from '@carbon/react';
8
+ import { ListItem, OrderedList } from '@carbon/react';
9
+ import { Button, Link, Stack, Tile } from '../../ui/index.js';
9
10
  export const C4OldDashboard = ({ usersAmount, invitationsAmount, clustersAmount, healthyClustersAmount, updateAvailable, permissions, actions, urls, texts, displayFirstCTA = true, }) => {
10
11
  const welcomeTile = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsxs("h3", { children: [texts.welcome.title, _jsx("span", { id: 'welcomeHeader' })] }), _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.text } }), _jsxs(OrderedList, { style: { marginLeft: '3rem' }, children: [_jsx(ListItem, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.item1 } }) }), _jsx(ListItem, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.item2 } }) }), _jsx(ListItem, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.item3 } }) })] }), _jsx("div", { children: _jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: 6, children: [displayFirstCTA && (_jsx(Button, { onClick: actions.onModelProcess, id: 'modelAProcess', children: texts.welcome.cta })), _jsx(Button, { onClick: actions.onGettingStartedGuide, id: 'gettingStartedGuide', kind: 'tertiary', children: texts.welcome.gsg }), _jsx(Button, { onClick: actions.onWatchDemo, id: 'gettingStartedAcademy', kind: 'tertiary', children: texts.welcome.watchADemo })] }) })] }) }));
11
12
  const usersTile = permissions.showUsers && (_jsx(Tile, { style: {
@@ -0,0 +1,13 @@
1
+ import { PageLayout } from '@camunda/design-system';
2
+ import type { ComponentProps, JSX } from 'react';
3
+ type C4PageLayoutProps = ComponentProps<typeof PageLayout>;
4
+ /**
5
+ * Design-system-switchable page container.
6
+ *
7
+ * ds mode wraps the page content in the DS `PageLayout` (consistent padding +
8
+ * width), matching the pages that go through `C4PageTemplate`. Carbon mode is a
9
+ * transparent passthrough, leaving the page's existing layout untouched. Use it
10
+ * for bespoke pages that don't route through `C4PageTemplate`.
11
+ */
12
+ export declare function C4PageLayout(props: C4PageLayoutProps): JSX.Element;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
7
+ import { PageLayout } from '@camunda/design-system';
8
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
9
+ /**
10
+ * Design-system-switchable page container.
11
+ *
12
+ * ds mode wraps the page content in the DS `PageLayout` (consistent padding +
13
+ * width), matching the pages that go through `C4PageTemplate`. Carbon mode is a
14
+ * transparent passthrough, leaving the page's existing layout untouched. Use it
15
+ * for bespoke pages that don't route through `C4PageTemplate`.
16
+ */
17
+ export function C4PageLayout(props) {
18
+ const designSystem = useC4DesignSystem();
19
+ if (designSystem !== 'ds') {
20
+ return _jsx(_Fragment, { children: props.children });
21
+ }
22
+ return _jsx(PageLayout, { ...props });
23
+ }
@@ -4,14 +4,25 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Column, Grid, InlineNotification, Stack } from '@carbon/react';
7
+ import { PageLayout } from '@camunda/design-system';
8
+ import { Column, Grid } from '@carbon/react';
9
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
10
+ import { Stack } from '../../ui/index.js';
8
11
  import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
9
12
  import { C4Breadcrumb } from '../c4-breadcrumb/c4-breadcrumb.js';
13
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
10
14
  import { C4Tabs } from '../c4-tabs/c4-tabs.js';
11
15
  const gridStyles = { paddingRight: 0, paddingLeft: 0 };
12
16
  const gridColumnStyles = { marginInline: 0 };
13
17
  const C4PageTemplate = ({ header, tabs, banner, children, loading = false, breadcrumbs = { elements: [] }, }) => {
14
- return (_jsx(Grid, { style: gridStyles, children: _jsx(Column, { span: '100%', style: gridColumnStyles, children: _jsxs("div", { style: { display: 'flex', gap: '2rem', flexDirection: 'column' }, children: [(breadcrumbs.elements?.length || header) && (_jsx(C4Breadcrumb, { ...breadcrumbs, title: header?.title, menu: header?.menuItems, tag: header?.tag, indicator: header?.indicator, loading: loading, codeSnippet: header?.codeSnippet })), banner &&
15
- (banner.action ? (_jsx(C4ActionableNotification, { kind: banner.kind, title: banner.title, subtitle: banner.subtitle, actionButtonLabel: banner.action.label, onActionButtonClick: banner.action.onClick, lowContrast: true })) : (_jsx(InlineNotification, { kind: banner.kind, hideCloseButton: true, title: banner.title, subtitle: banner.subtitle, lowContrast: true }))), tabs && (_jsx(Stack, { orientation: 'vertical', gap: 5, children: _jsx(C4Tabs, { tabs: tabs.list, desiredTabId: tabs?.desiredTabId, onTabChange: tabs?.onChange, loading: loading }) })), children] }) }) }));
18
+ const designSystem = useC4DesignSystem();
19
+ const inner = (_jsxs("div", { style: { display: 'flex', gap: '2rem', flexDirection: 'column' }, children: [(breadcrumbs.elements?.length || header) && (_jsx(C4Breadcrumb, { ...breadcrumbs, title: header?.title, menu: header?.menuItems, tag: header?.tag, indicator: header?.indicator, loading: loading, codeSnippet: header?.codeSnippet })), banner &&
20
+ (banner.action ? (_jsx(C4ActionableNotification, { appearance: 'banner', kind: banner.kind, title: banner.title, subtitle: banner.subtitle, actionButtonLabel: banner.action.label, onActionButtonClick: banner.action.onClick, lowContrast: true })) : (_jsx(C4InlineNotification, { kind: banner.kind, hideCloseButton: true, title: banner.title, subtitle: banner.subtitle, lowContrast: true }))), tabs && (_jsx(Stack, { orientation: 'vertical', gap: 5, children: _jsx(C4Tabs, { tabs: tabs.list, desiredTabId: tabs?.desiredTabId, onTabChange: tabs?.onChange, loading: loading }) })), children] }));
21
+ // ds: the DS page container (padding + max width). carbon: the original
22
+ // Carbon grid. The inner header/tabs already switch via their own families.
23
+ if (designSystem === 'ds') {
24
+ return _jsx(PageLayout, { children: inner });
25
+ }
26
+ return (_jsx(Grid, { style: gridStyles, children: _jsx(Column, { span: '100%', style: gridColumnStyles, children: inner }) }));
16
27
  };
17
28
  export { C4PageTemplate };
@@ -4,8 +4,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, Stack } from '@carbon/react';
8
7
  import { Locked } from '@carbon/react/icons/index.esm.js';
8
+ import { Button, Stack } from '../../ui/index.js';
9
9
  export const C4PermissionErrorPage = ({ title = 'Access Restricted', description = 'You do not have permission to access this page. Please contact your organization administrator for assistance.', redirectUrl, redirectLabel = 'Go to Console', onRedirect, }) => {
10
10
  const handleRedirect = () => {
11
11
  if (onRedirect) {
@@ -1,10 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { ActionableNotification, Loading, Stack, Tile } from '@carbon/react';
2
+ import { Loading, Stack, Tile } from '../../ui/index.js';
3
+ import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
8
4
  import { C4PricingCard } from '../c4-pricing-card/c4-pricing-card.js';
9
5
  export const C4Pricing = ({ title, notification, cards, loading, boxesToTheBottom, }) => {
10
6
  // CONFIG
@@ -49,7 +45,7 @@ export const C4Pricing = ({ title, notification, cards, loading, boxesToTheBotto
49
45
  display: 'grid',
50
46
  gridTemplateColumns,
51
47
  gap: gridGap,
52
- }, children: [notification && (_jsx("div", { style: { gridColumn: notificationGridColumn }, children: _jsx(ActionableNotification, { kind: notification.kind, inline: true, lowContrast: true, hideCloseButton: true, style: { maxWidth: '100%' }, actionButtonLabel: notification.action.label, onActionButtonClick: notification.action.onClick, title: notification.title, subtitle: notification.subtitle }) })), cards.map((card, index) => (_jsx(C4PricingCard, { sections: card, grid: { column: index + 2 } }, card.id))), boxesToTheBottom && (_jsx("div", { style: { gridColumn: notificationGridColumn }, children: _jsx("div", { style: {
48
+ }, children: [notification && (_jsx("div", { style: { gridColumn: notificationGridColumn }, children: _jsx(C4ActionableNotification, { kind: notification.kind, inline: true, lowContrast: true, hideCloseButton: true, style: { maxWidth: '100%' }, actionButtonLabel: notification.action.label, onActionButtonClick: notification.action.onClick, title: notification.title, subtitle: notification.subtitle }) })), cards.map((card, index) => (_jsx(C4PricingCard, { sections: card, grid: { column: index + 2 } }, card.id))), boxesToTheBottom && (_jsx("div", { style: { gridColumn: notificationGridColumn }, children: _jsx("div", { style: {
53
49
  display: 'grid',
54
50
  gridTemplateColumns: lowerGridTemplateColumns,
55
51
  gap: gridGap,
@@ -4,8 +4,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, Stack, Tile, Tooltip } from '@carbon/react';
8
7
  import { Checkmark, Close, Information } from '@carbon/react/icons/index.esm.js';
8
+ import { Button, Stack, Tile, Tooltip } from '../../ui/index.js';
9
9
  export const C4PricingCard = ({ grid, sections, }) => {
10
10
  // CONFIG
11
11
  const gap = 5;
@@ -4,8 +4,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Modal, Stack, TextInput } from '@carbon/react';
8
7
  import { forwardRef, useCallback, useImperativeHandle, useMemo, useState, } from 'react';
8
+ import { Modal, Stack, TextInput } from '../../ui/index.js';
9
9
  function safeTranslate(t, key, defaultValue, options) {
10
10
  if (!t)
11
11
  return defaultValue;
@@ -4,9 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { InlineLoading, Link, Stack, Tile } from '@carbon/react';
7
+ import { InlineLoading } from '@carbon/react';
8
8
  import { Activity, AddAlt, Alarm, Analytics, ArrowRight, CaretRight, Checkmark, DataBackup, Document, Enterprise, FlowConnection, Forum, Help, IbmToolchain, Launch, LogoGithub, Password, Settings, User, UserFollow, Wallet, WatsonHealthStackedMove, } from '@carbon/react/icons/index.esm.js';
9
9
  import { useState } from 'react';
10
+ import { Link, Stack, Tile } from '../../ui/index.js';
10
11
  import { C4Divider } from '../c4-divider/c4-divider.js';
11
12
  import { SearchUtils } from './search.utils.js';
12
13
  const KBD = ({ label }) => {
@@ -0,0 +1,20 @@
1
+ import type { CSSProperties, JSX, ReactNode } from 'react';
2
+ interface C4SelectableTileProps {
3
+ value: string;
4
+ checked: boolean;
5
+ onChange: () => void;
6
+ disabled?: boolean;
7
+ style?: CSSProperties;
8
+ children: ReactNode;
9
+ }
10
+ /**
11
+ * Design-system-switchable selectable tile.
12
+ *
13
+ * Carbon mode renders Carbon's `RadioTile`. ds mode renders a DS-styled
14
+ * clickable card (a `<button role="radio">`) driven by the same per-tile
15
+ * `checked`/`onChange` — selection shows as a highlighted border. This avoids
16
+ * the RadioGroup/RadioGroupItem context requirement (the tiles are used
17
+ * standalone, self-managed) and has no DS RadioTile equivalent.
18
+ */
19
+ export declare function C4SelectableTile({ value, checked, onChange, disabled, style, children, }: C4SelectableTileProps): JSX.Element;
20
+ export {};
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
7
+ import { RadioTile } from '@carbon/react';
8
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
9
+ /**
10
+ * Design-system-switchable selectable tile.
11
+ *
12
+ * Carbon mode renders Carbon's `RadioTile`. ds mode renders a DS-styled
13
+ * clickable card (a `<button role="radio">`) driven by the same per-tile
14
+ * `checked`/`onChange` — selection shows as a highlighted border. This avoids
15
+ * the RadioGroup/RadioGroupItem context requirement (the tiles are used
16
+ * standalone, self-managed) and has no DS RadioTile equivalent.
17
+ */
18
+ export function C4SelectableTile({ value, checked, onChange, disabled, style, children, }) {
19
+ const designSystem = useC4DesignSystem();
20
+ if (designSystem !== 'ds') {
21
+ return (_jsx(RadioTile, { value: value, checked: checked, onChange: onChange, disabled: disabled, style, children: children }));
22
+ }
23
+ return (_jsx("button", { type: 'button', "aria-pressed": checked, disabled: disabled, onClick: () => onChange(), style: {
24
+ display: 'block',
25
+ width: '100%',
26
+ height: '100%',
27
+ textAlign: 'left',
28
+ padding: '1rem',
29
+ borderRadius: '0.5rem',
30
+ border: `1px solid ${checked ? 'var(--primary-action-default)' : 'var(--border)'}`,
31
+ boxShadow: checked
32
+ ? 'inset 0 0 0 1px var(--primary-action-default)'
33
+ : 'none',
34
+ background: 'var(--card, var(--background))',
35
+ color: 'inherit',
36
+ font: 'inherit',
37
+ cursor: disabled ? 'not-allowed' : 'pointer',
38
+ opacity: disabled ? 0.5 : 1,
39
+ ...style,
40
+ }, children: children }));
41
+ }
@@ -4,7 +4,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Column, Grid, Layer, Stack, Tile } from '@carbon/react';
7
+ import { Column, Grid, Layer } from '@carbon/react';
8
+ import { Stack, Tile } from '../../ui/index.js';
8
9
  import { STYLES } from '../c4-billing-page/c4-billing-page.js';
9
10
  import { ApplicationTile } from '../c4-cluster-overview/applications.js';
10
11
  import { ZeebeComponentGroup } from './zeebe-components.js';
@@ -1,11 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Stack } from '@carbon/react';
8
2
  import styled from 'styled-components';
3
+ import { Stack } from '../../ui/index.js';
9
4
  import { C4Breadcrumb } from '../c4-breadcrumb/c4-breadcrumb.js';
10
5
  import C4JobDashboardEntryPoint from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js';
11
6
  import { AutomationComponents } from './automation-components.js';
@@ -1,13 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Link, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tile, } from '@carbon/react';
2
+ import { Link, Stack, Tile } from '../../ui/index.js';
3
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
8
4
  import { SLR } from './details.js';
9
5
  export const CustomProperties = (props) => {
10
- const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { className: 'cds--type-heading-02', children: props.title }), _jsx(StructuredListWrapper, { children: _jsx(StructuredListBody, { children: props.props?.map((prop) => {
6
+ const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { className: 'cds--type-heading-02', children: props.title }), _jsx(C4StructuredListWrapper, { children: _jsx(C4StructuredListBody, { children: props.props?.map((prop) => {
11
7
  const elements = [];
12
8
  if (prop.description) {
13
9
  elements.push(_jsx(SLR, { label: prop.description.label, value: prop.description.value }));
@@ -22,7 +18,7 @@ export const CustomProperties = (props) => {
22
18
  return component;
23
19
  };
24
20
  const SLRLink = (props) => {
25
- return (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '9rem' }, children: props.title }), _jsx(StructuredListCell, { children: _jsx(Link, { href: props.value, target: '_blank', children: props.label }) })] }));
21
+ return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '9rem' }, children: props.title }), _jsx(C4StructuredListCell, { children: _jsx(Link, { href: props.value, target: '_blank', children: props.label }) })] }));
26
22
  };
27
23
  export function customPropertiesAvailable(props) {
28
24
  return !!props.props;
@@ -5,20 +5,21 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C3ClusterTag } from '@camunda/camunda-composite-components';
8
- import { Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tile, } from '@carbon/react';
8
+ import { Stack, Tile } from '../../ui/index.js';
9
9
  import { HealthStatus } from '../c4-sm-dashboard/health-status.js';
10
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
10
11
  export const Details = (props) => {
11
- const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { className: 'cds--type-heading-02', children: props.title }), _jsx(StructuredListWrapper, { children: _jsxs(StructuredListBody, { children: [_jsx(SLR, { label: props.entries.name.label, value: props.entries.name.value }), _jsx(SLR, { label: props.entries.namespace.label, value: props.entries.namespace.value }), _jsx(SLR, { label: props.entries.status.label, value: _jsx(HealthStatus, { id: 'cluster-status', status: props.entries.status.value, text: props.entries.status.value === 'healthy'
12
+ const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { className: 'cds--type-heading-02', children: props.title }), _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsx(SLR, { label: props.entries.name.label, value: props.entries.name.value }), _jsx(SLR, { label: props.entries.namespace.label, value: props.entries.namespace.value }), _jsx(SLR, { label: props.entries.status.label, value: _jsx(HealthStatus, { id: 'cluster-status', status: props.entries.status.value, text: props.entries.status.value === 'healthy'
12
13
  ? 'Healthy'
13
14
  : 'Unhealthy', tooltip: props.entries.status.tooltip }) }), _jsx(Tags, { label: props.entries.tags.label, values: props.entries.tags.values })] }) })] }) }));
14
15
  return component;
15
16
  };
16
17
  export const SLR = (props) => {
17
- return (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '9rem' }, children: props.label }), _jsx(StructuredListCell, { children: props.value })] }));
18
+ return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '9rem' }, children: props.label }), _jsx(C4StructuredListCell, { children: props.value })] }));
18
19
  };
19
20
  const Tags = (props) => {
20
21
  if (props.values.length === 0) {
21
22
  return null;
22
23
  }
23
- return (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '9rem' }, children: props.label }), _jsx(StructuredListCell, { children: props.values.map((tag) => (_jsx(C3ClusterTag, { stage: tag }, tag))) })] }));
24
+ return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '9rem' }, children: props.label }), _jsx(C4StructuredListCell, { children: props.values.map((tag) => (_jsx(C3ClusterTag, { stage: tag }, tag))) })] }));
24
25
  };
@@ -4,7 +4,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { CodeSnippet, Column, Grid, Layer, Stack, Tile } from '@carbon/react';
7
+ import { Column, Grid, Layer } from '@carbon/react';
8
+ import { CodeSnippet, Stack, Tile } from '../../ui/index.js';
8
9
  import { STYLES } from '../c4-billing-page/c4-billing-page.js';
9
10
  import { HealthStatus } from '../c4-sm-dashboard/health-status.js';
10
11
  export const ZeebeComponentGroup = (props) => {
@@ -11,7 +11,7 @@ import { Explore } from './explore.js';
11
11
  import { Overview } from './overview.js';
12
12
  import { UsageTile } from './usage-tile.js';
13
13
  export const C4SmDashboard = ({ automation, management, texts, explore, usage, actions, }) => {
14
- const managementTile = (_jsx(ClusterTile.Component, { name: texts.managementTitle, clusters: [management] }));
14
+ const managementTile = (_jsx(ClusterTile.Component, { name: texts.managementTitle, clusters: management }));
15
15
  const usageTile = _jsx(UsageTile.Component, { ...usage });
16
16
  const overview = (_jsx(Overview.Component, { chartTitle: texts.chartTitle, unhealthyClustersTitle: texts.unhealthyClustersTitle, emptyState: texts.unhealthyEmptyState, automation: automation, actions: actions }));
17
17
  const exploreComponent = _jsx(Explore.Component, { ...explore, actions: actions });
@@ -25,7 +25,7 @@ export interface DashboardActions {
25
25
  };
26
26
  }
27
27
  export interface C4SmDashboardProps {
28
- management: Cluster;
28
+ management: Cluster[];
29
29
  automation: Cluster[];
30
30
  texts: {
31
31
  chartTitle: string;
@@ -4,7 +4,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Column, Grid, Stack, Tile } from '@carbon/react';
7
+ import { Column, Grid } from '@carbon/react';
8
+ import { Stack, Tile } from '../../ui/index.js';
8
9
  import { STYLES } from '../c4-billing-page/c4-billing-page.js';
9
10
  import { ComponentTile } from './component-tile.js';
10
11
  export var ClusterTile;
@@ -4,8 +4,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Layer, Stack, Tile } from '@carbon/react';
7
+ import { Layer } from '@carbon/react';
8
8
  import { CheckmarkFilled, WarningFilled } from '@carbon/react/icons/index.esm.js';
9
+ import { Stack, Tile } from '../../ui/index.js';
9
10
  import { ClusterStatusElement, StatusColor, } from '../c4-cluster-overview/applications.js';
10
11
  export var ComponentTile;
11
12
  (function (ComponentTile) {
@@ -1,10 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Stack, Tile } from '@carbon/react';
2
+ import { Stack, Tile } from '../../ui/index.js';
8
3
  import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
9
4
  export var Explore;
10
5
  (function (Explore) {
@@ -5,8 +5,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { DonutChart } from '@carbon/charts-react';
8
- import { Stack, Tile } from '@carbon/react';
9
8
  import { ArrowRight, CheckmarkOutline } from '@carbon/react/icons/index.esm.js';
9
+ import { Stack, Tile } from '../../ui/index.js';
10
10
  import { StatusColor } from '../c4-cluster-overview/applications.js';
11
11
  import { C4Divider } from '../c4-divider/c4-divider.js';
12
12
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';