@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
|
@@ -5,24 +5,14 @@ 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 { PageLayout } from '@camunda/design-system';
|
|
8
|
-
import { Column, Grid } from '@carbon/react';
|
|
9
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
10
8
|
import { Stack } from '../../ui/index.js';
|
|
11
9
|
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
12
10
|
import { C4Breadcrumb } from '../c4-breadcrumb/c4-breadcrumb.js';
|
|
13
11
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
14
12
|
import { C4Tabs } from '../c4-tabs/c4-tabs.js';
|
|
15
|
-
const gridStyles = { paddingRight: 0, paddingLeft: 0 };
|
|
16
|
-
const gridColumnStyles = { marginInline: 0 };
|
|
17
13
|
const C4PageTemplate = ({ header, tabs, banner, children, loading = false, breadcrumbs = { elements: [] }, padding = 'default', }) => {
|
|
18
|
-
const designSystem = useC4DesignSystem();
|
|
19
14
|
const inner = (_jsxs("div", { style: { display: 'flex', gap: '2rem', flexDirection: 'column' }, children: [(breadcrumbs.elements?.length || header) && (_jsx(C4Breadcrumb, { ...breadcrumbs, title: header?.title, menu: header?.menuItems, tag: header?.tag, indicator: header?.indicator, subtitleBadges: header?.subtitleBadges, loading: loading, codeSnippet: header?.codeSnippet })), banner &&
|
|
20
15
|
(banner.action ? (_jsx(C4ActionableNotification, { appearance: 'banner', kind: banner.kind, title: banner.title, subtitle: banner.subtitle, actionButtonLabel: banner.action.label, onActionButtonClick: banner.action.onClick, lowContrast: true })) : (_jsx(C4InlineNotification, { kind: banner.kind, hideCloseButton: !banner.onDismiss, onCloseButtonClick: banner.onDismiss, title: banner.title, subtitle: banner.subtitle, lowContrast: true }))), tabs && (_jsx(Stack, { orientation: 'vertical', gap: 5, children: _jsx(C4Tabs, { tabs: tabs.list, desiredTabId: tabs?.desiredTabId, onTabChange: tabs?.onChange, loading: loading }) })), children] }));
|
|
21
|
-
|
|
22
|
-
// Carbon grid. The inner header/tabs already switch via their own families.
|
|
23
|
-
if (designSystem === 'ds') {
|
|
24
|
-
return _jsx(PageLayout, { padding: padding, children: inner });
|
|
25
|
-
}
|
|
26
|
-
return (_jsx(Grid, { style: gridStyles, children: _jsx(Column, { span: '100%', style: gridColumnStyles, children: inner }) }));
|
|
16
|
+
return _jsx(PageLayout, { padding: padding, children: inner });
|
|
27
17
|
};
|
|
28
18
|
export { C4PageTemplate };
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { Lock } from 'lucide-react';
|
|
8
8
|
import { Button, Stack } from '../../ui/index.js';
|
|
9
9
|
export const C4PermissionErrorPage = ({ title = 'Access Restricted', description = 'You do not have permission to access this page. Please contact your organization administrator for assistance.', redirectUrl, redirectLabel = 'Go to Console', onRedirect, }) => {
|
|
10
10
|
const handleRedirect = () => {
|
|
@@ -21,23 +21,23 @@ export const C4PermissionErrorPage = ({ title = 'Access Restricted', description
|
|
|
21
21
|
display: 'flex',
|
|
22
22
|
alignItems: 'center',
|
|
23
23
|
justifyContent: 'center',
|
|
24
|
-
background: 'var(--
|
|
24
|
+
background: 'var(--background)',
|
|
25
25
|
}, children: _jsxs(Stack, { gap: 7, style: { maxWidth: '600px', textAlign: 'center' }, children: [_jsx("div", { style: {
|
|
26
26
|
display: 'flex',
|
|
27
27
|
justifyContent: 'center',
|
|
28
|
-
color: 'var(--
|
|
29
|
-
}, children: _jsx(
|
|
30
|
-
fontSize: '
|
|
31
|
-
fontWeight: '
|
|
32
|
-
lineHeight: '
|
|
33
|
-
letterSpacing: '
|
|
34
|
-
color: 'var(--
|
|
28
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
29
|
+
}, children: _jsx(Lock, { size: 80 }) }), _jsxs(Stack, { gap: 5, children: [_jsx("h1", { style: {
|
|
30
|
+
fontSize: '2rem',
|
|
31
|
+
fontWeight: '400',
|
|
32
|
+
lineHeight: '2.5rem',
|
|
33
|
+
letterSpacing: '0',
|
|
34
|
+
color: 'var(--neutral-foreground-strong)',
|
|
35
35
|
}, children: title }), _jsx("p", { style: {
|
|
36
|
-
fontSize: '
|
|
37
|
-
fontWeight: '
|
|
38
|
-
lineHeight: '
|
|
39
|
-
letterSpacing: '
|
|
40
|
-
color: 'var(--
|
|
36
|
+
fontSize: '0.875rem',
|
|
37
|
+
fontWeight: '400',
|
|
38
|
+
lineHeight: '1.42857',
|
|
39
|
+
letterSpacing: '0.16px',
|
|
40
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
41
41
|
maxWidth: '500px',
|
|
42
42
|
margin: '0 auto',
|
|
43
43
|
}, children: description })] }), (redirectUrl || onRedirect) && (_jsx("div", { style: { display: 'flex', justifyContent: 'center' }, children: _jsx(Button, { kind: 'primary', onClick: handleRedirect, children: redirectLabel }) }))] }) }));
|
|
@@ -45,7 +45,7 @@ export const C4Pricing = ({ title, notification, cards, loading, boxesToTheBotto
|
|
|
45
45
|
display: 'grid',
|
|
46
46
|
gridTemplateColumns,
|
|
47
47
|
gap: gridGap,
|
|
48
|
-
}, children: [notification && (_jsx("div", { style: { gridColumn: notificationGridColumn }, children: _jsx(C4ActionableNotification, { kind: notification.kind,
|
|
48
|
+
}, children: [notification && (_jsx("div", { style: { gridColumn: notificationGridColumn }, children: _jsx(C4ActionableNotification, { kind: notification.kind, lowContrast: true, hideCloseButton: true, style: { maxWidth: '100%' }, actionButtonLabel: notification.action.label, onActionButtonClick: notification.action.onClick, title: notification.title, subtitle: notification.subtitle }) })), cards.map((card, index) => (_jsx(C4PricingCard, { sections: card, grid: { column: index + 2 } }, card.id))), boxesToTheBottom && (_jsx("div", { style: { gridColumn: notificationGridColumn }, children: _jsx("div", { style: {
|
|
49
49
|
display: 'grid',
|
|
50
50
|
gridTemplateColumns: lowerGridTemplateColumns,
|
|
51
51
|
gap: gridGap,
|
|
@@ -4,11 +4,9 @@ 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 {
|
|
8
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
7
|
+
import { Check, Info, X } from 'lucide-react';
|
|
9
8
|
import { Button, Stack, Tile, Tooltip } from '../../ui/index.js';
|
|
10
9
|
export const C4PricingCard = ({ grid, sections, }) => {
|
|
11
|
-
const designSystem = useC4DesignSystem();
|
|
12
10
|
// CONFIG
|
|
13
11
|
const gap = 5;
|
|
14
12
|
// COMPOENNT
|
|
@@ -18,19 +16,19 @@ export const C4PricingCard = ({ grid, sections, }) => {
|
|
|
18
16
|
flexWrap: 'wrap',
|
|
19
17
|
height: '48px',
|
|
20
18
|
fontSize: '12px',
|
|
21
|
-
}, children: [sections.price.additional, sections.price.infoTooltip && (_jsx(Tooltip, { label: sections.price.infoTooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(
|
|
19
|
+
}, children: [sections.price.additional, sections.price.infoTooltip && (_jsx(Tooltip, { label: sections.price.infoTooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(Info, { size: 16 }) }) }))] }))] }), _jsx(Button, { kind: sections.cta.kind, disabled: sections.cta.disabled, onClick: sections.cta.onClick ? sections.cta.onClick : undefined, style: { width: '100%' }, children: sections.cta.label }), _jsxs("span", { style: {
|
|
22
20
|
marginTop: '5px',
|
|
23
21
|
fontWeight: 'bold',
|
|
24
22
|
height: '50px',
|
|
25
23
|
display: 'flex',
|
|
26
24
|
alignItems: 'center',
|
|
27
25
|
flexWrap: 'wrap',
|
|
28
|
-
}, children: [_jsx("span", { children: sections.features.title }), sections.features.infoTooltip && (_jsx(Tooltip, { label: sections.features.infoTooltip, align: 'bottom', children: _jsx(Button, { kind: 'ghost', children: _jsx(
|
|
26
|
+
}, children: [_jsx("span", { children: sections.features.title }), sections.features.infoTooltip && (_jsx(Tooltip, { label: sections.features.infoTooltip, align: 'bottom', children: _jsx(Button, { kind: 'ghost', children: _jsx(Info, { size: 16 }) }) }))] }), _jsx("span", { style: {
|
|
29
27
|
marginTop: '3px',
|
|
30
28
|
height: sections.features.maxItemsOverall
|
|
31
29
|
? `${1.5 * sections.features.maxItemsOverall}rem`
|
|
32
30
|
: undefined,
|
|
33
|
-
}, children: _jsx(Stack, { gap: 3, children: sections.features.items.map((feature) => (_jsxs("div", { style: { display: 'flex' }, children: [feature.nope ? (_jsx("span", { style: { width: '16px' }, children: _jsx(
|
|
31
|
+
}, children: _jsx(Stack, { gap: 3, children: sections.features.items.map((feature) => (_jsxs("div", { style: { display: 'flex' }, children: [feature.nope ? (_jsx("span", { style: { width: '16px' }, children: _jsx(X, { size: 16, color: '#fc5d0d', "aria-label": `check-${feature.id}` }) })) : (_jsx("span", { style: { width: '16px' }, children: _jsx(Check, { size: 16, color: '#42be65', "aria-label": `check-${feature.id}` }) })), _jsx("span", { style: {
|
|
34
32
|
position: 'relative',
|
|
35
33
|
top: '-4px',
|
|
36
34
|
marginLeft: '8px',
|
|
@@ -43,13 +41,7 @@ export const C4PricingCard = ({ grid, sections, }) => {
|
|
|
43
41
|
display: 'flex',
|
|
44
42
|
alignItems: 'center',
|
|
45
43
|
flexWrap: 'wrap',
|
|
46
|
-
}, children: [_jsx("span", { children: sections.additionalFeatures.title }), sections.additionalFeatures.infoTooltip && (_jsx(Tooltip, { label: sections.additionalFeatures.infoTooltip, align: 'bottom', children: _jsx(Button, { kind: 'ghost', children: _jsx(
|
|
47
|
-
position: 'relative',
|
|
48
|
-
top: '-4px',
|
|
49
|
-
marginLeft: '8px',
|
|
50
|
-
}, children: feature.labelWithTooltips
|
|
51
|
-
? feature.labelWithTooltips
|
|
52
|
-
: feature.label })] }, `${feature.id}-${Math.floor(Math.random() * 1000)}`)) : (_jsxs("span", { style: { marginTop: '-15px' }, children: [_jsx(Checkmark, { color: '#42be65', "aria-label": `check-${feature.id}` }), _jsx("span", { style: {
|
|
44
|
+
}, children: [_jsx("span", { children: sections.additionalFeatures.title }), sections.additionalFeatures.infoTooltip && (_jsx(Tooltip, { label: sections.additionalFeatures.infoTooltip, align: 'bottom', children: _jsx(Button, { kind: 'ghost', children: _jsx(Info, { size: 16 }) }) }))] }), _jsx("span", { style: { marginTop: '3px' }, children: _jsx(Stack, { gap: 3, children: sections.additionalFeatures.items.map((feature) => (_jsxs("div", { style: { display: 'flex' }, children: [_jsx("span", { style: { width: '16px' }, children: _jsx(Check, { size: 16, color: '#42be65', "aria-label": `check-${feature.id}` }) }), _jsx("span", { style: {
|
|
53
45
|
position: 'relative',
|
|
54
46
|
top: '-4px',
|
|
55
47
|
marginLeft: '8px',
|
|
@@ -4,17 +4,17 @@ 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 {
|
|
8
|
-
import { Activity, AddAlt, Alarm, Analytics, ArrowRight, CaretRight, Checkmark, DataBackup, Document, Enterprise, FlowConnection, Forum, Help, IbmToolchain, Launch, LogoGithub, Password, Settings, User, UserFollow, Wallet, WatsonHealthStackedMove, } from '@carbon/react/icons/index.esm.js';
|
|
7
|
+
import { Activity, AlarmClock, ArrowRight, BarChart3, Building2, Check, ChevronRight, CircleHelp, CirclePlus, DatabaseBackup, ExternalLink, FileText, GitBranch, KeyRound, Layers, MessagesSquare, Settings, User, UserPlus, Wallet, Workflow, Wrench, } from 'lucide-react';
|
|
9
8
|
import { useState } from 'react';
|
|
10
9
|
import { Link, Stack, Tile } from '../../ui/index.js';
|
|
10
|
+
import { SpinningLoader } from '../c4-cluster-overview/ds-status-icon-text.js';
|
|
11
11
|
import { C4Divider } from '../c4-divider/c4-divider.js';
|
|
12
12
|
import { SearchUtils } from './search.utils.js';
|
|
13
13
|
const KBD = ({ label }) => {
|
|
14
14
|
return (_jsx("kbd", { style: {
|
|
15
15
|
borderRadius: '0.25rem',
|
|
16
|
-
border: '1px solid var(--
|
|
17
|
-
boxShadow: '0 2px 0 1px var(--
|
|
16
|
+
border: '1px solid var(--neutral-foreground-subtle)',
|
|
17
|
+
boxShadow: '0 2px 0 1px var(--neutral-foreground-subtle)',
|
|
18
18
|
fontFamily: 'var(--font-family-sans-serif)',
|
|
19
19
|
fontSize: '0.75rem',
|
|
20
20
|
lineHeight: 1,
|
|
@@ -31,8 +31,9 @@ const SearchHelp = () => {
|
|
|
31
31
|
return (_jsxs(Stack, { gap: 5, children: [_jsx("p", { children: "This search offers more than just basic searches. By using additional commands, you can discover and accomplish more." }), _jsxs("p", { children: ["Type ", _jsx(KBD, { label: '>' }), " to execute an action in Console. By using", ' ', _jsx(KBD, { label: '#' }), " as prefix you search only in docs."] }), _jsxs("p", { children: ["Use ", _jsx(KBD, { label: '\u25C0' }), _jsx(KBD, { label: '\u25B2' }), _jsx(KBD, { label: '\u25BC' }), _jsx(KBD, { label: '\u25B6' }), " to navigate results. If you see a \u25B6 symbol on the right hand side there is more to see."] }), _jsxs("p", { children: ["If you want to select a result, just press ", _jsx(KBD, { label: 'Enter' }), "."] }), _jsxs("p", { children: ["You can open the quick search by pressing ", _jsx(KBD, { label: 'ctrl' }), "+", _jsx(KBD, { label: 'k' }), " or ", _jsx(KBD, { label: '\u2318' }), "+", _jsx(KBD, { label: 'k' }), "."] })] }));
|
|
32
32
|
};
|
|
33
33
|
const SearchResultHeader = () => {
|
|
34
|
-
return (_jsx("div", { children: _jsx("div", {
|
|
35
|
-
|
|
34
|
+
return (_jsx("div", { children: _jsx("div", { style: {
|
|
35
|
+
fontSize: '0.75rem',
|
|
36
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
36
37
|
display: 'grid',
|
|
37
38
|
gridTemplateColumns: '1fr',
|
|
38
39
|
}, children: _jsxs("span", { children: [_jsx("strong", { children: "Tip:" }), " Type ", _jsx(KBD, { label: '>' }), " to execute an action, or type ", _jsx(KBD, { label: '?' }), " for more search tips."] }) }) }));
|
|
@@ -52,8 +53,9 @@ const SearchResultCategoryHeader = (props) => {
|
|
|
52
53
|
}), children: "Go back" }));
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
return (_jsxs("div", {
|
|
56
|
-
|
|
56
|
+
return (_jsxs("div", { style: {
|
|
57
|
+
fontSize: '0.75rem',
|
|
58
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
57
59
|
marginBottom: '-5px',
|
|
58
60
|
display: 'grid',
|
|
59
61
|
gridTemplateColumns: '1fr 1fr',
|
|
@@ -64,77 +66,77 @@ const SearchResultCategoryEntry = (props) => {
|
|
|
64
66
|
let icon = _jsx("div", {});
|
|
65
67
|
switch (props.type) {
|
|
66
68
|
case 'add':
|
|
67
|
-
icon = _jsx(
|
|
69
|
+
icon = _jsx(CirclePlus, { size: 16 });
|
|
68
70
|
break;
|
|
69
71
|
case 'add-user':
|
|
70
|
-
icon = _jsx(
|
|
72
|
+
icon = _jsx(UserPlus, { size: 16 });
|
|
71
73
|
break;
|
|
72
74
|
case 'docs':
|
|
73
|
-
icon = _jsx(
|
|
75
|
+
icon = _jsx(FileText, { size: 16 });
|
|
74
76
|
break;
|
|
75
77
|
case 'app':
|
|
76
|
-
icon = _jsx(ArrowRight, {});
|
|
78
|
+
icon = _jsx(ArrowRight, { size: 16 });
|
|
77
79
|
break;
|
|
78
80
|
case 'helpcenter':
|
|
79
|
-
icon = _jsx(
|
|
81
|
+
icon = _jsx(CircleHelp, { size: 16 });
|
|
80
82
|
break;
|
|
81
83
|
case 'forum':
|
|
82
|
-
icon = _jsx(
|
|
84
|
+
icon = _jsx(MessagesSquare, { size: 16 });
|
|
83
85
|
break;
|
|
84
86
|
case 'page':
|
|
85
|
-
icon = _jsx(
|
|
87
|
+
icon = _jsx(Layers, { size: 16 });
|
|
86
88
|
break;
|
|
87
89
|
case 'api':
|
|
88
|
-
icon = _jsx(
|
|
90
|
+
icon = _jsx(Wrench, { size: 16 });
|
|
89
91
|
break;
|
|
90
92
|
case 'activity':
|
|
91
|
-
icon = _jsx(Activity, {});
|
|
93
|
+
icon = _jsx(Activity, { size: 16 });
|
|
92
94
|
break;
|
|
93
95
|
case 'secret':
|
|
94
|
-
icon = _jsx(
|
|
96
|
+
icon = _jsx(KeyRound, { size: 16 });
|
|
95
97
|
break;
|
|
96
98
|
case 'alert':
|
|
97
|
-
icon = _jsx(
|
|
99
|
+
icon = _jsx(AlarmClock, { size: 16 });
|
|
98
100
|
break;
|
|
99
101
|
case 'backup':
|
|
100
|
-
icon = _jsx(
|
|
102
|
+
icon = _jsx(DatabaseBackup, { size: 16 });
|
|
101
103
|
break;
|
|
102
104
|
case 'settings':
|
|
103
|
-
icon = _jsx(Settings, {});
|
|
105
|
+
icon = _jsx(Settings, { size: 16 });
|
|
104
106
|
break;
|
|
105
107
|
case 'user':
|
|
106
|
-
icon = _jsx(User, {});
|
|
108
|
+
icon = _jsx(User, { size: 16 });
|
|
107
109
|
break;
|
|
108
110
|
case 'billing':
|
|
109
|
-
icon = _jsx(Wallet, {});
|
|
111
|
+
icon = _jsx(Wallet, { size: 16 });
|
|
110
112
|
break;
|
|
111
113
|
case 'tasklist':
|
|
112
|
-
icon = _jsx(
|
|
114
|
+
icon = _jsx(Check, { size: 16 });
|
|
113
115
|
break;
|
|
114
116
|
case 'optimize':
|
|
115
|
-
icon = _jsx(
|
|
117
|
+
icon = _jsx(BarChart3, { size: 16 });
|
|
116
118
|
break;
|
|
117
119
|
case 'operate':
|
|
118
|
-
icon = _jsx(Activity, {});
|
|
120
|
+
icon = _jsx(Activity, { size: 16 });
|
|
119
121
|
break;
|
|
120
122
|
case 'org':
|
|
121
|
-
icon = _jsx(
|
|
123
|
+
icon = _jsx(Building2, { size: 16 });
|
|
122
124
|
break;
|
|
123
125
|
case 'github':
|
|
124
|
-
icon = _jsx(
|
|
126
|
+
icon = _jsx(GitBranch, { size: 16 });
|
|
125
127
|
break;
|
|
126
128
|
case 'modeler':
|
|
127
|
-
icon = _jsx(
|
|
129
|
+
icon = _jsx(Workflow, { size: 16 });
|
|
128
130
|
break;
|
|
129
131
|
}
|
|
130
132
|
let meta = _jsx("div", {});
|
|
131
133
|
switch (props.meta) {
|
|
132
134
|
case 'external':
|
|
133
|
-
meta = _jsx(
|
|
135
|
+
meta = _jsx(ExternalLink, { size: 16 });
|
|
134
136
|
break;
|
|
135
137
|
}
|
|
136
138
|
if (props.more) {
|
|
137
|
-
meta = _jsx(
|
|
139
|
+
meta = _jsx(ChevronRight, { size: 16 });
|
|
138
140
|
}
|
|
139
141
|
const onClickMain = () => {
|
|
140
142
|
if (props.onClick) {
|
|
@@ -159,7 +161,9 @@ const SearchResultCategoryEntry = (props) => {
|
|
|
159
161
|
}
|
|
160
162
|
};
|
|
161
163
|
return (_jsxs("div", { children: [_jsxs("div", { id: props.elementId, style: {
|
|
162
|
-
backgroundColor: props.selected || isHover
|
|
164
|
+
backgroundColor: props.selected || isHover
|
|
165
|
+
? 'var(--neutral-background-subtle)'
|
|
166
|
+
: undefined,
|
|
163
167
|
padding: '5px',
|
|
164
168
|
display: 'grid',
|
|
165
169
|
gridTemplateColumns: '25px 1fr auto',
|
|
@@ -180,7 +184,11 @@ const SearchResultCategoryEntry = (props) => {
|
|
|
180
184
|
elementId: 'unknown',
|
|
181
185
|
});
|
|
182
186
|
}
|
|
183
|
-
}, children: [_jsx("span", { onClick: () => onClickMain(), children: icon }), _jsx("p", { onClick: () => onClickMain(), style: { width: '100%' }, children: props.title }), _jsx("span", { style: { justifySelf: 'end' }, onClick: () => onClickSub(), children: meta })] }), props.moreAvailable && (_jsx("span", {
|
|
187
|
+
}, children: [_jsx("span", { onClick: () => onClickMain(), children: icon }), _jsx("p", { onClick: () => onClickMain(), style: { width: '100%' }, children: props.title }), _jsx("span", { style: { justifySelf: 'end' }, onClick: () => onClickSub(), children: meta })] }), props.moreAvailable && (_jsx("span", { style: {
|
|
188
|
+
fontSize: '0.75rem',
|
|
189
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
190
|
+
paddingLeft: '27px',
|
|
191
|
+
}, children: "more available" }))] }));
|
|
184
192
|
};
|
|
185
193
|
const SearchResultCategory = (props) => {
|
|
186
194
|
let component = _jsx(_Fragment, {});
|
|
@@ -203,7 +211,7 @@ const SearchResultCategory = (props) => {
|
|
|
203
211
|
export const C4SearchResults = (props) => {
|
|
204
212
|
let component = _jsx(_Fragment, {});
|
|
205
213
|
if (props.loading) {
|
|
206
|
-
component = (
|
|
214
|
+
component = (_jsxs("span", { role: 'status', style: { display: 'flex', alignItems: 'center', gap: '8px' }, children: [_jsx(SpinningLoader, { size: 16, "aria-hidden": true }), "Loading data..."] }));
|
|
207
215
|
}
|
|
208
216
|
else {
|
|
209
217
|
component = (_jsxs(_Fragment, { children: [props.results.length === 0 ||
|
|
@@ -221,8 +229,8 @@ export const C4SearchResults = (props) => {
|
|
|
221
229
|
}
|
|
222
230
|
return (_jsx(Tile, { style: {
|
|
223
231
|
position: 'relative',
|
|
224
|
-
borderLeft: '1px solid var(--
|
|
225
|
-
borderBottom: '1px solid var(--
|
|
232
|
+
borderLeft: '1px solid var(--border)',
|
|
233
|
+
borderBottom: '1px solid var(--border)',
|
|
226
234
|
boxShadow: '0 2px 6px 0 rgba(0,0,0,.2)',
|
|
227
235
|
}, onMouseEnter: () => {
|
|
228
236
|
if (props.onMouseEnter) {
|
|
@@ -4,10 +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 {
|
|
8
|
-
import { Search } from '@carbon/react/icons/index.esm.js';
|
|
7
|
+
import { Search as SearchIcon } from 'lucide-react';
|
|
9
8
|
import { useState } from 'react';
|
|
10
9
|
import styled from 'styled-components';
|
|
10
|
+
import { IconButton, Search } from '../../ui/index.js';
|
|
11
11
|
import { C4SearchResults } from './c4-search-results.js';
|
|
12
12
|
import { SearchUtils } from './search.utils.js';
|
|
13
13
|
const SearchWrapper = styled.div `
|
|
@@ -84,14 +84,12 @@ export const C4Search = ({ search, init, actions, changeOpenState, isExpanded, o
|
|
|
84
84
|
}, 100);
|
|
85
85
|
// ///////////////////////
|
|
86
86
|
// COMPONENT
|
|
87
|
-
const component = (_jsxs(SearchWrapper, { width: expanded ? inputOptions.searchWidth : undefined, children: [_jsx(
|
|
87
|
+
const component = (_jsxs(SearchWrapper, { width: expanded ? inputOptions.searchWidth : undefined, children: [_jsx(Search, { id: 'mighty-search', size: 'lg', labelText: 'search', placeholder: 'Type anything to search docs, forum, help center, and github.', onChange: (event) => {
|
|
88
88
|
SearchUtils.handleValueChange({
|
|
89
89
|
newValue: event.target.value,
|
|
90
90
|
searchHooks,
|
|
91
91
|
input,
|
|
92
92
|
});
|
|
93
|
-
}, onExpand: (_event) => {
|
|
94
|
-
SearchUtils.handleExpanded({ newState: true, searchHooks, input });
|
|
95
93
|
}, onBlur: (_event) => {
|
|
96
94
|
if (shouldBlur) {
|
|
97
95
|
setTimeout(() => {
|
|
@@ -117,7 +115,7 @@ export const C4Search = ({ search, init, actions, changeOpenState, isExpanded, o
|
|
|
117
115
|
return component;
|
|
118
116
|
}
|
|
119
117
|
else {
|
|
120
|
-
return (_jsx(
|
|
118
|
+
return (_jsx(IconButton, { label: 'Search', kind: 'ghost', onClick: () => {
|
|
121
119
|
SearchUtils.handleExpanded({ newState: true, searchHooks, input });
|
|
122
120
|
if (analytics) {
|
|
123
121
|
analytics({
|
|
@@ -129,6 +127,6 @@ export const C4Search = ({ search, init, actions, changeOpenState, isExpanded, o
|
|
|
129
127
|
},
|
|
130
128
|
});
|
|
131
129
|
}
|
|
132
|
-
}, children: _jsx(
|
|
130
|
+
}, children: _jsx(SearchIcon, { size: 20 }) }));
|
|
133
131
|
}
|
|
134
132
|
};
|
|
@@ -11,29 +11,15 @@ export interface C4SegmentedControlProps {
|
|
|
11
11
|
onChange: (id: string) => void;
|
|
12
12
|
/** Accessible name of the group. */
|
|
13
13
|
ariaLabel: string;
|
|
14
|
-
/**
|
|
15
|
-
* carbon-mode only: the style of the Carbon `ContentSwitcher`. The ds branch
|
|
16
|
-
* lets each option size to its own label, thus it has no equivalent.
|
|
17
|
-
*/
|
|
18
|
-
carbonStyle?: CSSProperties;
|
|
19
|
-
/**
|
|
20
|
-
* ds-mode only: the style of the box around the strip and its arrow buttons.
|
|
21
|
-
*
|
|
22
|
-
* Each mode takes its own style, so that a call site gives spacing to both
|
|
23
|
-
* without a box of its own. A box around the Carbon branch would change the
|
|
24
|
-
* carbon render, which the coexistence rules do not permit.
|
|
25
|
-
*/
|
|
14
|
+
/** The style of the box around the strip and its arrow buttons. */
|
|
26
15
|
dsStyle?: CSSProperties;
|
|
27
16
|
}
|
|
28
17
|
/**
|
|
29
18
|
* One-of-many selector for a small set of options (a cloud provider, a release
|
|
30
19
|
* channel).
|
|
31
20
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* ds mode renders the DS `ToggleGroup` in its `outline` variant. It corrects
|
|
36
|
-
* three things that the carbon-compat `ContentSwitcher` adapter does not do:
|
|
21
|
+
* It renders the DS `ToggleGroup` in its `outline` variant. It corrects three
|
|
22
|
+
* things that the carbon-compat `ContentSwitcher` adapter does not do:
|
|
37
23
|
*
|
|
38
24
|
* - The adapter takes `selectedIndex` as an initial value alone, so the strip
|
|
39
25
|
* keeps the first selection after the state moves. This group is controlled.
|
|
@@ -43,8 +29,8 @@ export interface C4SegmentedControlProps {
|
|
|
43
29
|
* the scrollbar there was no sign of the options outside the view. This
|
|
44
30
|
* component shows an arrow button on each side that has more options.
|
|
45
31
|
*
|
|
46
|
-
* The
|
|
32
|
+
* The row takes its width from its container and none from its options.
|
|
47
33
|
* In a box that shrinks to its content the row has a width of zero, thus a
|
|
48
34
|
* block or a grid column must give it one.
|
|
49
35
|
*/
|
|
50
|
-
export declare const C4SegmentedControl: ({ options, value, onChange, ariaLabel,
|
|
36
|
+
export declare const C4SegmentedControl: ({ options, value, onChange, ariaLabel, dsStyle, }: C4SegmentedControlProps) => JSX.Element;
|
|
@@ -5,22 +5,17 @@ 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 { ToggleGroup, ToggleGroupItem } from '@camunda/design-system';
|
|
8
|
-
import { ChevronLeft, ChevronRight } from '
|
|
8
|
+
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
9
9
|
import { useCallback, useEffect, useRef, useState, } from 'react';
|
|
10
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
11
10
|
import { Button } from '../../ui/index.js';
|
|
12
|
-
import { useContentSwitcherFamily } from '../../ui/families.js';
|
|
13
11
|
/** How far one press of an arrow button moves the strip, in pixels. */
|
|
14
12
|
const MIN_SCROLL_STEP = 160;
|
|
15
13
|
/**
|
|
16
14
|
* One-of-many selector for a small set of options (a cloud provider, a release
|
|
17
15
|
* channel).
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* ds mode renders the DS `ToggleGroup` in its `outline` variant. It corrects
|
|
23
|
-
* three things that the carbon-compat `ContentSwitcher` adapter does not do:
|
|
17
|
+
* It renders the DS `ToggleGroup` in its `outline` variant. It corrects three
|
|
18
|
+
* things that the carbon-compat `ContentSwitcher` adapter does not do:
|
|
24
19
|
*
|
|
25
20
|
* - The adapter takes `selectedIndex` as an initial value alone, so the strip
|
|
26
21
|
* keeps the first selection after the state moves. This group is controlled.
|
|
@@ -30,15 +25,11 @@ const MIN_SCROLL_STEP = 160;
|
|
|
30
25
|
* the scrollbar there was no sign of the options outside the view. This
|
|
31
26
|
* component shows an arrow button on each side that has more options.
|
|
32
27
|
*
|
|
33
|
-
* The
|
|
28
|
+
* The row takes its width from its container and none from its options.
|
|
34
29
|
* In a box that shrinks to its content the row has a width of zero, thus a
|
|
35
30
|
* block or a grid column must give it one.
|
|
36
31
|
*/
|
|
37
|
-
export const C4SegmentedControl = ({ options, value, onChange, ariaLabel,
|
|
38
|
-
const designSystem = useC4DesignSystem();
|
|
39
|
-
// The family hook must run on every render (rules of hooks). Only the carbon
|
|
40
|
-
// branch below renders the result.
|
|
41
|
-
const { ContentSwitcher, Switch } = useContentSwitcherFamily();
|
|
32
|
+
export const C4SegmentedControl = ({ options, value, onChange, ariaLabel, dsStyle, }) => {
|
|
42
33
|
const scrollRef = useRef(null);
|
|
43
34
|
const [hasMoreBefore, setHasMoreBefore] = useState(false);
|
|
44
35
|
const [hasMoreAfter, setHasMoreAfter] = useState(false);
|
|
@@ -69,9 +60,6 @@ export const C4SegmentedControl = ({ options, value, onChange, ariaLabel, carbon
|
|
|
69
60
|
observer?.disconnect();
|
|
70
61
|
};
|
|
71
62
|
}, [readOverflow, options.length]);
|
|
72
|
-
if (designSystem !== 'ds') {
|
|
73
|
-
return (_jsx(ContentSwitcher, { size: 'md', "aria-label": ariaLabel, style: carbonStyle, onChange: (data) => onChange(String(data.name ?? '')), selectedIndex: Math.max(options.findIndex((option) => option.id === value), 0), children: options.map((option) => (_jsx(Switch, { name: option.id, disabled: option.disabled, children: option.label }, option.id))) }));
|
|
74
|
-
}
|
|
75
63
|
const scrollByStep = (direction) => {
|
|
76
64
|
const node = scrollRef.current;
|
|
77
65
|
if (!node) {
|
|
@@ -90,7 +78,7 @@ export const C4SegmentedControl = ({ options, value, onChange, ariaLabel, carbon
|
|
|
90
78
|
// The min-content width of this row is the full strip. `min-width: 0`
|
|
91
79
|
// on the scroll box lets the box shrink, but it does not lower the
|
|
92
80
|
// width the box reports. An ancestor that sizes a track by content
|
|
93
|
-
// grows to that width and hands it back to the row.
|
|
81
|
+
// grows to that width and hands it back to the row. The `Stack` is
|
|
94
82
|
// such an ancestor: a grid with one `auto` track. With
|
|
95
83
|
// `contain: inline-size` the row reports no width of its own, thus it
|
|
96
84
|
// takes the width of its container, and the strip scrolls inside it.
|
|
@@ -8,13 +8,10 @@ interface C4SelectableTileProps {
|
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `checked`/`onChange` — selection shows as a highlighted border. This avoids
|
|
16
|
-
* the RadioGroup/RadioGroupItem context requirement (the tiles are used
|
|
17
|
-
* standalone, self-managed) and has no DS RadioTile equivalent.
|
|
11
|
+
* A DS-styled clickable card (a `<button>`) driven by a per-tile
|
|
12
|
+
* `checked`/`onChange`. Selection shows as a highlighted border. The tiles are
|
|
13
|
+
* self-managed and standalone, so this avoids the RadioGroup/RadioGroupItem
|
|
14
|
+
* context requirement. The DS has no RadioTile.
|
|
18
15
|
*/
|
|
19
|
-
export declare function C4SelectableTile({
|
|
16
|
+
export declare function C4SelectableTile({ checked, onChange, disabled, style, children, }: C4SelectableTileProps): JSX.Element;
|
|
20
17
|
export {};
|
|
@@ -1,25 +1,11 @@
|
|
|
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 { RadioTile } from '@carbon/react';
|
|
8
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
9
2
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `checked`/`onChange` — selection shows as a highlighted border. This avoids
|
|
15
|
-
* the RadioGroup/RadioGroupItem context requirement (the tiles are used
|
|
16
|
-
* standalone, self-managed) and has no DS RadioTile equivalent.
|
|
3
|
+
* A DS-styled clickable card (a `<button>`) driven by a per-tile
|
|
4
|
+
* `checked`/`onChange`. Selection shows as a highlighted border. The tiles are
|
|
5
|
+
* self-managed and standalone, so this avoids the RadioGroup/RadioGroupItem
|
|
6
|
+
* context requirement. The DS has no RadioTile.
|
|
17
7
|
*/
|
|
18
|
-
export function C4SelectableTile({
|
|
19
|
-
const designSystem = useC4DesignSystem();
|
|
20
|
-
if (designSystem !== 'ds') {
|
|
21
|
-
return (_jsx(RadioTile, { value: value, checked: checked, onChange: onChange, disabled: disabled, style, children: children }));
|
|
22
|
-
}
|
|
8
|
+
export function C4SelectableTile({ checked, onChange, disabled, style, children, }) {
|
|
23
9
|
return (_jsx("button", { type: 'button', "aria-pressed": checked, disabled: disabled, onClick: () => onChange(), style: {
|
|
24
10
|
display: 'flex',
|
|
25
11
|
flexDirection: 'column',
|
|
@@ -4,9 +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 {
|
|
7
|
+
import { Check, CircleX } from 'lucide-react';
|
|
8
8
|
import { useState } from 'react';
|
|
9
9
|
import { Button } from '../../ui/index.js';
|
|
10
|
+
import { SpinningLoader } from '../c4-cluster-overview/ds-status-icon-text.js';
|
|
10
11
|
const WAITING_TIME_IN_SECONDS = 3;
|
|
11
12
|
export const C4StatefulButton = (options) => {
|
|
12
13
|
const [state, setState] = useState('none');
|
|
@@ -34,6 +35,15 @@ export const C4StatefulButton = (options) => {
|
|
|
34
35
|
catch (_e) {
|
|
35
36
|
error();
|
|
36
37
|
}
|
|
37
|
-
}, children: state === 'none' ? (options.children) : (_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '4px' }, children: [_jsx(
|
|
38
|
+
}, children: state === 'none' ? (options.children) : (_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '4px' }, children: [_jsx(StateIcon, { state: state }), " ", _jsx("span", { children: options.children })] })) }));
|
|
38
39
|
return component;
|
|
39
40
|
};
|
|
41
|
+
const StateIcon = ({ state, }) => {
|
|
42
|
+
if (state === 'finished') {
|
|
43
|
+
return _jsx(Check, { size: 16, "aria-hidden": true });
|
|
44
|
+
}
|
|
45
|
+
if (state === 'error') {
|
|
46
|
+
return _jsx(CircleX, { size: 16, "aria-hidden": true });
|
|
47
|
+
}
|
|
48
|
+
return _jsx(SpinningLoader, { size: 16, "aria-hidden": true });
|
|
49
|
+
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import type { Button } from '../../ui/index.js';
|
|
3
|
+
type ButtonBaseProps = ComponentProps<typeof Button>;
|
|
2
4
|
export type C4StatefulButtonProps = {
|
|
3
5
|
onClick: () => Promise<void>;
|
|
4
6
|
options?: {
|
|
5
7
|
onlyOnce?: boolean;
|
|
6
8
|
};
|
|
7
9
|
} & Omit<ButtonBaseProps, 'onlyOnce'>;
|
|
10
|
+
export {};
|