@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.
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +4 -17
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +5 -47
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +14 -6
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +1 -2
- package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +4 -8
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +3 -2
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +3 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +16 -32
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +7 -15
- package/lib/esm/components/c4-billing-page/custom-styles.js +9 -9
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +9 -3
- package/lib/esm/components/c4-billing-page/elements/plan-details.js +3 -3
- package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +18 -46
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +4 -10
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +4 -15
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +14 -41
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -38
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +5 -5
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -22
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +10 -28
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -2
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +4 -4
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +20 -44
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +8 -16
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -2
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +35 -33
- package/lib/esm/components/c4-cluster-list/c4-cluster-expiry-tag.js +3 -7
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +38 -157
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +7 -8
- package/lib/esm/components/c4-cluster-overview/applications.js +71 -157
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +4 -18
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +11 -50
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +19 -36
- package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +2 -4
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -199
- package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-section.js +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -5
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +1 -2
- package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -3
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +12 -77
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +0 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +47 -52
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +11 -2
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +16 -4
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +3 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +2 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +20 -58
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +157 -189
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +2 -3
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +3 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +9 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +3 -18
- package/lib/esm/components/c4-data-table/c4-data-table.d.ts +2 -2
- package/lib/esm/components/c4-data-table/c4-data-table.js +3 -17
- package/lib/esm/components/c4-delete-account-modal/c4-delete-account-modal.js +1 -2
- package/lib/esm/components/c4-divider/c4-divider.js +5 -13
- package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +6 -12
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +1 -9
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +1 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +2 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +2 -2
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.d.ts +4 -18
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.js +7 -33
- package/lib/esm/components/c4-help-center/help-center-placeholders.d.ts +1 -1
- package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +2 -2
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +2 -2
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -9
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +7 -17
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +0 -5
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +1 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +0 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +4 -56
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +9 -88
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +12 -26
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +3 -4
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +0 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +3 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +3 -3
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +25 -25
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +5 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +6 -39
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +1 -6
- package/lib/esm/components/c4-management-api/c4-management-api.js +4 -6
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +24 -34
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +7 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +3 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +6 -3
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +17 -33
- package/lib/esm/components/c4-navigation/c4-navigation.js +12 -25
- package/lib/esm/components/c4-number-input/c4-number-input.js +20 -6
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -4
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +2 -2
- package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +2 -6
- package/lib/esm/components/c4-page-layout/c4-page-layout.js +3 -12
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +0 -3
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -11
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +14 -14
- package/lib/esm/components/c4-pricing/c4-pricing.js +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +5 -13
- package/lib/esm/components/c4-search/c4-search-results.js +44 -36
- package/lib/esm/components/c4-search/c4-search.js +5 -7
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +5 -19
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +6 -18
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +5 -8
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +5 -19
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +12 -2
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +4 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +33 -18
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -60
- package/lib/esm/components/c4-tabs/c4-tabs.js +4 -8
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +3 -3
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +13 -9
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +3 -12
- package/lib/esm/components/c4-toggle/c4-toggle.js +1 -3
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +2 -2
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +3 -9
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +4 -5
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +3 -40
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +4 -5
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -3
- package/lib/esm/components/shared-charts/ds-line-chart.d.ts +4 -6
- package/lib/esm/components/shared-charts/ds-line-chart.js +5 -7
- package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +3 -5
- package/lib/esm/components/shared-charts/ds-meter-chart.js +8 -10
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +6 -7
- package/lib/esm/components/shared-charts/recharts-tokens.js +6 -7
- package/lib/esm/index.css +107 -74
- package/lib/esm/index.d.ts +1 -9
- package/lib/esm/index.js +1 -5
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +3 -10
- package/lib/esm/runtime/c4-console-runtime-context.js +11 -23
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +0 -8
- package/lib/esm/runtime/c4-user-theme.d.ts +4 -4
- package/lib/esm/runtime/c4-user-theme.js +4 -4
- package/lib/esm/runtime/index.d.ts +1 -1
- package/lib/esm/runtime/index.js +1 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +2 -2
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +2 -2
- package/lib/esm/ui/c4-cluster-tag.d.ts +1 -1
- package/lib/esm/ui/c4-cluster-tag.js +1 -1
- package/lib/esm/ui/c4-modal-dialog.d.ts +7 -11
- package/lib/esm/ui/c4-modal-dialog.js +18 -9
- package/lib/esm/ui/c4-password-input.d.ts +4 -8
- package/lib/esm/ui/c4-password-input.js +4 -8
- package/lib/esm/ui/c4-text-area.d.ts +19 -0
- package/lib/esm/ui/c4-text-area.js +30 -0
- package/lib/esm/ui/ds-compact-code-block.d.ts +1 -1
- package/lib/esm/ui/ds-compact-code-block.js +1 -1
- package/lib/esm/ui/families.d.ts +13 -46
- package/lib/esm/ui/families.js +8 -51
- package/lib/esm/ui/index.d.ts +11 -53
- package/lib/esm/ui/index.js +19 -152
- package/lib/esm/ui/tabs.d.ts +1 -21
- package/lib/esm/ui/tabs.js +1 -22
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +4 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
- package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
- package/lib/esm/widgets/management/c4-management-app.js +6 -9
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
- package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
- package/package.json +3 -14
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
- package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
- package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
- package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
- package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
- package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
- package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
- package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
- package/lib/esm/ui/c4-definition-tooltip.js +0 -43
- package/lib/esm/ui/switchable.d.ts +0 -14
- package/lib/esm/ui/switchable.js +0 -27
|
@@ -4,51 +4,27 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { CheckmarkFilled, Download, ErrorFilled, RuleLocked, WarningAltFilled, } from '@carbon/react/icons/index.esm.js';
|
|
7
|
+
import { CircleCheck, CircleX, Download, LockKeyhole, TriangleAlert, } from 'lucide-react';
|
|
9
8
|
import { useState } from 'react';
|
|
10
9
|
import { Button, CodeSnippet, Link, Stack, TextInput, Tile } from '../../ui/index.js';
|
|
11
|
-
import {
|
|
10
|
+
import { Tab, TabList, TabPanel, TabPanels, Tabs } from '../../ui/tabs.js';
|
|
12
11
|
import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
|
|
12
|
+
import { DS_STATUS_ICON_COLORS, SpinningLoader, } from '../c4-cluster-overview/ds-status-icon-text.js';
|
|
13
13
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
14
14
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
15
15
|
export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPolicy, failoverCloneRolePolicyStatement, secondaryReplicationNotReady, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled = false, }) => {
|
|
16
|
-
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
17
16
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
18
17
|
const handleTabChange = (evt) => {
|
|
19
18
|
setSelectedIndex(evt.selectedIndex);
|
|
20
19
|
};
|
|
20
|
+
const statusLine = (Icon, color, label) => (_jsxs(_Fragment, { children: [_jsx("div", { style: { position: 'absolute', display: 'flex', color }, children: _jsx(Icon, { size: 16, "aria-hidden": true }) }), _jsx("span", { style: { marginLeft: '24px' }, children: label })] }));
|
|
21
21
|
const status = {
|
|
22
|
-
Ready: (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
position: 'absolute',
|
|
29
|
-
display: 'flex',
|
|
30
|
-
color: 'var(--cds-support-error)',
|
|
31
|
-
}, children: _jsx(ErrorFilled, {}) }), _jsx("span", { style: { marginLeft: '24px' }, children: "There was an error communicating with the external key provider" })] })),
|
|
32
|
-
CreationError: (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
33
|
-
position: 'absolute',
|
|
34
|
-
display: 'flex',
|
|
35
|
-
color: 'var(--cds-support-error)',
|
|
36
|
-
}, children: _jsx(ErrorFilled, {}) }), _jsx("span", { style: { marginLeft: '24px' }, children: "An error occurred while setting up encryption" })] })),
|
|
37
|
-
EncryptedStorageNotReady: (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
38
|
-
position: 'absolute',
|
|
39
|
-
display: 'flex',
|
|
40
|
-
color: 'var(--cds-support-warning)',
|
|
41
|
-
}, children: _jsx(WarningAltFilled, {}) }), _jsx("span", { style: { marginLeft: '24px' }, children: "Encrypted Storage is not ready" })] })),
|
|
42
|
-
ExternalEncryptionKeyNotReady: (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
43
|
-
position: 'absolute',
|
|
44
|
-
display: 'flex',
|
|
45
|
-
color: 'var(--cds-support-warning)',
|
|
46
|
-
}, children: _jsx(WarningAltFilled, {}) }), _jsx("span", { style: { marginLeft: '24px' }, children: "External encryption key is not ready" })] })),
|
|
47
|
-
ExternalEncryptionKeyNotSupplied: (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
48
|
-
position: 'absolute',
|
|
49
|
-
display: 'flex',
|
|
50
|
-
color: 'var(--cds-support-warning)',
|
|
51
|
-
}, children: _jsx(WarningAltFilled, {}) }), _jsx("span", { style: { marginLeft: '24px' }, children: "Unconfigured" })] })),
|
|
22
|
+
Ready: statusLine(CircleCheck, DS_STATUS_ICON_COLORS.success, 'Encrypted'),
|
|
23
|
+
ProviderError: statusLine(CircleX, DS_STATUS_ICON_COLORS.danger, 'There was an error communicating with the external key provider'),
|
|
24
|
+
CreationError: statusLine(CircleX, DS_STATUS_ICON_COLORS.danger, 'An error occurred while setting up encryption'),
|
|
25
|
+
EncryptedStorageNotReady: statusLine(TriangleAlert, DS_STATUS_ICON_COLORS.warning, 'Encrypted Storage is not ready'),
|
|
26
|
+
ExternalEncryptionKeyNotReady: statusLine(TriangleAlert, DS_STATUS_ICON_COLORS.warning, 'External encryption key is not ready'),
|
|
27
|
+
ExternalEncryptionKeyNotSupplied: statusLine(TriangleAlert, DS_STATUS_ICON_COLORS.warning, 'Unconfigured'),
|
|
52
28
|
};
|
|
53
29
|
// Replication to the secondary region can fail silently, so this warning
|
|
54
30
|
// has to reach the customer no matter which view below is showing: the
|
|
@@ -72,10 +48,10 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPol
|
|
|
72
48
|
if (encryption.lockArn ||
|
|
73
49
|
(cluster.primaryEncryptionKeyId != null &&
|
|
74
50
|
cluster.status === 'EncryptedStorageNotReady')) {
|
|
75
|
-
return _jsx(
|
|
51
|
+
return (_jsxs("span", { style: { display: 'inline-flex', gap: '8px' }, children: [_jsx(SpinningLoader, { size: 16, "aria-hidden": true }), text.configuringEncryption] }));
|
|
76
52
|
}
|
|
77
53
|
else {
|
|
78
|
-
return (_jsx(Button, { size: 'md', renderIcon:
|
|
54
|
+
return (_jsx(Button, { size: 'md', renderIcon: LockKeyhole, onClick: onSetARN, disabled: disabled ||
|
|
79
55
|
cluster.primaryEncryptionKeyId !== null ||
|
|
80
56
|
!encryption.validArnPrimary ||
|
|
81
57
|
!encryption.validArnRegionPrimary, children: text.inputTileButton }));
|
|
@@ -100,10 +76,10 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPol
|
|
|
100
76
|
if (encryption.lockArn ||
|
|
101
77
|
(cluster.primaryEncryptionKeyId != null &&
|
|
102
78
|
cluster.status === 'EncryptedStorageNotReady')) {
|
|
103
|
-
return _jsx(
|
|
79
|
+
return (_jsxs("span", { style: { display: 'inline-flex', gap: '8px' }, children: [_jsx(SpinningLoader, { size: 16, "aria-hidden": true }), text.configuringEncryption] }));
|
|
104
80
|
}
|
|
105
81
|
else {
|
|
106
|
-
return (_jsx(Button, { size: 'md', renderIcon:
|
|
82
|
+
return (_jsx(Button, { size: 'md', renderIcon: LockKeyhole, onClick: onSetARN, disabled: disabled ||
|
|
107
83
|
!encryption.actionRequired ||
|
|
108
84
|
!encryption.validArnPrimary ||
|
|
109
85
|
!encryption.validArnSecondary ||
|
|
@@ -113,7 +89,7 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPol
|
|
|
113
89
|
})()] }));
|
|
114
90
|
}
|
|
115
91
|
if (cluster.status === 'Ready') {
|
|
116
|
-
return (_jsxs(_Fragment, { children: [secondaryReplicationWarning, _jsxs(Stack, { gap: 6, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, {
|
|
92
|
+
return (_jsxs(_Fragment, { children: [secondaryReplicationWarning, _jsxs(Stack, { gap: 6, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'single', children: cluster.primaryEncryptionKeyId }) })] }), cluster.isDualRegion && cluster.secondaryEncryptionKeyId && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'single', children: cluster.secondaryEncryptionKeyId }) })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "Key Policy" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, children: scripts.keyPolicy }) })] })] }) }) })] })] }));
|
|
117
93
|
}
|
|
118
94
|
// A failed-over cluster already has its keys set (they are reversed from the
|
|
119
95
|
// source at failover time), so the "create a new key" flow below would be
|
|
@@ -130,9 +106,9 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPol
|
|
|
130
106
|
maxWidth: '100%',
|
|
131
107
|
width: '100%',
|
|
132
108
|
marginBottom: '24px',
|
|
133
|
-
}, lowContrast: true, kind: 'warning', title: text.notificationTitle, subtitle: text.notificationText, hideCloseButton: true })), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsxs("p", { children: [text.infoText, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsxs(Stack, { orientation: 'vertical', gap: 6, style: { gridTemplateColumns: '1fr' }, children: [_jsx(Tile, { children: _jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] }))] }) }) }), _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: "1. Key creation & configuration (select preferred method)" }),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
109
|
+
}, lowContrast: true, kind: 'warning', title: text.notificationTitle, subtitle: text.notificationText, hideCloseButton: true })), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsxs("p", { children: [text.infoText, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsxs(Stack, { orientation: 'vertical', gap: 6, style: { gridTemplateColumns: '1fr' }, children: [_jsx(Tile, { children: _jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] }))] }) }) }), _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: "1. Key creation & configuration (select preferred method)" }), _jsxs(Tabs, { selectedIndex: selectedIndex, onChange: handleTabChange, children: [_jsxs(TabList, { "aria-label": 'List of tabs', contained: true, children: [_jsx(Tab, { children: text.cliTabTitle }), _jsx(Tab, { children: text.manualTabTitle })] }), _jsxs(TabPanels, { children: [_jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { style: {
|
|
110
|
+
margin: 0,
|
|
111
|
+
fontSize: '14px',
|
|
112
|
+
fontWeight: 600,
|
|
113
|
+
}, children: "Create your Key using the below CLI script" }), _jsx("p", { children: text.cliTabStep1 }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadScript, children: text.downloadCliScript }), _jsx("p", { children: text.cliTabStep2 }), _jsx("p", { children: text.cliTabStep3 }), _jsx("span", { children: _jsx(Link, { href: urls.cliScriptLearnMore, target: '_blank', children: text.cliTabLearnMore }) })] }) }), _jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { children: "Create and configure your KMS key in your AWS console" }), _jsxs("p", { children: [text.manualTabStep1.replace('{region}', cluster.region), ' '] }), cluster.isDualRegion ? (_jsxs(_Fragment, { children: [_jsxs("p", { children: [text.manualTabStep2.replace('{region}', cluster.backupRegion || ''), ' '] }), _jsx("p", { children: text.manualTabStep3Dual })] })) : (_jsx("p", { children: text.manualTabStep2Single })), _jsx("label", { children: text.manualTabKeyPolicyLabel }), _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, children: scripts.keyPolicy }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadKeyPolicy, children: text.downloadKeyPolicy }), _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.learnMoreAboutCreatingKmsKey, children: text.snippedTileDokuLink }) })] }) })] })] })] }) }), _jsx(Tile, { children: inputTab })] })] })] }));
|
|
138
114
|
};
|
|
@@ -5,10 +5,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
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 {
|
|
8
|
+
import { CalendarClock, MessageSquare, Pencil, Plus, RefreshCw, } from 'lucide-react';
|
|
9
9
|
import styled from 'styled-components';
|
|
10
10
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
12
11
|
import { Button, Stack, Tile } from '../../ui/index.js';
|
|
13
12
|
import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
|
|
14
13
|
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
@@ -48,16 +47,9 @@ const getStatusIndicator = (status) => {
|
|
|
48
47
|
}
|
|
49
48
|
};
|
|
50
49
|
export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading, hasError, showTeaser, canCreateBackup, canCreateBackupBasedOnTime, clusterSupportsHotBackups, restoreInProgress, text, urls, permissions, restoreError, onCreateBackup, onDeleteBackup, onRestoreBackup, onCreateSchedule, onUpdateSchedule, onDeleteSchedule, onRefresh, onOpenDocs, onTalkToExpert, onGiveFeedback, }) => {
|
|
51
|
-
const designSystem = useC4DesignSystem();
|
|
52
50
|
const expandedRow = (row) => {
|
|
53
51
|
const backup = backups.find((b) => b.id === row.id);
|
|
54
52
|
return (_jsx("div", { style: {
|
|
55
|
-
// Carbon's TableExpandedRow insets its content by the expand-toggle
|
|
56
|
-
// column width; the negative margin pulls the labels back to align
|
|
57
|
-
// with the first data column. The DS DataTable's expansion region has
|
|
58
|
-
// no such inset, so the same offset would push the content off the
|
|
59
|
-
// left edge and clip it — keep the offset Carbon-only.
|
|
60
|
-
marginLeft: designSystem === 'ds' ? undefined : '-38px',
|
|
61
53
|
fontSize: '12px',
|
|
62
54
|
marginTop: '16px',
|
|
63
55
|
marginBottom: '16px',
|
|
@@ -203,7 +195,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
203
195
|
onClick: onRefresh,
|
|
204
196
|
disabled: false,
|
|
205
197
|
label: text.errorButton,
|
|
206
|
-
icon:
|
|
198
|
+
icon: RefreshCw,
|
|
207
199
|
} }));
|
|
208
200
|
}
|
|
209
201
|
if (backups.length === 0 && !backupSchedule) {
|
|
@@ -215,9 +207,9 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
215
207
|
paddingLeft: '5rem',
|
|
216
208
|
paddingTop: '3rem',
|
|
217
209
|
paddingBottom: '3rem',
|
|
218
|
-
}, children: _jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: 6, children: [_jsx("div", { style: { maxWidth: '80px', width: '100%' }, children: _jsx("img", { src: C4_ASSET_URLS.backupIcon, alt: 'backupsIcon', style: { width: '100%' } }) }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: text.noBackupsTitle }), _jsxs(Stack, { gap: 6, children: [_jsx("p", { style: { maxWidth: '400px' }, children: text.noBackupsDescription }), _jsxs(Stack, { gap: 5, children: [_jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: '1rem', children: [_jsx(Button, { id: 'createBackupCTA', size: 'md', onClick: onCreateBackup, renderIcon:
|
|
210
|
+
}, children: _jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: 6, children: [_jsx("div", { style: { maxWidth: '80px', width: '100%' }, children: _jsx("img", { src: C4_ASSET_URLS.backupIcon, alt: 'backupsIcon', style: { width: '100%' } }) }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: text.noBackupsTitle }), _jsxs(Stack, { gap: 6, children: [_jsx("p", { style: { maxWidth: '400px' }, children: text.noBackupsDescription }), _jsxs(Stack, { gap: 5, children: [_jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: '1rem', children: [_jsx(Button, { id: 'createBackupCTA', size: 'md', onClick: onCreateBackup, renderIcon: Plus, disabled: !permissions.canCreate ||
|
|
219
211
|
!clusterSupportsHotBackups ||
|
|
220
|
-
isRestoring, children: text.createButton }), _jsx(Button, { id: 'createScheduleCTA', size: 'md', onClick: onCreateSchedule, renderIcon:
|
|
212
|
+
isRestoring, children: text.createButton }), _jsx(Button, { id: 'createScheduleCTA', size: 'md', onClick: onCreateSchedule, renderIcon: CalendarClock, disabled: !permissions.canCreate ||
|
|
221
213
|
!clusterSupportsHotBackups ||
|
|
222
214
|
isRestoring, kind: 'tertiary', children: text.scheduleTileButton })] }), _jsx("div", { children: text.infoText })] })] })] })] }) })] }));
|
|
223
215
|
}
|
|
@@ -234,11 +226,11 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
234
226
|
return -1;
|
|
235
227
|
return b.started.getTime() - a.started.getTime();
|
|
236
228
|
});
|
|
237
|
-
return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.restoreInProgressTitle.replace('{backupName}', restoreInProgress.backupName), subtitle: text.restoreInProgressText, hideCloseButton: true })), restoreError && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'error', lowContrast: true, title: text.restoreErrorTitle, subtitle: text.restoreErrorMessage.replace('{backupName}', restoreError.backupName),
|
|
229
|
+
return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.restoreInProgressTitle.replace('{backupName}', restoreInProgress.backupName), subtitle: text.restoreInProgressText, hideCloseButton: true })), restoreError && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'error', lowContrast: true, title: text.restoreErrorTitle, subtitle: text.restoreErrorMessage.replace('{backupName}', restoreError.backupName), onCloseButtonClick: restoreError.onDismiss })), !canCreateBackupBasedOnTime && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.backupsUnavailableTitle, subtitle: text.backupsUnavailableText, hideCloseButton: true })), !backupSchedule ? (_jsx(BackupScheduleWrapper, { children: _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.scheduleTileTitle }), _jsx("p", { children: text.scheduleTileDescription }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, size: 'sm', onClick: onCreateSchedule, kind: 'tertiary', renderIcon: CalendarClock, children: text.scheduleTileButton })] }) }) })) : (_jsx(Tile, { style: { width: '450px' }, children: _jsx(Stack, { gap: 2, children: _jsxs("div", { style: {
|
|
238
230
|
display: 'grid',
|
|
239
231
|
gridTemplateColumns: '1fr 1fr',
|
|
240
232
|
gridGap: '5px 0px',
|
|
241
|
-
}, children: [_jsx("h3", { style: { marginTop: '11px', marginBottom: '14px' }, children: text.scheduleTileTitle }), _jsxs("div", { children: [_jsx(Button, { disabled: !permissions.canDelete || isRestoring, onClick: onDeleteSchedule, kind: 'danger--ghost', style: { float: 'right' }, children: text.scheduleRemoveButton }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, onClick: onUpdateSchedule, kind: 'ghost', renderIcon:
|
|
233
|
+
}, children: [_jsx("h3", { style: { marginTop: '11px', marginBottom: '14px' }, children: text.scheduleTileTitle }), _jsxs("div", { children: [_jsx(Button, { disabled: !permissions.canDelete || isRestoring, onClick: onDeleteSchedule, kind: 'danger--ghost', style: { float: 'right' }, children: text.scheduleRemoveButton }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, onClick: onUpdateSchedule, kind: 'ghost', renderIcon: Pencil, iconDescription: 'Edit', style: { float: 'right' } })] }), _jsx("strong", { children: "Scheduling" }), _jsx("span", { children: backupSchedule.scheduling }), backupSchedule.frequency !== 'Hourly' &&
|
|
242
234
|
backupSchedule.startTime && (_jsxs(_Fragment, { children: [_jsx("strong", { children: text.scheduleStartTime }), _jsxs("span", { children: [backupSchedule.startTime, " UTC", ' ', -new Date().getTimezoneOffset() / 60 > 0 ? '+' : ' ', -new Date().getTimezoneOffset() / 60, ' ', text.scheduleTimezone] })] })), _jsx("strong", { children: text.scheduleFrequency }), _jsx("span", { children: backupSchedule.frequency })] }) }) })), _jsx("div", { style: {
|
|
243
235
|
display: 'flex',
|
|
244
236
|
flexDirection: 'column',
|
|
@@ -254,10 +246,10 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
254
246
|
paddingLeft: '5rem',
|
|
255
247
|
paddingTop: '3rem',
|
|
256
248
|
paddingBottom: '3rem',
|
|
257
|
-
}, children: _jsxs(Stack, { orientation: 'horizontal', gap: 6, children: [_jsx("img", { src: C4_ASSET_URLS.backupIcon, alt: 'backupsIcon' }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: text.emptyTitle }), _jsx(Stack, { gap: 6, children: _jsx("p", { style: { maxWidth: '400px' }, children: text.emptyDescription }) })] })] }) })), _jsxs(Stack, { orientation: 'horizontal', children: [_jsx("span", { className: 'legalText', children: text.infoText }), _jsx(Button, { onClick: onGiveFeedback, kind: 'ghost', renderIcon:
|
|
249
|
+
}, children: _jsxs(Stack, { orientation: 'horizontal', gap: 6, children: [_jsx("img", { src: C4_ASSET_URLS.backupIcon, alt: 'backupsIcon' }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: text.emptyTitle }), _jsx(Stack, { gap: 6, children: _jsx("p", { style: { maxWidth: '400px' }, children: text.emptyDescription }) })] })] }) })), _jsxs(Stack, { orientation: 'horizontal', children: [_jsx("span", { className: 'legalText', children: text.infoText }), _jsx(Button, { onClick: onGiveFeedback, kind: 'ghost', renderIcon: MessageSquare, style: {
|
|
258
250
|
marginTop: '-13px',
|
|
259
251
|
marginRight: '0px',
|
|
260
252
|
marginLeft: 'auto',
|
|
261
|
-
color: 'var(--
|
|
253
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
262
254
|
}, children: text.giveFeedback })] })] }));
|
|
263
255
|
};
|
|
@@ -42,7 +42,7 @@ export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentCluster
|
|
|
42
42
|
return (_jsx(Modal, { id: 'c4-cluster-details-hot-backups-restore', open: open, modalHeading: text.title, primaryButtonText: text.confirmButton, secondaryButtonText: text.cancelButton, primaryButtonDisabled: isSubmitting || (isVersionMismatch && !acknowledged), onRequestSubmit: handleRequestSubmit, onRequestClose: handleRequestClose, size: 'sm', preventCloseOnClickOutside: true,
|
|
43
43
|
// Restore is irreversible — per project spec, initial keyboard focus
|
|
44
44
|
// lands on Cancel rather than the destructive primary action.
|
|
45
|
-
selectorPrimaryFocus: '
|
|
45
|
+
selectorPrimaryFocus: '[data-variant="secondary"]', children: _jsxs(Stack, { gap: 5, children: [_jsxs("dl", { style: {
|
|
46
46
|
display: 'grid',
|
|
47
47
|
gridTemplateColumns: 'max-content 1fr',
|
|
48
48
|
columnGap: '1rem',
|
package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
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';
|
|
@@ -48,7 +48,7 @@ export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls
|
|
|
48
48
|
id: 'edit-ipWhitelist',
|
|
49
49
|
label: text.updateAction,
|
|
50
50
|
kind: 'ghost',
|
|
51
|
-
icon:
|
|
51
|
+
icon: Pencil,
|
|
52
52
|
onClick: (row) => onUpdateIpWhitelist(Number(row.id)),
|
|
53
53
|
visible: () => permissions.canUpdate,
|
|
54
54
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { CheckmarkFilled, Edit, Launch, PendingFilled, } from '@carbon/react/icons/index.esm.js';
|
|
2
|
+
import { CircleCheck, Clock, ExternalLink, Pencil } from 'lucide-react';
|
|
4
3
|
import { useEffect, useState } from 'react';
|
|
5
4
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
6
5
|
import { Button, CodeSnippet, Link, Stack, Tile } from '../../ui/index.js';
|
|
7
6
|
import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
|
|
7
|
+
import { DS_STATUS_ICON_COLORS } from '../c4-cluster-overview/ds-status-icon-text.js';
|
|
8
8
|
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
9
9
|
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
10
10
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
@@ -24,20 +24,20 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
24
24
|
}
|
|
25
25
|
const isAvailable = normalized.includes('available');
|
|
26
26
|
const isPending = normalized.includes('pending');
|
|
27
|
-
const icon = isAvailable ? (_jsx(
|
|
27
|
+
const icon = isAvailable ? (_jsx(CircleCheck, { size: 16, "aria-hidden": true })) : isPending ? (_jsx(Clock, { size: 16, "aria-hidden": true })) : undefined;
|
|
28
28
|
const label = isAvailable
|
|
29
29
|
? 'Available'
|
|
30
30
|
: isPending
|
|
31
31
|
? 'Pending'
|
|
32
32
|
: `${normalized.charAt(0).toUpperCase()}${normalized.slice(1)}`;
|
|
33
33
|
const color = isAvailable
|
|
34
|
-
?
|
|
35
|
-
:
|
|
34
|
+
? DS_STATUS_ICON_COLORS.success
|
|
35
|
+
: DS_STATUS_ICON_COLORS.neutral;
|
|
36
36
|
return (_jsxs("span", { style: {
|
|
37
37
|
display: 'inline-flex',
|
|
38
38
|
alignItems: 'center',
|
|
39
|
-
gap: '
|
|
40
|
-
color: 'var(--
|
|
39
|
+
gap: '0.5rem',
|
|
40
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
41
41
|
}, children: [icon ? (_jsx("span", { style: { display: 'inline-flex', color }, children: icon })) : null, _jsx("span", { children: label })] }));
|
|
42
42
|
};
|
|
43
43
|
const headerData = [
|
|
@@ -58,7 +58,9 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
58
58
|
id: row.id,
|
|
59
59
|
awsConsoleUrl: row.awsConsoleUrl,
|
|
60
60
|
});
|
|
61
|
-
}, children: _jsx("span", { style: {
|
|
61
|
+
}, children: _jsx("span", { style: {
|
|
62
|
+
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace',
|
|
63
|
+
}, children: row.id }) }));
|
|
62
64
|
},
|
|
63
65
|
},
|
|
64
66
|
},
|
|
@@ -83,11 +85,11 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
83
85
|
const readyCondition = status?.status?.conditions?.find((condition) => condition.type === 'Ready');
|
|
84
86
|
const isReady = readyCondition?.status === 'True';
|
|
85
87
|
const statusElement = (() => {
|
|
86
|
-
const icon = isReady ? _jsx(
|
|
88
|
+
const icon = isReady ? (_jsx(CircleCheck, { size: 16, "aria-hidden": true })) : (_jsx(Clock, { size: 16, "aria-hidden": true }));
|
|
87
89
|
const label = isReady ? 'Ready' : 'Pending';
|
|
88
90
|
const color = isReady
|
|
89
|
-
?
|
|
90
|
-
:
|
|
91
|
+
? DS_STATUS_ICON_COLORS.success
|
|
92
|
+
: DS_STATUS_ICON_COLORS.neutral;
|
|
91
93
|
return (_jsxs("div", { style: { position: 'relative' }, children: [_jsx("div", { style: {
|
|
92
94
|
position: 'absolute',
|
|
93
95
|
top: '50%',
|
|
@@ -96,7 +98,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
96
98
|
color,
|
|
97
99
|
}, children: icon }), _jsx("span", { style: {
|
|
98
100
|
paddingInlineStart: '1.5rem',
|
|
99
|
-
color: 'var(--
|
|
101
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
100
102
|
}, children: label })] }));
|
|
101
103
|
})();
|
|
102
104
|
const endpoint = status?.status?.endpoint;
|
|
@@ -104,7 +106,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
104
106
|
if (!value) {
|
|
105
107
|
return _jsx("span", { children: "\u2014" });
|
|
106
108
|
}
|
|
107
|
-
return (_jsx(
|
|
109
|
+
return (_jsx("div", { style: { width: '100%', maxWidth: singleSnippetMaxWidth, minWidth: 0 }, children: _jsx(CodeSnippet, { type: 'single', children: value }) }));
|
|
108
110
|
};
|
|
109
111
|
const renderListFieldWithEdit = (options) => {
|
|
110
112
|
const values = options.values ?? [];
|
|
@@ -115,36 +117,36 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
115
117
|
maxWidth: options.alignToSingleSnippet
|
|
116
118
|
? singleSnippetMaxWidth
|
|
117
119
|
: undefined,
|
|
118
|
-
gap: '
|
|
120
|
+
gap: '0.25rem',
|
|
119
121
|
alignItems: values.length > 1 ? 'flex-start' : 'center',
|
|
120
122
|
}, children: [_jsx("div", { style: { flex: 1, minWidth: 0 }, children: values.length ? (options.wrapItems ? (_jsx("div", { style: {
|
|
121
123
|
display: 'flex',
|
|
122
124
|
flexWrap: 'wrap',
|
|
123
|
-
gap: '
|
|
125
|
+
gap: '0.5rem',
|
|
124
126
|
width: '100%',
|
|
125
|
-
}, children: values.map((value) => (_jsx(CodeSnippet, { type: 'inline', align: 'top', children: value }, value))) })) : (_jsx(Stack, { gap: 1, children: values.map((value) => (_jsx(CodeSnippet, { type: 'inline', align: 'top', children: value }, value))) }))) : (_jsx("span", { children: "\u2014" })) }), options.onEdit ? (_jsx(Button, { kind: 'ghost', size: 'md', hasIconOnly: true, renderIcon:
|
|
127
|
+
}, children: values.map((value) => (_jsx(CodeSnippet, { type: 'inline', align: 'top', children: value }, value))) })) : (_jsx(Stack, { gap: 1, children: values.map((value) => (_jsx(CodeSnippet, { type: 'inline', align: 'top', children: value }, value))) }))) : (_jsx("span", { children: "\u2014" })) }), options.onEdit ? (_jsx(Button, { kind: 'ghost', size: 'md', hasIconOnly: true, renderIcon: Pencil, iconDescription: options.editLabel, onClick: () => options.onEdit?.() })) : undefined] }));
|
|
126
128
|
};
|
|
127
129
|
const labelCellLeftStyle = {
|
|
128
130
|
width: '12rem',
|
|
129
|
-
color: 'var(--
|
|
131
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
130
132
|
};
|
|
131
133
|
const labelCellRightStyle = {
|
|
132
134
|
width: '12rem',
|
|
133
|
-
color: 'var(--
|
|
135
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
134
136
|
paddingLeft: '40px',
|
|
135
137
|
};
|
|
136
138
|
const helperText01Style = {
|
|
137
|
-
fontSize: '
|
|
138
|
-
fontWeight:
|
|
139
|
-
lineHeight:
|
|
140
|
-
letterSpacing: '
|
|
141
|
-
color: 'var(--
|
|
139
|
+
fontSize: '0.75rem',
|
|
140
|
+
fontWeight: 400,
|
|
141
|
+
lineHeight: 1.33333,
|
|
142
|
+
letterSpacing: '0.32px',
|
|
143
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
142
144
|
};
|
|
143
145
|
// Responsive layout: switch to single-column when the viewport is narrower
|
|
144
146
|
// than 1520px (the point at which the 2-column layout starts breaking).
|
|
145
147
|
// Measuring window.innerWidth is simpler and more reliable than observing
|
|
146
|
-
// the container element: the content tile sits inside
|
|
147
|
-
//
|
|
148
|
+
// the container element: the content tile sits inside the 1584px max-width
|
|
149
|
+
// page layout with a sidebar, so the container never reaches the element-width
|
|
148
150
|
// thresholds that would be needed to detect this breakpoint.
|
|
149
151
|
const [isNarrowLayout, setIsNarrowLayout] = useState(() => typeof window !== 'undefined' && window.innerWidth < 1520);
|
|
150
152
|
useEffect(() => {
|
|
@@ -167,7 +169,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
167
169
|
}
|
|
168
170
|
}, style: !permissions.canDeactivate || isDeactivating
|
|
169
171
|
? {
|
|
170
|
-
color: 'var(--
|
|
172
|
+
color: 'var(--neutral-action-disabled)',
|
|
171
173
|
pointerEvents: 'none',
|
|
172
174
|
}
|
|
173
175
|
: undefined, children: isDeactivating
|
|
@@ -193,7 +195,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
193
195
|
return (_jsxs(Stack, { gap: 6, children: [_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: text.activatedTitle ?? text.title }), text.activatedDescription ? (_jsx("p", { style: { maxWidth: '500px' }, children: text.activatedDescription })) : undefined, text.enabledFooterText ? (_jsx("p", { style: { maxWidth: '500px' }, children: text.enabledFooterText })) : undefined, _jsxs(Stack, { gap: 5, children: [_jsx("div", { style: {
|
|
194
196
|
display: 'flex',
|
|
195
197
|
alignItems: 'center',
|
|
196
|
-
gap: '
|
|
198
|
+
gap: '1rem',
|
|
197
199
|
}, children: _jsx("h4", { style: { margin: 0 }, children: text.serviceDetailsTitle ?? 'Service details' }) }), _jsx("div", { children: isNarrowLayout ? (
|
|
198
200
|
// Single-column layout: each field on its own row
|
|
199
201
|
_jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none' }, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(C4StructuredListCell, { style: { borderTop: 'none' }, children: _jsxs("div", { style: {
|
|
@@ -234,23 +236,23 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
234
236
|
onEdit: onEditAllowedRegions,
|
|
235
237
|
editLabel: 'Edit supported regions',
|
|
236
238
|
wrapItems: true,
|
|
237
|
-
}) })] })] }) })) }), _jsx("div", { children: _jsxs(Stack, { gap: 3, children: [_jsx("h4", { style: { margin: 0, marginTop: '12px' }, children: text.connectTitle ?? 'Connect to the service' }), connectInAwsUrl ? (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon:
|
|
239
|
+
}) })] })] }) })) }), _jsx("div", { children: _jsxs(Stack, { gap: 3, children: [_jsx("h4", { style: { margin: 0, marginTop: '12px' }, children: text.connectTitle ?? 'Connect to the service' }), connectInAwsUrl ? (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: ExternalLink, style: { whiteSpace: 'nowrap', maxWidth: '100%' }, onClick: () => {
|
|
238
240
|
if (onOpenConnectInAws) {
|
|
239
241
|
onOpenConnectInAws(connectInAwsUrl);
|
|
240
242
|
}
|
|
241
243
|
}, disabled: !onOpenConnectInAws, children: text.connectInAwsButtonLabel ??
|
|
242
244
|
'Create interface VPC endpoint connections in AWS' })) : undefined, text.connectHelperText ? (_jsx("div", { style: helperText01Style, children: text.connectHelperText })) : undefined] }) }), _jsxs("div", { children: [_jsx("div", { style: {
|
|
243
|
-
borderTop: '1px solid var(--
|
|
244
|
-
paddingTop: '
|
|
245
|
+
borderTop: '1px solid var(--border)',
|
|
246
|
+
paddingTop: '1rem',
|
|
245
247
|
} }), _jsxs("h4", { style: {
|
|
246
248
|
margin: 0,
|
|
247
249
|
marginTop: '12px',
|
|
248
|
-
marginBottom: '
|
|
250
|
+
marginBottom: '0.5rem',
|
|
249
251
|
}, children: [text.endpointConnectionsTitle ?? 'Endpoint connections', " (", endpointConnectionsCount, ")"] }), endpointRows.length === 0 && !isLoading ? (_jsx("div", { style: {
|
|
250
|
-
color: 'var(--
|
|
252
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
251
253
|
marginLeft: '24px',
|
|
252
254
|
marginBottom: '16px',
|
|
253
255
|
}, children: text.endpointConnectionsEmptyText ??
|
|
254
256
|
text.privateEndpointsEmptyText ??
|
|
255
|
-
'Created endpoint connections will be listed here.' })) : (_jsx("div", { style: { maxWidth: 'calc(100vw - 64px)' }, children: _jsx(C4DataTable, { isLoading: isLoading, headers: headerData, data: endpointRows, toolbar: toolbar, options: { tableSize: 'md' }, queryPrefix: 'cluster-details-secure-connectivity' }) }))] })] })] }) }), _jsx("div", { children: _jsxs(Link, { href: urls.docs, onClick: onOpenDocs, children: [_jsx("span", { children: text.learnMoreLabel }), _jsx("span", { style: { paddingLeft: '
|
|
257
|
+
'Created endpoint connections will be listed here.' })) : (_jsx("div", { style: { maxWidth: 'calc(100vw - 64px)' }, children: _jsx(C4DataTable, { isLoading: isLoading, headers: headerData, data: endpointRows, toolbar: toolbar, options: { tableSize: 'md' }, queryPrefix: 'cluster-details-secure-connectivity' }) }))] })] })] }) }), _jsx("div", { children: _jsxs(Link, { href: urls.docs, onClick: onOpenDocs, children: [_jsx("span", { children: text.learnMoreLabel }), _jsx("span", { style: { paddingLeft: '0.25rem' }, children: _jsx(ExternalLink, { size: 16 }) })] }) })] }));
|
|
256
258
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
3
2
|
import { Tag } from '../../ui/index.js';
|
|
4
|
-
// Hides the text on the screen but keeps it for screen readers. An inline
|
|
5
|
-
//
|
|
3
|
+
// Hides the text on the screen but keeps it for screen readers. An inline
|
|
4
|
+
// style needs no class.
|
|
6
5
|
const VISUALLY_HIDDEN = {
|
|
7
6
|
position: 'absolute',
|
|
8
7
|
width: 1,
|
|
@@ -20,8 +19,5 @@ const VISUALLY_HIDDEN = {
|
|
|
20
19
|
* hidden text, because a keyboard cannot open a `title`.
|
|
21
20
|
*/
|
|
22
21
|
export const C4ClusterExpiryTag = ({ expiry, }) => {
|
|
23
|
-
|
|
24
|
-
return (_jsxs(Tag, { type: expiry.soon ? 'red' : 'gray',
|
|
25
|
-
// The DS adapter has no size and warns about each prop that it drops.
|
|
26
|
-
size: designSystem === 'ds' ? undefined : 'sm', children: [_jsx("span", { title: expiry.title, children: expiry.label }), _jsx("span", { style: VISUALLY_HIDDEN, children: ` ${expiry.title}` })] }));
|
|
22
|
+
return (_jsxs(Tag, { type: expiry.soon ? 'red' : 'gray', children: [_jsx("span", { title: expiry.title, children: expiry.label }), _jsx("span", { style: VISUALLY_HIDDEN, children: ` ${expiry.title}` })] }));
|
|
27
23
|
};
|