@odigos/ui-kit 0.0.16 → 0.0.17
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/CHANGELOG.md +16 -0
- package/lib/components/data-tab/index.d.ts +0 -1
- package/lib/components/drawer/drawer-header/index.d.ts +2 -2
- package/lib/components.js +45 -14
- package/lib/constants.js +9 -5
- package/lib/containers/overview-drawer/index.d.ts +2 -2
- package/lib/containers/source-modal/index.d.ts +0 -2
- package/lib/containers/source-selection-form/index.d.ts +0 -1
- package/lib/containers.js +129 -206
- package/lib/functions.js +15 -9
- package/lib/hooks.js +10 -10
- package/lib/icons.js +15 -7
- package/lib/index-B72aw6tI.js +23 -0
- package/lib/{index-D_Qn2U89.js → index-BJxaoI0G.js} +1 -8
- package/lib/{index-DiEc-llU.js → index-BQW5EUgp.js} +10 -7
- package/lib/index-BQs4sULy.js +32 -0
- package/lib/index-BVVVevuY.js +100 -0
- package/lib/index-BWqrekK4.js +11 -0
- package/lib/{index-D6cZdmUs.js → index-BiNX-Cge.js} +85 -130
- package/lib/{index-DM8CZWtL.js → index-BsH_egEe.js} +10 -1
- package/lib/{index-CKtl8KxE.js → index-BxQTUOME.js} +10 -12
- package/lib/index-C1PCuZgw.js +18 -0
- package/lib/{index-CLOUNx6Z.js → index-C3nz3TIx.js} +6 -8
- package/lib/{index-BGlk5VhF.js → index-CIXQeSHu.js} +1 -10
- package/lib/index-CIgHU72d.js +52 -0
- package/lib/index-DbfrGXPH.js +8 -0
- package/lib/{index-lL1o2K_5.js → index-G4WmxXds.js} +4 -21
- package/lib/{index-7-KCQK-x.js → index-Hz7AAE0t.js} +1 -1
- package/lib/{index-DH2zLaey.js → index-KOMAv-TS.js} +1 -8
- package/lib/index-RBS1MqCQ.js +37 -0
- package/lib/react-CjImwkhV.js +44 -0
- package/lib/store.js +6 -3
- package/lib/theme.js +86 -3
- package/lib/types.js +6 -215
- package/lib/useDarkMode-DxhIuVNi.js +201 -0
- package/lib/useSelectedStore-93bIo1kE.js +97 -0
- package/lib/useSetupStore-CoYx1UQw.js +211 -0
- package/lib/{useTransition-hWYVBuSi.js → useTimeAgo-weEj7br6.js} +544 -113
- package/lib/useTransition-D0wUpPGk.js +128 -0
- package/package.json +2 -1
- package/lib/components/auto-complete-input/auto-complete-input.stories.d.ts +0 -9
- package/lib/components/badge/badge.stories.d.ts +0 -13
- package/lib/components/button/button.stories.d.ts +0 -9
- package/lib/components/cancel-warning/cancel-warning.stories.d.ts +0 -9
- package/lib/components/checkbox/checkbox.stories.d.ts +0 -9
- package/lib/components/code/code.stories.d.ts +0 -9
- package/lib/components/condition-details/condition-details.stories.d.ts +0 -14
- package/lib/components/data-card/data-card.stories.d.ts +0 -10
- package/lib/components/data-tab/data-tab.stories.d.ts +0 -15
- package/lib/components/delete-warning/delete-warning.stories.d.ts +0 -9
- package/lib/components/describe-row/describe-row.stories.d.ts +0 -9
- package/lib/components/divider/divider.stories.d.ts +0 -9
- package/lib/components/docs-button/docs-button.stories.d.ts +0 -9
- package/lib/components/drawer/drawer.stories.d.ts +0 -10
- package/lib/components/dropdown/dropdown.stories.d.ts +0 -10
- package/lib/components/error-boundary/error-boundary.stories.d.ts +0 -9
- package/lib/components/extend-arrow/extend-arrow.stories.d.ts +0 -9
- package/lib/components/fade-loader/fade-loader.stories.d.ts +0 -9
- package/lib/components/field-error/field-error.stories.d.ts +0 -9
- package/lib/components/field-label/field-label.stories.d.ts +0 -9
- package/lib/components/header/header.stories.d.ts +0 -9
- package/lib/components/icon-button/icon-button.stories.d.ts +0 -9
- package/lib/components/icon-group/icon-group.stories.d.ts +0 -14
- package/lib/components/icon-title-badge/icon-title-badge.stories.d.ts +0 -9
- package/lib/components/icon-wrapped/icon-wrapped.stories.d.ts +0 -10
- package/lib/components/icons-nav/icons-nav.stories.d.ts +0 -9
- package/lib/components/image-controlled/image-controlled.stories.d.ts +0 -9
- package/lib/components/input/input.stories.d.ts +0 -9
- package/lib/components/input-list/input-list.stories.d.ts +0 -9
- package/lib/components/input-table/input-table.stories.d.ts +0 -9
- package/lib/components/interactive-table/interactive-table.stories.d.ts +0 -12
- package/lib/components/key-value-input-list/key-value-input-list.stories.d.ts +0 -9
- package/lib/components/modal/modal.stories.d.ts +0 -9
- package/lib/components/monitors-checkboxes/monitors-checkboxes.stories.d.ts +0 -9
- package/lib/components/monitors-icons/monitors-icons.stories.d.ts +0 -9
- package/lib/components/navigation-buttons/navigation-buttons.stories.d.ts +0 -9
- package/lib/components/no-data-found/no-data-found.stories.d.ts +0 -9
- package/lib/components/notification-note/notification-note.stories.d.ts +0 -10
- package/lib/components/section-title/section-title.stories.d.ts +0 -9
- package/lib/components/segment/segment.stories.d.ts +0 -9
- package/lib/components/skeleton-loader/skeleton-loader.stories.d.ts +0 -9
- package/lib/components/status/status.stories.d.ts +0 -9
- package/lib/components/stepper/stepper.stories.d.ts +0 -9
- package/lib/components/text/text.stories.d.ts +0 -9
- package/lib/components/textarea/textarea.stories.d.ts +0 -9
- package/lib/components/toggle/toggle.stories.d.ts +0 -9
- package/lib/components/tooltip/tooltip.stories.d.ts +0 -9
- package/lib/components/trace-loader/trace-loader.stories.d.ts +0 -9
- package/lib/components/warning-modal/warning-modal.stories.d.ts +0 -9
- package/lib/containers/action-drawer/action-drawer.stories.d.ts +0 -9
- package/lib/containers/action-form/action-form.stories.d.ts +0 -9
- package/lib/containers/action-modal/action-modal.stories.d.ts +0 -9
- package/lib/containers/action-table/action-table.stories.d.ts +0 -9
- package/lib/containers/await-pipeline/await-pipeline.stories.d.ts +0 -9
- package/lib/containers/compute-platform-select/compute-platform-select.stories.d.ts +0 -9
- package/lib/containers/compute-platforms/compute-platforms.stories.d.ts +0 -9
- package/lib/containers/compute-platforms-actions-menu/compute-platforms-actions-menu.stories.d.ts +0 -9
- package/lib/containers/data-flow/data-flow.stories.d.ts +0 -9
- package/lib/containers/data-flow-actions-menu/data-flow-actions-menu.stories.d.ts +0 -11
- package/lib/containers/destination-drawer/destination-drawer.stories.d.ts +0 -9
- package/lib/containers/destination-form/destination-form.stories.d.ts +0 -9
- package/lib/containers/destination-modal/destination-modal.stories.d.ts +0 -9
- package/lib/containers/destination-selection-form/destination-selection-form.stories.d.ts +0 -9
- package/lib/containers/destination-table/destination-table.stories.d.ts +0 -9
- package/lib/containers/dropdowns/connection-status-dropdown/connection-status-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/connection-type-dropdown/connection-type-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/error-dropdown/error-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/kind-dropdown/error-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/language-dropdown/language-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/monitor-dropdown/monitor-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/namespace-dropdown/namespace-dropdown.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-drawer/instrumentation-rule-drawer.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-form/instrumentation-rule-form.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-modal/instrumentation-rule-modal.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-table/instrumentation-rule-table.stories.d.ts +0 -9
- package/lib/containers/multi-source-control/multi-source-control.stories.d.ts +0 -9
- package/lib/containers/notification-manager/notification-manager.stories.d.ts +0 -9
- package/lib/containers/overview-drawer/overview-drawer.stories.d.ts +0 -9
- package/lib/containers/side-nav/side-nav.stories.d.ts +0 -9
- package/lib/containers/slack-invite/slack-invite.stories.d.ts +0 -9
- package/lib/containers/source-drawer/source-drawer.stories.d.ts +0 -9
- package/lib/containers/source-form/source-form.stories.d.ts +0 -9
- package/lib/containers/source-modal/source-modal.stories.d.ts +0 -9
- package/lib/containers/source-selection-form/fast/index.d.ts +0 -7
- package/lib/containers/source-selection-form/simple/controls/index.d.ts +0 -9
- package/lib/containers/source-selection-form/simple/index.d.ts +0 -7
- package/lib/containers/source-selection-form/simple/list/index.d.ts +0 -8
- package/lib/containers/source-selection-form/source-selection-form.stories.d.ts +0 -9
- package/lib/containers/source-table/source-table.stories.d.ts +0 -9
- package/lib/containers/system-overview/system-overview.stories.d.ts +0 -9
- package/lib/containers/table-cell-conditions/table-cell-conditions.stories.d.ts +0 -9
- package/lib/containers/toast-list/toast-list.stories.d.ts +0 -9
- package/lib/containers/toggle-dark-mode/toggle-dark-mode.stories.d.ts +0 -9
- package/lib/icons/actions/add-cluster-info-icon/add-cluster-info-icon.stories.d.ts +0 -8
- package/lib/icons/actions/delete-attribute-icon/delete-attribute-icon.stories.d.ts +0 -8
- package/lib/icons/actions/pii-masking-icon/pii-masking-icon.stories.d.ts +0 -8
- package/lib/icons/actions/rename-attribute-icon/rename-attribute-icon.stories.d.ts +0 -8
- package/lib/icons/actions/sampler-icon/sampler-icon.stories.d.ts +0 -8
- package/lib/icons/brand/odigos-logo/odigos-logo.stories.d.ts +0 -8
- package/lib/icons/brand/odigos-logo-text/odigos-logo-text.stories.d.ts +0 -8
- package/lib/icons/common/arrow-icon/arrow-icon.stories.d.ts +0 -8
- package/lib/icons/common/code-brackets-icon/code-brackets-icon.stories.d.ts +0 -8
- package/lib/icons/common/code-icon/code-icon.stories.d.ts +0 -8
- package/lib/icons/common/command-icon/command-icon.stories.d.ts +0 -8
- package/lib/icons/common/copy-icon/copy-icon.stories.d.ts +0 -8
- package/lib/icons/common/edit-icon/edit-icon.stories.d.ts +0 -8
- package/lib/icons/common/extend-arrow-icon/extend-arrow-icon.stories.d.ts +0 -8
- package/lib/icons/common/filter-icon/filter-icon.stories.d.ts +0 -8
- package/lib/icons/common/folder-icon/folder-icon.stories.d.ts +0 -8
- package/lib/icons/common/image-error-icon/image-error-icon.stories.d.ts +0 -8
- package/lib/icons/common/key-icon/key-icon.stories.d.ts +0 -8
- package/lib/icons/common/list-icon/list-icon.stories.d.ts +0 -8
- package/lib/icons/common/no-data-icon/no-data-icon.stories.d.ts +0 -8
- package/lib/icons/common/notebook-icon/notebook-icon.stories.d.ts +0 -8
- package/lib/icons/common/notification-icon/notification-icon.stories.d.ts +0 -8
- package/lib/icons/common/search-icon/search-icon.stories.d.ts +0 -8
- package/lib/icons/common/sort-arrows-icon/sort-arrows-icon.stories.d.ts +0 -8
- package/lib/icons/common/terminal-icon/terminal-icon.stories.d.ts +0 -8
- package/lib/icons/common/trash-icon/trash-icon.stories.d.ts +0 -8
- package/lib/icons/common/x-icon/x-icon.stories.d.ts +0 -8
- package/lib/icons/compute-platform/k8s-logo/k8s-logo.stories.d.ts +0 -8
- package/lib/icons/compute-platform/vm-logo/vm-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/app-dynamics-logo/app-dynamics-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/aws-cloudwatch-logo/aws-cloudwatch-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/aws-s3-logo/aws-s3-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/aws-xray-logo/aws-xray-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/axiom-logo/axiom-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/better-stack-logo/better-stack-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/blob-storage-logo/blob-storage-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/causely-logo/causely-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/chronosphere-logo/chronosphere-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/clickhouse-logo/clickhouse-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/coralogix-logo/coralogix-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/dash0-logo/dash0-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/datadog-logo/datadog-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/dynatrace-logo/dynatrace-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/elastic-apm-logo/elastic-apm-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/elastic-search-logo/elastic-search-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/gigapipe-logo/gigapipe-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/google-cloud-platform-logo/google-cloud-platform-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/google-cloud-storage-logo/google-cloud-storage-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/grafana-logo/grafana-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/groundcover-logo/groundcover-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/honeycomb-logo/honeycomb-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/hyperdx-logo/hyperdx-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/instana-logo/instana-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/jaeger-logo/jaeger-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/kafka-logo/kafka-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/kloudmate-logo/kloudmate-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/last9-logo/last9-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/lightstep-logo/lightstep-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/logzio-logo/logzio-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/loki-logo/loki-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/lumigo-logo/lumigo-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/middleware-logo/middleware-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/new-relic-logo/new-relic-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/open-telemetry-logo/open-telemetry-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/ops-verse-logo/ops-verse-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/prometheus-logo/prometheus-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/qryn-logo/qryn-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/quickwit-logo/quickwit-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/sentry-logo/sentry-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/signoz-logo/signoz-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/splunk-logo/splunk-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/sumo-logic-logo/sumo-logic-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/tempo-logo/tempo-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/traceloop-logo/traceloop-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/uptrace-logo/uptrace-logo.stories.d.ts +0 -8
- package/lib/icons/instrumentation-rules/code-attributes-icon/code-attributes-icon.stories.d.ts +0 -8
- package/lib/icons/instrumentation-rules/payload-collection-icon/payload-collection-icon.stories.d.ts +0 -8
- package/lib/icons/math/minus-icon/minus-icon.stories.d.ts +0 -8
- package/lib/icons/math/plus-icon/plus-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/logs-icon/logs-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/metrics-icon/metrics-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/traces-icon/traces-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/eye-closed-icon/eye-closed-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/eye-open-icon/eye-open-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/light-off-icon/light-off-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/light-on-icon/light-on-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/moon-icon/moon-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/sun-icon/sun-icon.stories.d.ts +0 -8
- package/lib/icons/overview/actions-icon/actions-icon.stories.d.ts +0 -8
- package/lib/icons/overview/connections-icon/connections-icon.stories.d.ts +0 -8
- package/lib/icons/overview/destinations-icon/destinations-icon.stories.d.ts +0 -8
- package/lib/icons/overview/namespaces-icon/namespaces-icon.stories.d.ts +0 -8
- package/lib/icons/overview/overview-icon/overview-icon.stories.d.ts +0 -8
- package/lib/icons/overview/rules-icon/rules-icon.stories.d.ts +0 -8
- package/lib/icons/overview/service-map-icon/service-map-icon.stories.d.ts +0 -8
- package/lib/icons/overview/sources-icon/sources-icon.stories.d.ts +0 -8
- package/lib/icons/overview/trace-view-icon/trace-view-icon.stories.d.ts +0 -8
- package/lib/icons/programming-languages/c-plus-plus-logo/c-plus-plus-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/c-sharp-logo/c-sharp-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/dotnet-logo/dotnet-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/elixir-logo/elixir-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/go-logo/go-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/java-logo/java-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/mysql-logo/mysql-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/nginx-logo/nginx-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/nodejs-logo/nodejs-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/php-logo/php-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/postgres-logo/postgres-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/python-logo/python-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/redis-logo/redis-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/ruby-logo/ruby-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/rust-logo/rust-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/swift-logo/swift-logo.stories.d.ts +0 -8
- package/lib/icons/social/slack-logo/slack-logo.stories.d.ts +0 -8
- package/lib/icons/status/check-circled-icon/check-circled-icon.stories.d.ts +0 -8
- package/lib/icons/status/check-icon/check-icon.stories.d.ts +0 -8
- package/lib/icons/status/cross-circled-icon/cross-circled-icon.stories.d.ts +0 -8
- package/lib/icons/status/cross-icon/cross-icon.stories.d.ts +0 -8
- package/lib/icons/status/error-round-icon/error-round-icon.stories.d.ts +0 -8
- package/lib/icons/status/error-triangle-icon/error-triangle-icon.stories.d.ts +0 -8
- package/lib/icons/status/info-icon/info-icon.stories.d.ts +0 -8
- package/lib/icons/status/warning-triangle-icon/warning-triangle-icon.stories.d.ts +0 -8
- package/lib/index-IvGLauAo.js +0 -683
- package/lib/useSourceSelectionFormData-R_uK7F7W.js +0 -563
- /package/lib/containers/source-selection-form/{fast/controls → controls}/index.d.ts +0 -0
- /package/lib/containers/source-selection-form/{fast/list → list}/index.d.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useState, useRef, forwardRef, useEffect, createElement, useCallback, useMemo, Fragment } from 'react';
|
|
2
|
-
import { StatusType, OtherStatus, SortDirection, ProgrammingLanguages, EntityTypes } from './types.js';
|
|
3
|
-
import './index-IvGLauAo.js';
|
|
4
2
|
import styled, { css } from 'styled-components';
|
|
3
|
+
import { S as StatusType, O as OtherStatus, c as SortDirection, a as ProgrammingLanguages, E as EntityTypes } from './index-BVVVevuY.js';
|
|
5
4
|
import Theme from './theme.js';
|
|
6
|
-
import { b as getStatusIcon, r as removeEmptyValuesFromObject, s as safeJsonStringify, f as flattenObjectKeys, m as mapConditions, c as capitalizeFirstLetter, g as getMonitorIcon, p as parseJsonStringToPrettyString, a as getProgrammingLanguageIcon, d as splitCamelString } from './index-
|
|
5
|
+
import { b as getStatusIcon, r as removeEmptyValuesFromObject, s as safeJsonStringify, f as flattenObjectKeys, m as mapConditions, c as capitalizeFirstLetter, g as getMonitorIcon, p as parseJsonStringToPrettyString, a as getProgrammingLanguageIcon, d as splitCamelString } from './index-BxQTUOME.js';
|
|
6
|
+
import { M as MinusIcon, f as CheckIcon, L as ListIcon, C as CodeIcon, E as ExtendArrowIcon, c as SortArrowsIcon, a as CopyIcon, b as NotebookIcon, X as XIcon, d as EyeClosedIcon, e as EyeOpenIcon, N as NoDataIcon, g as CrossIcon, S as SearchIcon, T as TrashIcon, P as PlusIcon, A as ArrowIcon } from './index-BJxaoI0G.js';
|
|
7
7
|
import { s as safeJsonParse, i as isEmpty } from './index-BZS1ijMm.js';
|
|
8
|
-
import { M as
|
|
9
|
-
import {
|
|
10
|
-
import { u as useContainerSize, a as useCopy, g as useTransition, d as useKeyDown, e as useOnClickOutside } from './useTransition-hWYVBuSi.js';
|
|
8
|
+
import { M as MONITORS_OPTIONS } from './index-C1PCuZgw.js';
|
|
9
|
+
import { u as useContainerSize, a as useCopy, d as useTransition, b as useKeyDown, c as useOnClickOutside } from './useTransition-D0wUpPGk.js';
|
|
11
10
|
import ReactDOM from 'react-dom';
|
|
11
|
+
import { I as ImageErrorIcon } from './index-BWqrekK4.js';
|
|
12
12
|
import require$$0 from 'babel-runtime/helpers/extends';
|
|
13
13
|
import require$$1$1 from 'babel-runtime/core-js/object/get-prototype-of';
|
|
14
14
|
import require$$2 from 'babel-runtime/helpers/classCallCheck';
|
|
@@ -16,7 +16,7 @@ import require$$3 from 'babel-runtime/helpers/createClass';
|
|
|
16
16
|
import require$$4 from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
17
17
|
import require$$5 from 'babel-runtime/helpers/inherits';
|
|
18
18
|
import require$$1 from 'object-assign';
|
|
19
|
-
import { I as InfoIcon } from './index-
|
|
19
|
+
import { I as InfoIcon } from './index-BsH_egEe.js';
|
|
20
20
|
|
|
21
21
|
const TextWrapper$2 = styled.div `
|
|
22
22
|
color: ${({ $color, theme }) => $color || theme.text.secondary};
|
|
@@ -228,7 +228,7 @@ const Badge = ({ label, filled, status, withIcon, onClick }) => {
|
|
|
228
228
|
label));
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
const Container$
|
|
231
|
+
const Container$t = styled.div `
|
|
232
232
|
height: fit-content;
|
|
233
233
|
border: 2px solid transparent;
|
|
234
234
|
padding: 2px;
|
|
@@ -328,7 +328,7 @@ const StyledButton$2 = styled.button `
|
|
|
328
328
|
`;
|
|
329
329
|
const Button$4 = ({ children, variant = 'primary', onClick, ...props }) => {
|
|
330
330
|
const ref = useRef(null);
|
|
331
|
-
return (React.createElement(Container$
|
|
331
|
+
return (React.createElement(Container$t, { "$variant": variant },
|
|
332
332
|
React.createElement(StyledButton$2, { ref: ref, "$variant": variant, onClick: (e) => {
|
|
333
333
|
if (onClick)
|
|
334
334
|
onClick(e);
|
|
@@ -465,7 +465,7 @@ const FieldError = ({ children }) => {
|
|
|
465
465
|
React.createElement(ErrorMessage, null, children)));
|
|
466
466
|
};
|
|
467
467
|
|
|
468
|
-
const Container$
|
|
468
|
+
const Container$s = styled.div `
|
|
469
469
|
display: flex;
|
|
470
470
|
align-items: center;
|
|
471
471
|
gap: 8px;
|
|
@@ -502,7 +502,7 @@ const Checkbox = ({ title, titleColor, tooltip, value = false, partiallyChecked
|
|
|
502
502
|
setIsChecked((prev) => (partiallyChecked ? true : !prev));
|
|
503
503
|
};
|
|
504
504
|
return (React.createElement(FlexColumn, null,
|
|
505
|
-
React.createElement(Container$
|
|
505
|
+
React.createElement(Container$s, { "data-id": `checkbox${!!title ? `-${title}` : ''}`, "$disabled": disabled, onClick: handleToggle, style: style },
|
|
506
506
|
React.createElement(CheckboxWrapper, { "$isChecked": isChecked, "$isPartiallyChecked": partiallyChecked, "$disabled": disabled }, partiallyChecked ? React.createElement(MinusIcon, { fill: theme.text.white }) : isChecked ? React.createElement(CheckIcon, { fill: theme.text.white }) : null),
|
|
507
507
|
title && (React.createElement(Tooltip, { text: tooltip, withIcon: true },
|
|
508
508
|
React.createElement(Text, { size: 12, color: titleColor || theme.text.grey, style: { maxWidth: '90%' } }, title)))),
|
|
@@ -3634,7 +3634,7 @@ prismjs/prism.js:
|
|
|
3634
3634
|
*)
|
|
3635
3635
|
*/
|
|
3636
3636
|
|
|
3637
|
-
const Container$
|
|
3637
|
+
const Container$r = styled(FlexRow) `
|
|
3638
3638
|
gap: 0;
|
|
3639
3639
|
`;
|
|
3640
3640
|
const Button$3 = styled.button `
|
|
@@ -3651,7 +3651,7 @@ const Button$3 = styled.button `
|
|
|
3651
3651
|
}
|
|
3652
3652
|
`;
|
|
3653
3653
|
const ToggleCodeComponent = ({ isPrettyMode, setIsPrettyMode }) => {
|
|
3654
|
-
return (React.createElement(Container$
|
|
3654
|
+
return (React.createElement(Container$r, null,
|
|
3655
3655
|
React.createElement(Button$3, { "$position": 'left', "$selected": isPrettyMode, onClick: () => setIsPrettyMode(true) },
|
|
3656
3656
|
React.createElement(ListIcon, null)),
|
|
3657
3657
|
React.createElement(Button$3, { "$position": 'right', "$selected": !isPrettyMode, onClick: () => setIsPrettyMode(false) },
|
|
@@ -3952,18 +3952,18 @@ const FadeLoader = ({ loading = true, color: clr, scale = 1, speedMultiplier = 1
|
|
|
3952
3952
|
} })));
|
|
3953
3953
|
};
|
|
3954
3954
|
|
|
3955
|
-
const Container$
|
|
3955
|
+
const Container$q = styled.div `
|
|
3956
3956
|
margin: ${({ $align }) => ($align === 'right' ? 'auto 6px auto auto' : $align === 'left' ? 'auto auto auto 6px' : 'auto')};
|
|
3957
3957
|
display: flex;
|
|
3958
3958
|
align-items: center;
|
|
3959
3959
|
justify-content: center;
|
|
3960
3960
|
`;
|
|
3961
3961
|
const ExtendArrow = ({ extend, size = 14, align = 'center' }) => {
|
|
3962
|
-
return (React.createElement(Container$
|
|
3962
|
+
return (React.createElement(Container$q, { "$align": align },
|
|
3963
3963
|
React.createElement(ExtendArrowIcon, { size: size, rotate: extend ? 180 : 0 })));
|
|
3964
3964
|
};
|
|
3965
3965
|
|
|
3966
|
-
const Container$
|
|
3966
|
+
const Container$p = styled.div `
|
|
3967
3967
|
border-radius: 24px;
|
|
3968
3968
|
background-color: ${({ theme, $status }) => $status === StatusType.Error
|
|
3969
3969
|
? theme.text.error + Theme.opacity.hex['010']
|
|
@@ -3980,7 +3980,7 @@ const Container$q = styled.div `
|
|
|
3980
3980
|
cursor: pointer;
|
|
3981
3981
|
transition: background 0.3s;
|
|
3982
3982
|
`;
|
|
3983
|
-
const Header$
|
|
3983
|
+
const Header$1 = styled.div `
|
|
3984
3984
|
display: flex;
|
|
3985
3985
|
align-items: center;
|
|
3986
3986
|
gap: 12px;
|
|
@@ -4023,8 +4023,8 @@ const ConditionDetails = ({ conditions: c, headerLabelError = 'Something Failed'
|
|
|
4023
4023
|
const headerSubText = `(${hasErrors ? errors.length : hasWarnings ? warnings.length : conditions.length}/${conditions.length})`;
|
|
4024
4024
|
const headerSubTextColor = hasErrors ? theme.text.error_secondary : hasWarnings ? theme.text.warning_secondary : theme.text.info_secondary;
|
|
4025
4025
|
const toggleExtend = useCallback(() => setExtend((prev) => !prev), []);
|
|
4026
|
-
return (React.createElement(Container$
|
|
4027
|
-
React.createElement(Header$
|
|
4026
|
+
return (React.createElement(Container$p, { onClick: toggleExtend, "$status": overallStatus },
|
|
4027
|
+
React.createElement(Header$1, null,
|
|
4028
4028
|
loading ? React.createElement(FadeLoader, null) : React.createElement(HeaderIcon, null),
|
|
4029
4029
|
React.createElement(Text, { color: headerTextColor, size: 14 }, headerText),
|
|
4030
4030
|
React.createElement(Text, { color: headerSubTextColor, size: 12, family: 'secondary' }, headerSubText),
|
|
@@ -4059,7 +4059,7 @@ const Divider = ({ orientation = 'horizontal', type, thickness = 1, length, marg
|
|
|
4059
4059
|
return React.createElement(StyledDivider, { "$orientation": orientation, "$type": type, "$thickness": thickness, "$length": length, "$margin": margin });
|
|
4060
4060
|
};
|
|
4061
4061
|
|
|
4062
|
-
const Container$
|
|
4062
|
+
const Container$o = styled.div `
|
|
4063
4063
|
display: flex;
|
|
4064
4064
|
align-items: center;
|
|
4065
4065
|
gap: ${({ $size }) => $size / 3}px;
|
|
@@ -4081,7 +4081,7 @@ const Status = ({ title, subtitle, size = 12, family = 'secondary', status = Sta
|
|
|
4081
4081
|
const theme = Theme.useTheme();
|
|
4082
4082
|
const statusType = status === OtherStatus.Loading ? StatusType.Info : status;
|
|
4083
4083
|
const StatusIcon = status === OtherStatus.Loading ? () => React.createElement(FadeLoader, { scale: 0.8 }) : () => getStatusIcon(statusType, theme)({ size: size + 2 });
|
|
4084
|
-
return (React.createElement(Container$
|
|
4084
|
+
return (React.createElement(Container$o, { "$size": size, "$status": statusType, "$withIcon": withIcon, "$withBorder": withBorder, "$withBackground": withBackground },
|
|
4085
4085
|
withIcon && (React.createElement(IconWrapper$4, null,
|
|
4086
4086
|
React.createElement(StatusIcon, null))),
|
|
4087
4087
|
(!!title || !!subtitle) && (React.createElement(TextWrapper$1, null,
|
|
@@ -4098,7 +4098,7 @@ const ImageControlled = ({ src = '', alt = '', size = 16 }) => {
|
|
|
4098
4098
|
return React.createElement(ImageErrorIcon, { size: size });
|
|
4099
4099
|
};
|
|
4100
4100
|
|
|
4101
|
-
const Container$
|
|
4101
|
+
const Container$n = styled.div `
|
|
4102
4102
|
display: flex;
|
|
4103
4103
|
align-items: center;
|
|
4104
4104
|
justify-content: center;
|
|
@@ -4111,10 +4111,10 @@ const Container$o = styled.div `
|
|
|
4111
4111
|
}};
|
|
4112
4112
|
`;
|
|
4113
4113
|
const IconWrapped = ({ icon: Icon, src = '', alt = '', status, size = 36 }) => {
|
|
4114
|
-
return (React.createElement(Container$
|
|
4114
|
+
return (React.createElement(Container$n, { "$status": status, "$size": size }, src ? React.createElement(ImageControlled, { src: src, alt: alt, size: size - 16 }) : !!Icon ? React.createElement(Icon, { size: size - 16 }) : React.createElement(ImageErrorIcon, { size: size - 16 })));
|
|
4115
4115
|
};
|
|
4116
4116
|
|
|
4117
|
-
const Container$
|
|
4117
|
+
const Container$m = styled.div `
|
|
4118
4118
|
position: relative;
|
|
4119
4119
|
display: flex;
|
|
4120
4120
|
flex-wrap: wrap;
|
|
@@ -4164,7 +4164,7 @@ const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36, id }) => {
|
|
|
4164
4164
|
}
|
|
4165
4165
|
return imgSize * 1.4;
|
|
4166
4166
|
};
|
|
4167
|
-
return (React.createElement(Container$
|
|
4167
|
+
return (React.createElement(Container$m, { "$status": status, "$size": size }, icons.map((Icon, idx) => {
|
|
4168
4168
|
if (idx > 2)
|
|
4169
4169
|
return null;
|
|
4170
4170
|
return (React.createElement(IconWrapper$3, { key: `icon-${id}-${idx}`, "$size": imgSize * 1.5, "$top": getTopPosition(idx), "$left": getLeftPosition(idx), "$zIndex": idx + 1 }, idx === 2 && icons.length > 3 ? (React.createElement(Text, { family: 'secondary', color: theme.text.dark_grey, size: imgSize * 0.8 },
|
|
@@ -4213,29 +4213,10 @@ const IconButton = ({ children, onClick, tooltip, size = 36, withPing, pingColor
|
|
|
4213
4213
|
children)));
|
|
4214
4214
|
};
|
|
4215
4215
|
|
|
4216
|
-
const defaultMonitors = MONITORS_OPTIONS.map(({ id }) => id);
|
|
4217
|
-
const MonitorsIcons = ({ monitors = defaultMonitors, withTooltips, withLabels, size = 12, color: clr }) => {
|
|
4218
|
-
const theme = Theme.useTheme();
|
|
4219
|
-
const color = clr || theme.text.grey;
|
|
4220
|
-
return (React.createElement(FlexRow, { "$gap": withLabels ? size : size / 2 }, monitors
|
|
4221
|
-
.filter((str) => !!str)
|
|
4222
|
-
.map((str) => {
|
|
4223
|
-
const signal = str.toLowerCase();
|
|
4224
|
-
const displayName = capitalizeFirstLetter(signal);
|
|
4225
|
-
const Icon = getMonitorIcon(signal);
|
|
4226
|
-
if (!Icon)
|
|
4227
|
-
return null;
|
|
4228
|
-
return (React.createElement(Tooltip, { key: signal, text: withTooltips ? displayName : '' },
|
|
4229
|
-
React.createElement(FlexRow, { "$gap": size / 3 },
|
|
4230
|
-
React.createElement(Icon, { size: withLabels ? size + 2 : size, fill: color }),
|
|
4231
|
-
withLabels && (React.createElement(Text, { size: size, color: color }, displayName)))));
|
|
4232
|
-
})));
|
|
4233
|
-
};
|
|
4234
|
-
|
|
4235
4216
|
const ControlledVisibility = styled.div `
|
|
4236
4217
|
visibility: hidden;
|
|
4237
4218
|
`;
|
|
4238
|
-
const Container$
|
|
4219
|
+
const Container$l = styled.div `
|
|
4239
4220
|
display: flex;
|
|
4240
4221
|
flex-direction: column;
|
|
4241
4222
|
align-self: stretch;
|
|
@@ -4276,16 +4257,12 @@ const Title$b = styled(Text) `
|
|
|
4276
4257
|
display: block;
|
|
4277
4258
|
}
|
|
4278
4259
|
`;
|
|
4279
|
-
const
|
|
4260
|
+
const SubTitle$2 = styled(Text) `
|
|
4280
4261
|
max-width: ${({ $maxWidth }) => $maxWidth}px;
|
|
4281
4262
|
overflow: hidden;
|
|
4282
4263
|
white-space: nowrap;
|
|
4264
|
+
text-overflow: ellipsis;
|
|
4283
4265
|
|
|
4284
|
-
display: flex;
|
|
4285
|
-
align-items: center;
|
|
4286
|
-
gap: 8px;
|
|
4287
|
-
`;
|
|
4288
|
-
const SubTitle$2 = styled(Text) `
|
|
4289
4266
|
color: ${({ theme }) => theme.text.grey};
|
|
4290
4267
|
font-size: 10px;
|
|
4291
4268
|
`;
|
|
@@ -4298,13 +4275,15 @@ const ActionsWrapper = styled.div `
|
|
|
4298
4275
|
const HoverText = styled(Text) `
|
|
4299
4276
|
margin-right: 16px;
|
|
4300
4277
|
`;
|
|
4301
|
-
const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps: { icon, icons, iconSrc, iconSrcs } = {}, visualProps: { status, faded, bgColor, bgColorHover,
|
|
4278
|
+
const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps: { icon, icons, iconSrc, iconSrcs } = {}, visualProps: { status, faded, bgColor, bgColorHover, monitors, monitorsWithLabels } = {}, checkboxProps: { withCheckbox, isCheckboxDisabled, isChecked, onCheckboxChange } = {}, extendableProps: { withExtend, isExtended, renderExtended } = {}, ...props }) => {
|
|
4302
4279
|
const [extend, setExtend] = useState(isExtended || false);
|
|
4303
4280
|
const [maxWidth, setMaxWidth] = useState(0);
|
|
4304
4281
|
const [isTitleOverflowed, setIsTitleOverflowed] = useState(false);
|
|
4282
|
+
const [isSubTitleOverflowed, setSubIsTitleOverflowed] = useState(false);
|
|
4305
4283
|
const containerRef = useRef(null);
|
|
4306
4284
|
const actionsRef = useRef(null);
|
|
4307
4285
|
const titleRef = useRef(null);
|
|
4286
|
+
const subTitleRef = useRef(null);
|
|
4308
4287
|
useEffect(() => {
|
|
4309
4288
|
if (containerRef.current && actionsRef.current) {
|
|
4310
4289
|
const containerWidth = containerRef.current.clientWidth;
|
|
@@ -4316,29 +4295,18 @@ const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps
|
|
|
4316
4295
|
}
|
|
4317
4296
|
}, []);
|
|
4318
4297
|
useEffect(() => {
|
|
4319
|
-
const
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
const
|
|
4323
|
-
const marginDown = maxWidth * 0.95; // subtract 5%
|
|
4298
|
+
const marginUp = maxWidth * 1.05; // add 5%
|
|
4299
|
+
const marginDown = maxWidth * 0.95; // subtract 5%
|
|
4300
|
+
if (titleRef.current) {
|
|
4301
|
+
const { clientWidth } = titleRef.current;
|
|
4324
4302
|
setIsTitleOverflowed(clientWidth < marginUp && clientWidth > marginDown);
|
|
4325
4303
|
}
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
React.createElement(MonitorsIcons, { monitors: monitors, withLabels: monitorsWithLabels, size: 10 })));
|
|
4333
|
-
};
|
|
4334
|
-
const renderActiveStatus = (withSeperator) => {
|
|
4335
|
-
if (typeof isActive !== 'boolean')
|
|
4336
|
-
return null;
|
|
4337
|
-
return (React.createElement(React.Fragment, null,
|
|
4338
|
-
withSeperator && React.createElement(SubTitle$2, null, '•'),
|
|
4339
|
-
React.createElement(Status, { status: isActive ? StatusType.Success : StatusType.Error, size: 10 })));
|
|
4340
|
-
};
|
|
4341
|
-
return (React.createElement(Container$m, { ref: containerRef, "$status": status, "$faded": faded, "$bgColor": bgColor, "$bgColorHover": bgColorHover, "$withClick": !!onClick, onClick: onClick, ...props },
|
|
4304
|
+
if (subTitleRef.current) {
|
|
4305
|
+
const { clientWidth } = subTitleRef.current;
|
|
4306
|
+
setSubIsTitleOverflowed(clientWidth < marginUp && clientWidth > marginDown);
|
|
4307
|
+
}
|
|
4308
|
+
}, [title, subTitle, maxWidth]);
|
|
4309
|
+
return (React.createElement(Container$l, { ref: containerRef, "$status": status, "$faded": faded, "$bgColor": bgColor, "$bgColorHover": bgColorHover, "$withClick": !!onClick, onClick: onClick, ...props },
|
|
4342
4310
|
React.createElement(FlexRow, { "$gap": 8 },
|
|
4343
4311
|
React.createElement(FlexRow, { "$gap": 16 },
|
|
4344
4312
|
withCheckbox && React.createElement(Checkbox, { value: isChecked, onChange: onCheckboxChange, disabled: isCheckboxDisabled }),
|
|
@@ -4346,10 +4314,8 @@ const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps
|
|
|
4346
4314
|
React.createElement(FlexColumn, { "$gap": 4 },
|
|
4347
4315
|
React.createElement(Tooltip, { text: isTitleOverflowed ? title : undefined, withIcon: false },
|
|
4348
4316
|
React.createElement(Title$b, { ref: titleRef, "$maxWidth": maxWidth }, title)),
|
|
4349
|
-
React.createElement(
|
|
4350
|
-
|
|
4351
|
-
renderMonitors(!!subTitle),
|
|
4352
|
-
renderActiveStatus(!!monitors?.length))),
|
|
4317
|
+
subTitle && (React.createElement(Tooltip, { text: isSubTitleOverflowed ? subTitle : undefined, withIcon: false },
|
|
4318
|
+
React.createElement(SubTitle$2, { ref: subTitleRef, "$maxWidth": maxWidth }, subTitle)))),
|
|
4353
4319
|
React.createElement(ActionsWrapper, { ref: actionsRef },
|
|
4354
4320
|
!!hoverText && (React.createElement(ControlledVisibility, null,
|
|
4355
4321
|
React.createElement(HoverText, { size: 14, family: 'secondary' }, hoverText))),
|
|
@@ -4363,7 +4329,7 @@ const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps
|
|
|
4363
4329
|
renderExtended()))));
|
|
4364
4330
|
};
|
|
4365
4331
|
|
|
4366
|
-
const Container$
|
|
4332
|
+
const Container$k = styled(FlexRow) `
|
|
4367
4333
|
width: 100%;
|
|
4368
4334
|
justify-content: space-between;
|
|
4369
4335
|
`;
|
|
@@ -4386,7 +4352,7 @@ const ValueText = styled(Text) `
|
|
|
4386
4352
|
text-align: right;
|
|
4387
4353
|
`;
|
|
4388
4354
|
const DescribeRow = ({ title, subTitle, tooltip, value }) => {
|
|
4389
|
-
return (React.createElement(Container$
|
|
4355
|
+
return (React.createElement(Container$k, null,
|
|
4390
4356
|
React.createElement(FlexColumn, { "$gap": 4 },
|
|
4391
4357
|
React.createElement(Tooltip, { text: tooltip || '' },
|
|
4392
4358
|
title && React.createElement(Title$a, null, title),
|
|
@@ -4394,6 +4360,25 @@ const DescribeRow = ({ title, subTitle, tooltip, value }) => {
|
|
|
4394
4360
|
React.createElement(ValueWrapper, null, !!value?.status ? (React.createElement(Status, { status: value.status === 'transitioning' ? OtherStatus.Loading : value.status, title: value.text || value.status, withBorder: true, withIcon: true })) : (React.createElement(ValueText, null, value?.text || '-')))));
|
|
4395
4361
|
};
|
|
4396
4362
|
|
|
4363
|
+
const defaultMonitors = MONITORS_OPTIONS.map(({ id }) => id);
|
|
4364
|
+
const MonitorsIcons = ({ monitors = defaultMonitors, withTooltips, withLabels, size = 12, color: clr }) => {
|
|
4365
|
+
const theme = Theme.useTheme();
|
|
4366
|
+
const color = clr || theme.text.grey;
|
|
4367
|
+
return (React.createElement(FlexRow, { "$gap": withLabels ? size : size / 2 }, monitors
|
|
4368
|
+
.filter((str) => !!str)
|
|
4369
|
+
.map((str) => {
|
|
4370
|
+
const signal = str.toLowerCase();
|
|
4371
|
+
const displayName = capitalizeFirstLetter(signal);
|
|
4372
|
+
const Icon = getMonitorIcon(signal);
|
|
4373
|
+
if (!Icon)
|
|
4374
|
+
return null;
|
|
4375
|
+
return (React.createElement(Tooltip, { key: signal, text: withTooltips ? displayName : '' },
|
|
4376
|
+
React.createElement(FlexRow, { "$gap": size / 3 },
|
|
4377
|
+
React.createElement(Icon, { size: withLabels ? size + 2 : size, fill: color }),
|
|
4378
|
+
withLabels && (React.createElement(Text, { size: size, color: color }, displayName)))));
|
|
4379
|
+
})));
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4397
4382
|
const Tr = styled.tr `
|
|
4398
4383
|
cursor: ${({ $withHover }) => ($withHover ? 'pointer' : 'default')};
|
|
4399
4384
|
opacity: ${({ $faded }) => ($faded ? 0.5 : 1)};
|
|
@@ -4453,7 +4438,7 @@ const TableRow = ({ index, columns, cells, onClick, status, faded }) => {
|
|
|
4453
4438
|
})));
|
|
4454
4439
|
};
|
|
4455
4440
|
|
|
4456
|
-
const Container$
|
|
4441
|
+
const Container$j = styled.div `
|
|
4457
4442
|
width: 100%;
|
|
4458
4443
|
`;
|
|
4459
4444
|
const Table = styled.table `
|
|
@@ -4527,7 +4512,7 @@ const InteractiveTable = ({ columns, rows }) => {
|
|
|
4527
4512
|
})
|
|
4528
4513
|
: rows).map(({ status, faded, cells, onClick }, i) => React.createElement(TableRow, { key: `row-${i}`, index: i, columns: columns, cells: cells, onClick: onClick, status: status, faded: faded }));
|
|
4529
4514
|
}, [columns, rows, sortBy, sortDirection]);
|
|
4530
|
-
return (React.createElement(Container$
|
|
4515
|
+
return (React.createElement(Container$j, null,
|
|
4531
4516
|
React.createElement(Table, null,
|
|
4532
4517
|
React.createElement(TableHead, null,
|
|
4533
4518
|
React.createElement("tr", null, columns.map(({ key, title, sortable }) => (React.createElement(TableTitle, { key: `column-${key}` }, sortable ? (React.createElement(SortClickable, { onClick: () => onSort(key) },
|
|
@@ -4714,7 +4699,7 @@ const CardContainer = styled.div `
|
|
|
4714
4699
|
background-color: ${({ theme, $hovered }) => ($hovered ? theme.colors.secondary + Theme.opacity.hex['010'] : 'transparent')};
|
|
4715
4700
|
transition: background-color 0.3s;
|
|
4716
4701
|
`;
|
|
4717
|
-
const Header
|
|
4702
|
+
const Header = styled.div `
|
|
4718
4703
|
width: 100%;
|
|
4719
4704
|
display: flex;
|
|
4720
4705
|
flex-direction: column;
|
|
@@ -4740,7 +4725,7 @@ const DataCard = ({ title = 'Details', titleBadge, description, action: Action,
|
|
|
4740
4725
|
const [extend, setExtend] = useState(false);
|
|
4741
4726
|
const [hovered, setHovered] = useState(false);
|
|
4742
4727
|
return (React.createElement(CardContainer, { "$hovered": hovered },
|
|
4743
|
-
!!title || !!description || !!Action ? (React.createElement(Header
|
|
4728
|
+
!!title || !!description || !!Action ? (React.createElement(Header, { "$clickable": withExtend || false, onClick: () => withExtend && setExtend((prev) => !prev), onMouseEnter: () => withExtend && setHovered(true), onMouseLeave: () => withExtend && setHovered(false) },
|
|
4744
4729
|
(!!title || !!Action) && (React.createElement(Title$8, null,
|
|
4745
4730
|
title,
|
|
4746
4731
|
titleBadge !== undefined && React.createElement(Badge, { label: titleBadge }),
|
|
@@ -4784,7 +4769,7 @@ const DocsButton = ({ endpoint = '/', variant = 'secondary' }) => {
|
|
|
4784
4769
|
"Docs"));
|
|
4785
4770
|
};
|
|
4786
4771
|
|
|
4787
|
-
const Container$
|
|
4772
|
+
const Container$i = styled.section `
|
|
4788
4773
|
padding: 0px 32px;
|
|
4789
4774
|
border-bottom: 1px solid ${({ theme }) => theme.colors.border};
|
|
4790
4775
|
`;
|
|
@@ -4823,7 +4808,7 @@ const Tab = styled(Text) `
|
|
|
4823
4808
|
align-items: center;
|
|
4824
4809
|
gap: 8px;
|
|
4825
4810
|
`;
|
|
4826
|
-
const DrawerHeader = ({ onClose,
|
|
4811
|
+
const DrawerHeader = ({ onClose, icons, iconSrcs, title, titleTooltip, replaceTitleWith: ReplaceTitleWith, actionButtons = [], tabs }) => {
|
|
4827
4812
|
const renderReplaceTitleWith = () => {
|
|
4828
4813
|
if (typeof ReplaceTitleWith === 'function') {
|
|
4829
4814
|
return React.createElement(ReplaceTitleWith, null);
|
|
@@ -4833,10 +4818,10 @@ const DrawerHeader = ({ onClose, icon, iconSrc, title, titleTooltip, replaceTitl
|
|
|
4833
4818
|
}
|
|
4834
4819
|
return null;
|
|
4835
4820
|
};
|
|
4836
|
-
return (React.createElement(Container$
|
|
4821
|
+
return (React.createElement(Container$i, null,
|
|
4837
4822
|
React.createElement(TopRow, null,
|
|
4838
4823
|
React.createElement(SectionItemsWrapper, null,
|
|
4839
|
-
|
|
4824
|
+
icons?.length || iconSrcs?.length ? React.createElement(IconGroup, { icons: icons, iconSrcs: iconSrcs, id: `drawer-header-${title}` }) : null,
|
|
4840
4825
|
renderReplaceTitleWith() || (React.createElement(Tooltip, { text: titleTooltip, withIcon: true }, title && React.createElement(Title$7, null, title)))),
|
|
4841
4826
|
React.createElement(SectionItemsWrapper, { "$gap": 2 },
|
|
4842
4827
|
actionButtons.map((btn, i) => (React.createElement(ActionButton$1, { key: `header-action-button-${i}`, ...btn }))),
|
|
@@ -4847,7 +4832,7 @@ const DrawerHeader = ({ onClose, icon, iconSrc, title, titleTooltip, replaceTitl
|
|
|
4847
4832
|
Icon && React.createElement(Icon, null))))))));
|
|
4848
4833
|
};
|
|
4849
4834
|
|
|
4850
|
-
const Container$
|
|
4835
|
+
const Container$h = styled.div `
|
|
4851
4836
|
display: flex;
|
|
4852
4837
|
justify-content: space-between;
|
|
4853
4838
|
gap: 8px;
|
|
@@ -4856,10 +4841,10 @@ const Container$i = styled.div `
|
|
|
4856
4841
|
background-color: ${({ theme }) => theme.colors.translucent_bg};
|
|
4857
4842
|
transform: translateY(100%);
|
|
4858
4843
|
`;
|
|
4859
|
-
const AlignLeft
|
|
4844
|
+
const AlignLeft = styled(FlexRow) `
|
|
4860
4845
|
margin-right: auto;
|
|
4861
4846
|
`;
|
|
4862
|
-
const AlignRight
|
|
4847
|
+
const AlignRight = styled(FlexRow) `
|
|
4863
4848
|
margin-left: auto;
|
|
4864
4849
|
`;
|
|
4865
4850
|
const FooterButton$1 = styled(Button$4) `
|
|
@@ -4868,16 +4853,16 @@ const FooterButton$1 = styled(Button$4) `
|
|
|
4868
4853
|
`;
|
|
4869
4854
|
const DrawerFooter = ({ isOpen, leftButtons = [], rightButtons = [] }) => {
|
|
4870
4855
|
const Transition = useTransition({
|
|
4871
|
-
container: Container$
|
|
4856
|
+
container: Container$h,
|
|
4872
4857
|
animateIn: Theme.animations.slide.in['bottom'],
|
|
4873
4858
|
animateOut: Theme.animations.slide.out['bottom'],
|
|
4874
4859
|
});
|
|
4875
4860
|
return (React.createElement(Transition, { enter: isOpen },
|
|
4876
|
-
React.createElement(AlignLeft
|
|
4877
|
-
React.createElement(AlignRight
|
|
4861
|
+
React.createElement(AlignLeft, null, leftButtons.map((btn, i) => (React.createElement(FooterButton$1, { key: `footer-left-button-${i}`, ...btn })))),
|
|
4862
|
+
React.createElement(AlignRight, null, rightButtons.map((btn, i) => (React.createElement(FooterButton$1, { key: `footer-right-button-${i}`, ...btn }))))));
|
|
4878
4863
|
};
|
|
4879
4864
|
|
|
4880
|
-
const Container$
|
|
4865
|
+
const Container$g = styled.div `
|
|
4881
4866
|
position: fixed;
|
|
4882
4867
|
top: 0;
|
|
4883
4868
|
bottom: 0;
|
|
@@ -4904,7 +4889,7 @@ const Drawer = ({ isOpen, onClose, closeOnEscape = true, position = 'right', wid
|
|
|
4904
4889
|
active: isOpen && closeOnEscape,
|
|
4905
4890
|
}, () => onClose());
|
|
4906
4891
|
const Transition = useTransition({
|
|
4907
|
-
container: Container$
|
|
4892
|
+
container: Container$g,
|
|
4908
4893
|
animateIn: Theme.animations.slide.in[position],
|
|
4909
4894
|
animateOut: Theme.animations.slide.out[position],
|
|
4910
4895
|
});
|
|
@@ -4948,7 +4933,7 @@ const FieldLabel = ({ title, required, tooltip, style }) => {
|
|
|
4948
4933
|
};
|
|
4949
4934
|
|
|
4950
4935
|
// Styled components remain the same as before
|
|
4951
|
-
const Container$
|
|
4936
|
+
const Container$f = styled.div `
|
|
4952
4937
|
display: flex;
|
|
4953
4938
|
flex-direction: column;
|
|
4954
4939
|
position: relative;
|
|
@@ -5051,7 +5036,7 @@ const Input = ({ icon: Icon, buttonLabel, onButtonClick, hasError, errorMessage,
|
|
|
5051
5036
|
if (!['Enter'].includes(e.key))
|
|
5052
5037
|
e.stopPropagation();
|
|
5053
5038
|
};
|
|
5054
|
-
return (React.createElement(Container$
|
|
5039
|
+
return (React.createElement(Container$f, null,
|
|
5055
5040
|
React.createElement(FieldLabel, { title: title, required: required, tooltip: tooltip }),
|
|
5056
5041
|
React.createElement(InputWrapper$1, { "$disabled": props.disabled, "$hasError": hasError || !!errorMessage, "$isActive": !!props.autoFocus },
|
|
5057
5042
|
isSecret ? (React.createElement(IconWrapperClickable, { onClick: () => setRevealSecret((prev) => !prev) }, revealSecret ? React.createElement(EyeClosedIcon, { size: 14, fill: theme.text.grey }) : React.createElement(EyeOpenIcon, { size: 14, fill: theme.text.grey }))) : Icon ? (React.createElement(IconWrapper$2, null,
|
|
@@ -5061,7 +5046,7 @@ const Input = ({ icon: Icon, buttonLabel, onButtonClick, hasError, errorMessage,
|
|
|
5061
5046
|
!!errorMessage && React.createElement(FieldError, null, errorMessage)));
|
|
5062
5047
|
};
|
|
5063
5048
|
|
|
5064
|
-
const Container$
|
|
5049
|
+
const Container$e = styled.div `
|
|
5065
5050
|
display: flex;
|
|
5066
5051
|
flex-direction: column;
|
|
5067
5052
|
align-items: center;
|
|
@@ -5083,7 +5068,7 @@ const SubTitle = styled(Text) `
|
|
|
5083
5068
|
`;
|
|
5084
5069
|
const NoDataFound = ({ title = 'No data found', subTitle = 'Check your search phrase and try one more time' }) => {
|
|
5085
5070
|
const theme = Theme.useTheme();
|
|
5086
|
-
return (React.createElement(Container$
|
|
5071
|
+
return (React.createElement(Container$e, null,
|
|
5087
5072
|
React.createElement(TitleWrapper, null,
|
|
5088
5073
|
React.createElement(NoDataIcon, { fill: theme.text.dark_grey }),
|
|
5089
5074
|
React.createElement(Title$5, null, title)),
|
|
@@ -5258,36 +5243,6 @@ const DropdownListItem = ({ option, value, isMulti, onSelect, onDeselect }) => {
|
|
|
5258
5243
|
isSelected && React.createElement(CheckIcon, null)));
|
|
5259
5244
|
};
|
|
5260
5245
|
|
|
5261
|
-
const Container$e = styled(FlexRow) `
|
|
5262
|
-
position: relative;
|
|
5263
|
-
width: calc(100% - 24px);
|
|
5264
|
-
padding: 12px;
|
|
5265
|
-
background-color: ${({ theme }) => theme.colors.dark_grey};
|
|
5266
|
-
border-bottom: 1px solid ${({ theme }) => theme.colors.border + Theme.opacity.hex['050']};
|
|
5267
|
-
`;
|
|
5268
|
-
const AlignLeft = styled(FlexRow) `
|
|
5269
|
-
margin-right: auto;
|
|
5270
|
-
margin-left: 32px;
|
|
5271
|
-
gap: 12px;
|
|
5272
|
-
`;
|
|
5273
|
-
const AlignRight = styled(FlexRow) `
|
|
5274
|
-
margin-left: auto;
|
|
5275
|
-
margin-right: 32px;
|
|
5276
|
-
gap: 12px;
|
|
5277
|
-
`;
|
|
5278
|
-
const PositionCenter = styled(FlexRow) `
|
|
5279
|
-
position: absolute;
|
|
5280
|
-
left: 50%;
|
|
5281
|
-
transform: translateX(-50%);
|
|
5282
|
-
gap: 12px;
|
|
5283
|
-
`;
|
|
5284
|
-
const Header = ({ left = [], center = [], right = [] }) => {
|
|
5285
|
-
return (React.createElement(Container$e, null,
|
|
5286
|
-
React.createElement(AlignLeft, null, left.map((child, index) => child && React.createElement(Fragment, { key: index }, child))),
|
|
5287
|
-
React.createElement(PositionCenter, null, center.map((child, index) => child && React.createElement(Fragment, { key: index }, child))),
|
|
5288
|
-
React.createElement(AlignRight, null, right.map((child, index) => child && React.createElement(Fragment, { key: index }, child)))));
|
|
5289
|
-
};
|
|
5290
|
-
|
|
5291
5246
|
const Title$4 = styled(Text) `
|
|
5292
5247
|
color: ${({ theme }) => theme.text.grey};
|
|
5293
5248
|
`;
|
|
@@ -29621,4 +29576,4 @@ const WarningModal = ({ isOpen, noOverlay, title = '', description = '', note, a
|
|
|
29621
29576
|
React.createElement(FooterButton, { "data-id": 'deny', variant: denyButton.variant || 'secondary', onClick: onDeny }, denyButton.text)))));
|
|
29622
29577
|
};
|
|
29623
29578
|
|
|
29624
|
-
export {
|
|
29579
|
+
export { CenterThis as $, AutocompleteInput as A, Button$4 as B, CancelWarning as C, DataCard as D, ExtendArrow as E, FlexRow as F, MonitorsCheckboxes as G, MonitorsIcons as H, IconButton as I, NoDataFound as J, KeyValueInputsList as K, NotificationNote as L, Modal as M, NavigationButtons as N, Segment as O, SkeletonLoader as P, Status as Q, Stepper as R, SectionTitle as S, ToggleCodeComponent as T, Text as U, TextArea as V, Toggle as W, Tooltip as X, TraceLoader as Y, WarningModal as Z, FlexColumn as _, Badge as a, Overlay as a0, ModalBody as a1, TableContainer as a2, TableTitleWrap as a3, TableWrap as a4, getDefaultExportFromCjs as a5, Checkbox as b, Code as c, ConditionDetails as d, DataCardFields as e, DataCardFieldTypes as f, DataTab as g, DeleteWarning as h, Divider as i, DocsButton as j, Drawer as k, DrawerHeader as l, DrawerFooter as m, Dropdown as n, FadeLoader as o, FieldError as p, FieldLabel as q, IconGroup as r, IconTitleBadge as s, IconWrapped as t, IconsNav as u, ImageControlled as v, Input as w, InputList as x, InputTable as y, InteractiveTable as z };
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Theme from './theme.js';
|
|
3
3
|
|
|
4
|
+
const OdigosLogo = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
5
|
+
const theme = Theme.useTheme();
|
|
6
|
+
const fill = f || theme.text.secondary;
|
|
7
|
+
return (React.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: size, height: size * (431 / 511), viewBox: '0 0 511 431', fill: fill, style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
8
|
+
React.createElement("path", { d: 'M308.491 83.3091V0.0765381H472.573C493.785 0.0765381 511 16.4464 511 36.6589V374.508C511 394.72 493.785 411.09 472.573 411.09H308.491V328.396L454.666 263.762C478.721 253.079 493.708 230.791 493.708 205.583C493.708 180.375 478.721 158.011 454.666 147.405L308.414 83.3859L308.491 83.3091Z' }),
|
|
9
|
+
React.createElement("path", { d: 'M202.51 327.781V411.014H38.4269C17.2152 411.014 0 394.644 0 374.431V36.5824C0 16.3698 17.2152 0 38.4269 0H202.51V82.6946L56.3338 147.329C32.2786 158.011 17.2921 180.299 17.2921 205.507C17.2921 230.715 32.2786 253.079 56.3338 263.685L202.586 327.704L202.51 327.781Z' }),
|
|
10
|
+
React.createElement("path", { d: 'M255.462 290.507C302.363 290.507 340.385 252.485 340.385 205.584C340.385 158.682 302.363 120.66 255.462 120.66C208.56 120.66 170.538 158.682 170.538 205.584C170.538 252.485 208.56 290.507 255.462 290.507Z' })));
|
|
11
|
+
};
|
|
12
|
+
|
|
4
13
|
const KafkaLogo = ({ size = 16, fill, rotate = 0, onClick }) => {
|
|
5
14
|
return (React.createElement("svg", { width: size * (256 / 416), height: size, viewBox: '0 0 256 416', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
6
15
|
React.createElement("path", { fill: fill || '#231f20', d: 'M201.816 230.216c-16.186 0-30.697 7.171-40.634 18.461l-25.463-18.026c2.703-7.442 4.255-15.433 4.255-23.797 0-8.219-1.498-16.076-4.112-23.408l25.406-17.835c9.936 11.233 24.409 18.365 40.548 18.365 29.875 0 54.184-24.305 54.184-54.184 0-29.879-24.309-54.184-54.184-54.184-29.875 0-54.184 24.305-54.184 54.184 0 5.348.808 10.505 2.258 15.389l-25.423 17.844c-10.62-13.175-25.911-22.374-43.333-25.182v-30.64c24.544-5.155 43.037-26.962 43.037-53.019C124.171 24.305 99.862 0 69.987 0 40.112 0 15.803 24.305 15.803 54.184c0 25.708 18.014 47.246 42.067 52.769v31.038C25.044 143.753 0 172.401 0 206.854c0 34.621 25.292 63.374 58.355 68.94v32.774c-24.299 5.341-42.552 27.011-42.552 52.894 0 29.879 24.309 54.184 54.184 54.184 29.875 0 54.184-24.305 54.184-54.184 0-25.883-18.253-47.553-42.552-52.894v-32.775a69.965 69.965 0 0 0 42.6-24.776l25.633 18.143c-1.423 4.84-2.22 9.946-2.22 15.24 0 29.879 24.309 54.184 54.184 54.184 29.875 0 54.184-24.305 54.184-54.184 0-29.879-24.309-54.184-54.184-54.184zm0-126.695c14.487 0 26.27 11.788 26.27 26.271s-11.783 26.27-26.27 26.27-26.27-11.787-26.27-26.27c0-14.483 11.783-26.271 26.27-26.271zm-158.1-49.337c0-14.483 11.784-26.27 26.271-26.27s26.27 11.787 26.27 26.27c0 14.483-11.783 26.27-26.27 26.27s-26.271-11.787-26.271-26.27zm52.541 307.278c0 14.483-11.783 26.27-26.27 26.27s-26.271-11.787-26.271-26.27c0-14.483 11.784-26.27 26.271-26.27s26.27 11.787 26.27 26.27zm-26.272-117.97c-20.205 0-36.642-16.434-36.642-36.638 0-20.205 16.437-36.642 36.642-36.642 20.204 0 36.641 16.437 36.641 36.642 0 20.204-16.437 36.638-36.641 36.638zm131.831 67.179c-14.487 0-26.27-11.788-26.27-26.271s11.783-26.27 26.27-26.27 26.27 11.787 26.27 26.27c0 14.483-11.783 26.271-26.27 26.271z' })));
|
|
@@ -463,4 +472,4 @@ const WarningTriangleIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
463
472
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8 8.66673V6.00006M8 10.9167V10.9175M7.07337 2.18915C7.66595 1.93695 8.33405 1.93695 8.92662 2.18915C10.6942 2.94145 14.8697 9.61453 14.7474 11.3981C14.6994 12.0972 14.3529 12.7408 13.7982 13.1614C12.323 14.2795 3.67698 14.2795 2.20185 13.1614C1.64705 12.7408 1.3006 12.0972 1.25263 11.3981C1.13026 9.61453 5.30575 2.94145 7.07337 2.18915Z' })));
|
|
464
473
|
};
|
|
465
474
|
|
|
466
|
-
export { CPlusPlusLogo as C, DotnetLogo as D, ElixirLogo as E, GoLogo as G, InfoIcon as I, JavaLogo as J, KafkaLogo as K, LogsIcon as L, MysqlLogo as M, NginxLogo as N, PostgresLogo as P, RedisLogo as R, SwiftLogo as S, TracesIcon as T, WarningTriangleIcon as W, RustLogo as a, RubyLogo as b, PhpLogo as c, CSharpLogo as d, PythonLogo as e, NodejsLogo as f, MetricsIcon as g, ErrorTriangleIcon as h, CheckCircledIcon as i };
|
|
475
|
+
export { CPlusPlusLogo as C, DotnetLogo as D, ElixirLogo as E, GoLogo as G, InfoIcon as I, JavaLogo as J, KafkaLogo as K, LogsIcon as L, MysqlLogo as M, NginxLogo as N, OdigosLogo as O, PostgresLogo as P, RedisLogo as R, SwiftLogo as S, TracesIcon as T, WarningTriangleIcon as W, RustLogo as a, RubyLogo as b, PhpLogo as c, CSharpLogo as d, PythonLogo as e, NodejsLogo as f, MetricsIcon as g, ErrorTriangleIcon as h, CheckCircledIcon as i };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ProgrammingLanguages,
|
|
2
|
-
import '
|
|
3
|
-
import './index-
|
|
4
|
-
import '
|
|
5
|
-
import { O as OdigosLogo } from './index-BGlk5VhF.js';
|
|
6
|
-
import { K as KafkaLogo, R as RedisLogo, P as PostgresLogo, N as NginxLogo, M as MysqlLogo, E as ElixirLogo, S as SwiftLogo, a as RustLogo, b as RubyLogo, c as PhpLogo, C as CPlusPlusLogo, d as CSharpLogo, D as DotnetLogo, e as PythonLogo, f as NodejsLogo, G as GoLogo, J as JavaLogo, T as TracesIcon, g as MetricsIcon, L as LogsIcon, I as InfoIcon, W as WarningTriangleIcon, h as ErrorTriangleIcon, i as CheckCircledIcon } from './index-DM8CZWtL.js';
|
|
1
|
+
import { a as ProgrammingLanguages, S as StatusType } from './index-BVVVevuY.js';
|
|
2
|
+
import { K as KafkaLogo, R as RedisLogo, P as PostgresLogo, N as NginxLogo, M as MysqlLogo, E as ElixirLogo, S as SwiftLogo, a as RustLogo, b as RubyLogo, c as PhpLogo, C as CPlusPlusLogo, d as CSharpLogo, D as DotnetLogo, e as PythonLogo, f as NodejsLogo, G as GoLogo, J as JavaLogo, T as TracesIcon, g as MetricsIcon, L as LogsIcon, O as OdigosLogo, I as InfoIcon, W as WarningTriangleIcon, h as ErrorTriangleIcon, i as CheckCircledIcon } from './index-BsH_egEe.js';
|
|
3
|
+
import { I as ImageErrorIcon } from './index-BWqrekK4.js';
|
|
4
|
+
import { S as SignalType } from './index-DbfrGXPH.js';
|
|
7
5
|
|
|
8
6
|
const capitalizeFirstLetter = (string) => {
|
|
9
7
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
@@ -90,13 +88,13 @@ const getProgrammingLanguageIcon = (language) => {
|
|
|
90
88
|
[ProgrammingLanguages.Postgres]: PostgresLogo,
|
|
91
89
|
[ProgrammingLanguages.Redis]: RedisLogo,
|
|
92
90
|
[ProgrammingLanguages.Kafka]: KafkaLogo,
|
|
93
|
-
[ProgrammingLanguages.Ignored]:
|
|
94
|
-
[ProgrammingLanguages.Unknown]:
|
|
95
|
-
[ProgrammingLanguages.Processing]:
|
|
96
|
-
[ProgrammingLanguages.NoContainers]:
|
|
97
|
-
[ProgrammingLanguages.NoRunningPods]:
|
|
91
|
+
[ProgrammingLanguages.Ignored]: ImageErrorIcon, // TODO: good icon
|
|
92
|
+
[ProgrammingLanguages.Unknown]: ImageErrorIcon, // TODO: good icon
|
|
93
|
+
[ProgrammingLanguages.Processing]: ImageErrorIcon, // TODO: good icon
|
|
94
|
+
[ProgrammingLanguages.NoContainers]: ImageErrorIcon, // TODO: good icon
|
|
95
|
+
[ProgrammingLanguages.NoRunningPods]: ImageErrorIcon, // TODO: good icon
|
|
98
96
|
};
|
|
99
|
-
return LOGOS[language];
|
|
97
|
+
return LOGOS[language] || ImageErrorIcon;
|
|
100
98
|
};
|
|
101
99
|
|
|
102
100
|
const getMonitorIcon = (type) => {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { S as SignalType } from './index-DbfrGXPH.js';
|
|
2
|
+
|
|
3
|
+
const MONITORS_OPTIONS = [
|
|
4
|
+
{
|
|
5
|
+
id: SignalType.Logs,
|
|
6
|
+
value: 'Logs',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
id: SignalType.Metrics,
|
|
10
|
+
value: 'Metrics',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: SignalType.Traces,
|
|
14
|
+
value: 'Traces',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
export { MONITORS_OPTIONS as M };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
4
|
-
import './index-IvGLauAo.js';
|
|
5
|
-
import 'styled-components';
|
|
1
|
+
import { S as SamplerIcon, P as PiiMaskingIcon, R as RenameAttributeIcon, D as DeleteAttributeIcon, A as AddClusterInfoIcon, K as K8sLogo, C as CodeAttributesIcon, a as PayloadCollectionIcon } from './index-CIXQeSHu.js';
|
|
2
|
+
import { A as ActionType, I as InstrumentationRuleType } from './index-RBS1MqCQ.js';
|
|
3
|
+
import { I as ImageErrorIcon } from './index-BWqrekK4.js';
|
|
6
4
|
|
|
7
5
|
const getActionIcon = (type) => {
|
|
8
6
|
const typeLowerCased = type?.toLowerCase();
|
|
@@ -22,16 +20,16 @@ const getActionIcon = (type) => {
|
|
|
22
20
|
[ActionType.ProbabilisticSampler]: SamplerIcon,
|
|
23
21
|
[ActionType.LatencySampler]: SamplerIcon,
|
|
24
22
|
};
|
|
25
|
-
return LOGOS[type];
|
|
23
|
+
return LOGOS[type] || ImageErrorIcon;
|
|
26
24
|
};
|
|
27
25
|
|
|
28
26
|
const getInstrumentationRuleIcon = (type) => {
|
|
29
27
|
const LOGOS = {
|
|
30
28
|
[InstrumentationRuleType.PayloadCollection]: PayloadCollectionIcon,
|
|
31
29
|
[InstrumentationRuleType.CodeAttributes]: CodeAttributesIcon,
|
|
32
|
-
[InstrumentationRuleType.UnknownType]:
|
|
30
|
+
[InstrumentationRuleType.UnknownType]: ImageErrorIcon,
|
|
33
31
|
};
|
|
34
|
-
return LOGOS[type];
|
|
32
|
+
return LOGOS[type] || ImageErrorIcon;
|
|
35
33
|
};
|
|
36
34
|
|
|
37
35
|
export { getInstrumentationRuleIcon as a, getActionIcon as g };
|