@odigos/ui-kit 0.0.15 → 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 +26 -0
- package/lib/components/data-tab/index.d.ts +17 -6
- package/lib/components/drawer/drawer-header/index.d.ts +2 -2
- package/lib/components/icon-group/index.d.ts +1 -0
- package/lib/components.js +45 -14
- package/lib/constants.js +9 -5
- package/lib/containers/data-flow-actions-menu/filters/index.d.ts +0 -3
- package/lib/containers/data-flow-actions-menu/index.d.ts +0 -3
- package/lib/containers/dropdowns/namespace-dropdown/index.d.ts +0 -3
- package/lib/containers/overview-drawer/index.d.ts +2 -2
- package/lib/containers/source-modal/index.d.ts +1 -5
- package/lib/containers/source-selection-form/index.d.ts +1 -4
- package/lib/containers/source-selection-form/{fast/list → list}/index.d.ts +0 -1
- package/lib/containers/table-cell-conditions/index.d.ts +1 -0
- package/lib/containers.js +214 -230
- package/lib/data/destinations/index.d.ts +1 -1
- package/lib/functions/get-destination-icon/index.d.ts +5 -1
- package/lib/functions.js +17 -21
- package/lib/hooks/useSourceSelectionFormData.d.ts +1 -2
- package/lib/hooks.js +10 -10
- package/lib/icons/destinations/app-dynamics-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-cloudwatch-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-s3-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-xray-logo/index.d.ts +2 -0
- package/lib/icons/destinations/axiom-logo/index.d.ts +2 -0
- package/lib/icons/destinations/better-stack-logo/index.d.ts +2 -0
- package/lib/icons/destinations/blob-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/causely-logo/index.d.ts +2 -0
- package/lib/icons/destinations/chronosphere-logo/index.d.ts +2 -0
- package/lib/icons/destinations/clickhouse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/coralogix-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dash0-logo/index.d.ts +2 -0
- package/lib/icons/destinations/datadog-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dynatrace-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-apm-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-search-logo/index.d.ts +2 -0
- package/lib/icons/destinations/gigapipe-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-platform-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/grafana-logo/index.d.ts +2 -0
- package/lib/icons/destinations/groundcover-logo/index.d.ts +2 -0
- package/lib/icons/destinations/honeycomb-logo/index.d.ts +2 -0
- package/lib/icons/destinations/hyperdx-logo/index.d.ts +2 -0
- package/lib/icons/destinations/index.d.ts +46 -0
- package/lib/icons/destinations/instana-logo/index.d.ts +2 -0
- package/lib/icons/destinations/jaeger-logo/index.d.ts +2 -0
- package/lib/icons/destinations/kloudmate-logo/index.d.ts +2 -0
- package/lib/icons/destinations/last9-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lightstep-logo/index.d.ts +2 -0
- package/lib/icons/destinations/logzio-logo/index.d.ts +2 -0
- package/lib/icons/destinations/loki-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lumigo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/middleware-logo/index.d.ts +2 -0
- package/lib/icons/destinations/new-relic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/open-telemetry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/ops-verse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/prometheus-logo/index.d.ts +2 -0
- package/lib/icons/destinations/qryn-logo/index.d.ts +2 -0
- package/lib/icons/destinations/quickwit-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sentry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/signoz-logo/index.d.ts +2 -0
- package/lib/icons/destinations/splunk-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sumo-logic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/tempo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/traceloop-logo/index.d.ts +2 -0
- package/lib/icons/destinations/uptrace-logo/index.d.ts +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/overview/namespaces-icon/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +0 -1
- package/lib/icons.js +40 -8
- package/lib/index-B72aw6tI.js +23 -0
- package/lib/{index-D_Qn2U89.js → index-BJxaoI0G.js} +1 -8
- package/lib/{index-BtuW12KL.js → index-BQW5EUgp.js} +74 -8
- package/lib/index-BQs4sULy.js +32 -0
- package/lib/index-BVVVevuY.js +100 -0
- package/lib/index-BWqrekK4.js +11 -0
- package/lib/{index-zMKRaKMY.js → index-BiNX-Cge.js} +119 -156
- package/lib/{index-9ObpINp4.js → index-BsH_egEe.js} +15 -6
- package/lib/{index-CYn62h8x.js → index-BxQTUOME.js} +10 -12
- package/lib/index-C1PCuZgw.js +18 -0
- package/lib/{index-Db_ZDrEr.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-DB8Djrsy.js +487 -0
- package/lib/index-DbfrGXPH.js +8 -0
- package/lib/{index-CJKFedQi.js → index-G4WmxXds.js} +4 -21
- package/lib/{index-7-KCQK-x.js → index-Hz7AAE0t.js} +1 -1
- package/lib/{index-3KUV6Vlt.js → index-KOMAv-TS.js} +6 -10
- package/lib/index-RBS1MqCQ.js +37 -0
- package/lib/react-CjImwkhV.js +44 -0
- package/lib/store/useEntityStore.d.ts +4 -2
- package/lib/store/useSetupStore.d.ts +2 -3
- package/lib/store.js +6 -3
- package/lib/theme.js +86 -3
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/destinations/index.d.ts +50 -3
- package/lib/types.js +6 -163
- package/lib/useDarkMode-DxhIuVNi.js +201 -0
- package/lib/useSelectedStore-93bIo1kE.js +97 -0
- package/lib/useSetupStore-CoYx1UQw.js +211 -0
- package/lib/{useTransition-CFmm4scp.js → useTimeAgo-weEj7br6.js} +544 -113
- package/lib/useTransition-D0wUpPGk.js +128 -0
- package/package.json +13 -12
- 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.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 -11
- package/lib/containers/source-selection-form/simple/index.d.ts +0 -7
- package/lib/containers/source-selection-form/simple/list/index.d.ts +0 -9
- 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/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/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/kafka-logo/kafka-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-BjJpYtF1.js +0 -42
- package/lib/index-DYEcdkUF.js +0 -671
- package/lib/useSourceSelectionFormData-BnlRp8m3.js +0 -561
- /package/lib/containers/source-selection-form/{fast/controls → controls}/index.d.ts +0 -0
- /package/lib/icons/{programming-languages → destinations}/kafka-logo/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-DYEcdkUF.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-CFmm4scp.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) },
|
|
@@ -3725,20 +3725,20 @@ const formatLineForPrettyMode = (line) => {
|
|
|
3725
3725
|
const getComponentsFromPropertyString = (propertyString, theme) => {
|
|
3726
3726
|
const [text, ...rest] = propertyString.split('@');
|
|
3727
3727
|
const components = rest
|
|
3728
|
-
?.map((c) => {
|
|
3728
|
+
?.map((c, i) => {
|
|
3729
3729
|
if (!c.includes('='))
|
|
3730
3730
|
return null;
|
|
3731
3731
|
const [type, value] = c.split('=');
|
|
3732
3732
|
switch (type) {
|
|
3733
3733
|
case 'tooltip':
|
|
3734
|
-
return React.createElement(Tooltip, { key:
|
|
3734
|
+
return React.createElement(Tooltip, { key: `${type}-${value}-${i}`, withIcon: true, text: value });
|
|
3735
3735
|
case 'status':
|
|
3736
3736
|
if (value === 'none')
|
|
3737
|
-
return React.createElement("div", { key:
|
|
3737
|
+
return React.createElement("div", { key: `${type}-${value}-${i}`, style: { width: 16, height: 16 } });
|
|
3738
3738
|
let Icon = getStatusIcon(value, theme);
|
|
3739
3739
|
if (!Icon)
|
|
3740
3740
|
Icon = getStatusIcon(StatusType.Warning, theme);
|
|
3741
|
-
return React.createElement(Icon, { key:
|
|
3741
|
+
return React.createElement(Icon, { key: `${type}-${value}-${i}` });
|
|
3742
3742
|
default:
|
|
3743
3743
|
console.warn('unexpected component type!', type);
|
|
3744
3744
|
return null;
|
|
@@ -3749,11 +3749,11 @@ const getComponentsFromPropertyString = (propertyString, theme) => {
|
|
|
3749
3749
|
};
|
|
3750
3750
|
const PrettyJsonCode = ({ darkMode, str }) => {
|
|
3751
3751
|
const theme = Theme.useTheme();
|
|
3752
|
-
const renderEmptyRows = (count
|
|
3752
|
+
const renderEmptyRows = (count, idx) => {
|
|
3753
3753
|
const rows = new Array(count).fill((props) => (React.createElement(TableRow$1, { ...props },
|
|
3754
3754
|
React.createElement(TableData, null),
|
|
3755
3755
|
React.createElement(TableData, null))));
|
|
3756
|
-
return (React.createElement(Fragment, null, rows.map((R, i) => (React.createElement(R, { key:
|
|
3756
|
+
return (React.createElement(Fragment, null, rows.map((R, i) => (React.createElement(R, { key: `empty-row-${idx}-${i}`, style: i === 0 ? { borderBottom: `1px solid ${theme.colors.border}` } : {} })))));
|
|
3757
3757
|
};
|
|
3758
3758
|
return (React.createElement(Highlight2, { theme: darkMode ? themes_exports.palenight : themes_exports.vsLight, language: 'json', code: str }, ({ getLineProps, getTokenProps, tokens }) => (React.createElement(Table$1, null,
|
|
3759
3759
|
React.createElement(TableBody$1, null, tokens.map((line, i) => {
|
|
@@ -3761,7 +3761,7 @@ const PrettyJsonCode = ({ darkMode, str }) => {
|
|
|
3761
3761
|
const lineProps = getLineProps({ line: formattedLine });
|
|
3762
3762
|
if (formattedLine.length === 1 && formattedLine[0].types[0] === 'property') {
|
|
3763
3763
|
return (React.createElement(Fragment, { key: `line-${i}` },
|
|
3764
|
-
renderEmptyRows(),
|
|
3764
|
+
renderEmptyRows(2, i),
|
|
3765
3765
|
React.createElement(TableRow$1, { ...lineProps },
|
|
3766
3766
|
React.createElement(TableData, null,
|
|
3767
3767
|
React.createElement(Title$c, null, formattedLine[0].content)),
|
|
@@ -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;
|
|
@@ -4140,11 +4140,11 @@ const IconWrapper$3 = styled.div `
|
|
|
4140
4140
|
height: ${({ $size }) => $size}px;
|
|
4141
4141
|
border-radius: 100%;
|
|
4142
4142
|
`;
|
|
4143
|
-
const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36 }) => {
|
|
4143
|
+
const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36, id }) => {
|
|
4144
4144
|
const theme = Theme.useTheme();
|
|
4145
4145
|
const imgSize = icons.length === 1 || iconSrcs.length === 1 ? size - 16 : size / 3;
|
|
4146
4146
|
if (iconSrcs.length > 0) {
|
|
4147
|
-
return React.createElement(IconGroup, { icons: iconSrcs.map((src) => (() => React.createElement(ImageControlled, { src: src, size: imgSize }))), status: status, size: size });
|
|
4147
|
+
return React.createElement(IconGroup, { icons: iconSrcs.map((src) => (() => React.createElement(ImageControlled, { src: src, size: imgSize }))), status: status, size: size, id: id });
|
|
4148
4148
|
}
|
|
4149
4149
|
if (icons.length === 1) {
|
|
4150
4150
|
return React.createElement(IconWrapped, { icon: icons[0], status: status, size: size });
|
|
@@ -4164,10 +4164,10 @@ const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36 }) => {
|
|
|
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
|
-
return (React.createElement(IconWrapper$3, { key:
|
|
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 },
|
|
4171
4171
|
"+",
|
|
4172
4172
|
icons.length - 2)) : (React.createElement(Icon, { size: imgSize }))));
|
|
4173
4173
|
})));
|
|
@@ -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, icon, icons, iconSrc, iconSrcs
|
|
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,40 +4295,27 @@ const DataTab = ({ title, subTitle, icon, icons, iconSrc, iconSrcs, hoverText, s
|
|
|
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 }),
|
|
4345
|
-
!!icons?.length || !!iconSrcs?.length ? (React.createElement(IconGroup, { icons: icons, iconSrcs: iconSrcs, status: status })) : !!icon || !!iconSrc ? (React.createElement(IconWrapped, { icon: icon, src: iconSrc, status: status })) : null),
|
|
4313
|
+
!!icons?.length || !!iconSrcs?.length ? (React.createElement(IconGroup, { icons: icons, iconSrcs: iconSrcs, status: status, id: `${title}-${subTitle}` })) : !!icon || !!iconSrc ? (React.createElement(IconWrapped, { icon: icon, src: iconSrc, status: status })) : null),
|
|
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, icon, icons, iconSrc, iconSrcs, hoverText, s
|
|
|
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)};
|
|
@@ -4446,14 +4431,14 @@ const TableRow = ({ index, columns, cells, onClick, status, faded }) => {
|
|
|
4446
4431
|
if (!rowCell)
|
|
4447
4432
|
return null;
|
|
4448
4433
|
const { value, textColor, withTooltip, icon, component: Component } = rowCell;
|
|
4449
|
-
return (React.createElement(Td, { key:
|
|
4434
|
+
return (React.createElement(Td, { key: `table-row-${key}-${value}-${index}-${i}`, "$isFirst": i === 0 },
|
|
4450
4435
|
!!icon ? (React.createElement(IconWrapped, { icon: icon })) : !!Component ? (React.createElement(Component, null)) : (React.createElement(Tooltip, { text: withTooltip && !!value ? String(value) : '' },
|
|
4451
4436
|
React.createElement(RowText, { "$color": textColor }, !isEmpty(value) ? value : '-'))),
|
|
4452
4437
|
i === 0 && React.createElement(RowBackground, { "$height": containerHeight, "$width": containerWidth, "$top": containerHeight * index, "$hovered": isHovered, "$status": status })));
|
|
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) },
|
|
@@ -4659,13 +4644,16 @@ const renderValue = (type, value) => {
|
|
|
4659
4644
|
});
|
|
4660
4645
|
return (React.createElement(DataTab, { title: containerName, subTitle: `${processes.length} Instrumented Processes`, renderActions: () => {
|
|
4661
4646
|
return React.createElement(Status, { status: StatusType.Info, title: 'Instrumentation Device', subtitle: !actualDevice.subTitle || actualDevice.subTitle === '[]' ? 'none' : actualDevice.subTitle, withBorder: true });
|
|
4662
|
-
},
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4647
|
+
}, extendableProps: {
|
|
4648
|
+
isExtended: !!processes.length,
|
|
4649
|
+
renderExtended: () => {
|
|
4650
|
+
return (React.createElement(FlexColStretched, { "$gap": 24 }, processes.map((process, idx) => (React.createElement(FlexColStretched, { key: `process-${idx}`, "$gap": 8 },
|
|
4651
|
+
React.createElement(DescribeRow, { title: `Instrumented Process #${idx + 1}`, subTitle: process.message || '', value: {
|
|
4652
|
+
text: process.health === StatusType.Success ? 'healthy' : 'unhealthy',
|
|
4653
|
+
status: process.health,
|
|
4654
|
+
} }),
|
|
4655
|
+
process.identifyingAttributes.map(({ name, value }) => (React.createElement(DescribeRow, { key: `describe-${name}-${value}`, title: name, subTitle: '', value: { text: value, status: undefined } }))))))));
|
|
4656
|
+
},
|
|
4669
4657
|
} }));
|
|
4670
4658
|
}
|
|
4671
4659
|
case DataCardFieldTypes.SourceContainer: {
|
|
@@ -4678,12 +4666,17 @@ const renderValue = (type, value) => {
|
|
|
4678
4666
|
otelDistroName: '',
|
|
4679
4667
|
});
|
|
4680
4668
|
const awaitingInstrumentation = !instrumented && !instrumentationMessage;
|
|
4681
|
-
return (React.createElement(DataTab, { title: containerName, subTitle: `${language === ProgrammingLanguages.JavaScript ? 'Node.js' : capitalizeFirstLetter(language)}` + (!!runtimeVersion ? ` • Runtime Version: ${runtimeVersion}` : ''),
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4669
|
+
return (React.createElement(DataTab, { title: containerName, subTitle: `${language === ProgrammingLanguages.JavaScript ? 'Node.js' : capitalizeFirstLetter(language)}` + (!!runtimeVersion ? ` • Runtime Version: ${runtimeVersion}` : ''), iconProps: {
|
|
4670
|
+
icon: getProgrammingLanguageIcon(language),
|
|
4671
|
+
}, extendableProps: {
|
|
4672
|
+
isExtended: !!instrumentationMessage,
|
|
4673
|
+
renderExtended: () => {
|
|
4674
|
+
if (!!instrumentationMessage) {
|
|
4675
|
+
return (React.createElement(AlignCenter, null,
|
|
4676
|
+
React.createElement(Status, { status: StatusType.Info, title: splitCamelString(instrumentationMessage) })));
|
|
4677
|
+
}
|
|
4678
|
+
return null;
|
|
4679
|
+
},
|
|
4687
4680
|
}, renderActions: () => {
|
|
4688
4681
|
return (React.createElement(Status, { status: instrumented ? StatusType.Success : awaitingInstrumentation ? StatusType.Warning : StatusType.Error, title: instrumented ? 'Instrumented' : awaitingInstrumentation ? 'Instrumenting...' : 'Uninstrumented', subtitle: otelDistroName, withIcon: true, withBorder: true }));
|
|
4689
4682
|
} }));
|
|
@@ -4706,7 +4699,7 @@ const CardContainer = styled.div `
|
|
|
4706
4699
|
background-color: ${({ theme, $hovered }) => ($hovered ? theme.colors.secondary + Theme.opacity.hex['010'] : 'transparent')};
|
|
4707
4700
|
transition: background-color 0.3s;
|
|
4708
4701
|
`;
|
|
4709
|
-
const Header
|
|
4702
|
+
const Header = styled.div `
|
|
4710
4703
|
width: 100%;
|
|
4711
4704
|
display: flex;
|
|
4712
4705
|
flex-direction: column;
|
|
@@ -4732,7 +4725,7 @@ const DataCard = ({ title = 'Details', titleBadge, description, action: Action,
|
|
|
4732
4725
|
const [extend, setExtend] = useState(false);
|
|
4733
4726
|
const [hovered, setHovered] = useState(false);
|
|
4734
4727
|
return (React.createElement(CardContainer, { "$hovered": hovered },
|
|
4735
|
-
!!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) },
|
|
4736
4729
|
(!!title || !!Action) && (React.createElement(Title$8, null,
|
|
4737
4730
|
title,
|
|
4738
4731
|
titleBadge !== undefined && React.createElement(Badge, { label: titleBadge }),
|
|
@@ -4776,7 +4769,7 @@ const DocsButton = ({ endpoint = '/', variant = 'secondary' }) => {
|
|
|
4776
4769
|
"Docs"));
|
|
4777
4770
|
};
|
|
4778
4771
|
|
|
4779
|
-
const Container$
|
|
4772
|
+
const Container$i = styled.section `
|
|
4780
4773
|
padding: 0px 32px;
|
|
4781
4774
|
border-bottom: 1px solid ${({ theme }) => theme.colors.border};
|
|
4782
4775
|
`;
|
|
@@ -4815,7 +4808,7 @@ const Tab = styled(Text) `
|
|
|
4815
4808
|
align-items: center;
|
|
4816
4809
|
gap: 8px;
|
|
4817
4810
|
`;
|
|
4818
|
-
const DrawerHeader = ({ onClose,
|
|
4811
|
+
const DrawerHeader = ({ onClose, icons, iconSrcs, title, titleTooltip, replaceTitleWith: ReplaceTitleWith, actionButtons = [], tabs }) => {
|
|
4819
4812
|
const renderReplaceTitleWith = () => {
|
|
4820
4813
|
if (typeof ReplaceTitleWith === 'function') {
|
|
4821
4814
|
return React.createElement(ReplaceTitleWith, null);
|
|
@@ -4825,10 +4818,10 @@ const DrawerHeader = ({ onClose, icon, iconSrc, title, titleTooltip, replaceTitl
|
|
|
4825
4818
|
}
|
|
4826
4819
|
return null;
|
|
4827
4820
|
};
|
|
4828
|
-
return (React.createElement(Container$
|
|
4821
|
+
return (React.createElement(Container$i, null,
|
|
4829
4822
|
React.createElement(TopRow, null,
|
|
4830
4823
|
React.createElement(SectionItemsWrapper, null,
|
|
4831
|
-
|
|
4824
|
+
icons?.length || iconSrcs?.length ? React.createElement(IconGroup, { icons: icons, iconSrcs: iconSrcs, id: `drawer-header-${title}` }) : null,
|
|
4832
4825
|
renderReplaceTitleWith() || (React.createElement(Tooltip, { text: titleTooltip, withIcon: true }, title && React.createElement(Title$7, null, title)))),
|
|
4833
4826
|
React.createElement(SectionItemsWrapper, { "$gap": 2 },
|
|
4834
4827
|
actionButtons.map((btn, i) => (React.createElement(ActionButton$1, { key: `header-action-button-${i}`, ...btn }))),
|
|
@@ -4839,7 +4832,7 @@ const DrawerHeader = ({ onClose, icon, iconSrc, title, titleTooltip, replaceTitl
|
|
|
4839
4832
|
Icon && React.createElement(Icon, null))))))));
|
|
4840
4833
|
};
|
|
4841
4834
|
|
|
4842
|
-
const Container$
|
|
4835
|
+
const Container$h = styled.div `
|
|
4843
4836
|
display: flex;
|
|
4844
4837
|
justify-content: space-between;
|
|
4845
4838
|
gap: 8px;
|
|
@@ -4848,10 +4841,10 @@ const Container$i = styled.div `
|
|
|
4848
4841
|
background-color: ${({ theme }) => theme.colors.translucent_bg};
|
|
4849
4842
|
transform: translateY(100%);
|
|
4850
4843
|
`;
|
|
4851
|
-
const AlignLeft
|
|
4844
|
+
const AlignLeft = styled(FlexRow) `
|
|
4852
4845
|
margin-right: auto;
|
|
4853
4846
|
`;
|
|
4854
|
-
const AlignRight
|
|
4847
|
+
const AlignRight = styled(FlexRow) `
|
|
4855
4848
|
margin-left: auto;
|
|
4856
4849
|
`;
|
|
4857
4850
|
const FooterButton$1 = styled(Button$4) `
|
|
@@ -4860,16 +4853,16 @@ const FooterButton$1 = styled(Button$4) `
|
|
|
4860
4853
|
`;
|
|
4861
4854
|
const DrawerFooter = ({ isOpen, leftButtons = [], rightButtons = [] }) => {
|
|
4862
4855
|
const Transition = useTransition({
|
|
4863
|
-
container: Container$
|
|
4856
|
+
container: Container$h,
|
|
4864
4857
|
animateIn: Theme.animations.slide.in['bottom'],
|
|
4865
4858
|
animateOut: Theme.animations.slide.out['bottom'],
|
|
4866
4859
|
});
|
|
4867
4860
|
return (React.createElement(Transition, { enter: isOpen },
|
|
4868
|
-
React.createElement(AlignLeft
|
|
4869
|
-
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 }))))));
|
|
4870
4863
|
};
|
|
4871
4864
|
|
|
4872
|
-
const Container$
|
|
4865
|
+
const Container$g = styled.div `
|
|
4873
4866
|
position: fixed;
|
|
4874
4867
|
top: 0;
|
|
4875
4868
|
bottom: 0;
|
|
@@ -4896,7 +4889,7 @@ const Drawer = ({ isOpen, onClose, closeOnEscape = true, position = 'right', wid
|
|
|
4896
4889
|
active: isOpen && closeOnEscape,
|
|
4897
4890
|
}, () => onClose());
|
|
4898
4891
|
const Transition = useTransition({
|
|
4899
|
-
container: Container$
|
|
4892
|
+
container: Container$g,
|
|
4900
4893
|
animateIn: Theme.animations.slide.in[position],
|
|
4901
4894
|
animateOut: Theme.animations.slide.out[position],
|
|
4902
4895
|
});
|
|
@@ -4940,7 +4933,7 @@ const FieldLabel = ({ title, required, tooltip, style }) => {
|
|
|
4940
4933
|
};
|
|
4941
4934
|
|
|
4942
4935
|
// Styled components remain the same as before
|
|
4943
|
-
const Container$
|
|
4936
|
+
const Container$f = styled.div `
|
|
4944
4937
|
display: flex;
|
|
4945
4938
|
flex-direction: column;
|
|
4946
4939
|
position: relative;
|
|
@@ -5043,7 +5036,7 @@ const Input = ({ icon: Icon, buttonLabel, onButtonClick, hasError, errorMessage,
|
|
|
5043
5036
|
if (!['Enter'].includes(e.key))
|
|
5044
5037
|
e.stopPropagation();
|
|
5045
5038
|
};
|
|
5046
|
-
return (React.createElement(Container$
|
|
5039
|
+
return (React.createElement(Container$f, null,
|
|
5047
5040
|
React.createElement(FieldLabel, { title: title, required: required, tooltip: tooltip }),
|
|
5048
5041
|
React.createElement(InputWrapper$1, { "$disabled": props.disabled, "$hasError": hasError || !!errorMessage, "$isActive": !!props.autoFocus },
|
|
5049
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,
|
|
@@ -5053,7 +5046,7 @@ const Input = ({ icon: Icon, buttonLabel, onButtonClick, hasError, errorMessage,
|
|
|
5053
5046
|
!!errorMessage && React.createElement(FieldError, null, errorMessage)));
|
|
5054
5047
|
};
|
|
5055
5048
|
|
|
5056
|
-
const Container$
|
|
5049
|
+
const Container$e = styled.div `
|
|
5057
5050
|
display: flex;
|
|
5058
5051
|
flex-direction: column;
|
|
5059
5052
|
align-items: center;
|
|
@@ -5075,7 +5068,7 @@ const SubTitle = styled(Text) `
|
|
|
5075
5068
|
`;
|
|
5076
5069
|
const NoDataFound = ({ title = 'No data found', subTitle = 'Check your search phrase and try one more time' }) => {
|
|
5077
5070
|
const theme = Theme.useTheme();
|
|
5078
|
-
return (React.createElement(Container$
|
|
5071
|
+
return (React.createElement(Container$e, null,
|
|
5079
5072
|
React.createElement(TitleWrapper, null,
|
|
5080
5073
|
React.createElement(NoDataIcon, { fill: theme.text.dark_grey }),
|
|
5081
5074
|
React.createElement(Title$5, null, title)),
|
|
@@ -5250,36 +5243,6 @@ const DropdownListItem = ({ option, value, isMulti, onSelect, onDeselect }) => {
|
|
|
5250
5243
|
isSelected && React.createElement(CheckIcon, null)));
|
|
5251
5244
|
};
|
|
5252
5245
|
|
|
5253
|
-
const Container$e = styled(FlexRow) `
|
|
5254
|
-
position: relative;
|
|
5255
|
-
width: calc(100% - 24px);
|
|
5256
|
-
padding: 12px;
|
|
5257
|
-
background-color: ${({ theme }) => theme.colors.dark_grey};
|
|
5258
|
-
border-bottom: 1px solid ${({ theme }) => theme.colors.border + Theme.opacity.hex['050']};
|
|
5259
|
-
`;
|
|
5260
|
-
const AlignLeft = styled(FlexRow) `
|
|
5261
|
-
margin-right: auto;
|
|
5262
|
-
margin-left: 32px;
|
|
5263
|
-
gap: 12px;
|
|
5264
|
-
`;
|
|
5265
|
-
const AlignRight = styled(FlexRow) `
|
|
5266
|
-
margin-left: auto;
|
|
5267
|
-
margin-right: 32px;
|
|
5268
|
-
gap: 12px;
|
|
5269
|
-
`;
|
|
5270
|
-
const PositionCenter = styled(FlexRow) `
|
|
5271
|
-
position: absolute;
|
|
5272
|
-
left: 50%;
|
|
5273
|
-
transform: translateX(-50%);
|
|
5274
|
-
gap: 12px;
|
|
5275
|
-
`;
|
|
5276
|
-
const Header = ({ left = [], center = [], right = [] }) => {
|
|
5277
|
-
return (React.createElement(Container$e, null,
|
|
5278
|
-
React.createElement(AlignLeft, null, left.map((child, index) => child && React.createElement(Fragment, { key: index }, child))),
|
|
5279
|
-
React.createElement(PositionCenter, null, center.map((child, index) => child && React.createElement(Fragment, { key: index }, child))),
|
|
5280
|
-
React.createElement(AlignRight, null, right.map((child, index) => child && React.createElement(Fragment, { key: index }, child)))));
|
|
5281
|
-
};
|
|
5282
|
-
|
|
5283
5246
|
const Title$4 = styled(Text) `
|
|
5284
5247
|
color: ${({ theme }) => theme.text.grey};
|
|
5285
5248
|
`;
|
|
@@ -6002,7 +5965,7 @@ const Segment = ({ options = [], selected, setSelected }) => {
|
|
|
6002
5965
|
return (React.createElement(Container$6, null,
|
|
6003
5966
|
options.map(({ icon: Icon, label, value, selectedBgColor }, idx) => {
|
|
6004
5967
|
const isSelected = selected === value;
|
|
6005
|
-
return (React.createElement(Button, { key:
|
|
5968
|
+
return (React.createElement(Button, { key: `segment-${label || idx}-${value}`, ref: isSelected ? selectedRef : undefined, "$isFirstItem": idx === 0, "$isLastItem": idx === options.length - 1, onClick: () => {
|
|
6006
5969
|
setSelected(value);
|
|
6007
5970
|
setBgColor(selectedBgColor || '');
|
|
6008
5971
|
} },
|
|
@@ -29613,4 +29576,4 @@ const WarningModal = ({ isOpen, noOverlay, title = '', description = '', note, a
|
|
|
29613
29576
|
React.createElement(FooterButton, { "data-id": 'deny', variant: denyButton.variant || 'secondary', onClick: onDeny }, denyButton.text)))));
|
|
29614
29577
|
};
|
|
29615
29578
|
|
|
29616
|
-
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 };
|