@camunda/ccma-saas-frontend 0.18.11 → 0.19.1

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 (260) 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-client-details/c4-cluster-client-details-app.js +2 -2
  186. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
  187. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
  188. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
  189. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
  190. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
  191. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
  192. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +8 -9
  193. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
  194. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
  195. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
  196. package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
  197. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
  198. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  199. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
  200. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
  201. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
  202. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
  203. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
  204. package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
  205. package/lib/esm/widgets/management/c4-management-app.js +7 -10
  206. package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
  207. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
  208. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
  209. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
  210. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
  211. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
  212. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
  213. package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
  214. package/package.json +3 -14
  215. package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
  216. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
  217. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
  218. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
  219. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
  220. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
  221. package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
  222. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
  223. package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
  224. package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
  225. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
  226. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
  227. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
  228. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
  229. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
  230. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
  231. package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
  232. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
  233. package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
  234. package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
  235. package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
  236. package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
  237. package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
  238. package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
  239. package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
  240. package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
  241. package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
  242. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
  243. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
  244. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
  245. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
  246. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
  247. package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
  248. package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
  249. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
  250. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
  251. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
  252. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
  253. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
  254. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
  255. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
  256. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
  257. package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
  258. package/lib/esm/ui/c4-definition-tooltip.js +0 -43
  259. package/lib/esm/ui/switchable.d.ts +0 -14
  260. package/lib/esm/ui/switchable.js +0 -27
@@ -1,21 +1,36 @@
1
- import { StructuredListBody as CarbonBody, StructuredListCell as CarbonCell, StructuredListHead as CarbonHead, StructuredListRow as CarbonRow, StructuredListSkeleton as CarbonSkeleton, StructuredListWrapper as CarbonWrapper } from '@carbon/react';
2
- import type { ComponentProps, JSX } from 'react';
1
+ import { type CSSProperties, type JSX, type ReactNode } from 'react';
3
2
  /**
4
- * Design-system-switchable structured list.
3
+ * Structured list on top of the DS `Table` primitives.
5
4
  *
6
- * Carbon has no DS equivalent and the DS ships no StructuredList, so the ds
7
- * variants render the DS `Table` primitives — giving the DS table look for what
8
- * is mostly a key/value layout (`StructuredListCell head` = the label, rendered
9
- * as a row-scoped `<th>`; the value cell as `<td>`). All sub-components read the
10
- * same `designSystem` flag, so a list never mixes Carbon and DS parts.
11
- *
12
- * Each sub-component mirrors its Carbon counterpart's name/props so call sites
13
- * only swap the import. Carbon-only props (isFlush, selection, ...) are accepted
14
- * and ignored in ds mode; `isCondensed` maps to the DS table `sm` size.
5
+ * The DS ships no StructuredList, so a `head` cell renders as a row-scoped
6
+ * `<th>` (the label) and the value cell as `<td>`. `isCondensed` maps to the
7
+ * DS table `sm` size. `isFlush` is accepted and ignored.
15
8
  */
16
- export declare function C4StructuredListWrapper(props: ComponentProps<typeof CarbonWrapper>): JSX.Element;
17
- export declare function C4StructuredListHead(props: ComponentProps<typeof CarbonHead>): JSX.Element;
18
- export declare function C4StructuredListBody(props: ComponentProps<typeof CarbonBody>): JSX.Element;
19
- export declare function C4StructuredListRow(props: ComponentProps<typeof CarbonRow>): JSX.Element;
20
- export declare function C4StructuredListCell(props: ComponentProps<typeof CarbonCell>): JSX.Element;
21
- export declare function C4StructuredListSkeleton(props: ComponentProps<typeof CarbonSkeleton>): JSX.Element;
9
+ type WrapperProps = {
10
+ children?: ReactNode;
11
+ isCondensed?: boolean;
12
+ isFlush?: boolean;
13
+ style?: CSSProperties;
14
+ 'aria-label'?: string;
15
+ };
16
+ type PartProps = {
17
+ children?: ReactNode;
18
+ head?: boolean;
19
+ style?: CSSProperties;
20
+ };
21
+ type CellProps = {
22
+ children?: ReactNode;
23
+ head?: boolean;
24
+ noWrap?: boolean;
25
+ style?: CSSProperties;
26
+ };
27
+ type SkeletonProps = {
28
+ rowCount?: number;
29
+ };
30
+ export declare function C4StructuredListWrapper(props: WrapperProps): JSX.Element;
31
+ export declare function C4StructuredListHead(props: PartProps): JSX.Element;
32
+ export declare function C4StructuredListBody(props: PartProps): JSX.Element;
33
+ export declare function C4StructuredListRow(props: PartProps): JSX.Element;
34
+ export declare function C4StructuredListCell(props: CellProps): JSX.Element;
35
+ export declare function C4StructuredListSkeleton(props: SkeletonProps): JSX.Element;
36
+ export {};
@@ -5,85 +5,40 @@ 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 { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '@camunda/design-system';
8
- import { StructuredListBody as CarbonBody, StructuredListCell as CarbonCell, StructuredListHead as CarbonHead, StructuredListRow as CarbonRow, StructuredListSkeleton as CarbonSkeleton, StructuredListWrapper as CarbonWrapper, } from '@carbon/react';
9
- import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
10
- /**
11
- * Design-system-switchable structured list.
12
- *
13
- * Carbon has no DS equivalent and the DS ships no StructuredList, so the ds
14
- * variants render the DS `Table` primitives — giving the DS table look for what
15
- * is mostly a key/value layout (`StructuredListCell head` = the label, rendered
16
- * as a row-scoped `<th>`; the value cell as `<td>`). All sub-components read the
17
- * same `designSystem` flag, so a list never mixes Carbon and DS parts.
18
- *
19
- * Each sub-component mirrors its Carbon counterpart's name/props so call sites
20
- * only swap the import. Carbon-only props (isFlush, selection, ...) are accepted
21
- * and ignored in ds mode; `isCondensed` maps to the DS table `sm` size.
22
- */
8
+ import { createContext, useContext, } from 'react';
23
9
  export function C4StructuredListWrapper(props) {
24
- const designSystem = useC4DesignSystem();
25
- if (designSystem !== 'ds') {
26
- return _jsx(CarbonWrapper, { ...props });
27
- }
28
10
  return (_jsx(Table, { size: props.isCondensed ? 'sm' : 'md', "aria-label": props['aria-label'], children: props.children }));
29
11
  }
12
+ // A head cell inside `C4StructuredListHead` heads a column. Elsewhere it
13
+ // heads its row.
14
+ const InHeadContext = createContext(false);
30
15
  export function C4StructuredListHead(props) {
31
- const designSystem = useC4DesignSystem();
32
- if (designSystem !== 'ds') {
33
- return _jsx(CarbonHead, { ...props });
34
- }
35
- return _jsx(TableHeader, { children: props.children });
16
+ return (_jsx(InHeadContext.Provider, { value: true, children: _jsx(TableHeader, { children: props.children }) }));
36
17
  }
37
18
  export function C4StructuredListBody(props) {
38
- const designSystem = useC4DesignSystem();
39
- if (designSystem !== 'ds') {
40
- return _jsx(CarbonBody, { ...props });
41
- }
42
19
  return _jsx(TableBody, { children: props.children });
43
20
  }
44
21
  export function C4StructuredListRow(props) {
45
- const designSystem = useC4DesignSystem();
46
- if (designSystem !== 'ds') {
47
- return _jsx(CarbonRow, { ...props });
48
- }
49
- return _jsx(TableRow, { children: props.children });
22
+ return _jsx(TableRow, { style: props.style, children: props.children });
50
23
  }
51
24
  export function C4StructuredListCell(props) {
52
- const designSystem = useC4DesignSystem();
53
- if (designSystem !== 'ds') {
54
- return _jsx(CarbonCell, { ...props });
55
- }
56
- // Vertically center cell content so single-line rows read centered in their
57
- // row height (the deployed lists set fixed row heights, which left top-aligned
58
- // text floating at the top). `middle` also centers the CodeSnippet cells that
59
- // wrap their content in a `height: 0` Layer (a Carbon trick): the zero-height
60
- // box is centered and the snippet overflows symmetrically, so it stays in view
61
- // (only `bottom`/`baseline` would drop it out). Call sites that need
62
- // top-alignment (e.g. the multi-line description editor) pass `verticalAlign`
63
- // via `style`, which wins over this default.
25
+ const inHead = useContext(InHeadContext);
26
+ // `middle` keeps single-line rows centered in fixed-height rows. It also
27
+ // keeps the CodeSnippet cells in view: they sit in a `height: 0` wrapper,
28
+ // and only `middle` lets that box overflow symmetrically.
29
+ // Call sites that need top alignment pass `verticalAlign` in `style`.
64
30
  //
65
- // Carbon's `noWrap` prop was silently dropped here, so a label cell that
66
- // asked for it (e.g. the client-credentials "Cluster URL"/"Client Id" rows)
67
- // fell back to the app-wide DS table-cell rule in `c4-ui.css`
68
- // (`white-space: normal; overflow-wrap: anywhere`, added for DataTable long
69
- // content). With no minimum content width to hold it up, the browser's table
70
- // layout shrank the label column far below its `width` hint whenever the
71
- // sibling value cell wanted more space, and the label text hard-wrapped one
72
- // character per line. Re-assert `nowrap` inline (it beats that attribute
73
- // selector on specificity) to match Carbon's rendering.
31
+ // `noWrap` is set inline because the app-wide DS table-cell rule in
32
+ // `c4-ui.css` (`white-space: normal; overflow-wrap: anywhere`) would
33
+ // otherwise shrink a label column to one character per line.
74
34
  const style = {
75
35
  verticalAlign: 'middle',
76
36
  ...(props.noWrap && { whiteSpace: 'nowrap', overflowWrap: 'normal' }),
77
37
  ...props.style,
78
38
  };
79
- // A `head` cell is the row label (Carbon's bold left column) → row-scoped th.
80
- return props.head ? (_jsx(TableHead, { scope: 'row', style: style, children: props.children })) : (_jsx(TableCell, { style: style, children: props.children }));
39
+ return props.head ? (_jsx(TableHead, { scope: inHead ? 'col' : 'row', style: style, children: props.children })) : (_jsx(TableCell, { style: style, children: props.children }));
81
40
  }
82
41
  export function C4StructuredListSkeleton(props) {
83
- const designSystem = useC4DesignSystem();
84
- if (designSystem !== 'ds') {
85
- return _jsx(CarbonSkeleton, { ...props });
86
- }
87
42
  const rowCount = props.rowCount ?? 5;
88
43
  return (_jsx("div", { className: 'overflow-hidden rounded-xl border bg-neutral-background-subtle', children: Array.from({ length: rowCount }).map((_, index) => (_jsx("div", { className: 'border-b px-4 py-3 last:border-0', children: _jsx("div", { className: 'h-4 w-3/4 animate-pulse rounded bg-neutral-background-strong' }) }, index))) }));
89
44
  }
@@ -5,15 +5,11 @@ 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 { useEffect, useMemo, useRef, useState } from 'react';
8
- import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
9
- import { useTabsFamily } from '../../ui/tabs.js';
10
- const TabPanelStyles = { paddingLeft: 0, paddingRight: 0 };
11
- // ds mode: the DS tabs keep only 8px between the tab list and the content.
8
+ import { Tab, TabList, TabPanel, TabPanels, Tabs, TabsSkeleton, } from '../../ui/tabs.js';
9
+ // The DS tabs keep only 8px between the tab list and the content.
12
10
  // The detail pages of Hub add 16px on top of that (24px), so this does too.
13
- const DsTabPanelStyles = { ...TabPanelStyles, paddingTop: '1rem' };
11
+ const TabPanelStyles = { paddingLeft: 0, paddingRight: 0, paddingTop: '1rem' };
14
12
  export const C4Tabs = ({ tabs, desiredTabId, onTabChange, loading = false, }) => {
15
- const { Tabs, Tab, TabList, TabPanel, TabPanels, TabsSkeleton } = useTabsFamily();
16
- const isDs = useC4DesignSystem() === 'ds';
17
13
  const initializedTabs = useRef(new Set());
18
14
  const visibleTabs = useMemo(() => tabs.filter((tab) => tab.visible === undefined || tab.visible), [tabs]);
19
15
  useEffect(() => {
@@ -51,5 +47,5 @@ export const C4Tabs = ({ tabs, desiredTabId, onTabChange, loading = false, }) =>
51
47
  if (event.selectedIndex !== activeTabIndex && onTabChange) {
52
48
  onTabChange(newDesiredTab);
53
49
  }
54
- }, children: [_jsx(TabList, { "aria-label": 'tabs', children: visibleTabs.map((tab) => (_jsx(Tab, { children: tab.label }, `${tab.id}-label`))) }), _jsx(TabPanels, { children: visibleTabs.map((tab) => (_jsx(TabPanel, { style: isDs ? DsTabPanelStyles : TabPanelStyles, children: tab.component }, tab.id))) })] }));
50
+ }, children: [_jsx(TabList, { "aria-label": 'tabs', children: visibleTabs.map((tab) => (_jsx(Tab, { children: tab.label }, `${tab.id}-label`))) }), _jsx(TabPanels, { children: visibleTabs.map((tab) => (_jsx(TabPanel, { style: TabPanelStyles, children: tab.component }, tab.id))) })] }));
55
51
  };
@@ -4,7 +4,7 @@ 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 { Information } from '@carbon/react/icons/index.esm.js';
7
+ import { Info } from 'lucide-react';
8
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';
@@ -20,7 +20,7 @@ export const C4TileWithTitleAndAction = ({ title, tooltip, description, descript
20
20
  switch (currentOptions.layer) {
21
21
  case 2:
22
22
  fontSize = '14px';
23
- borderColor = 'var(--cds-border-subtle)';
23
+ borderColor = 'var(--border)';
24
24
  borderWidth = '1px';
25
25
  borderStyle = 'solid';
26
26
  break;
@@ -31,7 +31,7 @@ export const C4TileWithTitleAndAction = ({ title, tooltip, description, descript
31
31
  flexWrap: 'wrap',
32
32
  height: '48px',
33
33
  fontSize: '12px',
34
- }, children: [_jsx("h6", { style: { fontSize }, children: title }), tooltip && (_jsx(Tooltip, { label: tooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(Information, {}) }) }))] }), description && (_jsxs("p", { style: { color: 'var(--cds-text-helper)' }, children: [description, descriptionTooltip && (_jsx(C4InfoTooltip, { label: descriptionTooltip }))] }))] }), action && !isLoading && (_jsx(C4LinkButton, { label: action.label, ariaLabel: action.ariaLabel, onClick: () => action.onClick(), style: {
34
+ }, children: [_jsx("h6", { style: { fontSize }, children: title }), tooltip && (_jsx(Tooltip, { label: tooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(Info, { size: 16 }) }) }))] }), description && (_jsxs("p", { style: { color: 'var(--neutral-foreground-subtle)' }, children: [description, descriptionTooltip && (_jsx(C4InfoTooltip, { label: descriptionTooltip }))] }))] }), action && !isLoading && (_jsx(C4LinkButton, { label: action.label, ariaLabel: action.ariaLabel, onClick: () => action.onClick(), style: {
35
35
  justifySelf: 'end',
36
36
  alignSelf: 'start',
37
37
  }, icon: action.icon }))] }), isLoading && _jsx(SkeletonPlaceholder, { style: { width: '100%' } }), !isLoading && _jsx("div", { children: children })] }) }));
@@ -1,14 +1,18 @@
1
- import { ToastNotification as CarbonToastNotification } from '@carbon/react';
2
- import type { ComponentProps, JSX } from 'react';
3
- type C4ToastNotificationProps = ComponentProps<typeof CarbonToastNotification>;
1
+ import type { CSSProperties, JSX, ReactNode } from 'react';
2
+ type C4ToastNotificationProps = {
3
+ kind?: string;
4
+ title?: ReactNode;
5
+ subtitle?: ReactNode;
6
+ hideCloseButton?: boolean;
7
+ lowContrast?: boolean;
8
+ onCloseButtonClick?: () => void;
9
+ style?: CSSProperties;
10
+ };
4
11
  /**
5
- * Design-system-switchable toast notification.
12
+ * Toast notification on top of the DS `Alert`.
6
13
  *
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.
14
+ * The host keeps its own positioning and visibility logic. `lowContrast` and
15
+ * `style` are accepted for call-site compatibility and have no effect.
12
16
  */
13
17
  export declare function C4ToastNotification(props: C4ToastNotificationProps): JSX.Element;
14
18
  export {};
@@ -5,23 +5,14 @@ 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 { Alert } from '@camunda/design-system';
8
- import { ToastNotification as CarbonToastNotification } from '@carbon/react';
9
- import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
10
8
  import { kindToAlertVariant } from '../c4-inline-notification/c4-inline-notification.js';
11
9
  /**
12
- * Design-system-switchable toast notification.
10
+ * Toast notification on top of the DS `Alert`.
13
11
  *
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.
12
+ * The host keeps its own positioning and visibility logic. `lowContrast` and
13
+ * `style` are accepted for call-site compatibility and have no effect.
19
14
  */
20
15
  export function C4ToastNotification(props) {
21
- const designSystem = useC4DesignSystem();
22
- if (designSystem !== 'ds') {
23
- return _jsx(CarbonToastNotification, { ...props });
24
- }
25
16
  const { kind, title, subtitle, hideCloseButton, onCloseButtonClick } = props;
26
17
  return (_jsx(Alert, { variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: subtitle, dismissible: !hideCloseButton, onDismiss: onCloseButtonClick }));
27
18
  }
@@ -1,14 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
3
2
  import { Stack, Toggle } from '../../ui/index.js';
4
3
  import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
5
4
  import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
6
5
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
7
6
  export const C4Toggle = ({ id, enabled, notices, onClick, permissions, title, supported, unsupportedNotification, label, }) => {
8
7
  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();
10
8
  const disabled = !permissions.mayToggle || !supported;
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 }) }));
9
+ const toggle = (_jsx("div", { className: 'c4-toggle', 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 }) }));
12
10
  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}`)))] }));
13
11
  return component;
14
12
  };
@@ -4,11 +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 { ArrowRight } from '@carbon/react/icons/index.esm.js';
7
+ import { ArrowRight } from 'lucide-react';
8
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',
12
12
  gridTemplateRows: 'auto 1fr',
13
13
  gap: '10px',
14
- }, className: 'cds--layer-two', children: [_jsxs(Stack, { orientation: 'vertical', gap: 3, children: [_jsx("img", { src: img.src, alt: img.alt, width: '100%', style: { justifySelf: 'center' } }), _jsxs(Stack, { children: [_jsx("h3", { children: title }), _jsx("p", { children: description })] })] }), _jsx(Button, { onClick: cta.onClick, renderIcon: ArrowRight, kind: 'tertiary', className: 'cds--switcher__item', style: { alignSelf: 'end', marginTop: '10px' }, children: cta.label })] }));
14
+ }, children: [_jsxs(Stack, { orientation: 'vertical', gap: 3, children: [_jsx("img", { src: img.src, alt: img.alt, width: '100%', style: { justifySelf: 'center' } }), _jsxs(Stack, { children: [_jsx("h3", { children: title }), _jsx("p", { children: description })] })] }), _jsx(Button, { onClick: cta.onClick, renderIcon: ArrowRight, kind: 'tertiary', style: { alignSelf: 'end', marginTop: '10px' }, children: cta.label })] }));
@@ -1,15 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { NumberInput } from '@carbon/react';
8
- import { Stack, Toggle } from '../../ui/index.js';
2
+ import { Stack, TextInput, Toggle } from '../../ui/index.js';
9
3
  import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
10
4
  export const C4UsageAlertUpdateModal = ({ description, form, notification, }) => {
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) => {
12
- form.threashold.onChange(event.target.value);
5
+ 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(TextInput, { id: 'usage-alert-threshold', type: 'number', labelText: 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, onChange: (event) => {
6
+ form.threashold.onChange(Number(event.target.value));
13
7
  } }), _jsx(Toggle, { id: 'usage-alert-toggle', labelText: form.status.label, toggled: form.status.currentValue, labelB: form.status.currentValue
14
8
  ? form.status.valueLabel.on
15
9
  : form.status.valueLabel.off, onToggle: (checked) => form.status.onChange(checked) })] }));
@@ -4,14 +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 { ChartLineData, TableSplit } from '@carbon/react/icons/index.esm.js';
7
+ import { ChartLine, Table } from 'lucide-react';
8
8
  import { useMemo } from 'react';
9
9
  import { SkeletonPlaceholder, Stack } from '../../ui/index.js';
10
- import { useTabsFamily } from '../../ui/tabs.js';
10
+ import { Tab, TabList, TabPanel, TabPanels, Tabs } from '../../ui/tabs.js';
11
11
  import { C4DataTable } from '../c4-data-table/c4-data-table.js';
12
12
  import { UsageHistoryCharts } from './elements/usage-history-charts.js';
13
13
  export const C4UsageHistory = ({ data, loading, }) => {
14
- const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
15
14
  let content = null;
16
15
  let table = null;
17
16
  if (data.component) {
@@ -22,7 +21,7 @@ export const C4UsageHistory = ({ data, loading, }) => {
22
21
  }
23
22
  const charts = data.charts ? _jsx(UsageHistoryCharts, { ...data.charts }) : null;
24
23
  if (charts) {
25
- content = (_jsxs(Tabs, { children: [_jsxs(TabList, { contained: true, "aria-label": 'usage-list', children: [_jsx(Tab, { renderIcon: TableSplit, children: data.titles.table }), _jsx(Tab, { renderIcon: ChartLineData, children: data.titles.charts })] }), _jsxs(TabPanels, { children: [_jsx(TabPanel, { style: { padding: 0 }, children: table }), _jsx(TabPanel, { children: charts })] })] }));
24
+ content = (_jsxs(Tabs, { children: [_jsxs(TabList, { contained: true, "aria-label": 'usage-list', children: [_jsx(Tab, { renderIcon: Table, children: data.titles.table }), _jsx(Tab, { renderIcon: ChartLine, children: data.titles.charts })] }), _jsxs(TabPanels, { children: [_jsx(TabPanel, { style: { padding: 0 }, children: table }), _jsx(TabPanel, { children: charts })] })] }));
26
25
  }
27
26
  else {
28
27
  content = table;
@@ -74,7 +73,7 @@ const SimpleHistory = ({ data, headers, displayingDataText, }) => {
74
73
  ? `${rows[rows.length - 1].periodFrom} - ${rows[0].periodTo}`
75
74
  : '-',
76
75
  };
77
- 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: {
76
+ const component = (_jsxs(Stack, { gap: 3, children: [_jsxs("p", { style: { width: '100%', textAlign: 'right' }, children: [_jsx("span", { style: { color: 'var(--neutral-foreground-subtle)' }, children: displayingData.prefix }), ' ', displayingData.period] }), _jsx(C4DataTable, { id: 'usage-history-table', data: rows, headers: tableHeaders, options: {
78
77
  pageSize: 10,
79
78
  pageSizes: [10, 20, 30, 40, 50],
80
79
  tableSize: 'lg',
@@ -4,51 +4,14 @@ 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 { LineChart } from '@carbon/charts-react';
8
7
  import { memo } from 'react';
9
- import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
10
8
  import { Stack } from '../../../ui/index.js';
11
9
  import { DsLineChart } from '../../shared-charts/ds-line-chart.js';
12
10
  export const UsageHistoryCharts = ({ pi, di, tu, tenants, }) => {
13
11
  const component = (_jsxs(Stack, { gap: 4, children: [_jsx(ValueMetricsLineChart, { ...pi }), tenants && _jsx(ValueMetricsLineChart, { ...tenants }), di && _jsx(ValueMetricsLineChart, { ...di }), tu && _jsx(ValueMetricsLineChart, { ...tu })] }));
14
12
  return component;
15
13
  };
16
- // Memoized: the Carbon LineChart re-initializes its underlying D3 chart whenever
17
- // the `data`/`options` identities change, so skip re-rendering (and rebuilding
18
- // those objects) when the chart's props are unchanged.
19
- export const ValueMetricsLineChart = memo(function ValueMetricsLineChart({ axes, dataPoints, title, theme, thresholds, toolbar = { enabled: true }, zoomBar = { enabled: true }, height = 400, }) {
20
- const designSystem = useC4DesignSystem();
21
- if (designSystem === 'ds') {
22
- return (_jsx(DsLineChart, { title: title, dataPoints: dataPoints, axes: axes, thresholds: thresholds, height: height, zoomBar: zoomBar }));
23
- }
24
- const data = {
25
- data: dataPoints,
26
- options: {
27
- title,
28
- toolbar,
29
- axes: {
30
- bottom: {
31
- title: axes.titleBottom,
32
- mapsTo: 'date',
33
- scaleType: 'time',
34
- },
35
- left: {
36
- mapsTo: 'value',
37
- title: axes.titleLeft,
38
- scaleType: 'linear',
39
- thresholds: thresholds,
40
- },
41
- },
42
- curve: 'curveMonotoneX',
43
- height: `${height}px`,
44
- zoomBar: {
45
- top: {
46
- enabled: zoomBar.enabled,
47
- },
48
- },
49
- theme: theme,
50
- },
51
- };
52
- const component = (_jsx(LineChart, { data: data.data, options: data.options }));
53
- return component;
14
+ // Memoized: skip re-rendering the chart when its props are unchanged.
15
+ export const ValueMetricsLineChart = memo(function ValueMetricsLineChart({ axes, dataPoints, title, thresholds, zoomBar = { enabled: true }, height = 400, }) {
16
+ return (_jsx(DsLineChart, { title: title, dataPoints: dataPoints, axes: axes, thresholds: thresholds, height: height, zoomBar: zoomBar }));
54
17
  });
@@ -1,13 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Download } from '@carbon/react/icons/index.esm.js';
2
+ import { Download } from 'lucide-react';
3
3
  import { useMemo } from 'react';
4
4
  import { Button, ClusterTag, MultiSelect, Stack } from '../../ui/index.js';
5
- import { useDatePickerFamily } from '../../ui/families.js';
5
+ import { DatePicker, DatePickerInput } from '../../ui/families.js';
6
6
  import { C4DataTable } from '../c4-data-table/c4-data-table.js';
7
7
  import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
8
8
  export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, download, }) => {
9
- const { DatePicker, DatePickerInput } = useDatePickerFamily();
10
- const compTimestampSelection = (_jsxs(DatePicker, { datePickerType: 'range', dateFormat: 'Y-m-d', value: [range.start, range.end], onChange: (newValues) => {
9
+ const compTimestampSelection = (_jsxs(DatePicker, { datePickerType: 'range', dateFormat: 'Y-m-d', value: [new Date(range.start), new Date(range.end)], onChange: (newValues) => {
11
10
  range.onChange({
12
11
  start: new Date(newValues[0]).getTime(),
13
12
  end: new Date(newValues[1]).getTime(),
@@ -100,7 +99,7 @@ export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, do
100
99
  compData = (_jsxs("div", { style: { position: 'relative' }, children: [_jsx(C4DataTable, { title: texts.data.title, headers: headers, toolbar: toolbar, data: transformedData, options: {
101
100
  pageSize: 10,
102
101
  pageSizes: [10, 20, 30, 40, 50],
103
- }, 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 }) })] }));
102
+ }, 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, { size: 16 }) })), onClick: download.onClick, children: download.label }) })] }));
104
103
  }
105
104
  const component = (_jsxs(Stack, { gap: 6, children: [_jsxs("div", { style: {
106
105
  display: 'grid',
@@ -5,13 +5,11 @@ 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 { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
9
8
  import { Stack } from '../../../ui/index.js';
10
9
  export const AuthorizedResources = ({ config, }) => {
11
- const designSystem = useC4DesignSystem();
12
10
  const component = (_jsx(Stack, { gap: 6, children: _jsx(C4IdentityContextProvider, { camundaAuth: {
13
11
  token: config.camundaAuth.token,
14
12
  refreshTokenMethod: config.camundaAuth.refreshTokenMethod,
15
- }, apiBaseUrl: config.apiBaseUrl, organizationId: config.organizationId, docsUrl: config.docsUrl, designSystem: designSystem, children: _jsx(C4ResourceAuthorizations, { userId: config.userId }) }) }));
13
+ }, apiBaseUrl: config.apiBaseUrl, organizationId: config.organizationId, docsUrl: config.docsUrl, designSystem: 'ds', children: _jsx(C4ResourceAuthorizations, { userId: config.userId }) }) }));
16
14
  return component;
17
15
  };
@@ -23,11 +23,9 @@ export interface DsLineChartProps {
23
23
  };
24
24
  }
25
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.
26
+ * Line chart, rendered with the `@camunda/design-system` `LineChart`.
27
+ * Used by `C4LineChart` and `ValueMetricsLineChart`. The DS chart has no
28
+ * zoom/brush or axis-title API, so the `zoomBar`/`axes` props are accepted
29
+ * to keep call sites unchanged, but only the chart title is shown.
32
30
  */
33
31
  export declare function DsLineChart({ title, dataPoints, thresholds, height, }: DsLineChartProps): JSX.Element;
@@ -22,7 +22,7 @@ function pivotByDate(dataPoints) {
22
22
  for (const point of dataPoints) {
23
23
  groupSet.add(point.group);
24
24
  }
25
- // Sort groups so the group->colour mapping stays stable regardless of the
25
+ // Sort groups so the group->color mapping stays stable regardless of the
26
26
  // order the points arrive in.
27
27
  const groups = Array.from(groupSet).sort();
28
28
  const keyByGroup = toDsSeriesKeys(groups);
@@ -42,12 +42,10 @@ function pivotByDate(dataPoints) {
42
42
  return { rows, keyByGroup };
43
43
  }
44
44
  /**
45
- * ds-mode line chart, rendered with the `@camunda/design-system` `LineChart`.
46
- * Used by `C4LineChart` and `ValueMetricsLineChart`, whose carbon paths render
47
- * `@carbon/charts-react` unchanged; this covers both ds branches so the DS
48
- * chart wiring lives once. The DS chart has no zoom/brush or axis-title API, so
49
- * the `zoomBar`/`axes` props are accepted (to keep the carbon-side call sites
50
- * unchanged) but only the chart title is surfaced in ds mode.
45
+ * Line chart, rendered with the `@camunda/design-system` `LineChart`.
46
+ * Used by `C4LineChart` and `ValueMetricsLineChart`. The DS chart has no
47
+ * zoom/brush or axis-title API, so the `zoomBar`/`axes` props are accepted
48
+ * to keep call sites unchanged, but only the chart title is shown.
51
49
  */
52
50
  export function DsLineChart({ title, dataPoints, thresholds, height = 400, }) {
53
51
  const { rows, keyByGroup } = useMemo(() => pivotByDate(dataPoints), [dataPoints]);
@@ -12,11 +12,9 @@ export interface DsMeterChartProps {
12
12
  peak?: number;
13
13
  }
14
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
15
+ * Meter/gauge, rendered with the `@camunda/design-system` `Meter`: a simple
16
+ * current/max proportional bar, optionally with status zones and a peak
18
17
  * 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`).
18
+ * The DS `Meter` has a fixed track height, so there is no `height` prop.
21
19
  */
22
20
  export declare function DsMeterChart({ value, max, color, zones, peak, }: DsMeterChartProps): JSX.Element;
@@ -7,9 +7,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { Meter, TooltipProvider } from '@camunda/design-system';
8
8
  import { DS_STATUS_COLORS } from './recharts-tokens.js';
9
9
  /**
10
- * DS `Meter` fill/zone colours are driven by a semantic status
11
- * (`success | warning | danger`), not an arbitrary colour. Callers here supply
12
- * DS status colours (from `DS_STATUS_COLORS`), so map them back to the status
10
+ * DS `Meter` fill/zone colors are driven by a semantic status
11
+ * (`success | warning | danger`), not an arbitrary color. Callers here supply
12
+ * DS status colors (from `DS_STATUS_COLORS`), so map them back to the status
13
13
  * the `Meter` understands. `info` (the neutral/default state) has no status —
14
14
  * the `Meter` then renders its default primary fill.
15
15
  */
@@ -19,16 +19,14 @@ const STATUS_BY_COLOR = {
19
19
  [DS_STATUS_COLORS.danger]: 'danger',
20
20
  };
21
21
  /**
22
- * ds-mode meter/gauge, rendered with the `@camunda/design-system` `Meter`.
23
- * Used wherever carbon mode renders `@carbon/charts-react`'s `MeterChart` — a
24
- * simple current/max proportional bar, optionally with status zones and a peak
22
+ * Meter/gauge, rendered with the `@camunda/design-system` `Meter`: a simple
23
+ * current/max proportional bar, optionally with status zones and a peak
25
24
  * marker. The value label is rendered by the callers, so `showValue` is off.
26
- * The DS `Meter` has a fixed track height, so there's no `height` prop (unlike
27
- * the carbon `MeterChart`).
25
+ * The DS `Meter` has a fixed track height, so there is no `height` prop.
28
26
  */
29
27
  export function DsMeterChart({ value, max, color, zones, peak, }) {
30
- // Zones already carry their own status colour; otherwise, when a solid status
31
- // colour is passed, synthesise a full-track range so the value takes that
28
+ // Zones already carry their own status color; otherwise, when a solid status
29
+ // color is passed, synthesise a full-track range so the value takes that
32
30
  // status' fill (the range must extend past `value` to also cover overages).
33
31
  const ranges = zones
34
32
  ? zones.reduce((acc, zone) => {
@@ -1,13 +1,12 @@
1
1
  import type { ChartSeriesColor } from '@camunda/design-system';
2
2
  import type { TooltipProps } from 'recharts';
3
3
  /**
4
- * Design-system chart tokens for recharts (ds mode only).
4
+ * Design-system chart tokens for recharts.
5
5
  *
6
6
  * These reference `@camunda/design-system`'s CSS custom properties, scoped to
7
7
  * `.c4-ui` (light) and `.dark .c4-ui` (dark) in its `styles.css` — using them
8
- * (rather than literal colours) keeps ds-mode charts correct in both themes
9
- * without any extra wiring. Carbon-mode charts never read this file; they
10
- * keep using `@carbon/charts-react` and its own `theme` prop unchanged.
8
+ * (rather than literal colors) keeps charts correct in both themes
9
+ * without any extra wiring.
11
10
  */
12
11
  /**
13
12
  * Categorical series palette.
@@ -17,8 +16,8 @@ import type { TooltipProps } from 'recharts';
17
16
  * (`--chart-1..5`) to named hues and now ships ten of them; these five are the
18
17
  * first of the DS's own categorical order. Charts can render more than five
19
18
  * series at once — the Usage tab caps at a top-12 clusters + "Other" — so the
20
- * palette is extended with plain colour literals for indices beyond five. These
21
- * are safe to add here (unlike Tailwind-looking classNames, plain colour values
19
+ * palette is extended with plain color literals for indices beyond five. These
20
+ * are safe to add here (unlike Tailwind-looking classNames, plain color values
22
21
  * need no matching entry in the shipped design-system stylesheet) and are
23
22
  * mid-tone hues chosen to read on both light and dark chart surfaces. Keep the
24
23
  * total at or above the chart cap so `getDsSeriesColor` only wraps for
@@ -31,7 +30,7 @@ export declare function getDsSeriesColor(index: number): string;
31
30
  * components (`ChartConfig.color`) rather than raw recharts props.
32
31
  *
33
32
  * DS 0.40 narrowed `ChartConfig.color` from an arbitrary CSS string to this
34
- * token union, which DS expands to `var(--<name>)` itself — so the colour
33
+ * token union, which DS expands to `var(--<name>)` itself — so the color
35
34
  * literals above are not usable there. This is the DS's full categorical order
36
35
  * (ten hues, the first five shared with `DS_CHART_CATEGORICAL_COLORS`), so DS
37
36
  * charts and raw-recharts charts agree for the common ≤5-series case.