@camunda/ccma-saas-frontend 0.18.11 → 0.19.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 (259) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +4 -17
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +5 -47
  3. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +14 -6
  4. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +1 -2
  5. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +4 -8
  6. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +3 -2
  7. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +3 -0
  8. package/lib/esm/components/c4-async-modal/c4-async-modal.js +1 -1
  9. package/lib/esm/components/c4-audit-log/c4-audit-log.js +16 -32
  10. package/lib/esm/components/c4-billing-page/c4-billing-page.js +7 -15
  11. package/lib/esm/components/c4-billing-page/custom-styles.js +9 -9
  12. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +9 -3
  13. package/lib/esm/components/c4-billing-page/elements/plan-details.js +3 -3
  14. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +1 -1
  15. package/lib/esm/components/c4-billing-page/elements/value-metric.js +18 -46
  16. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +4 -10
  17. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
  18. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +4 -15
  19. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
  20. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +14 -41
  21. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
  22. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -38
  23. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +5 -5
  24. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -22
  25. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +1 -1
  26. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +1 -1
  27. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +10 -28
  28. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -2
  29. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +2 -2
  30. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +4 -4
  31. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +2 -2
  32. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +20 -44
  33. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +8 -16
  34. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +1 -1
  35. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -2
  36. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +35 -33
  37. package/lib/esm/components/c4-cluster-list/c4-cluster-expiry-tag.js +3 -7
  38. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +38 -157
  39. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +1 -1
  40. package/lib/esm/components/c4-cluster-overview/applications.d.ts +7 -8
  41. package/lib/esm/components/c4-cluster-overview/applications.js +71 -157
  42. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +4 -18
  43. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +11 -50
  44. package/lib/esm/components/c4-cluster-overview/cluster-details.js +19 -36
  45. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +2 -4
  46. package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -199
  47. package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +2 -2
  48. package/lib/esm/components/c4-cluster-overview/ds-section.js +2 -2
  49. package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.d.ts +3 -3
  50. package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +2 -2
  51. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -5
  52. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -1
  53. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +5 -5
  54. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +1 -2
  55. package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +2 -2
  56. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +2 -2
  57. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -3
  58. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
  59. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +12 -77
  60. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +0 -1
  61. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +47 -52
  62. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -1
  63. package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +11 -2
  64. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +16 -4
  65. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +3 -4
  66. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +2 -4
  67. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +20 -58
  68. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +157 -189
  69. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
  70. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +2 -3
  71. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +3 -10
  72. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +9 -10
  73. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +3 -18
  74. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +2 -2
  75. package/lib/esm/components/c4-data-table/c4-data-table.js +3 -17
  76. package/lib/esm/components/c4-delete-account-modal/c4-delete-account-modal.js +1 -2
  77. package/lib/esm/components/c4-divider/c4-divider.js +5 -13
  78. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +6 -12
  79. package/lib/esm/components/c4-empty-state/c4-empty-state.js +1 -9
  80. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +1 -2
  81. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +2 -2
  82. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +2 -2
  83. package/lib/esm/components/c4-file-uploader/c4-file-uploader.d.ts +4 -18
  84. package/lib/esm/components/c4-file-uploader/c4-file-uploader.js +7 -33
  85. package/lib/esm/components/c4-help-center/help-center-placeholders.d.ts +1 -1
  86. package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +2 -2
  87. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +2 -2
  88. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -9
  89. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +7 -17
  90. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -6
  91. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +0 -5
  92. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +1 -6
  93. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +0 -2
  94. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -2
  95. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -3
  96. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +4 -56
  97. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +1 -3
  98. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +9 -88
  99. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +12 -26
  100. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +3 -4
  101. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
  102. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +0 -1
  103. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -1
  104. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +2 -3
  105. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +2 -3
  106. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -4
  107. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +3 -3
  108. package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +3 -3
  109. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +25 -25
  110. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +5 -1
  111. package/lib/esm/components/c4-management-activity/c4-management-activity.js +6 -39
  112. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +1 -6
  113. package/lib/esm/components/c4-management-api/c4-management-api.js +4 -6
  114. package/lib/esm/components/c4-management-settings/c4-management-settings.js +24 -34
  115. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +7 -3
  116. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +3 -3
  117. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +6 -3
  118. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +17 -33
  119. package/lib/esm/components/c4-navigation/c4-navigation.js +12 -25
  120. package/lib/esm/components/c4-number-input/c4-number-input.js +20 -6
  121. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -4
  122. package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +2 -2
  123. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +2 -6
  124. package/lib/esm/components/c4-page-layout/c4-page-layout.js +3 -12
  125. package/lib/esm/components/c4-page-template/c4-page-template.d.ts +0 -3
  126. package/lib/esm/components/c4-page-template/c4-page-template.js +1 -11
  127. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +14 -14
  128. package/lib/esm/components/c4-pricing/c4-pricing.js +1 -1
  129. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +5 -13
  130. package/lib/esm/components/c4-search/c4-search-results.js +44 -36
  131. package/lib/esm/components/c4-search/c4-search.js +5 -7
  132. package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +5 -19
  133. package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +6 -18
  134. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +5 -8
  135. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +5 -19
  136. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +12 -2
  137. package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +4 -1
  138. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +33 -18
  139. package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -60
  140. package/lib/esm/components/c4-tabs/c4-tabs.js +4 -8
  141. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +3 -3
  142. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +13 -9
  143. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +3 -12
  144. package/lib/esm/components/c4-toggle/c4-toggle.js +1 -3
  145. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +2 -2
  146. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +3 -9
  147. package/lib/esm/components/c4-usage-history/c4-usage-history.js +4 -5
  148. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +3 -40
  149. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +4 -5
  150. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -3
  151. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +4 -6
  152. package/lib/esm/components/shared-charts/ds-line-chart.js +5 -7
  153. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +3 -5
  154. package/lib/esm/components/shared-charts/ds-meter-chart.js +8 -10
  155. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +6 -7
  156. package/lib/esm/components/shared-charts/recharts-tokens.js +6 -7
  157. package/lib/esm/index.css +107 -74
  158. package/lib/esm/index.d.ts +1 -9
  159. package/lib/esm/index.js +1 -5
  160. package/lib/esm/runtime/c4-console-runtime-context.d.ts +3 -10
  161. package/lib/esm/runtime/c4-console-runtime-context.js +11 -23
  162. package/lib/esm/runtime/c4-console-runtime.types.d.ts +0 -8
  163. package/lib/esm/runtime/c4-user-theme.d.ts +4 -4
  164. package/lib/esm/runtime/c4-user-theme.js +4 -4
  165. package/lib/esm/runtime/index.d.ts +1 -1
  166. package/lib/esm/runtime/index.js +1 -1
  167. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +2 -2
  168. package/lib/esm/runtime/nav/use-webapp-nav-data.js +2 -2
  169. package/lib/esm/ui/c4-cluster-tag.d.ts +1 -1
  170. package/lib/esm/ui/c4-cluster-tag.js +1 -1
  171. package/lib/esm/ui/c4-modal-dialog.d.ts +7 -11
  172. package/lib/esm/ui/c4-modal-dialog.js +18 -9
  173. package/lib/esm/ui/c4-password-input.d.ts +4 -8
  174. package/lib/esm/ui/c4-password-input.js +4 -8
  175. package/lib/esm/ui/c4-text-area.d.ts +19 -0
  176. package/lib/esm/ui/c4-text-area.js +30 -0
  177. package/lib/esm/ui/ds-compact-code-block.d.ts +1 -1
  178. package/lib/esm/ui/ds-compact-code-block.js +1 -1
  179. package/lib/esm/ui/families.d.ts +13 -46
  180. package/lib/esm/ui/families.js +8 -51
  181. package/lib/esm/ui/index.d.ts +11 -53
  182. package/lib/esm/ui/index.js +19 -152
  183. package/lib/esm/ui/tabs.d.ts +1 -21
  184. package/lib/esm/ui/tabs.js +1 -22
  185. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
  186. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
  187. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
  188. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
  189. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
  190. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
  191. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +4 -5
  192. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
  193. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
  194. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
  195. package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
  196. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
  197. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  198. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
  199. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
  200. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
  201. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
  202. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
  203. package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
  204. package/lib/esm/widgets/management/c4-management-app.js +6 -9
  205. package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
  206. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
  207. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
  208. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
  209. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
  210. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
  211. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
  212. package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
  213. package/package.json +3 -14
  214. package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
  215. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
  216. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
  217. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
  218. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
  219. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
  220. package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
  221. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
  222. package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
  223. package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
  224. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
  225. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
  226. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
  227. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
  228. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
  229. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
  230. package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
  231. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
  232. package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
  233. package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
  234. package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
  235. package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
  236. package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
  237. package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
  238. package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
  239. package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
  240. package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
  241. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
  242. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
  243. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
  244. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
  245. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
  246. package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
  247. package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
  248. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
  249. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
  250. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
  251. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
  252. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
  253. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
  254. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
  255. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
  256. package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
  257. package/lib/esm/ui/c4-definition-tooltip.js +0 -43
  258. package/lib/esm/ui/switchable.d.ts +0 -14
  259. package/lib/esm/ui/switchable.js +0 -27
@@ -4,13 +4,12 @@
4
4
  * You may not use this file except in compliance with the commercial license.
5
5
  */
6
6
  /**
7
- * Design-system chart tokens for recharts (ds mode only).
7
+ * Design-system chart tokens for recharts.
8
8
  *
9
9
  * These reference `@camunda/design-system`'s CSS custom properties, scoped to
10
10
  * `.c4-ui` (light) and `.dark .c4-ui` (dark) in its `styles.css` — using them
11
- * (rather than literal colours) keeps ds-mode charts correct in both themes
12
- * without any extra wiring. Carbon-mode charts never read this file; they
13
- * keep using `@carbon/charts-react` and its own `theme` prop unchanged.
11
+ * (rather than literal colors) keeps charts correct in both themes
12
+ * without any extra wiring.
14
13
  */
15
14
  /**
16
15
  * Categorical series palette.
@@ -20,8 +19,8 @@
20
19
  * (`--chart-1..5`) to named hues and now ships ten of them; these five are the
21
20
  * first of the DS's own categorical order. Charts can render more than five
22
21
  * series at once — the Usage tab caps at a top-12 clusters + "Other" — so the
23
- * palette is extended with plain colour literals for indices beyond five. These
24
- * are safe to add here (unlike Tailwind-looking classNames, plain colour values
22
+ * palette is extended with plain color literals for indices beyond five. These
23
+ * are safe to add here (unlike Tailwind-looking classNames, plain color values
25
24
  * need no matching entry in the shipped design-system stylesheet) and are
26
25
  * mid-tone hues chosen to read on both light and dark chart surfaces. Keep the
27
26
  * total at or above the chart cap so `getDsSeriesColor` only wraps for
@@ -51,7 +50,7 @@ export function getDsSeriesColor(index) {
51
50
  * components (`ChartConfig.color`) rather than raw recharts props.
52
51
  *
53
52
  * DS 0.40 narrowed `ChartConfig.color` from an arbitrary CSS string to this
54
- * token union, which DS expands to `var(--<name>)` itself — so the colour
53
+ * token union, which DS expands to `var(--<name>)` itself — so the color
55
54
  * literals above are not usable there. This is the DS's full categorical order
56
55
  * (ten hues, the first five shared with `DS_CHART_CATEGORICAL_COLORS`), so DS
57
56
  * charts and raw-recharts charts agree for the common ≤5-series case.
package/lib/esm/index.css CHANGED
@@ -5,28 +5,10 @@
5
5
  *
6
6
  * Native CSS — no Sass dependency.
7
7
  *
8
- * Consumers must load Carbon's stylesheet themselves (e.g.
9
- * `import '@carbon/styles/css/styles.min.css'`) so that the `--cds-*` CSS
10
- * custom properties used below are defined. This file only contains the
11
- * c4-specific selectors and overrides that sit on top of Carbon.
12
- *
13
- * Carbon type-token values are inlined as literal rem/px values because
14
- * Carbon doesn't expose them as CSS custom properties — they're only
15
- * available via the Sass `type-style` mixin. If Carbon ever ships them as
16
- * CSS variables, switch to `var(--cds-heading-04-font-size)` etc.
8
+ * Hosts load `@camunda/design-system/styles.css`. This file only holds
9
+ * c4-specific selectors.
17
10
  */
18
11
 
19
- @import "@carbon/charts/styles.css";
20
-
21
- .cds--content {
22
- min-height: calc(100vh - 3rem);
23
- }
24
-
25
- .cds--content.withTrialBanner {
26
- margin-top: 7rem;
27
- min-height: calc(100vh - 7rem);
28
- }
29
-
30
12
  .flex-container-stats {
31
13
  display: flex;
32
14
  flex-wrap: wrap;
@@ -34,18 +16,6 @@
34
16
  justify-content: space-between;
35
17
  }
36
18
 
37
- .flex-container-stats .cds--tile {
38
- min-width: 330px;
39
- }
40
-
41
- .flex-container-stats .cds--tile.wide {
42
- min-width: 685px;
43
- }
44
-
45
- .flex-container-stats .cds--tile h3 {
46
- padding-bottom: 8px;
47
- }
48
-
49
19
  .flex-stats {
50
20
  min-width: 300px;
51
21
  margin: 24px;
@@ -66,37 +36,7 @@
66
36
  margin-top: 8px;
67
37
  }
68
38
 
69
- .cds--data-table th.cds--table-expand + .cds--table-column-checkbox + th {
70
- padding-left: 0;
71
- }
72
-
73
- .cds--data-table td.cds--table-expand + .cds--table-column-checkbox + td {
74
- padding-left: 1rem;
75
- }
76
-
77
- .cds--data-table thead th.cds--table-expand,
78
- .cds--data-table tbody td.cds--table-expand {
79
- min-width: 40px;
80
- }
81
-
82
- tr.cds--parent-row.cds--expandable-row + tr[data-child-row] td {
83
- padding-left: 6rem;
84
- padding-right: 2rem;
85
- }
86
-
87
- .cds--inline-notification__icon,
88
- .cds--actionable-notification .cds--inline-notification__icon {
89
- margin-top: 1rem;
90
- }
91
-
92
- .cds--g100 .cds--inline-notification--low-contrast,
93
- [data-carbon-theme="g100"] .cds--inline-notification--low-contrast {
94
- color: var(--cds-text-inverse);
95
- }
96
-
97
- /* Carbon type tokens (heading-04, heading-03, heading-02, heading-01,
98
- * body-01, legal-01) — inlined values from @carbon/type, accurate as of
99
- * @carbon/react 1.107. */
39
+ /* Heading sizes, inlined from the former Carbon type scale. */
100
40
  h1 {
101
41
  font-size: 1.75rem;
102
42
  font-weight: 400;
@@ -141,7 +81,7 @@ p,
141
81
  }
142
82
 
143
83
  .textPrimary {
144
- color: var(--cds-text-primary);
84
+ color: var(--neutral-foreground-strong);
145
85
  }
146
86
 
147
87
  .balancedHorizontalStack {
@@ -171,15 +111,15 @@ p,
171
111
  }
172
112
 
173
113
  .healthIndicator.healthy::before {
174
- background-color: var(--cds-support-success);
114
+ background-color: var(--success-action-default);
175
115
  }
176
116
 
177
117
  .healthIndicator.creating::before {
178
- background-color: var(--cds-support-warning);
118
+ background-color: var(--warning-action-default);
179
119
  }
180
120
 
181
121
  .healthIndicator.unhealthy::before {
182
- background-color: var(--cds-support-error);
122
+ background-color: var(--danger-action-default);
183
123
  }
184
124
 
185
125
  .cluster-state {
@@ -194,15 +134,15 @@ p,
194
134
 
195
135
  .cluster-state.creating,
196
136
  .cluster-state.updating {
197
- background-color: var(--cds-support-warning);
137
+ background-color: var(--warning-action-default);
198
138
  }
199
139
 
200
140
  .cluster-state.healthy {
201
- background-color: var(--cds-support-success);
141
+ background-color: var(--success-action-default);
202
142
  }
203
143
 
204
144
  .cluster-state.unhealthy {
205
- background-color: var(--cds-support-error);
145
+ background-color: var(--danger-action-default);
206
146
  }
207
147
 
208
148
  .dashboard {
@@ -248,10 +188,103 @@ p,
248
188
  grid-row-end: 4;
249
189
  }
250
190
 
251
- .cds--modal .cds--popover-content.cds--tooltip-content {
252
- margin-left: -50px;
191
+ /* Text styles that replace the former Carbon `cds--label` and
192
+ * `cds--type-*` classes. */
193
+ .c4-label {
194
+ display: inline-block;
195
+ margin-bottom: 0.5rem;
196
+ font-size: 0.75rem;
197
+ line-height: 1.33333;
198
+ letter-spacing: 0.32px;
199
+ color: var(--neutral-foreground-subtle);
200
+ }
201
+
202
+ .c4-fieldset {
203
+ min-width: 0;
204
+ margin: 0;
205
+ padding: 0;
206
+ border: 0;
207
+ }
208
+
209
+ .c4-helper-text {
210
+ margin: 0;
211
+ font-size: 0.75rem;
212
+ line-height: 1.33333;
213
+ letter-spacing: 0.32px;
214
+ color: var(--neutral-foreground-subtle);
215
+ }
216
+
217
+ .c4-link {
218
+ color: var(--primary-foreground-strong);
219
+ text-decoration: none;
220
+ }
221
+
222
+ .c4-link:hover {
223
+ text-decoration: underline;
224
+ }
225
+
226
+ .c4-type-label-01 {
227
+ font-size: 0.75rem;
228
+ line-height: 1.33333;
229
+ letter-spacing: 0.32px;
230
+ }
231
+
232
+ .c4-type-italic {
233
+ font-style: italic;
234
+ }
235
+
236
+ .c4-type-code-01 {
237
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
238
+ font-size: 0.75rem;
239
+ line-height: 1.33333;
240
+ letter-spacing: 0.32px;
241
+ }
242
+
243
+ .c4-type-body-01 {
244
+ font-size: 0.875rem;
245
+ line-height: 1.42857;
246
+ letter-spacing: 0.16px;
247
+ }
248
+
249
+ .c4-type-body-compact-02 {
250
+ font-size: 1rem;
251
+ line-height: 1.375;
252
+ }
253
+
254
+ .c4-type-heading-compact-01 {
255
+ font-size: 0.875rem;
256
+ font-weight: 600;
257
+ line-height: 1.28572;
258
+ letter-spacing: 0.16px;
259
+ }
260
+
261
+ .c4-type-heading-01 {
262
+ font-size: 0.875rem;
263
+ font-weight: 600;
264
+ line-height: 1.28572;
265
+ letter-spacing: 0.16px;
266
+ }
267
+
268
+ .c4-type-heading-02 {
269
+ font-size: 1rem;
270
+ font-weight: 600;
271
+ line-height: 1.375;
272
+ }
273
+
274
+ .c4-type-heading-03 {
275
+ font-size: 1.25rem;
276
+ font-weight: 400;
277
+ line-height: 1.4;
253
278
  }
254
279
 
255
- .cluster-load .cds--loading-overlay {
256
- position: absolute !important;
280
+ .c4-type-heading-04 {
281
+ font-size: 1.75rem;
282
+ font-weight: 400;
283
+ line-height: 1.28572;
284
+ }
285
+
286
+ .c4-type-heading-05 {
287
+ font-size: 2rem;
288
+ font-weight: 400;
289
+ line-height: 1.25;
257
290
  }
@@ -167,10 +167,6 @@ export type { C4SearchProps } from './components/c4-search/c4-search.types.js';
167
167
  export { C4SearchResults } from './components/c4-search/c4-search-results.js';
168
168
  export type { C4SearchResultsProps, SearchResultEntry, SearchResults, } from './components/c4-search/c4-search-results.types.js';
169
169
  export { C4SegmentedControl, type C4SegmentedControlOption, type C4SegmentedControlProps, } from './components/c4-segmented-control/c4-segmented-control.js';
170
- export { C4SmClusterDetails } from './components/c4-sm-cluster-details/c4-sm-cluster-details.js';
171
- export type { C4SmClusterDetailsProps } from './components/c4-sm-cluster-details/c4-sm-cluster-details.types.js';
172
- export { C4SmDashboard } from './components/c4-sm-dashboard/c4-sm-dashboard.js';
173
- export type { C4SmDashboardProps } from './components/c4-sm-dashboard/c4-sm-dashboard.types.js';
174
170
  export { C4Stat } from './components/c4-stat/c4-stat.js';
175
171
  export type { C4StatProps } from './components/c4-stat/c4-stat.types.js';
176
172
  export { C4StatefulButton } from './components/c4-stateful-button/c4-stateful-button.js';
@@ -178,10 +174,6 @@ export type { C4StatefulButtonProps } from './components/c4-stateful-button/c4-s
178
174
  export { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListSkeleton, C4StructuredListWrapper, } from './components/c4-structured-list/c4-structured-list.js';
179
175
  export { C4Tabs } from './components/c4-tabs/c4-tabs.js';
180
176
  export type { C4TabProps, C4TabsProps, } from './components/c4-tabs/c4-tabs.types.js';
181
- export { C4TelemetryPage } from './components/c4-telemetry-page/c4-telemetry-page.js';
182
- export type { C4TelemetryPageProps } from './components/c4-telemetry-page/c4-telemetry-page.types.js';
183
- export { C4TelemetryTeaserPage } from './components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js';
184
- export type { C4TelemetryTeaserPageProps } from './components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js';
185
177
  export { C4ThemeSwitcher } from './components/c4-theme-switcher/c4-theme-switcher.js';
186
178
  export type { C4ThemeSwitcherProps, ThemeMode, } from './components/c4-theme-switcher/c4-theme-switcher.types.js';
187
179
  export { C4TileWithTitleAndAction } from './components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
@@ -213,7 +205,7 @@ export { openC4CreateConsoleApiClientModal, setC4CreateConsoleApiClientModalHand
213
205
  export { openC4InviteUserToOrganizationModal, setC4InviteUserToOrganizationModalHandle, } from './modals/c4-invite-user-to-organization-modal-handle.js';
214
206
  export { openC4RenameOrganizationModal, setC4RenameOrganizationModalHandle, } from './modals/c4-rename-organization-modal-handle.js';
215
207
  export type { AccountsPermissions, AddC4ConsoleNotificationOptions, C4BreadcrumbCrumb, C4BreadcrumbDropdownItem, C4ClusterNavAppEntry, C4ClusterNavEntry, C4ConsoleAuthzFeatures, C4ConsoleAuthzState, C4ConsoleDataState, C4ConsoleEventsProviderProps, C4ConsoleNotification, C4ConsoleNotificationAction, C4ConsoleNotificationKind, C4ConsoleNotificationsState, C4ConsoleRuntimeConfig, C4ConsoleVisibilities, C4ResolvedTheme, C4ThemePreference, C4UserNotificationsProviderProps, C4UserNotificationsState, C4UserThemeState, CacheState, CamundaWebApp, ConsoleAuth, ConsoleBackendUrls, ConsoleClickwrapConfig, ConsoleClusterDto, ConsolePermissions, ConsolePublicUrls, ConsoleStage, ConsoleTelemetry, ConsoleUser, ExternalClusterDto, ExternalOrganizationDto, NotificationDto, OrganizationPermissions, OrganizationRole, OrgCache, SseEntity, UpgradableGenerationsDto, UseC4ClusterNavEntriesOptions, UseC4WebappBreadcrumbDataOptions, } from './runtime/index.js';
216
- export { addC4ConsoleNotification, buildClusterSsoCallbackUrl, buildClusterSwaggerUrl, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4ConsoleStage, useC4DesignSystem, useC4FeatureFlag, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
208
+ export { addC4ConsoleNotification, buildClusterSsoCallbackUrl, buildClusterSwaggerUrl, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4ConsoleStage, useC4FeatureFlag, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
217
209
  export type { TranslateFn } from './utils/safe-translate.js';
218
210
  export { ENVIRONMENT_KEY_SUFFIX, safeTranslate, scopedTranslate, } from './utils/safe-translate.js';
219
211
  export type { C4WidgetScope } from './widgets/c4-widget-scope.types.js';
package/lib/esm/index.js CHANGED
@@ -92,14 +92,10 @@ export { C4RenameOrganizationModal } from './components/c4-rename-organization-m
92
92
  export { C4Search } from './components/c4-search/c4-search.js';
93
93
  export { C4SearchResults } from './components/c4-search/c4-search-results.js';
94
94
  export { C4SegmentedControl, } from './components/c4-segmented-control/c4-segmented-control.js';
95
- export { C4SmClusterDetails } from './components/c4-sm-cluster-details/c4-sm-cluster-details.js';
96
- export { C4SmDashboard } from './components/c4-sm-dashboard/c4-sm-dashboard.js';
97
95
  export { C4Stat } from './components/c4-stat/c4-stat.js';
98
96
  export { C4StatefulButton } from './components/c4-stateful-button/c4-stateful-button.js';
99
97
  export { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListSkeleton, C4StructuredListWrapper, } from './components/c4-structured-list/c4-structured-list.js';
100
98
  export { C4Tabs } from './components/c4-tabs/c4-tabs.js';
101
- export { C4TelemetryPage } from './components/c4-telemetry-page/c4-telemetry-page.js';
102
- export { C4TelemetryTeaserPage } from './components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js';
103
99
  export { C4ThemeSwitcher } from './components/c4-theme-switcher/c4-theme-switcher.js';
104
100
  export { C4TileWithTitleAndAction } from './components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
105
101
  export { C4ToastNotification } from './components/c4-toast-notification/c4-toast-notification.js';
@@ -122,7 +118,7 @@ export { openC4RenameOrganizationModal, setC4RenameOrganizationModalHandle, } fr
122
118
  // re-listed per module, so the package root and the
123
119
  // `@camunda/ccma-saas-frontend/runtime` subpath expose one identical surface.
124
120
  // Add runtime exports in `src/runtime/index.ts` and mirror them here.
125
- export { addC4ConsoleNotification, buildClusterSsoCallbackUrl, buildClusterSwaggerUrl, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4ConsoleStage, useC4DesignSystem, useC4FeatureFlag, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
121
+ export { addC4ConsoleNotification, buildClusterSsoCallbackUrl, buildClusterSwaggerUrl, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4ConsoleStage, useC4FeatureFlag, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
126
122
  export { ENVIRONMENT_KEY_SUFFIX, safeTranslate, scopedTranslate, } from './utils/safe-translate.js';
127
123
  export { C4ClusterClientDetailsApp } from './widgets/cluster-client-details/c4-cluster-client-details-app.js';
128
124
  export { C4ClusterDetailsApp } from './widgets/cluster-details/c4-cluster-details-app.js';
@@ -1,21 +1,14 @@
1
1
  import type React from 'react';
2
- import type { C4ConsoleRuntimeConfig, C4DesignSystem, ConsoleStage } from './c4-console-runtime.types.js';
2
+ import type { C4ConsoleRuntimeConfig, ConsoleStage } from './c4-console-runtime.types.js';
3
3
  export interface C4ConsoleRuntimeProviderProps {
4
4
  config: C4ConsoleRuntimeConfig;
5
5
  children: React.ReactNode;
6
6
  }
7
7
  export declare const C4ConsoleRuntimeProvider: ({ config, children, }: C4ConsoleRuntimeProviderProps) => React.JSX.Element;
8
8
  export declare const useC4ConsoleRuntime: () => C4ConsoleRuntimeConfig;
9
- /**
10
- * Which UI library c4 components should render through. Non-throwing and
11
- * provider-optional: defaults to 'carbon' when no runtime provider is present
12
- * (tests, Storybook) or when the consumer hasn't opted in. Consumers opt into
13
- * the Design System by setting `designSystem: 'ds'` on the runtime config.
14
- */
15
- export declare const useC4DesignSystem: () => C4DesignSystem;
16
9
  /**
17
10
  * The stage the host runs on. Non-throwing and provider-optional, like
18
- * `useC4DesignSystem`: `undefined` with no runtime provider (a test, a
11
+ * `useC4ConsoleRuntime`: `undefined` with no runtime provider (a test, a
19
12
  * Storybook story). Use it for a rule that follows the rollout of an
20
13
  * environment; `useC4ConsoleRuntime()` stays the way to read the rest of the
21
14
  * config.
@@ -23,7 +16,7 @@ export declare const useC4DesignSystem: () => C4DesignSystem;
23
16
  export declare const useC4ConsoleStage: () => ConsoleStage | undefined;
24
17
  /**
25
18
  * Whether a feature flag is on for the host. Non-throwing and
26
- * provider-optional, like `useC4DesignSystem`: with no runtime provider (a
19
+ * provider-optional: with no runtime provider (a
27
20
  * test, a Storybook story) every flag reads as off. A host that knows nothing
28
21
  * about the flag reads it as off too, because the bridge below gives a plain
29
22
  * boolean. Thus a flag must hold the behavior that the other hosts of this
@@ -11,24 +11,21 @@ const RuntimeContext = createContext(undefined);
11
11
  // Carbon dark theme names (set by c3 on <html data-carbon-theme>).
12
12
  const CARBON_DARK_THEMES = new Set(['g90', 'g100']);
13
13
  /**
14
- * Bridges the host's Carbon color mode to the Design System.
14
+ * Bridges the host's c3 color mode to the Design System.
15
15
  *
16
16
  * c3 sets `data-carbon-theme` on `<html>`; the DS reads dark mode from a
17
17
  * `.dark` class on `<html>` (the `.dark .c4-ui` token block). Without this,
18
- * toggling the theme re-themes Carbon but leaves DS components light. While
19
- * the consumer is in `designSystem: 'ds'`, mirror the Carbon theme onto the
20
- * `.dark` class so DS tokens follow the toggle. No-op in 'carbon' mode.
18
+ * toggling the theme re-themes c3 but leaves DS components light. Mirror the
19
+ * c3 theme onto the `.dark` class so DS tokens follow the toggle.
21
20
  */
22
- function useSyncCarbonThemeToDesignSystem(designSystem) {
21
+ function useSyncThemeToDesignSystem() {
23
22
  useEffect(() => {
24
- if (designSystem !== 'ds' || typeof document === 'undefined') {
23
+ if (typeof document === 'undefined') {
25
24
  return;
26
25
  }
27
26
  const html = document.documentElement;
28
- // Marks the document as design-system mode so the consumer's coexistence
29
- // CSS can remap Carbon `--cds-*` tokens to DS values (see c4-ui.css). Lives
30
- // on <html> — the same element carrying `data-carbon-theme` — so the remap
31
- // wins the cascade without `!important`.
27
+ // Marks the document for the host rules of c4-ui.css that start at
28
+ // `html.c4-ds`.
32
29
  html.classList.add('c4-ds');
33
30
  const sync = () => {
34
31
  const carbonTheme = html.getAttribute('data-carbon-theme');
@@ -45,7 +42,7 @@ function useSyncCarbonThemeToDesignSystem(designSystem) {
45
42
  html.classList.remove('dark');
46
43
  html.classList.remove('c4-ds');
47
44
  };
48
- }, [designSystem]);
45
+ }, []);
49
46
  }
50
47
  /** Reads a dot path such as `console.byoidp` out of the flags. */
51
48
  function readFlag(flags, flagKey) {
@@ -246,7 +243,7 @@ function useFetchedClickwrap(config) {
246
243
  return clickwrap;
247
244
  }
248
245
  export const C4ConsoleRuntimeProvider = ({ config, children, }) => {
249
- useSyncCarbonThemeToDesignSystem(config.designSystem ?? 'carbon');
246
+ useSyncThemeToDesignSystem();
250
247
  const fetchedFlags = useFetchedFeatureFlags(config);
251
248
  const fetchedClickwrap = useFetchedClickwrap(config);
252
249
  const value = useMemo(() => {
@@ -274,18 +271,9 @@ export const useC4ConsoleRuntime = () => {
274
271
  }
275
272
  return runtime;
276
273
  };
277
- /**
278
- * Which UI library c4 components should render through. Non-throwing and
279
- * provider-optional: defaults to 'carbon' when no runtime provider is present
280
- * (tests, Storybook) or when the consumer hasn't opted in. Consumers opt into
281
- * the Design System by setting `designSystem: 'ds'` on the runtime config.
282
- */
283
- export const useC4DesignSystem = () => {
284
- return useContext(RuntimeContext)?.designSystem ?? 'carbon';
285
- };
286
274
  /**
287
275
  * The stage the host runs on. Non-throwing and provider-optional, like
288
- * `useC4DesignSystem`: `undefined` with no runtime provider (a test, a
276
+ * `useC4ConsoleRuntime`: `undefined` with no runtime provider (a test, a
289
277
  * Storybook story). Use it for a rule that follows the rollout of an
290
278
  * environment; `useC4ConsoleRuntime()` stays the way to read the rest of the
291
279
  * config.
@@ -295,7 +283,7 @@ export const useC4ConsoleStage = () => {
295
283
  };
296
284
  /**
297
285
  * Whether a feature flag is on for the host. Non-throwing and
298
- * provider-optional, like `useC4DesignSystem`: with no runtime provider (a
286
+ * provider-optional: with no runtime provider (a
299
287
  * test, a Storybook story) every flag reads as off. A host that knows nothing
300
288
  * about the flag reads it as off too, because the bridge below gives a plain
301
289
  * boolean. Thus a flag must hold the behavior that the other hosts of this
@@ -40,16 +40,8 @@ export interface ConsoleClickwrapConfig {
40
40
  accessId: string;
41
41
  betaGroupKey?: string;
42
42
  }
43
- /**
44
- * Selects which UI library c4 components render through.
45
- * - 'carbon' (default): existing Carbon components, unchanged.
46
- * - 'ds': Camunda Design System via carbon-compat adapters.
47
- * Lets each c4 consumer decide when to switch; see packages/c4/src/ui.
48
- */
49
- export type C4DesignSystem = 'carbon' | 'ds';
50
43
  export interface C4ConsoleRuntimeConfig {
51
44
  stage: ConsoleStage;
52
- designSystem?: C4DesignSystem;
53
45
  auth: ConsoleAuth;
54
46
  backendUrls: ConsoleBackendUrls;
55
47
  /**
@@ -11,10 +11,10 @@ export interface C4UserThemeState {
11
11
  /**
12
12
  * Reads and persists the user's theme **preference**. This hook does NOT apply
13
13
  * the theme to the DOM — how `resolvedTheme` maps onto `<html>`
14
- * (`data-carbon-theme`, the DS `.dark` class) is the host's responsibility. In
15
- * `designSystem: 'ds'` mode `C4ConsoleRuntimeProvider` already mirrors the
16
- * Carbon theme onto the DS `.dark` class, so a host typically only needs to set
17
- * `data-carbon-theme` from `resolvedTheme`.
14
+ * (`data-carbon-theme`, the DS `.dark` class) is the host's responsibility.
15
+ * `C4ConsoleRuntimeProvider` already mirrors the c3 theme onto the DS `.dark`
16
+ * class, so a host typically only needs to set `data-carbon-theme` from
17
+ * `resolvedTheme`.
18
18
  *
19
19
  * The initial preference is decoded from the access token's
20
20
  * `https://camunda.com/settings.theme` claim; `system` is resolved locally via
@@ -27,10 +27,10 @@ function resolve(theme) {
27
27
  /**
28
28
  * Reads and persists the user's theme **preference**. This hook does NOT apply
29
29
  * the theme to the DOM — how `resolvedTheme` maps onto `<html>`
30
- * (`data-carbon-theme`, the DS `.dark` class) is the host's responsibility. In
31
- * `designSystem: 'ds'` mode `C4ConsoleRuntimeProvider` already mirrors the
32
- * Carbon theme onto the DS `.dark` class, so a host typically only needs to set
33
- * `data-carbon-theme` from `resolvedTheme`.
30
+ * (`data-carbon-theme`, the DS `.dark` class) is the host's responsibility.
31
+ * `C4ConsoleRuntimeProvider` already mirrors the c3 theme onto the DS `.dark`
32
+ * class, so a host typically only needs to set `data-carbon-theme` from
33
+ * `resolvedTheme`.
34
34
  *
35
35
  * The initial preference is decoded from the access token's
36
36
  * `https://camunda.com/settings.theme` claim; `system` is resolved locally via
@@ -32,7 +32,7 @@ export { C4ConsoleEventsProvider, useC4ConsoleEventsState, } from './c4-console-
32
32
  export { C4ConsoleNotificationsProvider, useC4ConsoleNotifications, } from './c4-console-notifications-context.js';
33
33
  export type { AddC4ConsoleNotificationOptions, C4ConsoleNotification, C4ConsoleNotificationAction, C4ConsoleNotificationKind, C4ConsoleNotificationsState, } from './c4-console-notifications-context.types.js';
34
34
  export type { C4ConsoleRuntimeConfig, ConsoleAuth, ConsoleBackendUrls, ConsoleClickwrapConfig, ConsolePublicUrls, ConsoleStage, ConsoleTelemetry, ConsoleUser, } from './c4-console-runtime.types.js';
35
- export { C4ConsoleRuntimeProvider, useC4ConsoleRuntime, useC4ConsoleStage, useC4DesignSystem, useC4FeatureFlag, } from './c4-console-runtime-context.js';
35
+ export { C4ConsoleRuntimeProvider, useC4ConsoleRuntime, useC4ConsoleStage, useC4FeatureFlag, } from './c4-console-runtime-context.js';
36
36
  export { C4UserNotificationsProvider, useC4UserNotifications, } from './c4-user-notifications-context.js';
37
37
  export type { C4UserNotificationsProviderProps, C4UserNotificationsState, } from './c4-user-notifications-context.types.js';
38
38
  export type { C4ResolvedTheme, C4ThemePreference, C4UserThemeState, } from './c4-user-theme.js';
@@ -13,7 +13,7 @@ export { useC4ConsoleAuthz } from './c4-console-authz.js';
13
13
  export { C4ConsoleDataProvider, useC4ConsoleData, } from './c4-console-data-context.js';
14
14
  export { C4ConsoleEventsProvider, useC4ConsoleEventsState, } from './c4-console-events-context.js';
15
15
  export { C4ConsoleNotificationsProvider, useC4ConsoleNotifications, } from './c4-console-notifications-context.js';
16
- export { C4ConsoleRuntimeProvider, useC4ConsoleRuntime, useC4ConsoleStage, useC4DesignSystem, useC4FeatureFlag, } from './c4-console-runtime-context.js';
16
+ export { C4ConsoleRuntimeProvider, useC4ConsoleRuntime, useC4ConsoleStage, useC4FeatureFlag, } from './c4-console-runtime-context.js';
17
17
  export { C4UserNotificationsProvider, useC4UserNotifications, } from './c4-user-notifications-context.js';
18
18
  export { useC4UserTheme } from './c4-user-theme.js';
19
19
  export { buildModelerOrgUrl, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, resolveAdminAppName, } from './nav/camunda-apps.js';
@@ -85,8 +85,8 @@ export interface UseC4WebappBreadcrumbDataOptions {
85
85
  * Headless equivalent of c3's `useClusterWebappBreadcrumbs`. Builds the
86
86
  * `[Org] > [Cluster] > [App]` chain as plain data (labels, hrefs, dropdown
87
87
  * items with selection), reading orgs/clusters from `useC4ConsoleData`. Crumbs
88
- * and dropdowns are omitted when the underlying data is unavailable, so the
89
- * same hook serves SaaS (full chain) and Self-Managed (partial) without a flag.
88
+ * and dropdowns are omitted when the underlying data is unavailable, so a
89
+ * partial chain needs no flag.
90
90
  *
91
91
  * Requires `C4ConsoleRuntimeProvider` + `C4ConsoleDataProvider`.
92
92
  */
@@ -99,8 +99,8 @@ const NO_CRUMBS = [];
99
99
  * Headless equivalent of c3's `useClusterWebappBreadcrumbs`. Builds the
100
100
  * `[Org] > [Cluster] > [App]` chain as plain data (labels, hrefs, dropdown
101
101
  * items with selection), reading orgs/clusters from `useC4ConsoleData`. Crumbs
102
- * and dropdowns are omitted when the underlying data is unavailable, so the
103
- * same hook serves SaaS (full chain) and Self-Managed (partial) without a flag.
102
+ * and dropdowns are omitted when the underlying data is unavailable, so a
103
+ * partial chain needs no flag.
104
104
  *
105
105
  * Requires `C4ConsoleRuntimeProvider` + `C4ConsoleDataProvider`.
106
106
  */
@@ -1,7 +1,7 @@
1
1
  import type { C3ClusterTagProps } from '@camunda/design-system/carbon-compat';
2
2
  import type { JSX } from 'react';
3
3
  /**
4
- * The ds branch of the `ClusterTag` stage chip. It has the API of the
4
+ * The `ClusterTag` stage chip. It has the API of the
5
5
  * carbon-compat `C3ClusterTag` and the look of the environment tags in Hub.
6
6
  *
7
7
  * It supports the `stage` form only. Like the carbon-compat adapter, it shows
@@ -19,7 +19,7 @@ const STAGE_VARIANT = {
19
19
  dev: 'neutral',
20
20
  };
21
21
  /**
22
- * The ds branch of the `ClusterTag` stage chip. It has the API of the
22
+ * The `ClusterTag` stage chip. It has the API of the
23
23
  * carbon-compat `C3ClusterTag` and the look of the environment tags in Hub.
24
24
  *
25
25
  * It supports the `stage` form only. Like the carbon-compat adapter, it shows
@@ -1,14 +1,10 @@
1
- import type { Modal as CarbonModal } from '@carbon/react';
2
- import type { ComponentProps, JSX } from 'react';
3
- type CarbonModalProps = ComponentProps<typeof CarbonModal>;
1
+ import type { ModalProps } from '@camunda/design-system/carbon-compat';
2
+ import { type JSX } from 'react';
4
3
  /**
5
- * Carbon `Modal` API → DS `Dialog`.
4
+ * Modal API → DS `Dialog`.
6
5
  *
7
- * The ds branch of the `../ui` `Modal` switch: call sites keep the Carbon Modal
8
- * prop API (modalHeading / primary+secondaryButtonText / onRequestClose /
9
- * onRequestSubmit / danger / size / preventCloseOnClickOutside / passiveModal),
10
- * and this renders the DS Dialog composition. Carbon mode renders Carbon Modal
11
- * unchanged (see ui/index.ts).
6
+ * Call sites keep the `Modal` prop API (modalHeading / primary+secondaryButtonText
7
+ * / onRequestClose / onRequestSubmit / danger / size / preventCloseOnClickOutside
8
+ * / passiveModal). This renders the DS Dialog composition.
12
9
  */
13
- export declare function C4ModalDialog(props: CarbonModalProps): JSX.Element;
14
- export {};
10
+ export declare function C4ModalDialog(props: ModalProps): JSX.Element;
@@ -5,7 +5,8 @@ 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 { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@camunda/design-system';
8
- // Carbon Modal `size` → DS DialogContent max-width.
8
+ import { useRef } from 'react';
9
+ // Modal `size` → DS DialogContent max-width.
9
10
  //
10
11
  // These must be classes the DS package's own Tailwind build actually
11
12
  // generated into its shipped `styles.css` — this package (packages/c4) does
@@ -26,23 +27,31 @@ const SIZE_CLASS = {
26
27
  lg: 'sm:max-w-[800px]',
27
28
  };
28
29
  /**
29
- * Carbon `Modal` API → DS `Dialog`.
30
+ * Modal API → DS `Dialog`.
30
31
  *
31
- * The ds branch of the `../ui` `Modal` switch: call sites keep the Carbon Modal
32
- * prop API (modalHeading / primary+secondaryButtonText / onRequestClose /
33
- * onRequestSubmit / danger / size / preventCloseOnClickOutside / passiveModal),
34
- * and this renders the DS Dialog composition. Carbon mode renders Carbon Modal
35
- * unchanged (see ui/index.ts).
32
+ * Call sites keep the `Modal` prop API (modalHeading / primary+secondaryButtonText
33
+ * / onRequestClose / onRequestSubmit / danger / size / preventCloseOnClickOutside
34
+ * / passiveModal). This renders the DS Dialog composition.
36
35
  */
37
36
  export function C4ModalDialog(props) {
38
- const { open, modalHeading, modalLabel, primaryButtonText, secondaryButtonText, primaryButtonDisabled, onRequestClose, onRequestSubmit, danger, size, preventCloseOnClickOutside, passiveModal, loadingStatus, id, children, } = props;
37
+ const { open, modalHeading, modalLabel, primaryButtonText, secondaryButtonText, primaryButtonDisabled, onRequestClose, onRequestSubmit, danger, size, preventCloseOnClickOutside, passiveModal, loadingStatus, selectorPrimaryFocus, id, children, } = props;
38
+ const contentRef = useRef(null);
39
39
  const close = (event) => onRequestClose?.(event);
40
40
  const showFooter = !passiveModal &&
41
41
  (Boolean(primaryButtonText) || Boolean(secondaryButtonText));
42
42
  return (_jsx(Dialog, { open: open ?? true, onOpenChange: (next) => {
43
43
  if (!next)
44
44
  close();
45
- }, children: _jsxs(DialogContent, { id: id, className: SIZE_CLASS[size ?? 'md'] ?? SIZE_CLASS.md, onInteractOutside: preventCloseOnClickOutside
45
+ }, children: _jsxs(DialogContent, { id: id, ref: contentRef, onOpenAutoFocus: selectorPrimaryFocus
46
+ ? (event) => {
47
+ // Focus the element that the caller names, not the first one.
48
+ const target = contentRef.current?.querySelector(selectorPrimaryFocus);
49
+ if (target) {
50
+ event.preventDefault();
51
+ target.focus();
52
+ }
53
+ }
54
+ : undefined, className: SIZE_CLASS[size ?? 'md'] ?? SIZE_CLASS.md, onInteractOutside: preventCloseOnClickOutside
46
55
  ? (event) => event.preventDefault()
47
56
  : undefined, children: [(modalHeading || modalLabel) && (_jsxs(DialogHeader, { children: [modalLabel ? (_jsx(DialogDescription, { children: modalLabel })) : undefined, modalHeading ? (_jsx(DialogTitle, { children: modalHeading })) : undefined] })), children, showFooter && (_jsxs(DialogFooter, { children: [secondaryButtonText ? (_jsx(Button, { variant: 'secondary', onClick: () => close(), children: secondaryButtonText })) : undefined, primaryButtonText ? (_jsx(Button, { variant: danger ? 'destructive' : 'default', disabled: primaryButtonDisabled || loadingStatus === 'active', onClick: (event) => onRequestSubmit?.(event), children: primaryButtonText })) : undefined] }))] }) }));
48
57
  }