@camunda/ccma-saas-frontend 0.0.46 → 0.3.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 (371) 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/c4-billing-page.mocks.d.ts +3 -0
  19. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
  20. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
  21. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  22. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  23. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
  24. package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
  25. package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
  26. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  27. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  28. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  29. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
  30. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
  31. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
  32. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  33. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  34. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  35. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  36. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  37. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
  38. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
  39. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  40. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
  41. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
  42. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  43. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
  44. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
  45. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  46. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  47. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
  48. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
  49. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  50. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  51. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
  52. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
  53. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  54. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  55. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +69 -6
  56. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
  57. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
  58. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  59. package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
  60. package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
  61. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  62. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
  63. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
  64. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  65. package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
  66. package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
  67. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
  68. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
  69. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
  70. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
  71. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
  72. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
  73. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
  74. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  75. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
  76. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
  77. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
  78. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
  79. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
  80. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
  81. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
  82. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
  83. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
  84. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
  85. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
  86. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
  87. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  88. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  89. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  90. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
  91. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  92. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  93. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  94. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  95. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  96. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  97. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  98. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
  99. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
  100. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  101. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
  102. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
  103. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
  104. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
  105. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
  106. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
  107. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
  108. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
  109. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
  110. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
  111. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
  112. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
  113. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
  114. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
  115. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
  116. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
  117. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
  118. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  119. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
  120. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
  121. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
  122. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
  123. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
  124. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
  125. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
  126. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
  127. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
  128. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
  129. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
  130. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
  131. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  132. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  133. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  134. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  135. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  136. package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
  137. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  138. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  139. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
  140. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
  141. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  142. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  143. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  144. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  145. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  146. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  147. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  148. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  149. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  150. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  151. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  152. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  153. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  154. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  155. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  156. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  157. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  158. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  159. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
  160. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
  161. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  162. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  163. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
  164. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
  165. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  166. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  167. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  168. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
  169. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
  170. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  171. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
  172. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
  173. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  174. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  175. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  176. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  177. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  178. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  179. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
  180. package/lib/esm/components/c4-management-activity/c4-management-activity.js +109 -9
  181. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
  182. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
  183. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
  184. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  185. package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
  186. package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
  187. package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
  188. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  189. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  190. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  191. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  192. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  193. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  194. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
  195. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
  196. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  197. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  198. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  199. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  200. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  201. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  202. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  203. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  204. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  205. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
  206. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  207. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  208. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  209. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  210. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  211. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  212. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  213. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  214. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  215. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  216. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  217. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  218. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  219. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  220. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  221. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  222. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  223. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  224. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  225. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
  226. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  227. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  228. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  229. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  230. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  231. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  232. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  233. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  234. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  235. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
  236. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  237. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  238. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
  239. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  240. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  241. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
  242. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
  243. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
  244. package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
  245. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
  246. package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
  247. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
  248. package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
  249. package/lib/esm/externalUrls.const.d.ts +2 -0
  250. package/lib/esm/externalUrls.const.js +7 -0
  251. package/lib/esm/externalUrls.const.spec.js +2 -0
  252. package/lib/esm/i18n/c4-console-i18n.js +8 -0
  253. package/lib/esm/i18n/en/entities/orgroles.json +0 -16
  254. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  255. package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
  256. package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
  257. package/lib/esm/index.d.ts +33 -1
  258. package/lib/esm/index.js +23 -1
  259. package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
  260. package/lib/esm/runtime/c4-console-authz.js +59 -29
  261. package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
  262. package/lib/esm/runtime/c4-console-data-context.js +40 -0
  263. package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
  264. package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
  265. package/lib/esm/runtime/c4-console-data-store.js +145 -31
  266. package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
  267. package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
  268. package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
  269. package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
  270. package/lib/esm/runtime/c4-console-events-context.js +62 -0
  271. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  272. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  273. package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
  274. package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
  275. package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
  276. package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
  277. package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
  278. package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
  279. package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
  280. package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
  281. package/lib/esm/runtime/c4-user-theme.js +106 -0
  282. package/lib/esm/runtime/decode-access-token.d.ts +12 -0
  283. package/lib/esm/runtime/decode-access-token.js +39 -0
  284. package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
  285. package/lib/esm/runtime/nav/camunda-apps.js +100 -0
  286. package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
  287. package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
  288. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
  289. package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
  290. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
  291. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
  292. package/lib/esm/runtime/to-api-config.js +4 -0
  293. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  294. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  295. package/lib/esm/ui/families.d.ts +42 -0
  296. package/lib/esm/ui/families.js +46 -0
  297. package/lib/esm/ui/index.d.ts +32 -0
  298. package/lib/esm/ui/index.js +95 -0
  299. package/lib/esm/ui/switchable.d.ts +14 -0
  300. package/lib/esm/ui/switchable.js +27 -0
  301. package/lib/esm/ui/tabs.d.ts +21 -0
  302. package/lib/esm/ui/tabs.js +27 -0
  303. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  304. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
  305. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
  306. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
  307. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
  308. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
  309. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  310. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  311. package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
  312. package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
  313. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
  314. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
  315. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
  316. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  317. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  318. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  319. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
  320. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
  321. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
  322. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
  323. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  324. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  325. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
  326. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
  327. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  328. package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
  329. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
  330. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
  331. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  332. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  333. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  334. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  335. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  336. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  337. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  338. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  339. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
  340. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  341. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  342. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
  343. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  344. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
  345. package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
  346. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  347. package/lib/esm/widgets/management/c4-management-app.js +132 -23
  348. package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
  349. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  350. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  351. package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
  352. package/lib/esm/widgets/management/management-tabs.js +76 -0
  353. package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
  354. package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
  355. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  356. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  357. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  358. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
  359. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
  360. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  361. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  362. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  363. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  364. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
  365. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  366. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  367. package/lib/esm/widgets/use-extend-trial.js +36 -0
  368. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  369. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  370. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
  371. package/package.json +16 -7
@@ -6,8 +6,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  * You may not use this file except in compliance with the commercial license.
7
7
  */
8
8
  import { MeterChart } from '@carbon/charts-react';
9
- import { RadioTile, SkeletonText, Stack } from '@carbon/react';
9
+ import { RadioTile } from '@carbon/react';
10
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
11
+ import { SkeletonText, Stack } from '../../ui/index.js';
10
12
  import { ClusterStatusElement, } from '../c4-cluster-overview/applications.js';
13
+ import { DsMeterChart } from '../shared-charts/ds-meter-chart.js';
14
+ import { DS_STATUS_COLORS } from '../shared-charts/recharts-tokens.js';
11
15
  export var TelemetryForComponent;
12
16
  (function (TelemetryForComponent) {
13
17
  TelemetryForComponent.Component = ({ id, context, metrics, theme, actions, checked, loading, }) => {
@@ -43,47 +47,66 @@ export var TelemetryForComponent;
43
47
  return component;
44
48
  };
45
49
  const Chart = ({ current, id, label, ranges, theme, error, }) => {
50
+ const designSystem = useC4DesignSystem();
46
51
  let component = _jsx("p", { children: error });
47
52
  if (current >= ranges.success.min && current <= ranges.error.max * 1000) {
48
- component = (_jsx(MeterChart, { data: [
49
- {
50
- group: label,
51
- value: current,
52
- },
53
- ], options: {
54
- meter: {
55
- peak: ranges.peak,
56
- status: {
57
- ranges: [
58
- {
59
- range: [ranges.success.min, ranges.success.max],
60
- status: 'success',
61
- },
62
- {
63
- range: [ranges.warning.min, ranges.warning.max],
64
- status: 'warning',
65
- },
66
- {
67
- range: [ranges.error.min, ranges.error.max],
68
- status: 'danger',
69
- },
70
- ],
53
+ component =
54
+ designSystem === 'ds' ? (_jsx(DsMeterChart, { value: current, max: Math.max(ranges.peak, ranges.error.max), color: current <= ranges.success.max
55
+ ? DS_STATUS_COLORS.success
56
+ : current <= ranges.warning.max
57
+ ? DS_STATUS_COLORS.warning
58
+ : DS_STATUS_COLORS.danger, zones: [
59
+ {
60
+ range: [ranges.success.min, ranges.success.max],
61
+ color: DS_STATUS_COLORS.success,
62
+ },
63
+ {
64
+ range: [ranges.warning.min, ranges.warning.max],
65
+ color: DS_STATUS_COLORS.warning,
66
+ },
67
+ {
68
+ range: [ranges.error.min, ranges.error.max],
69
+ color: DS_STATUS_COLORS.danger,
71
70
  },
72
- title: {
73
- percentageIndicator: {
74
- enabled: true,
71
+ ], peak: ranges.peak }, id)) : (_jsx(MeterChart, { data: [
72
+ {
73
+ group: label,
74
+ value: current,
75
+ },
76
+ ], options: {
77
+ meter: {
78
+ peak: ranges.peak,
79
+ status: {
80
+ ranges: [
81
+ {
82
+ range: [ranges.success.min, ranges.success.max],
83
+ status: 'success',
84
+ },
85
+ {
86
+ range: [ranges.warning.min, ranges.warning.max],
87
+ status: 'warning',
88
+ },
89
+ {
90
+ range: [ranges.error.min, ranges.error.max],
91
+ status: 'danger',
92
+ },
93
+ ],
94
+ },
95
+ title: {
96
+ percentageIndicator: {
97
+ enabled: true,
98
+ },
75
99
  },
76
100
  },
77
- },
78
- height: '50px',
79
- theme: theme,
80
- legend: {
81
- enabled: false,
82
- },
83
- toolbar: {
84
- enabled: false,
85
- },
86
- } }, id));
101
+ height: '50px',
102
+ theme: theme,
103
+ legend: {
104
+ enabled: false,
105
+ },
106
+ toolbar: {
107
+ enabled: false,
108
+ },
109
+ } }, id));
87
110
  }
88
111
  return component;
89
112
  };
@@ -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, Tile } from '@carbon/react';
8
7
  import { ArrowDown, ArrowRight, DocumentMultiple_01 } from '@carbon/react/icons/index.esm.js';
8
+ import { Button, Stack, Tile } from '../../ui/index.js';
9
9
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
10
10
  const STYLES = {
11
11
  CONTENT_WIDTH: '1120px',
@@ -5,8 +5,8 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { useC3Profile } from '@camunda/camunda-composite-components';
8
- import { Button } from '@carbon/react';
9
8
  import { useCallback, useEffect, useState } from 'react';
9
+ import { Button } from '../../ui/index.js';
10
10
  import '../../themes/barbie-light.css';
11
11
  import '../../themes/barbie.css';
12
12
  import '../../themes/cyberpunk-brutalism-light.css';
@@ -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, SkeletonPlaceholder, Stack, Tile, Tooltip, } from '@carbon/react';
8
7
  import { Information } from '@carbon/react/icons/index.esm.js';
8
+ import { Button, SkeletonPlaceholder, Stack, Tile, Tooltip } from '../../ui/index.js';
9
9
  import { C4InfoTooltip } from '../c4-info-tooltip/c4-info-tooltip.js';
10
10
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
11
11
  export const C4TileWithTitleAndAction = ({ title, tooltip, description, descriptionTooltip, children, action, loading, options, }) => {
@@ -0,0 +1,14 @@
1
+ import { ToastNotification as CarbonToastNotification } from '@carbon/react';
2
+ import type { ComponentProps, JSX } from 'react';
3
+ type C4ToastNotificationProps = ComponentProps<typeof CarbonToastNotification>;
4
+ /**
5
+ * Design-system-switchable toast notification.
6
+ *
7
+ * Carbon mode renders Carbon's `ToastNotification` unchanged. ds mode renders
8
+ * the DS-native `Alert` (kind→variant, title, subtitle→description, close →
9
+ * dismissible). The host keeps its own positioning/visibility logic; this only
10
+ * swaps the rendered notification. A full toast stack (sonner) is a separate,
11
+ * later step.
12
+ */
13
+ export declare function C4ToastNotification(props: C4ToastNotificationProps): JSX.Element;
14
+ export {};
@@ -0,0 +1,27 @@
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 { Alert } from '@camunda/design-system';
8
+ import { ToastNotification as CarbonToastNotification } from '@carbon/react';
9
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
10
+ import { kindToAlertVariant } from '../c4-inline-notification/c4-inline-notification.js';
11
+ /**
12
+ * Design-system-switchable toast notification.
13
+ *
14
+ * Carbon mode renders Carbon's `ToastNotification` unchanged. ds mode renders
15
+ * the DS-native `Alert` (kind→variant, title, subtitle→description, close →
16
+ * dismissible). The host keeps its own positioning/visibility logic; this only
17
+ * swaps the rendered notification. A full toast stack (sonner) is a separate,
18
+ * later step.
19
+ */
20
+ export function C4ToastNotification(props) {
21
+ const designSystem = useC4DesignSystem();
22
+ if (designSystem !== 'ds') {
23
+ return _jsx(CarbonToastNotification, { ...props });
24
+ }
25
+ const { kind, title, subtitle, hideCloseButton, onCloseButtonClick } = props;
26
+ return (_jsx(Alert, { variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: subtitle, dismissible: !hideCloseButton, onDismiss: onCloseButtonClick }));
27
+ }
@@ -1,16 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { InlineNotification, Stack, Toggle } from '@carbon/react';
2
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
3
+ import { Stack, Toggle } from '../../ui/index.js';
8
4
  import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
5
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
9
6
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
10
7
  export const C4Toggle = ({ id, enabled, notices, onClick, permissions, title, supported, unsupportedNotification, label, }) => {
11
- const notification = !supported && unsupportedNotification ? (_jsx(InlineNotification, { kind: unsupportedNotification.kind, hideCloseButton: true, style: { maxWidth: '100%' }, title: unsupportedNotification.title, subtitle: unsupportedNotification.subtitle })) : null;
8
+ const notification = !supported && unsupportedNotification ? (_jsx(C4InlineNotification, { kind: unsupportedNotification.kind, hideCloseButton: true, style: { maxWidth: '100%' }, title: unsupportedNotification.title, subtitle: unsupportedNotification.subtitle })) : null;
9
+ const designSystem = useC4DesignSystem();
12
10
  const disabled = !permissions.mayToggle || !supported;
13
- const toggle = (_jsx("div", { children: _jsx(Toggle, { id: `c4-toggle-${id}`, toggled: enabled, disabled: disabled, "aria-disabled": disabled, "aria-label": `Switch ${title}`, labelA: label?.disabled ?? 'Disabled', labelB: label?.enabled ?? 'Enabled', onClick: permissions.mayToggle && supported ? onClick : undefined }) }));
11
+ const toggle = (_jsx("div", { className: designSystem === 'ds' ? 'c4-toggle' : undefined, children: _jsx(Toggle, { id: `c4-toggle-${id}`, toggled: enabled, disabled: disabled, "aria-disabled": disabled, "aria-label": `Switch ${title}`, labelA: label?.disabled ?? 'Disabled', labelB: label?.enabled ?? 'Enabled', onClick: permissions.mayToggle && supported ? onClick : undefined }) }));
14
12
  const component = (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h6", { children: title }), toggle, notification] }), notices.map((notice, index) => (_jsxs("div", { style: { maxWidth: '650px' }, children: [typeof notice.notice === 'string' ? (_jsx("p", { children: notice.notice })) : (_jsx("div", { children: notice.notice })), notice.action?.onClick && (_jsxs(_Fragment, { children: [' ', _jsx(C4LinkButton, { label: notice.action.label, inline: true, onClick: () => notice.action?.onClick?.() })] })), notice.action?.url && (_jsxs(_Fragment, { children: [' ', _jsx(C4ExternalLink, { label: notice.action.label, href: notice.action.url, inline: true, id: 'notice-action' })] }))] }, `notice-${index}`)))] }));
15
13
  return component;
16
14
  };
@@ -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, Tile } from '@carbon/react';
8
7
  import { ArrowRight } from '@carbon/react/icons/index.esm.js';
8
+ import { Button, Stack, Tile } from '../../ui/index.js';
9
9
  export const C4TutorialTile = ({ title, img, description, cta, }) => (_jsxs(Tile, { style: {
10
10
  display: 'grid',
11
11
  gridAutoFlow: 'row',
@@ -4,9 +4,11 @@ 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 { InlineNotification, NumberInput, Stack, Toggle } from '@carbon/react';
7
+ import { NumberInput } from '@carbon/react';
8
+ import { Stack, Toggle } from '../../ui/index.js';
9
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
8
10
  export const C4UsageAlertUpdateModal = ({ description, form, notification, }) => {
9
- const component = (_jsxs(Stack, { gap: 6, children: [_jsx(InlineNotification, { kind: 'info', hideCloseButton: true, style: { maxWidth: '100%' }, title: notification.title, subtitle: notification.subTitle }), _jsx("p", { children: description }), _jsx(NumberInput, { id: 'usage-alert-threshold', label: form.threashold.label, helperText: form.threashold.helperText, value: form.threashold.currentValue, min: form.threashold.min, max: form.threashold.max, invalid: form.threashold.errors.invalid, invalidText: form.threashold.errors.invalidText, hideSteppers: true, onChange: (event) => {
11
+ const component = (_jsxs(Stack, { gap: 6, children: [_jsx(C4InlineNotification, { kind: 'info', hideCloseButton: true, style: { maxWidth: '100%' }, title: notification.title, subtitle: notification.subTitle }), _jsx("p", { children: description }), _jsx(NumberInput, { id: 'usage-alert-threshold', label: form.threashold.label, helperText: form.threashold.helperText, value: form.threashold.currentValue, min: form.threashold.min, max: form.threashold.max, invalid: form.threashold.errors.invalid, invalidText: form.threashold.errors.invalidText, hideSteppers: true, onChange: (event) => {
10
12
  form.threashold.onChange(event.target.value);
11
13
  } }), _jsx(Toggle, { id: 'usage-alert-toggle', labelText: form.status.label, toggled: form.status.currentValue, labelB: form.status.currentValue
12
14
  ? form.status.valueLabel.on
@@ -4,11 +4,13 @@ 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 { C3DataTable } from '@camunda/camunda-composite-components';
8
- import { SkeletonPlaceholder, Stack, Tab, TabList, TabPanel, TabPanels, Tabs, } from '@carbon/react';
9
7
  import { ChartLineData, TableSplit } from '@carbon/react/icons/index.esm.js';
8
+ import { SkeletonPlaceholder, Stack } from '../../ui/index.js';
9
+ import { useTabsFamily } from '../../ui/tabs.js';
10
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
10
11
  import { UsageHistoryCharts } from './elements/usage-history-charts.js';
11
12
  export const C4UsageHistory = ({ data, loading, }) => {
13
+ const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
12
14
  let content = null;
13
15
  let table = null;
14
16
  if (data.component) {
@@ -69,7 +71,7 @@ const SimpleHistory = ({ data, headers, displayingDataText, }) => {
69
71
  ? `${rows[rows.length - 1].periodFrom} - ${rows[0].periodTo}`
70
72
  : '-',
71
73
  };
72
- const component = (_jsxs(Stack, { gap: 3, children: [_jsxs("p", { style: { width: '100%', textAlign: 'right' }, children: [_jsx("span", { style: { color: 'var(--cds-text-helper)' }, children: displayingData.prefix }), ' ', displayingData.period] }), _jsx(C3DataTable, { id: 'usage-history-table', data: rows, headers: tableHeaders, options: {
74
+ const component = (_jsxs(Stack, { gap: 3, children: [_jsxs("p", { style: { width: '100%', textAlign: 'right' }, children: [_jsx("span", { style: { color: 'var(--cds-text-helper)' }, children: displayingData.prefix }), ' ', displayingData.period] }), _jsx(C4DataTable, { id: 'usage-history-table', data: rows, headers: tableHeaders, options: {
73
75
  pageSize: 10,
74
76
  pageSizes: [10, 20, 30, 40, 50],
75
77
  tableSize: 'lg',
@@ -5,12 +5,18 @@ 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 { LineChart } from '@carbon/charts-react';
8
- import { Stack } from '@carbon/react';
8
+ import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
9
+ import { Stack } from '../../../ui/index.js';
10
+ import { DsLineChart } from '../../shared-charts/ds-line-chart.js';
9
11
  export const UsageHistoryCharts = ({ pi, di, tu, }) => {
10
12
  const component = (_jsxs(Stack, { gap: 4, children: [_jsx(ValueMetricsLineChart, { ...pi }), di && _jsx(ValueMetricsLineChart, { ...di }), tu && _jsx(ValueMetricsLineChart, { ...tu })] }));
11
13
  return component;
12
14
  };
13
15
  export const ValueMetricsLineChart = ({ axes, dataPoints, title, theme, thresholds, toolbar = { enabled: true }, zoomBar = { enabled: true }, height = 400, }) => {
16
+ const designSystem = useC4DesignSystem();
17
+ if (designSystem === 'ds') {
18
+ return (_jsx(DsLineChart, { title: title, dataPoints: dataPoints, axes: axes, thresholds: thresholds, height: height, zoomBar: zoomBar }));
19
+ }
14
20
  const data = {
15
21
  data: dataPoints,
16
22
  options: {
@@ -4,9 +4,12 @@ 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 { C3ClusterTag, C3DataTable, } from '@camunda/camunda-composite-components';
8
- import { Button, DataTableSkeleton, DatePicker, DatePickerInput, MultiSelect, Stack, } from '@carbon/react';
7
+ import { C3ClusterTag, } from '@camunda/camunda-composite-components';
8
+ import { DatePicker, DatePickerInput } from '@carbon/react';
9
9
  import { Download } from '@carbon/react/icons/index.esm.js';
10
+ import { Button, MultiSelect, Stack } from '../../ui/index.js';
11
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
12
+ import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
10
13
  export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, download, }) => {
11
14
  const compTimestampSelection = (_jsxs(DatePicker, { datePickerType: 'range', dateFormat: 'Y-m-d', value: [range.start, range.end], onChange: (newValues) => {
12
15
  range.onChange({
@@ -15,14 +18,12 @@ export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, do
15
18
  });
16
19
  }, children: [_jsx(DatePickerInput, { id: 'usage-metrics-start', placeholder: texts.range.placeHolder, labelText: texts.range.from, size: 'md' }), _jsx(DatePickerInput, { id: 'usage-metrics-end', placeholder: texts.range.placeHolder, labelText: texts.range.to, size: 'md' })] }));
17
20
  const tagsAvailable = tags.allTags.length > 0;
18
- const compTagSelection = tagsAvailable ? (
19
- // hack to align date selection with tag selection
20
- _jsx("div", { style: { marginTop: '-2px' }, children: _jsx(MultiSelect, { titleText: texts.tags, label: texts.tags, useTitleInItem: true, selectedItems: tags.values, id: 'cluster-usage-metrics-tag-selection', items: tags.allTags, onChange: (event) => {
21
+ const compTagSelection = tagsAvailable ? (_jsx("div", { style: { marginTop: '-2px' }, children: _jsx(MultiSelect, { titleText: texts.tags, label: texts.tags, useTitleInItem: true, selectedItems: tags.values, id: 'cluster-usage-metrics-tag-selection', items: tags.allTags, onChange: (event) => {
21
22
  tags.onChange(event.selectedItems);
22
23
  } }) })) : null;
23
24
  let compData = _jsx(_Fragment, {});
24
25
  if (loading) {
25
- compData = _jsx(DataTableSkeleton, { rowCount: 4 });
26
+ compData = _jsx(C4DataTableSkeleton, { rowCount: 4 });
26
27
  }
27
28
  else {
28
29
  const headers = [
@@ -93,7 +94,7 @@ export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, do
93
94
  },
94
95
  },
95
96
  ];
96
- compData = (_jsxs("div", { style: { position: 'relative' }, children: [_jsx(C3DataTable, { title: texts.data.title, headers: headers, toolbar: toolbar, data: transformedData, options: {
97
+ compData = (_jsxs("div", { style: { position: 'relative' }, children: [_jsx(C4DataTable, { title: texts.data.title, headers: headers, toolbar: toolbar, data: transformedData, options: {
97
98
  pageSize: 10,
98
99
  pageSizes: [10, 20, 30, 40, 50],
99
100
  }, queryPrefix: 'usage-metrics-per-cluster' }), _jsx("div", { style: { position: 'absolute', right: '0', top: 0 }, children: _jsx(Button, { kind: 'ghost', renderIcon: () => (_jsx("div", { style: { marginLeft: '4px' }, children: _jsx(Download, { style: { fill: 'currentcolor' } }) })), onClick: download.onClick, children: download.label }) })] }));
@@ -4,8 +4,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } 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 { Stack } from '@carbon/react';
8
7
  import { useState } from 'react';
8
+ import { Stack } from '../../ui/index.js';
9
9
  import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
10
10
  import { C4Tabs } from '../c4-tabs/c4-tabs.js';
11
11
  import { AuthorizedResources } from './tabs/authorized-resources.js';
@@ -14,7 +14,7 @@ import { Roles } from './tabs/roles.js';
14
14
  const noop = () => null;
15
15
  export const C4UserDetails = ({ details, authorizedResources, roles, tabs, infoFor88, }) => {
16
16
  const detailsComponent = _jsx(Details, { ...details });
17
- const authorizedResourcesComponent = (_jsxs(_Fragment, { children: [infoFor88?.visible && (_jsx("div", { style: { marginBottom: '24px' }, children: _jsx(C4ActionableNotification, { kind: 'info', lowContrast: true, actionButtonLabel: infoFor88?.action?.label ?? '', onActionButtonClick: infoFor88?.action?.onClick ?? noop, title: infoFor88?.title, subtitle: (infoFor88?.description ?? ''), orientation: 'vertical' }) })), _jsx(AuthorizedResources, { ...authorizedResources })] }));
17
+ const authorizedResourcesComponent = (_jsxs(_Fragment, { children: [infoFor88?.visible && (_jsx("div", { style: { marginBottom: '24px' }, children: _jsx(C4ActionableNotification, { appearance: 'banner', kind: 'info', lowContrast: true, actionButtonLabel: infoFor88?.action?.label ?? '', onActionButtonClick: infoFor88?.action?.onClick ?? noop, title: infoFor88?.title, subtitle: (infoFor88?.description ?? ''), orientation: 'vertical' }) })), _jsx(AuthorizedResources, { ...authorizedResources })] }));
18
18
  const rolesComponent = _jsx(Roles, { ...roles });
19
19
  const tabsContent = [
20
20
  {
@@ -5,11 +5,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C4IdentityContextProvider, C4ResourceAuthorizations, } from '@camunda/c4-identity';
8
- import { Stack } from '@carbon/react';
8
+ import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
9
+ import { Stack } from '../../../ui/index.js';
9
10
  export const AuthorizedResources = ({ config, }) => {
11
+ const designSystem = useC4DesignSystem();
10
12
  const component = (_jsx(Stack, { gap: 6, children: _jsx(C4IdentityContextProvider, { camundaAuth: {
11
13
  token: config.camundaAuth.token,
12
14
  refreshTokenMethod: config.camundaAuth.refreshTokenMethod,
13
- }, apiBaseUrl: config.apiBaseUrl, organizationId: config.organizationId, docsUrl: config.docsUrl, children: _jsx(C4ResourceAuthorizations, { userId: config.userId }) }) }));
15
+ }, apiBaseUrl: config.apiBaseUrl, organizationId: config.organizationId, docsUrl: config.docsUrl, designSystem: designSystem, children: _jsx(C4ResourceAuthorizations, { userId: config.userId }) }) }));
14
16
  return component;
15
17
  };
@@ -1,17 +1,13 @@
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, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
2
+ import { Stack } from '../../../ui/index.js';
3
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../../c4-structured-list/c4-structured-list.js';
8
4
  export const Details = ({ items }) => {
9
- const component = (_jsx(Stack, { gap: 6, children: _jsx(StructuredListWrapper, { children: _jsx(StructuredListBody, { children: items.map((item) => {
10
- return (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: {
5
+ const component = (_jsx(Stack, { gap: 6, children: _jsx(C4StructuredListWrapper, { children: _jsx(C4StructuredListBody, { children: items.map((item) => {
6
+ return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: {
11
7
  width: '200px',
12
- }, children: _jsx("strong", { children: item.label }) }), _jsx(StructuredListCell, { noWrap: true, style: {
8
+ }, children: _jsx("strong", { children: item.label }) }), _jsx(C4StructuredListCell, { noWrap: true, style: {
13
9
  width: '200px',
14
- }, children: item.value }), _jsx(StructuredListCell, { children: " " })] }, item.key));
10
+ }, children: item.value }), _jsx(C4StructuredListCell, { children: " " })] }, item.key));
15
11
  }) }) }) }));
16
12
  return component;
17
13
  };
@@ -1,11 +1,6 @@
1
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 { C3DataTable, } from '@camunda/camunda-composite-components';
8
- import { Stack } from '@carbon/react';
2
+ import { Stack } from '../../../ui/index.js';
3
+ import { C4DataTable } from '../../c4-data-table/c4-data-table.js';
9
4
  export const Roles = ({ headers, data, actions, permissions, }) => {
10
5
  const tableHeaders = [
11
6
  {
@@ -46,7 +41,7 @@ export const Roles = ({ headers, data, actions, permissions, }) => {
46
41
  },
47
42
  });
48
43
  }
49
- const component = (_jsx(Stack, { gap: 6, children: _jsx(C3DataTable, { id: 'roles-table', data: rows, headers: tableHeaders, options: {
44
+ const component = (_jsx(Stack, { gap: 6, children: _jsx(C4DataTable, { id: 'roles-table', data: rows, headers: tableHeaders, options: {
50
45
  pageSize: 10,
51
46
  tableSize: 'lg',
52
47
  useZebraStyles: false,
@@ -0,0 +1,47 @@
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 { render } from '@testing-library/react';
8
+ import { vi } from 'vitest';
9
+ import { C4BarChart } from '../c4-charts-dashboard/elements/bar-chart.js';
10
+ import { DsLineChart } from './ds-line-chart.js';
11
+ import { DsMeterChart } from './ds-meter-chart.js';
12
+ import { DS_STATUS_COLORS } from './recharts-tokens.js';
13
+ vi.mock('../../runtime/c4-console-runtime-context', () => ({
14
+ useC4DesignSystem: () => 'ds',
15
+ }));
16
+ describe('DS charts smoke', () => {
17
+ it('renders DsLineChart with the design system LineChart', () => {
18
+ const { container } = render(_jsx(DsLineChart, { title: 'Instances', axes: { titleLeft: 'count', titleBottom: 'date' }, thresholds: [{ value: 5, label: 'limit', fillColor: 'red' }], dataPoints: [
19
+ { group: 'pi', date: '2024-01-01', value: 3 },
20
+ { group: 'pi', date: '2024-01-02', value: 7 },
21
+ { group: 'di', date: '2024-01-01', value: 1 },
22
+ { group: 'di', date: '2024-01-02', value: 4 },
23
+ ] }));
24
+ expect(container.querySelector('[data-slot="chart"]')).toBeTruthy();
25
+ });
26
+ it('renders DsMeterChart as a design system Meter with a range from color', () => {
27
+ const { container } = render(_jsx(DsMeterChart, { value: 90, max: 100, color: DS_STATUS_COLORS.danger }));
28
+ expect(container.querySelector('[role="meter"]')).toBeTruthy();
29
+ });
30
+ it('renders DsMeterChart with status zones', () => {
31
+ const { container } = render(_jsx(DsMeterChart, { value: 40, max: 100, peak: 80, zones: [
32
+ { range: [0, 50], color: DS_STATUS_COLORS.success },
33
+ { range: [50, 80], color: DS_STATUS_COLORS.warning },
34
+ { range: [80, 100], color: DS_STATUS_COLORS.danger },
35
+ ] }));
36
+ expect(container.querySelector('[role="meter"]')).toBeTruthy();
37
+ });
38
+ it('renders C4BarChart with the design system BarChart in ds mode', () => {
39
+ const { container } = render(_jsx(C4BarChart, { type: 'bar', tab: 'usage', title: 'Usage', axes: { titleLeft: 'count', titleBottom: 'month' }, mode: 'stacked', theme: 'g10', dataPoints: [
40
+ { group: 'pi', key: 'Jan', value: 3 },
41
+ { group: 'di', key: 'Jan', value: 2 },
42
+ { group: 'pi', key: 'Feb', value: 5 },
43
+ { group: 'di', key: 'Feb', value: 1 },
44
+ ] }));
45
+ expect(container.querySelector('[data-slot="chart"]')).toBeTruthy();
46
+ });
47
+ });
@@ -0,0 +1,33 @@
1
+ import type { JSX } from 'react';
2
+ export interface DsLineChartDataPoint {
3
+ group: string;
4
+ date: string;
5
+ value: number;
6
+ }
7
+ export interface DsLineChartThreshold {
8
+ value: number;
9
+ label: string;
10
+ fillColor: string;
11
+ }
12
+ export interface DsLineChartProps {
13
+ title?: string;
14
+ dataPoints: DsLineChartDataPoint[];
15
+ axes: {
16
+ titleLeft: string;
17
+ titleBottom: string;
18
+ };
19
+ thresholds?: DsLineChartThreshold[];
20
+ height?: number;
21
+ zoomBar?: {
22
+ enabled: boolean;
23
+ };
24
+ }
25
+ /**
26
+ * ds-mode line chart, rendered with the `@camunda/design-system` `LineChart`.
27
+ * Used by `C4LineChart` and `ValueMetricsLineChart`, whose carbon paths render
28
+ * `@carbon/charts-react` unchanged; this covers both ds branches so the DS
29
+ * chart wiring lives once. The DS chart has no zoom/brush or axis-title API, so
30
+ * the `zoomBar`/`axes` props are accepted (to keep the carbon-side call sites
31
+ * unchanged) but only the chart title is surfaced in ds mode.
32
+ */
33
+ export declare function DsLineChart({ title, dataPoints, thresholds, height, }: DsLineChartProps): JSX.Element;
@@ -0,0 +1,55 @@
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 { LineChart } from '@camunda/design-system';
8
+ import { useMemo } from 'react';
9
+ import { getDsSeriesColor } from './recharts-tokens.js';
10
+ function formatDate(value) {
11
+ const date = new Date(String(value));
12
+ return Number.isNaN(date.getTime())
13
+ ? String(value)
14
+ : Intl.DateTimeFormat('en-US', { month: 'short', day: '2-digit' }).format(date);
15
+ }
16
+ /** Pivots flat {group, date, value} rows into one row per date, keyed by group. */
17
+ function pivotByDate(dataPoints) {
18
+ const groupSet = new Set();
19
+ const rowsByDate = new Map();
20
+ for (const point of dataPoints) {
21
+ groupSet.add(point.group);
22
+ const row = rowsByDate.get(point.date) ?? { date: point.date };
23
+ row[point.group] = point.value;
24
+ rowsByDate.set(point.date, row);
25
+ }
26
+ const rows = Array.from(rowsByDate.values()).sort((a, b) => String(a.date).localeCompare(String(b.date)));
27
+ // Sort groups so the group→colour mapping stays stable regardless of the
28
+ // order the points arrive in.
29
+ return { rows, groups: Array.from(groupSet).sort() };
30
+ }
31
+ /**
32
+ * ds-mode line chart, rendered with the `@camunda/design-system` `LineChart`.
33
+ * Used by `C4LineChart` and `ValueMetricsLineChart`, whose carbon paths render
34
+ * `@carbon/charts-react` unchanged; this covers both ds branches so the DS
35
+ * chart wiring lives once. The DS chart has no zoom/brush or axis-title API, so
36
+ * the `zoomBar`/`axes` props are accepted (to keep the carbon-side call sites
37
+ * unchanged) but only the chart title is surfaced in ds mode.
38
+ */
39
+ export function DsLineChart({ title, dataPoints, thresholds, height = 400, }) {
40
+ const { rows, groups } = useMemo(() => pivotByDate(dataPoints), [dataPoints]);
41
+ const config = useMemo(() => Object.fromEntries(groups.map((group, index) => [
42
+ group,
43
+ { label: group, color: getDsSeriesColor(index) },
44
+ ])), [groups]);
45
+ const referenceLines = thresholds?.map((threshold) => ({
46
+ value: threshold.value,
47
+ label: threshold.label,
48
+ }));
49
+ return (_jsxs("div", { children: [title && (_jsx("div", { style: {
50
+ fontWeight: 600,
51
+ fontSize: 14,
52
+ marginBottom: 8,
53
+ color: 'var(--neutral-foreground-strong)',
54
+ }, children: title })), _jsx("div", { style: { height }, children: _jsx(LineChart, { className: 'h-full w-full', data: rows, categoryKey: 'date', config: config, curve: 'monotone', connectNulls: true, referenceLines: referenceLines, tickFormatter: formatDate }) })] }));
55
+ }
@@ -0,0 +1,22 @@
1
+ import type { JSX } from 'react';
2
+ export interface DsMeterZone {
3
+ range: [number, number];
4
+ color: string;
5
+ }
6
+ export interface DsMeterChartProps {
7
+ value: number;
8
+ max: number;
9
+ color?: string;
10
+ zones?: DsMeterZone[];
11
+ /** Draws a vertical reference marker at this value (e.g. a historical peak). */
12
+ peak?: number;
13
+ }
14
+ /**
15
+ * ds-mode meter/gauge, rendered with the `@camunda/design-system` `Meter`.
16
+ * Used wherever carbon mode renders `@carbon/charts-react`'s `MeterChart` — a
17
+ * simple current/max proportional bar, optionally with status zones and a peak
18
+ * marker. The value label is rendered by the callers, so `showValue` is off.
19
+ * The DS `Meter` has a fixed track height, so there's no `height` prop (unlike
20
+ * the carbon `MeterChart`).
21
+ */
22
+ export declare function DsMeterChart({ value, max, color, zones, peak, }: DsMeterChartProps): JSX.Element;