@camunda/ccma-saas-frontend 0.18.10 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +4 -17
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +5 -47
  3. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +14 -6
  4. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +1 -2
  5. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +4 -8
  6. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +3 -2
  7. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +3 -0
  8. package/lib/esm/components/c4-async-modal/c4-async-modal.js +1 -1
  9. package/lib/esm/components/c4-audit-log/c4-audit-log.js +16 -32
  10. package/lib/esm/components/c4-billing-page/c4-billing-page.js +7 -15
  11. package/lib/esm/components/c4-billing-page/custom-styles.js +9 -9
  12. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +9 -3
  13. package/lib/esm/components/c4-billing-page/elements/plan-details.js +3 -3
  14. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +1 -1
  15. package/lib/esm/components/c4-billing-page/elements/value-metric.js +18 -46
  16. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +4 -10
  17. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
  18. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +4 -15
  19. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
  20. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +14 -41
  21. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
  22. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -38
  23. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +5 -5
  24. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -22
  25. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +1 -1
  26. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +1 -1
  27. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +10 -28
  28. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -2
  29. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +2 -2
  30. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +4 -4
  31. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +2 -2
  32. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +20 -44
  33. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +8 -16
  34. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +1 -1
  35. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -2
  36. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +35 -33
  37. package/lib/esm/components/c4-cluster-list/c4-cluster-expiry-tag.js +3 -7
  38. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +38 -157
  39. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +1 -1
  40. package/lib/esm/components/c4-cluster-overview/applications.d.ts +7 -8
  41. package/lib/esm/components/c4-cluster-overview/applications.js +71 -157
  42. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +4 -18
  43. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +11 -50
  44. package/lib/esm/components/c4-cluster-overview/cluster-details.js +19 -36
  45. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +2 -4
  46. package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -199
  47. package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +2 -2
  48. package/lib/esm/components/c4-cluster-overview/ds-section.js +2 -2
  49. package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.d.ts +3 -3
  50. package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +2 -2
  51. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -5
  52. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -1
  53. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +5 -5
  54. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +1 -2
  55. package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +2 -2
  56. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +2 -2
  57. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -3
  58. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
  59. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +12 -77
  60. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +0 -1
  61. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +47 -52
  62. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -1
  63. package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +11 -2
  64. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +16 -4
  65. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +3 -4
  66. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +2 -4
  67. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +20 -58
  68. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +157 -189
  69. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
  70. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +2 -3
  71. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +3 -10
  72. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +9 -10
  73. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +3 -18
  74. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +2 -2
  75. package/lib/esm/components/c4-data-table/c4-data-table.js +3 -17
  76. package/lib/esm/components/c4-delete-account-modal/c4-delete-account-modal.js +1 -2
  77. package/lib/esm/components/c4-divider/c4-divider.js +5 -13
  78. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +6 -12
  79. package/lib/esm/components/c4-empty-state/c4-empty-state.js +1 -9
  80. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +1 -2
  81. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +2 -2
  82. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +2 -2
  83. package/lib/esm/components/c4-file-uploader/c4-file-uploader.d.ts +4 -18
  84. package/lib/esm/components/c4-file-uploader/c4-file-uploader.js +7 -33
  85. package/lib/esm/components/c4-help-center/help-center-placeholders.d.ts +1 -1
  86. package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +2 -2
  87. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +2 -2
  88. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -9
  89. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +7 -17
  90. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -6
  91. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +0 -5
  92. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +1 -6
  93. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +0 -2
  94. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -2
  95. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -3
  96. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +4 -56
  97. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +1 -3
  98. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +9 -88
  99. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +12 -26
  100. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +3 -4
  101. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
  102. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +0 -1
  103. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -1
  104. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +2 -3
  105. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +2 -3
  106. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -4
  107. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +3 -3
  108. package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +3 -3
  109. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +25 -25
  110. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +5 -1
  111. package/lib/esm/components/c4-management-activity/c4-management-activity.js +6 -39
  112. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +1 -6
  113. package/lib/esm/components/c4-management-api/c4-management-api.js +4 -6
  114. package/lib/esm/components/c4-management-settings/c4-management-settings.js +24 -34
  115. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +7 -3
  116. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +3 -3
  117. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +6 -3
  118. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +17 -33
  119. package/lib/esm/components/c4-navigation/c4-navigation.js +12 -25
  120. package/lib/esm/components/c4-number-input/c4-number-input.js +20 -6
  121. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -4
  122. package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +2 -2
  123. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +2 -6
  124. package/lib/esm/components/c4-page-layout/c4-page-layout.js +3 -12
  125. package/lib/esm/components/c4-page-template/c4-page-template.d.ts +0 -3
  126. package/lib/esm/components/c4-page-template/c4-page-template.js +1 -11
  127. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +14 -14
  128. package/lib/esm/components/c4-pricing/c4-pricing.js +1 -1
  129. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +5 -13
  130. package/lib/esm/components/c4-search/c4-search-results.js +44 -36
  131. package/lib/esm/components/c4-search/c4-search.js +5 -7
  132. package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +5 -19
  133. package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +6 -18
  134. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +5 -8
  135. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +5 -19
  136. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +12 -2
  137. package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +4 -1
  138. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +33 -18
  139. package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -60
  140. package/lib/esm/components/c4-tabs/c4-tabs.js +4 -8
  141. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +3 -3
  142. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +13 -9
  143. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +3 -12
  144. package/lib/esm/components/c4-toggle/c4-toggle.js +1 -3
  145. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +2 -2
  146. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +3 -9
  147. package/lib/esm/components/c4-usage-history/c4-usage-history.js +4 -5
  148. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +3 -40
  149. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +4 -5
  150. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -3
  151. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +4 -6
  152. package/lib/esm/components/shared-charts/ds-line-chart.js +5 -7
  153. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +3 -5
  154. package/lib/esm/components/shared-charts/ds-meter-chart.js +8 -10
  155. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +6 -7
  156. package/lib/esm/components/shared-charts/recharts-tokens.js +6 -7
  157. package/lib/esm/index.css +107 -74
  158. package/lib/esm/index.d.ts +1 -9
  159. package/lib/esm/index.js +1 -5
  160. package/lib/esm/runtime/c4-console-runtime-context.d.ts +3 -10
  161. package/lib/esm/runtime/c4-console-runtime-context.js +11 -23
  162. package/lib/esm/runtime/c4-console-runtime.types.d.ts +0 -8
  163. package/lib/esm/runtime/c4-user-theme.d.ts +4 -4
  164. package/lib/esm/runtime/c4-user-theme.js +4 -4
  165. package/lib/esm/runtime/index.d.ts +1 -1
  166. package/lib/esm/runtime/index.js +1 -1
  167. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +2 -2
  168. package/lib/esm/runtime/nav/use-webapp-nav-data.js +2 -2
  169. package/lib/esm/ui/c4-cluster-tag.d.ts +1 -1
  170. package/lib/esm/ui/c4-cluster-tag.js +1 -1
  171. package/lib/esm/ui/c4-modal-dialog.d.ts +7 -11
  172. package/lib/esm/ui/c4-modal-dialog.js +18 -9
  173. package/lib/esm/ui/c4-password-input.d.ts +4 -8
  174. package/lib/esm/ui/c4-password-input.js +4 -8
  175. package/lib/esm/ui/c4-text-area.d.ts +19 -0
  176. package/lib/esm/ui/c4-text-area.js +30 -0
  177. package/lib/esm/ui/ds-compact-code-block.d.ts +1 -1
  178. package/lib/esm/ui/ds-compact-code-block.js +1 -1
  179. package/lib/esm/ui/families.d.ts +13 -46
  180. package/lib/esm/ui/families.js +8 -51
  181. package/lib/esm/ui/index.d.ts +11 -53
  182. package/lib/esm/ui/index.js +19 -152
  183. package/lib/esm/ui/tabs.d.ts +1 -21
  184. package/lib/esm/ui/tabs.js +1 -22
  185. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
  186. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
  187. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
  188. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
  189. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
  190. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
  191. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +4 -5
  192. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
  193. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
  194. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
  195. package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
  196. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
  197. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  198. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
  199. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
  200. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
  201. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
  202. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
  203. package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
  204. package/lib/esm/widgets/management/c4-management-app.js +6 -9
  205. package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
  206. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
  207. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
  208. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
  209. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
  210. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
  211. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
  212. package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
  213. package/package.json +3 -14
  214. package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
  215. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
  216. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
  217. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
  218. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
  219. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
  220. package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
  221. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
  222. package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
  223. package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
  224. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
  225. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
  226. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
  227. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
  228. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
  229. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
  230. package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
  231. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
  232. package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
  233. package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
  234. package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
  235. package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
  236. package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
  237. package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
  238. package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
  239. package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
  240. package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
  241. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
  242. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
  243. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
  244. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
  245. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
  246. package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
  247. package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
  248. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
  249. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
  250. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
  251. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
  252. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
  253. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
  254. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
  255. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
  256. package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
  257. package/lib/esm/ui/c4-definition-tooltip.js +0 -43
  258. package/lib/esm/ui/switchable.d.ts +0 -14
  259. package/lib/esm/ui/switchable.js +0 -27
@@ -4,10 +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 { AlluvialChart } from '@carbon/charts-react';
8
7
  import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
9
8
  import { ResponsiveContainer, Sankey, Tooltip } from 'recharts';
10
- import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
11
9
  import { Button, MultiSelect, Stack, Tile } from '../../../ui/index.js';
12
10
  import { DS_CHART_TOOLTIP_PROPS, getDsSeriesColor, } from '../../shared-charts/recharts-tokens.js';
13
11
  /** Maps each node to a categorical color, keyed by its `category` (falls back to node order). */
@@ -54,7 +52,7 @@ function renderSankeyLink(colorByName, gradient) {
54
52
  return (_jsxs("g", { children: [gradient && (_jsx("defs", { children: _jsxs("linearGradient", { id: gradientId, x1: '0', x2: '1', y1: '0', y2: '0', children: [_jsx("stop", { offset: '0%', stopColor: sourceColor, stopOpacity: 0.55 }), _jsx("stop", { offset: '100%', stopColor: targetColor, stopOpacity: 0.55 })] }) })), _jsx("path", { d: d, fill: 'none', stroke: gradient ? `url(#${gradientId})` : sourceColor, strokeOpacity: gradient ? 1 : 0.4, strokeWidth: linkWidth })] }));
55
53
  };
56
54
  }
57
- export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradient, theme, }) => {
55
+ export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradient, }) => {
58
56
  // Compute target node totals
59
57
  const targetTotals = useMemo(() => {
60
58
  const totals = new Map();
@@ -70,7 +68,7 @@ export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradie
70
68
  const initialSelection = useMemo(() => sortedTargets.length <= 10 ? sortedTargets : sortedTargets.slice(0, 10), [sortedTargets]);
71
69
  const [selectedTargets, setSelectedTargets] = useState(initialSelection);
72
70
  const lastNonEmptySelectionRef = useRef(initialSelection);
73
- // Unified computation to keep dataPoints and nodes in sync for Carbon chart
71
+ // Compute both together so the filtered links and nodes stay in sync.
74
72
  const { filteredDataPoints, filteredNodes } = useMemo(() => {
75
73
  const activeTargets = selectedTargets.length
76
74
  ? selectedTargets
@@ -96,18 +94,10 @@ export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradie
96
94
  }, [dataPoints, nodes, selectedTargets, sortedTargets]);
97
95
  // Key forces full re-render when the node set size or selectedTargets change materially
98
96
  const chartKey = useMemo(() => `alluvial-${filteredNodes.length}-${filteredDataPoints.length}-${selectedTargets.join(',')}`, [filteredNodes.length, filteredDataPoints.length, selectedTargets]);
99
- const designSystem = useC4DesignSystem();
100
97
  const nodeColorByName = useMemo(() => buildNodeColorByName(filteredNodes), [filteredNodes]);
101
98
  const sankeyData = useMemo(() => buildSankeyData(filteredNodes, filteredDataPoints), [filteredNodes, filteredDataPoints]);
102
99
  const sankeyNode = useMemo(() => renderSankeyNode(nodeColorByName), [nodeColorByName]);
103
100
  const sankeyLink = useMemo(() => renderSankeyLink(nodeColorByName, gradient), [nodeColorByName, gradient]);
104
- const options = {
105
- title,
106
- alluvial: { nodes: filteredNodes, gradient },
107
- height: `${height}px`,
108
- // Rely on Carbon defaults; labels for alluvial nodes are usually part of nodes rendering
109
- theme: theme,
110
- };
111
101
  const multiSelectItems = useMemo(() => sortedTargets.map((t) => ({ id: t, text: t })), [sortedTargets]);
112
102
  const onChange = useCallback((event) => {
113
103
  const chosen = (event.selectedItems || []).map((item) => item.id);
@@ -134,11 +124,10 @@ export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradie
134
124
  setSelectedTargets(next);
135
125
  }
136
126
  }, [sortedTargets, selectedTargets]);
137
- // Removed debug logging
138
- return (_jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsxs(Stack, { orientation: 'horizontal', gap: 2, style: { alignItems: 'flex-end' }, children: [_jsx(MultiSelect, { id: `${title}-targets-filter`, titleText: 'Targets', label: 'Targets', items: multiSelectItems, selectedItems: multiSelectItems.filter((i) => selectedTargets.includes(i.id)), itemToString: (item) => (item ? item.text : ''), onChange: onChange, selectionFeedback: 'top-after-reopen', helperText: 'Select targets' }), _jsx(Button, { kind: 'tertiary', size: 'sm', onClick: selectAll, children: "Select all" })] }), designSystem === 'ds' ? (_jsxs("div", { children: [title && (_jsx("div", { style: {
127
+ return (_jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsxs(Stack, { orientation: 'horizontal', gap: 2, style: { alignItems: 'flex-end' }, children: [_jsx(MultiSelect, { id: `${title}-targets-filter`, titleText: 'Targets', label: 'Targets', items: multiSelectItems, selectedItems: multiSelectItems.filter((i) => selectedTargets.includes(i.id)), itemToString: (item) => (item ? item.text : ''), onChange: onChange, selectionFeedback: 'top-after-reopen', helperText: 'Select targets' }), _jsx(Button, { kind: 'tertiary', size: 'sm', onClick: selectAll, children: "Select all" })] }), _jsxs("div", { children: [title && (_jsx("div", { style: {
139
128
  fontWeight: 600,
140
129
  fontSize: 14,
141
130
  marginBottom: 8,
142
131
  color: 'var(--neutral-foreground-strong)',
143
- }, children: title })), _jsx(ResponsiveContainer, { width: '100%', height: height, children: _jsx(Sankey, { data: sankeyData, node: sankeyNode, link: sankeyLink, nodePadding: 20, margin: { top: 8, right: 96, left: 8, bottom: 8 }, children: _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS }) }, chartKey) })] })) : (_jsx(AlluvialChart, { data: filteredDataPoints, options: options }, chartKey))] }) }));
132
+ }, children: title })), _jsx(ResponsiveContainer, { width: '100%', height: height, children: _jsx(Sankey, { data: sankeyData, node: sankeyNode, link: sankeyLink, nodePadding: 20, margin: { top: 8, right: 96, left: 8, bottom: 8 }, children: _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS }) }, chartKey) })] })] }) }));
144
133
  };
@@ -3,5 +3,5 @@ import type { C4BarChartDefinition } from '../c4-charts-dashboard.types.js';
3
3
  type C4BarChartProps = C4BarChartDefinition & {
4
4
  theme: 'g10' | 'g100';
5
5
  };
6
- export declare const C4BarChart: ({ title, dataPoints, axes, stacked, mode, height, theme, }: C4BarChartProps) => JSX.Element;
6
+ export declare const C4BarChart: ({ title, dataPoints, stacked, mode, height, }: C4BarChartProps) => JSX.Element;
7
7
  export {};
@@ -5,8 +5,6 @@ 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 { BarChart } from '@camunda/design-system';
8
- import { GroupedBarChart, SimpleBarChart, StackedBarChart, } from '@carbon/charts-react';
9
- import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
10
8
  import { Stack, Tile } from '../../../ui/index.js';
11
9
  import { getDsSeriesToken, toDsSeriesKeys, } from '../../shared-charts/recharts-tokens.js';
12
10
  /**
@@ -18,7 +16,7 @@ function pivotByKey(dataPoints) {
18
16
  for (const point of dataPoints) {
19
17
  groupSet.add(point.group);
20
18
  }
21
- // Sort groups so the group→colour mapping stays stable regardless of the
19
+ // Sort groups so the group→color mapping stays stable regardless of the
22
20
  // order the points arrive in.
23
21
  const groups = Array.from(groupSet).sort();
24
22
  const keyByGroup = toDsSeriesKeys(groups);
@@ -39,47 +37,22 @@ function pivotByKey(dataPoints) {
39
37
  keyByGroup,
40
38
  };
41
39
  }
42
- export const C4BarChart = ({ title, dataPoints, axes, stacked = false, mode, height = 400, theme, }) => {
43
- const designSystem = useC4DesignSystem();
40
+ export const C4BarChart = ({ title, dataPoints, stacked = false, mode, height = 400, }) => {
44
41
  const effectiveMode = mode
45
42
  ? mode
46
43
  : stacked
47
44
  ? 'stacked'
48
45
  : 'grouped';
49
- if (designSystem === 'ds') {
50
- const { rows, keyByGroup } = pivotByKey(dataPoints);
51
- // Iterate the map, so that every config key is a key the map produced.
52
- const config = Object.fromEntries([...keyByGroup].map(([group, seriesKey], index) => [
53
- seriesKey,
54
- { label: group, color: getDsSeriesToken(index) },
55
- ]));
56
- return (_jsx(Tile, { children: _jsx(Stack, { children: _jsxs("div", { children: [title && (_jsx("div", { style: {
57
- fontWeight: 600,
58
- fontSize: 14,
59
- marginBottom: 8,
60
- color: 'var(--neutral-foreground-strong)',
61
- }, children: title })), _jsx("div", { style: { height }, children: _jsx(BarChart, { className: 'h-full w-full', data: rows, categoryKey: 'key', config: config, stacked: effectiveMode === 'stacked' }) })] }) }) }));
62
- }
63
- const data = dataPoints;
64
- const options = {
65
- title,
66
- data: { groupMapsTo: 'group' },
67
- axes: {
68
- left: {
69
- mapsTo: 'value',
70
- title: axes.titleLeft,
71
- },
72
- bottom: {
73
- mapsTo: 'key',
74
- title: axes.titleBottom,
75
- scaleType: 'labels',
76
- },
77
- },
78
- height: `${height}px`,
79
- theme: theme,
80
- };
81
- if (effectiveMode === 'stacked') {
82
- options.axes.left.stacked = true;
83
- }
84
- return (_jsx(Tile, { children: _jsx(Stack, { children: effectiveMode === 'stacked' ? (_jsx(StackedBarChart, { data: data, options: options })) : effectiveMode === 'grouped' ? (_jsx(GroupedBarChart, { data: data, options: options })) : (_jsx(SimpleBarChart, { data: data, options: options })) }) }));
46
+ const { rows, keyByGroup } = pivotByKey(dataPoints);
47
+ // Iterate the map, so that every config key is a key the map produced.
48
+ const config = Object.fromEntries([...keyByGroup].map(([group, seriesKey], index) => [
49
+ seriesKey,
50
+ { label: group, color: getDsSeriesToken(index) },
51
+ ]));
52
+ return (_jsx(Tile, { children: _jsx(Stack, { children: _jsxs("div", { children: [title && (_jsx("div", { style: {
53
+ fontWeight: 600,
54
+ fontSize: 14,
55
+ marginBottom: 8,
56
+ color: 'var(--neutral-foreground-strong)',
57
+ }, children: title })), _jsx("div", { style: { height }, children: _jsx(BarChart, { className: 'h-full w-full', data: rows, categoryKey: 'key', config: config, stacked: effectiveMode === 'stacked' }) })] }) }) }));
85
58
  };
@@ -3,5 +3,5 @@ import type { C4LineChartDefinition } from '../c4-charts-dashboard.types.js';
3
3
  type C4LineChartProps = C4LineChartDefinition & {
4
4
  theme: 'g10' | 'g100';
5
5
  };
6
- export declare const C4LineChart: ({ title, dataPoints, axes, toolbar, zoomBar, thresholds, height, theme, }: C4LineChartProps) => JSX.Element;
6
+ export declare const C4LineChart: ({ title, dataPoints, axes, zoomBar, thresholds, height, }: C4LineChartProps) => JSX.Element;
7
7
  export {};
@@ -1,41 +1,4 @@
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 { LineChart } from '@carbon/charts-react';
8
- import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
9
2
  import { Stack, Tile } from '../../../ui/index.js';
10
3
  import { DsLineChart } from '../../shared-charts/ds-line-chart.js';
11
- export const C4LineChart = ({ title, dataPoints, axes, toolbar = { enabled: true }, zoomBar = { enabled: true }, thresholds, height = 400, theme, }) => {
12
- const designSystem = useC4DesignSystem();
13
- if (designSystem === 'ds') {
14
- return (_jsx(Tile, { children: _jsx(Stack, { children: _jsx(DsLineChart, { title: title, dataPoints: dataPoints, axes: axes, thresholds: thresholds, height: height, zoomBar: zoomBar }) }) }));
15
- }
16
- const data = dataPoints;
17
- const options = {
18
- title,
19
- toolbar,
20
- axes: {
21
- bottom: {
22
- title: axes.titleBottom,
23
- mapsTo: 'date',
24
- scaleType: 'time',
25
- },
26
- left: {
27
- mapsTo: 'value',
28
- title: axes.titleLeft,
29
- scaleType: 'linear',
30
- thresholds,
31
- },
32
- },
33
- curve: 'curveMonotoneX',
34
- height: `${height}px`,
35
- zoomBar: {
36
- top: { enabled: zoomBar.enabled },
37
- },
38
- theme: theme,
39
- };
40
- return (_jsx(Tile, { children: _jsx(Stack, { children: _jsx(LineChart, { data: data, options: options }) }) }));
41
- };
4
+ export const C4LineChart = ({ title, dataPoints, axes, zoomBar = { enabled: true }, thresholds, height = 400, }) => (_jsx(Tile, { children: _jsx(Stack, { children: _jsx(DsLineChart, { title: title, dataPoints: dataPoints, axes: axes, thresholds: thresholds, height: height, zoomBar: zoomBar }) }) }));
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Launch, Renew, TrashCan } from '@carbon/react/icons/index.esm.js';
2
+ import { ExternalLink, RefreshCw, Trash2 } from 'lucide-react';
3
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
4
  import { CodeSnippet, Stack } from '../../ui/index.js';
5
5
  import { C4DataTable } from '../c4-data-table/c4-data-table.js';
@@ -89,7 +89,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
89
89
  id: 'rotate-password',
90
90
  label: text.rotatePasswordAction,
91
91
  kind: 'ghost',
92
- icon: Renew,
92
+ icon: RefreshCw,
93
93
  onClick: (row) => onRotatePassword(row.id),
94
94
  visible: () => permissions.canUpdate,
95
95
  },
@@ -97,7 +97,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
97
97
  id: 'delete-client',
98
98
  label: text.deleteAction,
99
99
  kind: 'danger--ghost',
100
- icon: TrashCan,
100
+ icon: Trash2,
101
101
  onClick: (row) => onDeleteClient(row.id),
102
102
  visible: () => permissions.canDelete,
103
103
  },
@@ -110,7 +110,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
110
110
  onClick: onRefresh,
111
111
  disabled: false,
112
112
  label: text.errorButton,
113
- icon: Renew,
113
+ icon: RefreshCw,
114
114
  } }));
115
115
  }
116
116
  if (byomClientsShowsOwnCard({ hasError, isLoading, clients })) {
@@ -134,5 +134,5 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
134
134
  gap: '2rem',
135
135
  maxWidth: 'calc(100vw - 64px)',
136
136
  width: '100%',
137
- }, children: _jsx(C4DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: text.subtitle, queryPrefix: 'cluster-byom-clients' }) }), _jsx(C4LinkButton, { label: text.learnMoreLabel, onClick: onOpenDocs, icon: _jsx(Launch, {}) })] }));
137
+ }, children: _jsx(C4DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: text.subtitle, queryPrefix: 'cluster-byom-clients' }) }), _jsx(C4LinkButton, { label: text.learnMoreLabel, onClick: onOpenDocs, icon: _jsx(ExternalLink, {}) })] }));
138
138
  };
@@ -4,29 +4,22 @@ 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 { InlineLoading, Layer } from '@carbon/react';
8
- import { Download as CarbonDownload, Save as CarbonSave, } from '@carbon/react/icons/index.esm.js';
9
- import { Download as LucideDownload, Save as LucideSave } from 'lucide-react';
7
+ import { Download, Save } from 'lucide-react';
10
8
  import { useState } from 'react';
11
- import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
12
- import { Button, CodeSnippet, Modal, Stack } from '../../ui/index.js';
13
- import { useTabsFamily } from '../../ui/tabs.js';
9
+ import { Button, CodeSnippet, Loading, Modal, Stack } from '../../ui/index.js';
10
+ import { Tab, TabList, TabPanel, TabPanels, Tabs } from '../../ui/tabs.js';
14
11
  import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
15
- import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
16
12
  import { DsCredentialItems } from './ds-credential-items.js';
17
13
  export const C4ClusterClientCredentialsModal = (props) => {
18
- const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
19
14
  return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, size: 'lg', children: _jsxs(Stack, { gap: 6, children: [_jsx("div", { children: props.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
20
15
  const { key, ...variantProps } = variant;
21
16
  return (_jsxs(TabPanel, { children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsVariantItems, { ...variantProps }))] }, key));
22
17
  }) })] })] }) }));
23
18
  };
24
19
  const C4ClusterClientCredentialsVariantDownload = (props) => {
25
- const isDs = useC4DesignSystem() === 'ds';
26
- return (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: isDs ? LucideDownload : CarbonDownload, onClick: props.onClick, children: props.label }));
20
+ return (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: Download, onClick: props.onClick, children: props.label }));
27
21
  };
28
22
  const C4ClusterClientCredentialsVariantAdditionalAction = (props) => {
29
- const isDs = useC4DesignSystem() === 'ds';
30
23
  const [isLoading, setIsLoading] = useState(false);
31
24
  const handleClick = async () => {
32
25
  setIsLoading(true);
@@ -44,13 +37,13 @@ const C4ClusterClientCredentialsVariantAdditionalAction = (props) => {
44
37
  }
45
38
  };
46
39
  if (isLoading) {
47
- return _jsx(InlineLoading, { description: 'Saving...' });
40
+ return (_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: [_jsx(Loading, { small: true, withOverlay: false, description: 'Saving...' }), _jsx("span", { children: "Saving..." })] }));
48
41
  }
49
- return (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: isDs ? LucideSave : CarbonSave, onClick: handleClick, children: props.label }));
42
+ return (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: Save, onClick: handleClick, children: props.label }));
50
43
  };
51
44
  export const C4ClusterClientCredentialsVariantCodeSnippet = (props) => {
52
45
  const variant = props;
53
- const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(Layer, { style: { minWidth: '0' }, children: _jsx(CodeSnippet, { type: 'multi', onClick: () => {
46
+ const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx("div", { style: { minWidth: '0' }, children: _jsx(CodeSnippet, { type: 'multi', onClick: () => {
54
47
  if (variant.onClick) {
55
48
  variant.onClick();
56
49
  }
@@ -59,13 +52,6 @@ export const C4ClusterClientCredentialsVariantCodeSnippet = (props) => {
59
52
  };
60
53
  export const C4ClusterClientCredentialsVariantItems = (props) => {
61
54
  const variant = props;
62
- const isDs = useC4DesignSystem() === 'ds';
63
- const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), isDs ? (_jsx(DsCredentialItems, { items: variant.items })) : (_jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(C4StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(C4StructuredListCell, { children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
64
- zIndex: `${(variant.items.length - index) * 100}`,
65
- }, onClick: () => {
66
- if (item.onClick) {
67
- item.onClick();
68
- }
69
- }, children: item.value }) }) })] }, item.key))) }) })), (variant.download || variant.additionalAction) && (_jsxs("div", { style: { display: 'flex', gap: '8px' }, children: [variant.download && (_jsx(C4ClusterClientCredentialsVariantDownload, { ...variant.download })), variant.additionalAction && (_jsx(C4ClusterClientCredentialsVariantAdditionalAction, { label: variant.additionalAction.label, onClick: variant.additionalAction.onClick }))] })), variant.content && (_jsx("div", { style: { borderTop: '1px solid black' }, children: variant.content }))] }));
55
+ const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(DsCredentialItems, { items: variant.items }), (variant.download || variant.additionalAction) && (_jsxs("div", { style: { display: 'flex', gap: '8px' }, children: [variant.download && (_jsx(C4ClusterClientCredentialsVariantDownload, { ...variant.download })), variant.additionalAction && (_jsx(C4ClusterClientCredentialsVariantAdditionalAction, { label: variant.additionalAction.label, onClick: variant.additionalAction.onClick }))] })), variant.content && (_jsx("div", { style: { borderTop: '1px solid black' }, children: variant.content }))] }));
70
56
  return content;
71
57
  };
@@ -1,6 +1,6 @@
1
1
  import type { JSX } from 'react';
2
2
  /**
3
- * ds-mode only. The credential values of a client credentials dialog: per row,
3
+ * The credential values of a client credentials dialog: per row,
4
4
  * a label and a compact copyable value. The Carbon structured list stretched
5
5
  * each value to the full row height.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { DsCompactCodeBlock, DsText } from '../../ui/index.js';
3
3
  /**
4
- * ds-mode only. The credential values of a client credentials dialog: per row,
4
+ * The credential values of a client credentials dialog: per row,
5
5
  * a label and a compact copyable value. The Carbon structured list stretched
6
6
  * each value to the full row height.
7
7
  */
@@ -4,35 +4,25 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { InlineLoading, Layer } from '@carbon/react';
8
- import { Download as CarbonDownload, Save as CarbonSave, } from '@carbon/react/icons/index.esm.js';
9
- import { Download as LucideDownload, Save as LucideSave } from 'lucide-react';
7
+ import { Download, Save } from 'lucide-react';
10
8
  import { useState } from 'react';
11
- import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
12
- import { Button, CodeSnippet, DsCompactCodeBlock, DsText, Modal, Stack, } from '../../ui/index.js';
13
- import { useTabsFamily } from '../../ui/tabs.js';
9
+ import { Button, CodeSnippet, DsCompactCodeBlock, DsText, Loading, Modal, Stack, } from '../../ui/index.js';
10
+ import { Tab, TabList, TabPanel, TabPanels, Tabs } from '../../ui/tabs.js';
14
11
  import { DsCredentialItems } from '../c4-cluster-client-credentials/ds-credential-items.js';
15
12
  import { C4Divider } from '../c4-divider/c4-divider.js';
16
13
  import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
17
- import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
18
14
  export const C4ClusterClientCredentialsIdentityModal = (props) => {
19
- const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
20
- const isDs = useC4DesignSystem() === 'ds';
21
- return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, preventCloseOnClickOutside: true, selectorPrimaryFocus: '.cds--btn--tertiary', size: 'lg', children: _jsxs(Stack, { gap: 4, children: [_jsx("strong", { children: props.step1Header }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', contained: true, children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
15
+ return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, preventCloseOnClickOutside: true, size: 'lg', children: _jsxs(Stack, { gap: 4, children: [_jsx("strong", { children: props.step1Header }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', contained: true, children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
22
16
  const { key, ...variantProps } = variant;
23
17
  return (_jsxs(TabPanel, { style: { marginTop: '-12px', padding: '1rem' }, children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsIdentitysVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsIdentitysVariantItems, { ...variantProps }))] }, key));
24
- }) })] }), _jsx(C4Divider, {}), _jsx("strong", { children: props.step2Header }), _jsx("div", { children: props.step2Description }), _jsxs(Stack, { gap: 2, children: [isDs ? (_jsx(DsText, { as: 'p', variant: 'label-md', className: 'm-0', children: "Client ID" })) : (_jsx("p", { style: { color: 'var(--cds-text-helper)', alignSelf: 'end' }, children: "Client ID" })), isDs ? (
25
- // Full width, like the credential values of step 1.
26
- _jsx(DsCompactCodeBlock, { children: props.clientId })) : (_jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.clientId }))] }), _jsx(Button, { kind: 'primary', size: 'md', onClick: () => {
18
+ }) })] }), _jsx(C4Divider, {}), _jsx("strong", { children: props.step2Header }), _jsx("div", { children: props.step2Description }), _jsxs(Stack, { gap: 2, children: [_jsx(DsText, { as: 'p', variant: 'label-md', className: 'm-0', children: "Client ID" }), _jsx(DsCompactCodeBlock, { children: props.clientId })] }), _jsx(Button, { kind: 'primary', size: 'md', onClick: () => {
27
19
  window.open(props.identityLink, '_blank');
28
20
  }, children: props.identityButtonText })] }) }));
29
21
  };
30
22
  const C4ClusterClientCredentialsIdentitysVariantDownload = (props) => {
31
- const isDs = useC4DesignSystem() === 'ds';
32
- return (_jsx(Button, { id: 'credentials-download-button', kind: 'tertiary', size: 'md', renderIcon: isDs ? LucideDownload : CarbonDownload, onClick: props.onClick, children: props.label }));
23
+ return (_jsx(Button, { id: 'credentials-download-button', kind: 'tertiary', size: 'md', renderIcon: Download, onClick: props.onClick, children: props.label }));
33
24
  };
34
25
  const C4ClusterClientCredentialsIdentitysVariantAdditionalAction = (props) => {
35
- const isDs = useC4DesignSystem() === 'ds';
36
26
  const [isLoading, setIsLoading] = useState(false);
37
27
  const handleClick = async () => {
38
28
  setIsLoading(true);
@@ -50,13 +40,13 @@ const C4ClusterClientCredentialsIdentitysVariantAdditionalAction = (props) => {
50
40
  }
51
41
  };
52
42
  if (isLoading) {
53
- return _jsx(InlineLoading, { description: 'Saving...' });
43
+ return (_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: [_jsx(Loading, { small: true, withOverlay: false, description: 'Saving...' }), _jsx("span", { children: "Saving..." })] }));
54
44
  }
55
- return (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: isDs ? LucideSave : CarbonSave, onClick: handleClick, children: props.label }));
45
+ return (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: Save, onClick: handleClick, children: props.label }));
56
46
  };
57
47
  export const C4ClusterClientCredentialsIdentitysVariantCodeSnippet = (props) => {
58
48
  const variant = props;
59
- const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(Layer, { style: { minWidth: '0' }, children: _jsx(CodeSnippet, { type: 'multi', maxCollapsedNumberOfRows: 4, maxExpandedNumberOfRows: 4, showMoreText: '', onClick: () => {
49
+ const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx("div", { style: { minWidth: '0' }, children: _jsx(CodeSnippet, { type: 'multi', maxCollapsedNumberOfRows: 4, maxExpandedNumberOfRows: 4, showMoreText: '', onClick: () => {
60
50
  if (variant.onClick) {
61
51
  variant.onClick();
62
52
  }
@@ -67,14 +57,6 @@ export const C4ClusterClientCredentialsIdentitysVariantCodeSnippet = (props) =>
67
57
  };
68
58
  export const C4ClusterClientCredentialsIdentitysVariantItems = (props) => {
69
59
  const variant = props;
70
- const isDs = useC4DesignSystem() === 'ds';
71
- const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), isDs ? (_jsx(DsCredentialItems, { items: variant.items })) : (_jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(C4StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(C4StructuredListCell, { style: { paddingRight: '0px' }, children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
72
- zIndex: `${(variant.items.length - index) * 100}`,
73
- maxInlineSize: '100%',
74
- }, onClick: () => {
75
- if (item.onClick) {
76
- item.onClick();
77
- }
78
- }, children: item.value }) }) })] }, item.key))) }) })), (variant.download || variant.additionalAction) && (_jsxs("div", { style: { display: 'flex', gap: '8px' }, children: [variant.download && (_jsx(C4ClusterClientCredentialsIdentitysVariantDownload, { ...variant.download })), variant.additionalAction && (_jsx(C4ClusterClientCredentialsIdentitysVariantAdditionalAction, { label: variant.additionalAction.label, onClick: variant.additionalAction.onClick }))] }))] }));
60
+ const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(DsCredentialItems, { items: variant.items }), (variant.download || variant.additionalAction) && (_jsxs("div", { style: { display: 'flex', gap: '8px' }, children: [variant.download && (_jsx(C4ClusterClientCredentialsIdentitysVariantDownload, { ...variant.download })), variant.additionalAction && (_jsx(C4ClusterClientCredentialsIdentitysVariantAdditionalAction, { label: variant.additionalAction.label, onClick: variant.additionalAction.onClick }))] }))] }));
79
61
  return content;
80
62
  };
@@ -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 { Renew } from '@carbon/react/icons/index.esm.js';
7
+ import { RefreshCw } from 'lucide-react';
8
8
  import { C4_ASSET_URLS } from '../../assetUrls.js';
9
9
  import { Stack } from '../../ui/index.js';
10
10
  import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
@@ -19,7 +19,7 @@ export const C4ClusterDetailsActivity = ({ activityGroups, isLoading, hasError,
19
19
  onClick: onRefresh,
20
20
  disabled: false,
21
21
  label: text.errorButton,
22
- icon: Renew,
22
+ icon: RefreshCw,
23
23
  } }));
24
24
  }
25
25
  return (_jsx(Stack, { gap: 6, children: activityGroups.map((group, groupIndex) => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Edit } from '@carbon/react/icons/index.esm.js';
2
+ import { Pencil } from 'lucide-react';
3
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
4
  import { Stack } from '../../ui/index.js';
5
5
  import { C4DataTable } from '../c4-data-table/c4-data-table.js';
@@ -71,7 +71,7 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
71
71
  id: 'edit-alert',
72
72
  label: text.updateAction,
73
73
  kind: 'ghost',
74
- icon: Edit,
74
+ icon: Pencil,
75
75
  disabled: (row) => !row.canEdit,
76
76
  onClick: (row) => onUpdateAlert(row.id),
77
77
  visible: () => permissions.canUpdate,
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Edit, Renew } from '@carbon/react/icons/index.esm.js';
2
+ import { Pencil, RefreshCw } from 'lucide-react';
3
3
  import { useMemo } from 'react';
4
4
  import { C4_ASSET_URLS } from '../../assetUrls.js';
5
5
  import { Button, CodeSnippet, Stack } from '../../ui/index.js';
@@ -149,7 +149,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
149
149
  id: 'edit-client',
150
150
  label: text.renameAction,
151
151
  kind: 'ghost',
152
- icon: Edit,
152
+ icon: Pencil,
153
153
  onClick: (row) => onUpdateClient(row.id),
154
154
  visible: () => permissions.canUpdate,
155
155
  },
@@ -157,7 +157,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
157
157
  id: 'rotate-client-secret',
158
158
  label: text.rotateSecretAction,
159
159
  kind: 'ghost',
160
- icon: Renew,
160
+ icon: RefreshCw,
161
161
  onClick: (row) => onRotateClientSecret(row.id),
162
162
  // A rotation gives a new credential, thus it needs the permission that
163
163
  // a creation needs, and not the one for a rename.
@@ -179,7 +179,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
179
179
  onClick: onRefresh,
180
180
  disabled: false,
181
181
  label: text.errorButton,
182
- icon: Renew,
182
+ icon: RefreshCw,
183
183
  } }));
184
184
  }
185
185
  // A viewer who lacks read access never gets a populated list, so without
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Renew } from '@carbon/react/icons/index.esm.js';
2
+ import { RefreshCw } from 'lucide-react';
3
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
4
  import { Stack, Tag } from '../../ui/index.js';
5
5
  import { C4DataTable } from '../c4-data-table/c4-data-table.js';
@@ -134,7 +134,7 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
134
134
  onClick: onRefresh,
135
135
  disabled: false,
136
136
  label: text.errorButton,
137
- icon: Renew,
137
+ icon: RefreshCw,
138
138
  } }));
139
139
  }
140
140
  // A viewer who lacks read access never gets a populated list, so without