@camunda/ccma-saas-frontend 0.0.46 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
  3. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
  4. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
  5. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
  6. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
  7. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
  8. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
  9. package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
  10. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
  11. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
  12. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
  13. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
  14. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
  15. package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
  16. package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
  17. package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
  18. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
  19. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
  20. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
  21. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  22. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  23. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
  24. package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
  25. package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
  26. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  27. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  28. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  29. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
  30. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
  31. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
  32. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  33. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  34. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  35. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  36. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  37. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
  38. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
  39. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  40. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
  41. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
  42. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  43. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
  44. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
  45. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  46. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  47. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
  48. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
  49. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  50. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  51. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
  52. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
  53. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  54. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  55. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +69 -6
  56. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
  57. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
  58. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  59. package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
  60. package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
  61. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  62. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
  63. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
  64. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  65. package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
  66. package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
  67. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
  68. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
  69. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
  70. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
  71. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
  72. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
  73. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
  74. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  75. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
  76. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
  77. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
  78. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
  79. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
  80. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
  81. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
  82. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
  83. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
  84. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
  85. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
  86. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
  87. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  88. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  89. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  90. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
  91. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  92. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  93. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  94. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  95. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  96. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  97. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  98. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
  99. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
  100. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  101. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
  102. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
  103. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
  104. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
  105. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
  106. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
  107. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
  108. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
  109. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
  110. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
  111. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
  112. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
  113. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
  114. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
  115. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
  116. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
  117. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
  118. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  119. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
  120. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
  121. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
  122. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
  123. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
  124. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
  125. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
  126. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
  127. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
  128. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
  129. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
  130. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
  131. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  132. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  133. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  134. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  135. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  136. package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
  137. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  138. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  139. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
  140. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
  141. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  142. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  143. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  144. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  145. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  146. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  147. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  148. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  149. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  150. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  151. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  152. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  153. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  154. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  155. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  156. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  157. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  158. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  159. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
  160. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
  161. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  162. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  163. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
  164. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
  165. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  166. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  167. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  168. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
  169. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
  170. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  171. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
  172. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
  173. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  174. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  175. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  176. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  177. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  178. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  179. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
  180. package/lib/esm/components/c4-management-activity/c4-management-activity.js +109 -9
  181. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
  182. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
  183. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
  184. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  185. package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
  186. package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
  187. package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
  188. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  189. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  190. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  191. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  192. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  193. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  194. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
  195. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
  196. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  197. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  198. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  199. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  200. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  201. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  202. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  203. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  204. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  205. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
  206. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  207. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  208. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  209. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  210. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  211. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  212. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  213. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  214. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  215. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  216. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  217. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  218. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  219. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  220. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  221. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  222. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  223. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  224. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  225. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
  226. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  227. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  228. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  229. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  230. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  231. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  232. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  233. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  234. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  235. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
  236. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  237. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  238. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
  239. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  240. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  241. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
  242. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
  243. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
  244. package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
  245. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
  246. package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
  247. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
  248. package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
  249. package/lib/esm/externalUrls.const.d.ts +2 -0
  250. package/lib/esm/externalUrls.const.js +7 -0
  251. package/lib/esm/externalUrls.const.spec.js +2 -0
  252. package/lib/esm/i18n/c4-console-i18n.js +8 -0
  253. package/lib/esm/i18n/en/entities/orgroles.json +0 -16
  254. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  255. package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
  256. package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
  257. package/lib/esm/index.d.ts +33 -1
  258. package/lib/esm/index.js +23 -1
  259. package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
  260. package/lib/esm/runtime/c4-console-authz.js +59 -29
  261. package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
  262. package/lib/esm/runtime/c4-console-data-context.js +40 -0
  263. package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
  264. package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
  265. package/lib/esm/runtime/c4-console-data-store.js +145 -31
  266. package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
  267. package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
  268. package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
  269. package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
  270. package/lib/esm/runtime/c4-console-events-context.js +62 -0
  271. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  272. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  273. package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
  274. package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
  275. package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
  276. package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
  277. package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
  278. package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
  279. package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
  280. package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
  281. package/lib/esm/runtime/c4-user-theme.js +106 -0
  282. package/lib/esm/runtime/decode-access-token.d.ts +12 -0
  283. package/lib/esm/runtime/decode-access-token.js +39 -0
  284. package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
  285. package/lib/esm/runtime/nav/camunda-apps.js +100 -0
  286. package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
  287. package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
  288. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
  289. package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
  290. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
  291. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
  292. package/lib/esm/runtime/to-api-config.js +4 -0
  293. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  294. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  295. package/lib/esm/ui/families.d.ts +42 -0
  296. package/lib/esm/ui/families.js +46 -0
  297. package/lib/esm/ui/index.d.ts +32 -0
  298. package/lib/esm/ui/index.js +95 -0
  299. package/lib/esm/ui/switchable.d.ts +14 -0
  300. package/lib/esm/ui/switchable.js +27 -0
  301. package/lib/esm/ui/tabs.d.ts +21 -0
  302. package/lib/esm/ui/tabs.js +27 -0
  303. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  304. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
  305. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
  306. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
  307. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
  308. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
  309. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  310. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  311. package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
  312. package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
  313. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
  314. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
  315. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
  316. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  317. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  318. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  319. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
  320. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
  321. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
  322. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
  323. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  324. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  325. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
  326. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
  327. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  328. package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
  329. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
  330. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
  331. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  332. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  333. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  334. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  335. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  336. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  337. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  338. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  339. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
  340. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  341. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  342. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
  343. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  344. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
  345. package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
  346. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  347. package/lib/esm/widgets/management/c4-management-app.js +132 -23
  348. package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
  349. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  350. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  351. package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
  352. package/lib/esm/widgets/management/management-tabs.js +76 -0
  353. package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
  354. package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
  355. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  356. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  357. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  358. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
  359. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
  360. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  361. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  362. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  363. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  364. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
  365. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  366. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  367. package/lib/esm/widgets/use-extend-trial.js +36 -0
  368. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  369. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  370. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
  371. package/package.json +16 -7
@@ -1,3 +1,20 @@
1
- import type { JSX } from 'react';
2
- import type { C4ActionableNotificationProps } from './c4-actionable-notification.types';
3
- export declare const C4ActionableNotification: (props: C4ActionableNotificationProps) => JSX.Element;
1
+ import { ActionableNotification as CarbonActionableNotification } from '@carbon/react';
2
+ import type { ComponentProps, JSX } from 'react';
3
+ type C4ActionableNotificationProps = ComponentProps<typeof CarbonActionableNotification> & {
4
+ orientation?: 'horizontal' | 'vertical';
5
+ titleId?: string;
6
+ appearance?: 'notification' | 'banner' | 'static';
7
+ secondaryActionButtonLabel?: string;
8
+ onSecondaryActionButtonClick?: () => void;
9
+ };
10
+ /**
11
+ * Design-system-switchable actionable notification.
12
+ *
13
+ * Carbon mode renders Carbon's `ActionableNotification` (or the full-width
14
+ * `Callout` banner when `appearance='banner'`). ds mode renders the DS-native
15
+ * `Alert` with the action as a link button (kind→variant, title,
16
+ * subtitle→description, hideCloseButton→non-dismissible). Accepts the Carbon
17
+ * prop API so call sites only swap the import.
18
+ */
19
+ export declare function C4ActionableNotification(props: C4ActionableNotificationProps): JSX.Element;
20
+ export {};
@@ -5,21 +5,54 @@ 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 { C3ResponsiveStack } from '@camunda/camunda-composite-components';
8
- import { Callout } from '@carbon/react';
8
+ import { Alert, Button } from '@camunda/design-system';
9
+ import { Callout, ActionableNotification as CarbonActionableNotification, StaticNotification, } from '@carbon/react';
10
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
11
+ import { kindToAlertVariant } from '../c4-inline-notification/c4-inline-notification.js';
9
12
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
10
- export const C4ActionableNotification = (props) => (_jsxs(Callout, { title: '', kind: props.kind, lowContrast: props.lowContrast, style: { maxWidth: '100%', overflow: 'hidden' }, children: [_jsx("div", { style: {
11
- position: 'absolute',
12
- paddingRight: '62px',
13
- width: '100%',
14
- }, children: _jsxs(C3ResponsiveStack, { alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(C3ResponsiveStack, { orientation: props?.orientation ?? 'horizontal', gap: 1, children: [_jsx("span", { className: 'cds--actionable-notification__title', children: props.title }), _jsx("p", { children: props.subtitle })] }), _jsx(C4LinkButton, { label: props.actionButtonLabel, onClick: props.onActionButtonClick, style: {
15
- alignSelf: 'flex-start',
16
- flexShrink: 0,
17
- whiteSpace: 'nowrap',
18
- } })] }) }), _jsx("div", { style: {
19
- width: '100%',
20
- visibility: 'hidden',
21
- }, children: _jsxs(C3ResponsiveStack, { alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(C3ResponsiveStack, { orientation: props?.orientation ?? 'horizontal', gap: 1, children: [_jsx("span", { className: 'cds--actionable-notification__title', children: props.title }), _jsx("p", { children: props.subtitle })] }), _jsx(C4LinkButton, { label: props.actionButtonLabel, onClick: props.onActionButtonClick, style: {
22
- alignSelf: 'flex-start',
23
- flexShrink: 0,
24
- whiteSpace: 'nowrap',
25
- } })] }) })] }));
13
+ /**
14
+ * Design-system-switchable actionable notification.
15
+ *
16
+ * Carbon mode renders Carbon's `ActionableNotification` (or the full-width
17
+ * `Callout` banner when `appearance='banner'`). ds mode renders the DS-native
18
+ * `Alert` with the action as a link button (kind→variant, title,
19
+ * subtitle→description, hideCloseButton→non-dismissible). Accepts the Carbon
20
+ * prop API so call sites only swap the import.
21
+ */
22
+ export function C4ActionableNotification(props) {
23
+ const designSystem = useC4DesignSystem();
24
+ if (designSystem !== 'ds') {
25
+ if (props.appearance !== 'banner') {
26
+ const { orientation: _orientation, titleId: _titleId, appearance, ...carbonProps } = props;
27
+ // 'static' matches deployed call sites that used Carbon's
28
+ // StaticNotification; otherwise Carbon's ActionableNotification (the
29
+ // default the rest of the deployed call sites used directly).
30
+ return appearance === 'static' ? (_jsx(StaticNotification, { ...carbonProps })) : (_jsx(CarbonActionableNotification, { ...carbonProps }));
31
+ }
32
+ // appearance='banner': reproduce the deployed Callout-based banner exactly —
33
+ // a full-width Callout with the title/subtitle and action laid out via
34
+ // C3ResponsiveStack. The hidden duplicate sets the Callout's height (the
35
+ // visible copy is absolutely positioned). Kept as two literal copies to
36
+ // match the deployed render pixel-for-pixel.
37
+ const label = props.actionButtonLabel ?? '';
38
+ const onClick = props.onActionButtonClick ??
39
+ (() => undefined);
40
+ const secondaryLabel = props.secondaryActionButtonLabel;
41
+ const onSecondaryClick = props.onSecondaryActionButtonClick;
42
+ const buttonSlot = secondaryLabel && onSecondaryClick ? (_jsxs("div", { style: { display: 'flex', gap: '8px', flexShrink: 0 }, children: [_jsx(C4LinkButton, { label: label, onClick: onClick, style: { alignSelf: 'flex-start', whiteSpace: 'nowrap' } }), _jsx(C4LinkButton, { label: secondaryLabel, onClick: onSecondaryClick, style: { alignSelf: 'flex-start', whiteSpace: 'nowrap' } })] })) : (_jsx(C4LinkButton, { label: label, onClick: onClick, style: {
43
+ alignSelf: 'flex-start',
44
+ whiteSpace: 'nowrap',
45
+ flexShrink: 0,
46
+ } }));
47
+ return (_jsxs(Callout, { title: '', kind: props.kind, lowContrast: props.lowContrast, style: { maxWidth: '100%', overflow: 'hidden' }, children: [_jsx("div", { style: {
48
+ position: 'absolute',
49
+ paddingRight: '62px',
50
+ width: '100%',
51
+ }, children: _jsxs(C3ResponsiveStack, { alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(C3ResponsiveStack, { orientation: props?.orientation ?? 'horizontal', gap: 1, children: [_jsx("span", { className: 'cds--actionable-notification__title', children: props.title }), _jsx("p", { children: props.subtitle })] }), buttonSlot] }) }), _jsx("div", { style: {
52
+ width: '100%',
53
+ visibility: 'hidden',
54
+ }, children: _jsxs(C3ResponsiveStack, { alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(C3ResponsiveStack, { orientation: props?.orientation ?? 'horizontal', gap: 1, children: [_jsx("span", { className: 'cds--actionable-notification__title', children: props.title }), _jsx("p", { children: props.subtitle })] }), buttonSlot] }) })] }));
55
+ }
56
+ const { kind, title, subtitle, actionButtonLabel, onActionButtonClick, hideCloseButton, onCloseButtonClick, secondaryActionButtonLabel, onSecondaryActionButtonClick, } = props;
57
+ return (_jsxs(Alert, { variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: subtitle, dismissible: !hideCloseButton, onDismiss: onCloseButtonClick, children: [actionButtonLabel ? (_jsx(Button, { variant: 'link', className: 'h-auto p-0', onClick: onActionButtonClick, children: actionButtonLabel })) : undefined, secondaryActionButtonLabel && onSecondaryActionButtonClick ? (_jsx(Button, { variant: 'link', className: 'h-auto p-0', onClick: onSecondaryActionButtonClick, children: secondaryActionButtonLabel })) : undefined] }));
58
+ }
@@ -4,8 +4,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, FormLabel, Stack } from '@carbon/react';
7
+ import { FormLabel } from '@carbon/react';
8
8
  import { Add, Close } from '@carbon/react/icons/index.esm.js';
9
+ import { Button, Stack } from '../../ui/index.js';
9
10
  export const ArrayFieldContainer = ({ fieldName, spec, title, groups, onAddItem, onRemoveItem, onRemoveAll, renderRow, }) => {
10
11
  return (_jsxs(Stack, { gap: 2, children: [_jsxs("div", { style: {
11
12
  display: 'flex',
@@ -1,11 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Button, TextInput } from '@carbon/react';
8
2
  import { useEffect, useRef, useState } from 'react';
3
+ import { Button, TextInput } from '../../ui/index.js';
9
4
  export const AutosuggestInput = ({ id, value, placeholder, labelText = 'Value', invalid, invalidText, fetchSuggestions, isArrayOp, onChange, onEnterAdd, onPick, }) => {
10
5
  const [focused, setFocused] = useState(false);
11
6
  const [loading, setLoading] = useState(false);
@@ -4,11 +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 { Button, Checkbox, DatePicker, DatePickerInput, FormLabel, NumberInput, Select, SelectItem, Tag, } from '@carbon/react';
7
+ import { DatePicker, DatePickerInput, FormLabel, NumberInput, } from '@carbon/react';
8
8
  import { Close } from '@carbon/react/icons/index.esm.js';
9
+ import { Button, Checkbox, Tag } from '../../ui/index.js';
10
+ import { useSelectFamily } from '../../ui/families.js';
9
11
  import { AutosuggestInput } from './AutosuggestInput.js';
10
12
  import { isArrayOperator } from './utils.js';
11
13
  export const FieldRow = ({ field, spec, onFieldChange, onRemove, onAddArrayValue, onRemoveArrayValue, }) => {
14
+ const { Select, SelectItem } = useSelectFamily();
12
15
  const isOptional = spec.optional;
13
16
  const showOperator = field.matchType === 'advanced-filter' && spec.operators?.length;
14
17
  const showEqualSign = field.matchType === 'exact-match' || spec.matchType === 'exact-match';
@@ -1,10 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Stack } from '@carbon/react';
2
+ import { Stack } from '../../ui/index.js';
8
3
  import { ArrayFieldContainer } from './ArrayFieldContainer.js';
9
4
  export const FiltersSection = ({ fields, filterFields, addArrayItem, updateFilter, renderFieldRow, }) => {
10
5
  const groupedFields = filterFields.reduce((groups, field) => {
@@ -4,10 +4,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, Select, SelectItem } from '@carbon/react';
8
7
  import { Close } from '@carbon/react/icons/index.esm.js';
8
+ import { Button } from '../../ui/index.js';
9
+ import { useSelectFamily } from '../../ui/families.js';
9
10
  import { ArrayFieldContainer } from './ArrayFieldContainer.js';
10
11
  export const OrSection = ({ sectionId, fieldsConfig, filterFields, addArrayItem, removeOrSection, addOptionalFieldToSection, updateFilter, renderFieldRow, }) => {
12
+ const { Select, SelectItem } = useSelectFamily();
11
13
  const sectionFields = filterFields;
12
14
  const availableFields = Object.entries(fieldsConfig)
13
15
  .filter(([fieldName, spec]) => {
@@ -4,14 +4,16 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, Select, SelectItem, Stack } from '@carbon/react';
8
7
  import { Add } from '@carbon/react/icons/index.esm.js';
9
8
  import { useCallback, useEffect, useState } from 'react';
9
+ import { Button, Stack } from '../../ui/index.js';
10
+ import { useSelectFamily } from '../../ui/families.js';
10
11
  import { FieldRow } from './FieldRow.js';
11
12
  import { FiltersSection } from './FiltersSection.js';
12
13
  import { OrSection } from './OrSection.js';
13
14
  import { convertDateToISOString, getInitialValue, isArrayOperator, validateComparisonOperatorValue, } from './utils.js';
14
15
  export const C4AdvancedSearchFilters = ({ fields, onFilterChange, }) => {
16
+ const { Select, SelectItem } = useSelectFamily();
15
17
  const [filterFields, setFilterFields] = useState([]);
16
18
  const [orSections, setOrSections] = useState([]);
17
19
  const [nextId, setNextId] = useState(1);
@@ -1,15 +1,10 @@
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 { C3EmptyState } from '@camunda/camunda-composite-components';
8
2
  import { C4_ASSET_URLS } from '../../assetUrls.js';
3
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
9
4
  import { C4LLMUsageMeter } from '../c4-llm-usage-meter/c4-llm-usage-meter.js';
10
5
  export const C4AiUsage = ({ usage, limit, isLoading = false, hasError = false, emptyStateIconPath, text, urls, onViewBlueprints, onLearnMore, }) => {
11
6
  if (!isLoading && !hasError && usage === 0) {
12
- return (_jsx(C3EmptyState, { icon: {
7
+ return (_jsx(C4EmptyState, { card: true, icon: {
13
8
  path: emptyStateIconPath ?? C4_ASSET_URLS.aiIcon,
14
9
  altText: 'aiIcon',
15
10
  }, heading: text.emptyStateTitle, description: text.emptyStateDescription, button: {
@@ -1,8 +1,8 @@
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 { InlineNotification, Select, SelectItem, Stack } from '@carbon/react';
8
- export const C4AlphaClusterAtCheckout = (props) => (_jsxs(Stack, { gap: 6, children: [_jsx(InlineNotification, { kind: 'info', title: props.warning, hideCloseButton: true, lowContrast: true }), props.description, _jsxs(Select, { id: 'what-to-do-with-alpha-cluster', labelText: props.question, onChange: (event) => props.selectionChanged(event.target.value), defaultValue: 'empty', size: 'lg', children: [_jsx(SelectItem, { id: 'empty', value: 'empty', text: props.options.empty }, 'empty'), _jsx(SelectItem, { id: 'delete', value: 'delete', text: props.options.delete }, 'delete'), _jsx(SelectItem, { id: 'keep', value: 'keep', text: props.options.keep }, 'keep')] }, 'what-to-do-with-alpha-cluster')] }));
2
+ import { Stack } from '../../ui/index.js';
3
+ import { useSelectFamily } from '../../ui/families.js';
4
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
5
+ export const C4AlphaClusterAtCheckout = (props) => {
6
+ const { Select, SelectItem } = useSelectFamily();
7
+ return (_jsxs(Stack, { gap: 6, children: [_jsx(C4InlineNotification, { kind: 'info', title: props.warning, hideCloseButton: true, lowContrast: true }), props.description, _jsxs(Select, { id: 'what-to-do-with-alpha-cluster', labelText: props.question, onChange: (event) => props.selectionChanged(event.target.value), defaultValue: 'empty', size: 'lg', children: [_jsx(SelectItem, { id: 'empty', value: 'empty', text: props.options.empty }, 'empty'), _jsx(SelectItem, { id: 'delete', value: 'delete', text: props.options.delete }, 'delete'), _jsx(SelectItem, { id: 'keep', value: 'keep', text: props.options.keep }, 'keep')] }, 'what-to-do-with-alpha-cluster')] }));
8
+ };
@@ -1,10 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Tile } from '@carbon/react';
2
+ import { Tile } from '../../ui/index.js';
8
3
  export const C4AppTeaserCard = (props) => {
9
4
  const gap = 1;
10
5
  return (_jsx(Tile, { style: {
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
7
+ import { render, screen } from '@testing-library/react';
8
+ import { C4ConsoleRuntimeProvider } from '../../runtime/c4-console-runtime-context.js';
9
+ import { C4AppTeaserCard } from './c4-app-teaster-card.js';
10
+ const PROPS = {
11
+ id: 'operate',
12
+ title: 'Operate',
13
+ img: { path: '/operate.png', altText: 'Operate preview' },
14
+ description: 'Monitor processes',
15
+ };
16
+ function renderCard(designSystem) {
17
+ if (!designSystem) {
18
+ return render(_jsx(C4AppTeaserCard, { ...PROPS }));
19
+ }
20
+ const wrapper = ({ children }) => (_jsx(C4ConsoleRuntimeProvider, { config: {
21
+ stage: 'dev',
22
+ designSystem,
23
+ auth: { getAccessToken: async () => '' },
24
+ backendUrls: {},
25
+ }, children: children }));
26
+ return render(_jsx(C4AppTeaserCard, { ...PROPS }), { wrapper });
27
+ }
28
+ describe('C4AppTeaserCard design-system switch', () => {
29
+ it('renders the Carbon Tile by default (no runtime provider)', () => {
30
+ const { container } = renderCard();
31
+ expect(screen.getByText('Operate')).toBeInTheDocument();
32
+ expect(container.querySelector('.cds--tile')).toBeTruthy();
33
+ });
34
+ it("renders the Carbon Tile when designSystem is 'carbon'", () => {
35
+ const { container } = renderCard('carbon');
36
+ expect(container.querySelector('.cds--tile')).toBeTruthy();
37
+ });
38
+ it("renders the Design System adapter (not Carbon Tile) when designSystem is 'ds'", () => {
39
+ const { container } = renderCard('ds');
40
+ expect(screen.getByText('Operate')).toBeInTheDocument();
41
+ expect(container.querySelector('.cds--tile')).toBeNull();
42
+ });
43
+ });
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * under one or more contributor license agreements. Licensed under a commercial license.
6
6
  * You may not use this file except in compliance with the commercial license.
7
7
  */
8
- import { Button, Stack } from '@carbon/react';
8
+ import { Button, Stack } from '../../ui/index.js';
9
9
  import { C4AppTeaserCard } from '../c4-app-teaser-card/c4-app-teaster-card.js';
10
10
  export const C4AppTeaserCards = ({ title, subtitle, cards, cta, subtext, }) => {
11
11
  const innerColumns = new Array(cards.length).fill('340px');
@@ -4,8 +4,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { ActionableNotification, Modal, SkeletonText, Stack, } from '@carbon/react';
8
7
  import { useEffect, useState } from 'react';
8
+ import { Modal, SkeletonText, Stack } from '../../ui/index.js';
9
+ import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
9
10
  export const C4AsyncModal = ({ open, loadingText, modalHeading, onRequestClose, onRequestSubmit, primaryButtonText, secondaryButtonText, children, danger, primaryButtonDisabled, size, preventCloseOnClickOutside, }) => {
10
11
  // ///////////////////
11
12
  // STATES
@@ -57,7 +58,7 @@ export const C4AsyncModal = ({ open, loadingText, modalHeading, onRequestClose,
57
58
  });
58
59
  };
59
60
  const content = isDoingAsyncWork ? _jsx(SkeletonText, {}) : children;
60
- const body = (_jsxs(Stack, { gap: 6, children: [content, isError() ? (error.action ? (_jsx(ActionableNotification, { kind: 'error', inline: true, lowContrast: true, hideCloseButton: true, style: { position: 'sticky', bottom: '0' }, actionButtonLabel: error.action.title, onActionButtonClick: error.action.action, title: error.title, subtitle: error.description })) : (_jsx(ActionableNotification, { kind: 'error', lowContrast: true, title: error.title, style: { position: 'sticky', bottom: '0', maxInlineSize: 'none' }, subtitle: error.description, hideCloseButton: true, role: 'banner' }))) : ('')] }));
61
+ const body = (_jsxs(Stack, { gap: 6, children: [content, isError() ? (error.action ? (_jsx(C4ActionableNotification, { kind: 'error', inline: true, lowContrast: true, hideCloseButton: true, style: { position: 'sticky', bottom: '0' }, actionButtonLabel: error.action.title, onActionButtonClick: error.action.action, title: error.title, subtitle: error.description })) : (_jsx(C4ActionableNotification, { kind: 'error', lowContrast: true, title: error.title, style: { position: 'sticky', bottom: '0', maxInlineSize: 'none' }, subtitle: error.description, hideCloseButton: true, role: 'banner' }))) : ('')] }));
61
62
  // ///////////////////
62
63
  // COMPONENT
63
64
  const component = (_jsx(Modal, { open: isModalOpen, preventCloseOnClickOutside: !!(isDoingAsyncWork || preventCloseOnClickOutside), size: size, loadingStatus: isDoingAsyncWork ? 'active' : 'inactive', loadingDescription: loadingText, modalHeading: modalHeading, primaryButtonText: primaryButtonText, secondaryButtonText: secondaryButtonText, primaryButtonDisabled: primaryButtonDisabled, onRequestSubmit: handleSubmitRequest,
@@ -4,11 +4,12 @@ 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 { C3EmptyState } from '@camunda/camunda-composite-components';
8
- import { Button, Checkbox, InlineLoading, Link, Modal, Stack, } from '@carbon/react';
7
+ import { InlineLoading } from '@carbon/react';
9
8
  import { Checkmark, Launch } from '@carbon/react/icons/index.esm.js';
10
9
  import { useCallback, useEffect, useRef, useState } from 'react';
11
10
  import { C4_ASSET_URLS } from '../../assetUrls.js';
11
+ import { Button, Checkbox, Link, Modal, Stack } from '../../ui/index.js';
12
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
12
13
  const ALL_CATEGORIES = [
13
14
  'ADMIN',
14
15
  'DEPLOYED_RESOURCES',
@@ -83,7 +84,7 @@ export const C4AuditLog = ({ enabled, userCategories, clientCategories, onUpdate
83
84
  await onDisable();
84
85
  };
85
86
  if (!enabled) {
86
- return (_jsx(C3EmptyState, { icon: {
87
+ return (_jsx(C4EmptyState, { card: true, icon: {
87
88
  path: C4_ASSET_URLS.auditLogIcon,
88
89
  altText: 'auditLogIcon',
89
90
  }, heading: 'Audit log of operations', description: 'The audit log records user and client operations across processes, decisions, user tasks and identity. It helps your team trace events, when they occurred, what was affected, and whether they were successful.', button: permissions.mayChange
@@ -4,8 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Column, Grid, Stack } from '@carbon/react';
7
+ import { Column, Grid } from '@carbon/react';
8
8
  import styled from 'styled-components';
9
+ import { Stack } from '../../ui/index.js';
10
+ import { C4PageLayout } from '../c4-page-layout/c4-page-layout.js';
9
11
  import { ClusterReservations } from './elements/cluster-reservations.js';
10
12
  import { CurrentUsageMetrics } from './elements/current-usage-metrics.js';
11
13
  import { PlanDetails } from './elements/plan-details.js';
@@ -30,10 +32,10 @@ const Wrapper = styled.div `
30
32
  }
31
33
  `;
32
34
  export const C4BillingPage = ({ title, subheading, planDetails, usageAlerts, clusterReservations, currentUsageMetrics, isEnterpriseOrg = false, }) => {
33
- const component = (_jsx(Wrapper, { children: _jsxs(Stack, { gap: 6, children: [_jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsxs(Stack, { gap: 6, children: [title && _jsx("h1", { children: title }), subheading && (_jsx("span", { style: { color: 'var(--cds-text-secondary)' }, children: subheading }))] }) }) }), _jsxs(Stack, { gap: 5, children: [_jsxs(TopRowWrapper, { style: { ...STYLES.grid }, children: [_jsx("div", { children: _jsx(PlanDetails, { ...planDetails }) }), _jsx("div", { children: usageAlerts && _jsx(UsageAlerts, { ...usageAlerts }) })] }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx(CurrentUsageMetrics, { ...currentUsageMetrics, isEnterpriseOrg: isEnterpriseOrg }) }) }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx("div", { style: {
34
- display: 'flex',
35
- flexDirection: 'column',
36
- overflowX: 'auto',
37
- }, children: _jsx(ClusterReservations, { ...clusterReservations }) }) }) })] })] }) }));
35
+ const component = (_jsx(C4PageLayout, { children: _jsx(Wrapper, { children: _jsxs(Stack, { gap: 6, children: [_jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsxs(Stack, { gap: 6, children: [title && _jsx("h1", { children: title }), subheading && (_jsx("span", { style: { color: 'var(--cds-text-secondary)' }, children: subheading }))] }) }) }), _jsxs(Stack, { gap: 5, children: [_jsxs(TopRowWrapper, { style: { ...STYLES.grid }, children: [_jsx("div", { children: _jsx(PlanDetails, { ...planDetails }) }), _jsx("div", { children: usageAlerts && _jsx(UsageAlerts, { ...usageAlerts }) })] }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx(CurrentUsageMetrics, { ...currentUsageMetrics, isEnterpriseOrg: isEnterpriseOrg }) }) }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx("div", { style: {
36
+ display: 'flex',
37
+ flexDirection: 'column',
38
+ overflowX: 'auto',
39
+ }, children: _jsx(ClusterReservations, { ...clusterReservations }) }) }) })] })] }) }) }));
38
40
  return component;
39
41
  };
@@ -0,0 +1,3 @@
1
+ import type { C4BillingPageProps } from './c4-billing-page.types';
2
+ export declare const enterpriseProps: C4BillingPageProps;
3
+ export declare const enterpriseLicensingModel2025Props: C4BillingPageProps;
@@ -0,0 +1,154 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const usageAlerts = {
3
+ title: 'Usage alerts',
4
+ description: 'Alerts are sent via email and in-app messages the day after thresholds are met.',
5
+ loading: false,
6
+ action: {
7
+ label: 'View change history',
8
+ onClick: () => console.log('view change history cta clicked'),
9
+ },
10
+ data: {
11
+ heading: {
12
+ metric: 'Metric',
13
+ threshold: 'Usage threshold',
14
+ status: 'Status',
15
+ },
16
+ rows: [
17
+ {
18
+ key: 'pi',
19
+ metric: 'Process instances',
20
+ threshold: '80%',
21
+ status: 'On',
22
+ action: {
23
+ label: 'Edit alert',
24
+ onClick: () => console.log('edit alert cta clicked'),
25
+ },
26
+ },
27
+ {
28
+ key: 'di',
29
+ metric: 'Decision instances',
30
+ threshold: '50%',
31
+ status: 'Off',
32
+ action: {
33
+ label: 'Edit alert',
34
+ onClick: () => console.log('edit alert cta clicked'),
35
+ },
36
+ },
37
+ ],
38
+ },
39
+ };
40
+ export const enterpriseProps = {
41
+ title: 'Billing',
42
+ subheading: (_jsxs("p", { children: ["Contact us for billing queries at", ' ', _jsx("a", { href: 'mailto:prof-user@camunda.com', children: "prof-user@camunda.com" })] })),
43
+ planDetails: {
44
+ title: 'Plan details',
45
+ description: 'Updated on April 27, 2023 at 6AM (UTC +1)',
46
+ loading: false,
47
+ plan: {
48
+ title: 'Enterprise',
49
+ subTitle: 'Plan',
50
+ },
51
+ additional: {
52
+ title: 'May 10, 2024',
53
+ subTitle: 'Renews',
54
+ },
55
+ },
56
+ usageAlerts,
57
+ currentUsageMetrics: {
58
+ title: _jsx("p", { children: "\"Current usage metrics\"" }),
59
+ description: 'Billing Period (July 10, 2023 - August 09, 2023)',
60
+ order: ['tu', 'gu', 'pi', 'di'],
61
+ taskUsers: {
62
+ title: 'Task users',
63
+ loading: false,
64
+ metric: {
65
+ kind: 'chart',
66
+ value: {
67
+ current: 5,
68
+ max: 10,
69
+ maxPostfix: 'total seats',
70
+ },
71
+ },
72
+ },
73
+ generalUsers: {
74
+ title: 'General users',
75
+ loading: false,
76
+ metric: {
77
+ kind: 'simple',
78
+ value: {
79
+ title: '5 used',
80
+ max: 'unlimited',
81
+ },
82
+ },
83
+ },
84
+ processInstances: {
85
+ title: 'Process instances',
86
+ loading: false,
87
+ metric: {
88
+ kind: 'chart',
89
+ value: {
90
+ current: 400000,
91
+ max: 500000,
92
+ maxPostfix: 'incl.',
93
+ },
94
+ },
95
+ },
96
+ decisionInstances: {
97
+ title: 'Decision instances',
98
+ loading: false,
99
+ metric: {
100
+ kind: 'chart',
101
+ value: {
102
+ current: 600000,
103
+ max: 500000,
104
+ maxPostfix: 'incl.',
105
+ },
106
+ overagesDescription: 'You are exceeding the usage included in your monthly plan. Additional usage will be billed in your next invoice. Contact prof-user@camunda.com if you have any questions.',
107
+ },
108
+ },
109
+ },
110
+ clusterReservations: {
111
+ title: 'Clusters',
112
+ description: 'Alerts are sent via email and in-app messages the day after thresholds are met.',
113
+ tooltip: 'Includes both active clusters and their size. Each size increase uses an additional reservation slot. To add more, contact your Customer Success Manager.',
114
+ loading: false,
115
+ data: {
116
+ heading: {
117
+ type: 'Type',
118
+ clusters: 'Clusters running',
119
+ used: 'Reservations used',
120
+ totalReserved: 'Total reservations',
121
+ },
122
+ rows: [
123
+ {
124
+ key: 'dev',
125
+ type: 'Advanced Offering Basic',
126
+ clusters: 0,
127
+ used: 0,
128
+ totalReserved: '0/10',
129
+ },
130
+ {
131
+ key: 'prod',
132
+ type: 'Production Cluster',
133
+ clusters: 1,
134
+ used: 1,
135
+ totalReserved: '1/3',
136
+ },
137
+ ],
138
+ },
139
+ },
140
+ };
141
+ export const enterpriseLicensingModel2025Props = {
142
+ ...enterpriseProps,
143
+ usageAlerts: {
144
+ ...usageAlerts,
145
+ data: {
146
+ ...usageAlerts.data,
147
+ rows: usageAlerts.data.rows.filter((row) => row.key === 'pi'),
148
+ },
149
+ },
150
+ currentUsageMetrics: {
151
+ ...enterpriseProps.currentUsageMetrics,
152
+ order: ['gu', 'pi'],
153
+ },
154
+ };
@@ -1,32 +1,27 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3EmptyState } from '@camunda/camunda-composite-components';
8
- import { StructuredListBody, StructuredListCell, StructuredListHead, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
2
+ import { C4EmptyState } from '../../c4-empty-state/c4-empty-state.js';
9
3
  import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
4
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListWrapper, } from '../../c4-structured-list/c4-structured-list.js';
10
5
  import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
11
6
  export const ClusterReservations = ({ title, description, tooltip, loading, data, }) => {
12
7
  if (data.rows.length === 0) {
13
- return (_jsx(C3EmptyState, { heading: 'No clusters have been created', description: 'To enable cluster creation for this team, first reserve clusters.' }));
8
+ return (_jsx(C4EmptyState, { heading: 'No clusters have been created', description: 'To enable cluster creation for this team, first reserve clusters.' }));
14
9
  }
15
10
  const component = (_jsx(C4TileWithTitleAndAction, { title: title, tooltip: tooltip, description: description, loading: loading, children: _jsx(ClusterReservationsStructuredList, { ...data }) }));
16
11
  return component;
17
12
  };
18
13
  const ClusterReservationsStructuredList = ({ heading, rows, }) => {
19
- const listContent = (_jsxs(StructuredListRow, { head: true, children: [_jsx(StructuredListCell, { head: true, children: heading.type }), (() => {
14
+ const listContent = (_jsxs(C4StructuredListRow, { head: true, children: [_jsx(C4StructuredListCell, { head: true, children: heading.type }), (() => {
20
15
  if (heading.clusters) {
21
- return (_jsx(StructuredListCell, { head: true, children: heading.clusters }));
16
+ return (_jsx(C4StructuredListCell, { head: true, children: heading.clusters }));
22
17
  }
23
18
  return _jsx(_Fragment, {});
24
- })(), _jsx(StructuredListCell, { head: true, children: heading.used }), _jsx(StructuredListCell, { head: true, children: heading.totalReserved }), _jsx(StructuredListCell, { head: true })] }));
25
- const component = (_jsxs(StructuredListWrapper, { isFlush: true, children: [_jsx(StructuredListHead, { children: listContent }), _jsx(StructuredListBody, { children: rows.map((row) => (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, children: row.type }), (() => {
19
+ })(), _jsx(C4StructuredListCell, { head: true, children: heading.used }), _jsx(C4StructuredListCell, { head: true, children: heading.totalReserved }), _jsx(C4StructuredListCell, { head: true })] }));
20
+ const component = (_jsxs(C4StructuredListWrapper, { isFlush: true, children: [_jsx(C4StructuredListHead, { children: listContent }), _jsx(C4StructuredListBody, { children: rows.map((row) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, children: row.type }), (() => {
26
21
  if (heading.clusters && row.clusters !== undefined) {
27
- return (_jsx(StructuredListCell, { noWrap: true, children: row.clusters }));
22
+ return (_jsx(C4StructuredListCell, { noWrap: true, children: row.clusters }));
28
23
  }
29
24
  return _jsx(_Fragment, {});
30
- })(), _jsx(StructuredListCell, { noWrap: true, children: row.used }), _jsx(StructuredListCell, { noWrap: true, children: row.totalReserved }), _jsx(StructuredListCell, { noWrap: true, children: row.action && (_jsx(C4LinkButton, { label: row.action?.label, onClick: () => row.action?.onClick() })) })] }, row.key))) })] }));
25
+ })(), _jsx(C4StructuredListCell, { noWrap: true, children: row.used }), _jsx(C4StructuredListCell, { noWrap: true, children: row.totalReserved }), _jsx(C4StructuredListCell, { noWrap: true, children: row.action && (_jsx(C4LinkButton, { label: row.action?.label, onClick: () => row.action?.onClick() })) })] }, row.key))) })] }));
31
26
  return component;
32
27
  };
@@ -4,8 +4,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Column, Grid, Stack } from '@carbon/react';
7
+ import { Column, Grid } from '@carbon/react';
8
8
  import { useEffect, useState } from 'react';
9
+ import { Stack } from '../../../ui/index.js';
9
10
  import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
10
11
  import { STYLES } from '../c4-billing-page.js';
11
12
  import { ValueMetric } from './value-metric.js';