@odigos/ui-kit 0.0.59 → 0.0.61
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 +14 -0
- package/lib/components/drawer/drawer-header/index.d.ts +2 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/tab-list/index.d.ts +17 -0
- package/lib/components.js +3 -3
- package/lib/containers.js +5 -5
- package/lib/icons/common/index.d.ts +4 -1
- package/lib/icons/common/refresh-arrows-icon/index.d.ts +2 -0
- package/lib/icons/common/refresh-left-arrow-icon/index.d.ts +2 -0
- package/lib/icons/common/refresh-right-arrow-icon/index.d.ts +2 -0
- package/lib/icons/common/rotate-arrows-icon/index.d.ts +2 -0
- package/lib/icons.js +23 -2
- package/lib/{index-bb79aa09.js → index-1a165096.js} +1 -1
- package/lib/{index-3de83c73.js → index-8dae7939.js} +3 -3
- package/lib/{index-e6385bb5.js → index-eb5688cd.js} +71 -62
- package/lib/snippets.js +2 -2
- package/package.json +1 -1
- package/lib/icons/common/retry-icon/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.61](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.60...ui-kit-v0.0.61) (2025-07-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add new arrow icons ([#249](https://github.com/odigos-io/ui-kit/issues/249)) ([78ce04b](https://github.com/odigos-io/ui-kit/commit/78ce04bbda601d31703224eae025d60317397f68))
|
|
9
|
+
|
|
10
|
+
## [0.0.60](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.59...ui-kit-v0.0.60) (2025-07-16)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add tab-list component ([#247](https://github.com/odigos-io/ui-kit/issues/247)) ([e363e5c](https://github.com/odigos-io/ui-kit/commit/e363e5cdfcbefc432ed9f04a19d3c1acf933bcaa))
|
|
16
|
+
|
|
3
17
|
## [0.0.59](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.58...ui-kit-v0.0.59) (2025-07-16)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
|
-
import { type ButtonProps } from '
|
|
3
|
+
import { type ButtonProps } from '@/components/button';
|
|
4
4
|
interface DrawerHeaderProps {
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
icons?: SVG[];
|
|
@@ -8,6 +8,7 @@ interface DrawerHeaderProps {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
titleTooltip?: string;
|
|
10
10
|
replaceTitleWith?: ReactNode | (() => ReactNode);
|
|
11
|
+
actions?: ReactNode;
|
|
11
12
|
actionButtons?: (ButtonProps & {
|
|
12
13
|
'data-id': string;
|
|
13
14
|
})[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
import type { SVG } from '@/types';
|
|
3
|
+
interface Tab {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: SVG;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface TabListProps {
|
|
10
|
+
tabs?: Tab[];
|
|
11
|
+
hideBorder?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Tab: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("..").TextProps, {
|
|
14
|
+
$selected?: boolean;
|
|
15
|
+
}>> & string & Omit<React.FC<import("..").TextProps>, keyof React.Component<any, {}, any>>;
|
|
16
|
+
declare const TabList: FC<TabListProps>;
|
|
17
|
+
export { TabList, type TabListProps, type Tab };
|
package/lib/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as Button } from './index-
|
|
2
|
-
export { A as AutocompleteInput, a as Badge,
|
|
3
|
-
export { C as CancelWarning, D as DeleteWarning } from './index-
|
|
1
|
+
import { B as Button } from './index-eb5688cd.js';
|
|
2
|
+
export { A as AutocompleteInput, a as Badge, a6 as CenterThis, C as Checkbox, b as Code, c as ConditionDetails, D as DataCard, e as DataCardFieldTypes, d as DataCardFields, f as DataFinger, g as DataTab, h as DescribeRow, i as Divider, j as DocsButton, k as Drawer, m as DrawerFooter, l as DrawerHeader, n as Dropdown, E as ExtendArrow, F as FadeLoader, o as FieldError, p as FieldLabel, a5 as FlexColumn, a4 as FlexRow, H as Header, I as IconButton, q as IconGroup, r as IconTitleBadge, s as IconWrapped, t as IconsNav, u as ImageControlled, v as Input, w as InputList, x as InputTable, y as InteractiveTable, K as KeyValueInputsList, M as Modal, a9 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a8 as Overlay, P as Popup, O as PopupForm, S as ScrollX, Q as SectionTitle, R as Segment, U as SelectionButton, V as SkeletonLoader, W as Status, X as Stepper, Y as TabList, aa as TableContainer, ab as TableTitleWrap, ac as TableWrap, Z as Tag, _ as Text, $ as TextArea, a0 as Toggle, T as ToggleCodeComponent, a1 as Tooltip, a2 as TraceLoader, a7 as VerticalScroll, a3 as WarningModal } from './index-eb5688cd.js';
|
|
3
|
+
export { C as CancelWarning, D as DeleteWarning } from './index-1a165096.js';
|
|
4
4
|
import React, { createContext, Component, createElement } from 'react';
|
|
5
5
|
import { T as Theme } from './index-e9b26c29.js';
|
|
6
6
|
import './types.js';
|
package/lib/containers.js
CHANGED
|
@@ -2,14 +2,14 @@ import React, { useState, useEffect, forwardRef, useRef, useImperativeHandle, us
|
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
import { b as DISPLAY_TITLES, T as Theme, U as usePendingStore, V as useNotificationStore, O as useDrawerStore, B as BUTTON_TEXTS, W as useEntityStore, A as ACTION_OPTIONS, g as getActionIcon, z as useModalStore, F as FORM_ALERTS, X as useFilterStore, D as DISPLAY_LANGUAGES, M as MONITORS_OPTIONS, d as getInstrumentationRuleIcon, Y as useDataStreamStore, Z as useInstrumentStore, c as getEntityId, S as STORAGE_KEYS, a as DEFAULT_DATA_STREAM_NAME, _ as useSetupStore, e as getProgrammingLanguageIcon, I as INSTRUMENTATION_RULE_OPTIONS, $ as useSelectedStore, j as ImageErrorIcon, a0 as useDarkMode } from './index-e9b26c29.js';
|
|
4
4
|
import { ActionType, ActionKeyTypes, InputTypes, FieldTypes, EntityTypes, StatusType, Crud, OtherStatus, NodeTypes, EdgeTypes, AddNodeTypes, SignalType, HeadersCollectionKeyTypes, CustomInstrumentationsKeyTypes, CodeAttributesKeyTypes, PayloadCollectionKeyTypes, InstrumentationRuleType, K8sResourceKind } from './types.js';
|
|
5
|
-
import { e as DataCardFieldTypes, p as FieldLabel, C as Checkbox, o as FieldError, v as Input, x as InputTable, K as KeyValueInputsList, w as InputList,
|
|
5
|
+
import { e as DataCardFieldTypes, p as FieldLabel, C as Checkbox, o as FieldError, v as Input, x as InputTable, K as KeyValueInputsList, w as InputList, _ as Text, R as Segment, Q as SectionTitle, j as DocsButton, z as MonitorsCheckboxes, $ as TextArea, k as Drawer, c as ConditionDetails, D as DataCard, a5 as FlexColumn, M as Modal, N as NavigationButtons, a9 as ModalBody, L as NotificationNote, A as AutocompleteInput, i as Divider, W as Status, a4 as FlexRow, a1 as Tooltip, s as IconWrapped, G as MonitorsIcons, aa as TableContainer, ab as TableTitleWrap, r as IconTitleBadge, ac as TableWrap, y as InteractiveTable, a6 as CenterThis, J as NoDataFound, a2 as TraceLoader, a as Badge, E as ExtendArrow, a7 as VerticalScroll, U as SelectionButton, B as Button, n as Dropdown, ad as nodeConfig, ae as useNodesState, af as useEdgesState, ag as Flow, ah as applyNodeChanges, P as Popup, a0 as Toggle, I as IconButton, ai as AddButton, F as FadeLoader, g as DataTab, X as Stepper, d as DataCardFields, Z as Tag, aj as MarkerType, t as IconsNav, ak as CopyText, h as DescribeRow, al as PodContainer, am as SourceContainer, q as IconGroup, O as PopupForm } from './index-eb5688cd.js';
|
|
6
6
|
import { i as isEmpty, s as safeJsonParse } from './index-ec555530.js';
|
|
7
7
|
import { C as CheckCircledIcon, O as OdigosLogo } from './index-630dec93.js';
|
|
8
|
-
import { C as CrossCircledIcon, O as OdigosLogoText, a as OverviewIcon, F as FilterIcon, D as DataStreamsIcon, R as
|
|
8
|
+
import { C as CrossCircledIcon, O as OdigosLogoText, a as OverviewIcon, F as FilterIcon, D as DataStreamsIcon, R as RefreshLeftArrowIcon, N as NotificationIcon, U as UserIcon, S as SlackLogo, K as KeyIcon, T as TerminalIcon } from './index-8dae7939.js';
|
|
9
9
|
import { useActionFormData, useSessionStorage, useDataStreamFormData, useDestinationFormData, useClickNotification, useSourceFormData, useSourceSelectionFormData } from './hooks.js';
|
|
10
10
|
import { u as useKeyDown, a as useOnClickOutside, b as useContainerSize, c as useClickNode, d as usePopup, e as useInstrumentationRuleFormData, f as useTransition, g as useTimeAgo, h as useCopy, i as useGenericForm } from './useTransition-242df96b.js';
|
|
11
11
|
import { E as EditIcon, T as TrashIcon, S as SearchIcon, h as CheckIcon, A as ArrowIcon, P as PlusIcon, a as CopyIcon } from './index-0001f711.js';
|
|
12
|
-
import { D as DeleteWarning, C as CancelWarning } from './index-
|
|
12
|
+
import { D as DeleteWarning, C as CancelWarning } from './index-1a165096.js';
|
|
13
13
|
import { g as getConditionsBooleans, m as mapConditions, b as getStatusIcon, h as splitCamelString, c as capitalizeFirstLetter, i as isStringABoolean, p as parseBooleanFromString } from './index-355d023b.js';
|
|
14
14
|
import { f as filterActions, m as getEntityLabel, l as getEntityIcon, w as sleep, o as getPlatformIcon, p as getPlatformLabel, h as formatBytes, j as getContainersIcons, q as getValueForRange, k as getDestinationIcon, g as filterSourcesByStream, e as filterSources, b as filterDestinationsByStream, a as filterDestinations, v as mapDestinationFieldsForDisplay, c as compareCondition, s as getYamlFieldsForDestination, d as deepClone, n as getMetricForEntity, r as getWorkloadId, t as hasUnhealthyInstances, i as getContainersInstrumentedCount, u as isOverTime } from './index-f2c2de35.js';
|
|
15
15
|
import { m as mapExportedSignals } from './index-6a6bea6e.js';
|
|
@@ -3599,7 +3599,7 @@ const MultiSourceControl = ({ totalSourceCount, uninstrumentSources, restartWork
|
|
|
3599
3599
|
React.createElement(Button, { variant: 'tertiary', onClick: onDeselect },
|
|
3600
3600
|
React.createElement(Text, { family: 'secondary', decoration: 'underline' }, "Deselect")),
|
|
3601
3601
|
React.createElement(Button, { variant: 'tertiary', onClick: onRestart },
|
|
3602
|
-
React.createElement(
|
|
3602
|
+
React.createElement(RefreshLeftArrowIcon, null),
|
|
3603
3603
|
React.createElement(Text, { family: 'secondary', decoration: 'underline' }, "Restart")),
|
|
3604
3604
|
React.createElement(Button, { variant: 'tertiary', onClick: () => setIsWarnModalOpen(true) },
|
|
3605
3605
|
React.createElement(TrashIcon, null),
|
|
@@ -4365,7 +4365,7 @@ const SourceDrawer = ({ persistSources, updateSource, fetchDescribeSource, resta
|
|
|
4365
4365
|
variant: 'tertiary',
|
|
4366
4366
|
onClick: () => restartWorkloads([drawerEntityId]),
|
|
4367
4367
|
children: (React.createElement(React.Fragment, null,
|
|
4368
|
-
React.createElement(
|
|
4368
|
+
React.createElement(RefreshLeftArrowIcon, null),
|
|
4369
4369
|
React.createElement(Text, { size: 14, family: 'secondary', decoration: 'underline' }, "Restart"))),
|
|
4370
4370
|
},
|
|
4371
4371
|
] }, selectedTab === Tabs.Overview ? (isEditing ? (React.createElement(FormContainer, null,
|
|
@@ -15,7 +15,10 @@ export * from './list-icon';
|
|
|
15
15
|
export * from './no-data-icon';
|
|
16
16
|
export * from './notebook-icon';
|
|
17
17
|
export * from './notification-icon';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './refresh-arrows-icon';
|
|
19
|
+
export * from './refresh-left-arrow-icon';
|
|
20
|
+
export * from './refresh-right-arrow-icon';
|
|
21
|
+
export * from './rotate-arrows-icon';
|
|
19
22
|
export * from './search-icon';
|
|
20
23
|
export * from './sort-arrows-icon';
|
|
21
24
|
export * from './terminal-icon';
|
package/lib/icons.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as Theme } from './index-e9b26c29.js';
|
|
2
2
|
export { f as AddClusterInfoIcon, n as CPlusPlusLogo, o as CSharpLogo, C as CodeAttributesIcon, l as CustomInstrumentationIcon, h as DeleteAttributeIcon, p as DotnetLogo, E as ElixirLogo, G as GoLogo, H as HeadersCollectionIcon, j as ImageErrorIcon, J as JavaLogo, K as K8sLogo, k as KafkaLogo, q as MysqlLogo, N as NginxLogo, r as NodejsLogo, m as PayloadCollectionIcon, s as PhpLogo, P as PiiMaskingIcon, t as PostgresLogo, u as PythonLogo, v as RedisLogo, R as RenameAttributeIcon, w as RubyLogo, x as RustLogo, i as SamplerIcon, y as SwiftLogo } from './index-e9b26c29.js';
|
|
3
3
|
export { C as CheckCircledIcon, E as ErrorTriangleIcon, I as InfoIcon, L as LogsIcon, M as MetricsIcon, O as OdigosLogo, T as TracesIcon, W as WarningTriangleIcon } from './index-630dec93.js';
|
|
4
|
-
export { C as CrossCircledIcon, D as DataStreamsIcon, F as FilterIcon, K as KeyIcon, N as NotificationIcon, O as OdigosLogoText, a as OverviewIcon, R as
|
|
4
|
+
export { C as CrossCircledIcon, D as DataStreamsIcon, F as FilterIcon, K as KeyIcon, N as NotificationIcon, O as OdigosLogoText, a as OverviewIcon, R as RefreshLeftArrowIcon, S as SlackLogo, T as TerminalIcon, U as UserIcon } from './index-8dae7939.js';
|
|
5
5
|
export { A as ArrowIcon, h as CheckIcon, C as CodeIcon, a as CopyIcon, i as CrossIcon, E as EditIcon, b as EditedIcon, c as ExtendArrowIcon, f as EyeClosedIcon, g as EyeOpenIcon, L as ListIcon, M as MinusIcon, N as NoDataIcon, d as NotebookIcon, P as PlusIcon, S as SearchIcon, e as SortArrowsIcon, T as TrashIcon, X as XIcon } from './index-0001f711.js';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
export { a3 as ActionsIcon, A as AlaudaLogo, a as AlibabaCloudLogo, b as AppDynamicsLogo, c as AwsCloudwatchLogo, d as AwsS3Logo, e as AwsXrayLogo, f as AxiomLogo, B as BetterStackLogo, g as BlobStorageLogo, h as BonreeLogo, C as CauselyLogo, i as ChecklyLogo, j as ChronosphereLogo, k as ClickhouseLogo, l as CoralogixLogo, D as Dash0Logo, m as DatadogLogo, a4 as DestinationsIcon, n as DynatraceLogo, E as ElasticApmLogo, o as ElasticSearchLogo, G as GigapipeLogo, p as GoogleCloudPlatformLogo, q as GrafanaLogo, r as GreptimeLogo, s as GroundcoverLogo, H as HoneycombLogo, t as HyperDxLogo, I as InstanaLogo, J as JaegerLogo, K as KloudmateLogo, L as Last9Logo, u as LightstepLogo, v as LogzioLogo, w as LokiLogo, x as LumigoLogo, M as MiddlewareLogo, a5 as NamespacesIcon, N as NewRelicLogo, O as ObserveLogo, y as OneUptimeLogo, z as OpenObserveLogo, F as OpenTelemetryLogo, P as OpsVerseLogo, Q as OracleLogo, R as PrometheusLogo, S as QrynLogo, T as QuickwitLogo, a6 as RulesIcon, U as SeqLogo, W as SignozLogo, a7 as SourcesIcon, X as SplunkLogo, Y as SumoLogicLogo, Z as TelemetryHubLogo, _ as TempoLogo, $ as TingyunLogo, a0 as TraceloopLogo, a1 as UptraceLogo, a2 as VictoriaMetricsLogo, V as VmLogo } from './index-27fc9053.js';
|
|
@@ -36,6 +36,27 @@ const FolderIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth = 1 }
|
|
|
36
36
|
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M1.5 7.96504C1.5 6.28488 1.5 5.4448 1.82698 4.80307C2.1146 4.23858 2.57354 3.77964 3.13803 3.49202C3.77976 3.16504 4.61984 3.16504 6.3 3.16504H6.53667C6.88887 3.16504 7.06498 3.16504 7.22483 3.21358C7.36634 3.25656 7.49799 3.32702 7.61225 3.42093C7.74131 3.527 7.83899 3.67353 8.03436 3.96658L8.46564 4.6135C8.66101 4.90655 8.75869 5.05308 8.88775 5.15915C9.00201 5.25306 9.13366 5.32352 9.27517 5.36649C9.43502 5.41504 9.61113 5.41504 9.96333 5.41504H11.7C13.3802 5.41504 14.2202 5.41504 14.862 5.74202C15.4265 6.02964 15.8854 6.48858 16.173 7.05307C16.5 7.6948 16.5 8.53488 16.5 10.215V11.865C16.5 13.5452 16.5 14.3853 16.173 15.027C15.8854 15.5915 15.4265 16.0504 14.862 16.3381C14.2202 16.665 13.3802 16.665 11.7 16.665H6.3C4.61984 16.665 3.77976 16.665 3.13803 16.3381C2.57354 16.0504 2.1146 15.5915 1.82698 15.027C1.5 14.3853 1.5 13.5452 1.5 11.865V7.96504Z' })));
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
const RefreshArrowsIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth = 1 }) => {
|
|
40
|
+
const theme = Theme.useTheme();
|
|
41
|
+
const fill = f || theme.text.secondary;
|
|
42
|
+
return (React.createElement("svg", { width: size, height: size * (24 / 25), viewBox: '0 0 25 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
43
|
+
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M17.9999 2.47363C18.5091 3.66573 18.8614 4.91832 19.0484 6.2C19.0805 6.41989 18.9578 6.63253 18.7513 6.71469C18.691 6.7387 18.6305 6.7623 18.5699 6.78551M6.99987 21.5262C6.49066 20.3341 6.13833 19.0815 5.9513 17.7998C5.91921 17.5799 6.04198 17.3673 6.24846 17.2851C6.30879 17.2611 6.36926 17.2375 6.42987 17.2143M14.9999 7.66979C16.2224 7.5225 17.4213 7.22534 18.5699 6.78551M18.5699 6.78551C17.9972 6.11891 17.3041 5.53603 16.4999 5.07171C12.6735 2.86257 7.78081 4.17357 5.57167 7.99991C4.55722 9.75698 4.28506 11.7389 4.65789 13.5826M20.4085 10.7925C20.6745 12.5275 20.374 14.3615 19.4281 15.9999C17.2189 19.8263 12.3262 21.1373 8.49987 18.9281C7.69564 18.4638 7.00253 17.8809 6.42987 17.2143M9.99987 16.33C8.77739 16.4773 7.57842 16.7745 6.42987 17.2143' })));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const RefreshRightArrowIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth = 1 }) => {
|
|
47
|
+
const theme = Theme.useTheme();
|
|
48
|
+
const fill = f || theme.text.secondary;
|
|
49
|
+
return (React.createElement("svg", { width: size, height: size * (24 / 25), viewBox: '0 0 25 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
50
|
+
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M18.2834 2.66992C18.7926 3.86202 19.1449 5.11461 19.332 6.39629C19.3808 6.73098 19.117 6.88085 18.8534 6.9818C18.8221 6.9938 18.7907 7.00568 18.7593 7.01746M18.7593 7.01746C17.2936 5.17853 15.0344 4 12.5 4C8.08172 4 4.5 7.58172 4.5 12C4.5 16.4183 8.08172 20 12.5 20C16.2277 20 19.3599 17.4505 20.248 14M18.7593 7.01746C17.6394 7.43772 16.4725 7.72281 15.2834 7.86607' })));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const RotateArrowsIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth = 1 }) => {
|
|
54
|
+
const theme = Theme.useTheme();
|
|
55
|
+
const fill = f || theme.text.secondary;
|
|
56
|
+
return (React.createElement("svg", { width: size, height: size * (24 / 25), viewBox: '0 0 25 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
57
|
+
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M12.5 2C13.5964 2.79655 14.5785 3.73031 15.4207 4.77659C15.474 4.84283 15.5004 4.92241 15.5 5.00189M12.5 8C13.5964 7.20345 14.5785 6.26969 15.4207 5.22341C15.4731 5.15821 15.4996 5.0801 15.5 5.00189M12.5 16C11.4036 16.7965 10.4215 17.7303 9.57935 18.7766C9.52687 18.8418 9.50042 18.9199 9.5 18.9981M12.5 22C11.4036 21.2035 10.4215 20.2697 9.57935 19.2234C9.52603 19.1572 9.49958 19.0776 9.5 18.9981M15.5 5.00189C15.1991 5 14.8677 5 14.5 5H10.5C8.63872 5 7.70808 5 6.95492 5.24472C5.43273 5.73931 4.23931 6.93273 3.74472 8.45492C3.5 9.20808 3.5 10.1387 3.5 12C3.5 13.8613 3.5 14.7919 3.74472 15.5451C4.06708 16.5372 4.68631 17.3897 5.49995 18M9.5 18.9981C9.80088 19 10.1323 19 10.5 19H14.5C16.3613 19 17.2919 19 18.0451 18.7553C19.5673 18.2607 20.7607 17.0673 21.2553 15.5451C21.5 14.7919 21.5 13.8613 21.5 12C21.5 10.1387 21.5 9.20808 21.2553 8.45492C20.9329 7.46279 20.3137 6.61033 19.5001 6' })));
|
|
58
|
+
};
|
|
59
|
+
|
|
39
60
|
const UserGroupIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth = 1 }) => {
|
|
40
61
|
const theme = Theme.useTheme();
|
|
41
62
|
const fill = f || theme.text.secondary;
|
|
@@ -144,4 +165,4 @@ const ErrorRoundIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth =
|
|
|
144
165
|
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7 8.33673V6.00339M7 10.3055V10.3061M12.25 7.97266C12.25 10.8722 9.89949 13.2227 7 13.2227C4.1005 13.2227 1.75 10.8721 1.75 7.97265C1.75 5.07316 4.10051 2.72266 7 2.72266C9.8995 2.72266 12.25 5.07316 12.25 7.97266Z' })));
|
|
145
166
|
};
|
|
146
167
|
|
|
147
|
-
export { AvatarIcon, CodeBracketsIcon, CommandIcon, ConnectionsIcon, ErrorRoundIcon, FolderIcon, GoogleCloudStorageLogo, LightOffIcon, LightOnIcon, MinusCircledIcon, MoonIcon, PlusCircledIcon, SentryLogo, ServiceMapIcon, SunIcon, TraceViewIcon, UserGroupIcon, UserSettingsIcon };
|
|
168
|
+
export { AvatarIcon, CodeBracketsIcon, CommandIcon, ConnectionsIcon, ErrorRoundIcon, FolderIcon, GoogleCloudStorageLogo, LightOffIcon, LightOnIcon, MinusCircledIcon, MoonIcon, PlusCircledIcon, RefreshArrowsIcon, RefreshRightArrowIcon, RotateArrowsIcon, SentryLogo, ServiceMapIcon, SunIcon, TraceViewIcon, UserGroupIcon, UserSettingsIcon };
|
|
@@ -42,10 +42,10 @@ const NotificationIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth
|
|
|
42
42
|
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6.10569 12.3626C5.27488 12.3229 4.44501 12.2571 3.61736 12.1651C2.94777 12.0907 2.51712 11.4179 2.73017 10.7787C2.83819 10.4547 2.94697 10.1359 2.97558 9.79265L3.21224 6.95266C3.41977 4.46237 5.50153 2.54688 8.00045 2.54688C10.4994 2.54688 12.5811 4.46237 12.7886 6.95266L13.0254 9.79425C13.054 10.1373 13.1627 10.456 13.2703 10.78C13.4824 11.4188 13.052 12.0906 12.383 12.165C11.5555 12.257 10.7258 12.3228 9.89517 12.3625M6.10569 12.3626C7.36812 12.4229 8.63275 12.4229 9.89517 12.3625M6.10569 12.3626L6.10571 12.6522C6.10571 13.6986 6.95401 14.5469 8.00045 14.5469C9.04688 14.5469 9.89519 13.6986 9.89519 12.6522L9.89517 12.3625' })));
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
const
|
|
45
|
+
const RefreshLeftArrowIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth = 1 }) => {
|
|
46
46
|
const theme = Theme.useTheme();
|
|
47
47
|
const fill = f || theme.text.secondary;
|
|
48
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0
|
|
48
|
+
return (React.createElement("svg", { width: size, height: size * (24 / 25), viewBox: '0 0 25 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
49
49
|
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6.71458 2.66992C6.20537 3.86202 5.85304 5.11461 5.66601 6.39629C5.61717 6.73098 5.88094 6.88085 6.14457 6.9818C6.17589 6.9938 6.20724 7.00568 6.23864 7.01746M6.23864 7.01746C7.70439 5.17853 9.96355 4 12.498 4C16.9162 4 20.498 7.58172 20.498 12C20.498 16.4183 16.9162 20 12.498 20C8.77029 20 5.63809 17.4505 4.75 14M6.23864 7.01746C7.35852 7.43772 8.52543 7.72281 9.71458 7.86607' })));
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -97,4 +97,4 @@ const CrossCircledIcon = ({ size = 16, fill: f, rotate = 0, onClick, strokeWidth
|
|
|
97
97
|
React.createElement("path", { stroke: fill, strokeWidth: strokeWidth, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6.75049 10.0005L8.75049 8.00049M8.75049 8.00049L10.7505 6.00049M8.75049 8.00049L6.75049 6.00049M8.75049 8.00049L10.7505 10.0005M8.75039 14.1004C5.38145 14.1004 2.65039 11.3693 2.65039 8.00039C2.65039 4.63145 5.38145 1.90039 8.75039 1.90039C12.1193 1.90039 14.8504 4.63145 14.8504 8.00039C14.8504 11.3693 12.1193 14.1004 8.75039 14.1004Z' })));
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
export { CrossCircledIcon as C, DataStreamsIcon as D, FilterIcon as F, KeyIcon as K, NotificationIcon as N, OdigosLogoText as O,
|
|
100
|
+
export { CrossCircledIcon as C, DataStreamsIcon as D, FilterIcon as F, KeyIcon as K, NotificationIcon as N, OdigosLogoText as O, RefreshLeftArrowIcon as R, SlackLogo as S, TerminalIcon as T, UserIcon as U, OverviewIcon as a };
|
|
@@ -240,7 +240,7 @@ const Badge = ({ label, filled, status, withIcon, onClick }) => {
|
|
|
240
240
|
label));
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
const Container$
|
|
243
|
+
const Container$H = styled.div `
|
|
244
244
|
height: fit-content;
|
|
245
245
|
border: 2px solid transparent;
|
|
246
246
|
padding: 2px;
|
|
@@ -340,7 +340,7 @@ const StyledButton$3 = styled.button `
|
|
|
340
340
|
`;
|
|
341
341
|
const Button$4 = ({ children, variant = 'primary', onClick, ...props }) => {
|
|
342
342
|
const ref = useRef(null);
|
|
343
|
-
return (React.createElement(Container$
|
|
343
|
+
return (React.createElement(Container$H, { "$variant": variant },
|
|
344
344
|
React.createElement(StyledButton$3, { ref: ref, "$variant": variant, onClick: (e) => {
|
|
345
345
|
if (onClick)
|
|
346
346
|
onClick(e);
|
|
@@ -348,7 +348,7 @@ const Button$4 = ({ children, variant = 'primary', onClick, ...props }) => {
|
|
|
348
348
|
}, ...props }, children)));
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
-
const Container$
|
|
351
|
+
const Container$G = styled.div `
|
|
352
352
|
position: absolute;
|
|
353
353
|
${({ $top }) => $top !== undefined && `top: ${$top}px;`}
|
|
354
354
|
${({ $bottom }) => $bottom !== undefined && `bottom: ${$bottom}px;`}
|
|
@@ -378,7 +378,7 @@ const Footer$1 = styled.div `
|
|
|
378
378
|
const Popup = forwardRef(({ isOpen, asPortal, ...props }, ref) => {
|
|
379
379
|
const Element = useMemo(() => {
|
|
380
380
|
const { children, top, bottom, left, right, borderRadius, padding, maxWidth, width, header, footer } = props;
|
|
381
|
-
return (React.createElement(Container$
|
|
381
|
+
return (React.createElement(Container$G, { ref: ref, "$top": top, "$bottom": bottom, "$left": left, "$right": right, "$borderRadius": borderRadius, "$padding": padding, "$maxWidth": maxWidth, "$width": width, "$asPortal": asPortal },
|
|
382
382
|
header && React.createElement(Header$3, { "$padding": padding }, header),
|
|
383
383
|
React.createElement(Body$1, { "$padding": padding }, children),
|
|
384
384
|
footer && React.createElement(Footer$1, { "$padding": padding }, footer)));
|
|
@@ -490,7 +490,7 @@ const Tooltip = ({ withIcon, titleIcon: TitleIcon, title, text, timestamp, child
|
|
|
490
490
|
!!timestamp && (React.createElement(Text, { size: 10, color: theme.text.darker_grey, family: 'secondary', style: { marginTop: '8px' } }, new Date(timestamp).toLocaleString()))))));
|
|
491
491
|
};
|
|
492
492
|
|
|
493
|
-
const Container$
|
|
493
|
+
const Container$F = styled.div `
|
|
494
494
|
display: flex;
|
|
495
495
|
align-items: center;
|
|
496
496
|
gap: 8px;
|
|
@@ -527,7 +527,7 @@ const Checkbox = ({ title, titleColor, tooltip, value = false, partiallyChecked
|
|
|
527
527
|
setIsChecked((prev) => (partiallyChecked ? true : !prev));
|
|
528
528
|
};
|
|
529
529
|
return (React.createElement(FlexColumn, null,
|
|
530
|
-
React.createElement(Container$
|
|
530
|
+
React.createElement(Container$F, { "data-id": `checkbox${!!title ? `-${title}` : ''}`, "$disabled": disabled, onClick: handleToggle, style: style },
|
|
531
531
|
React.createElement(CheckboxWrapper, { "$isChecked": isChecked, "$isPartiallyChecked": partiallyChecked, "$disabled": disabled }, partiallyChecked ? React.createElement(MinusIcon$1, { fill: theme.text.white }) : isChecked ? React.createElement(CheckIcon, { fill: theme.text.white }) : null),
|
|
532
532
|
title && (React.createElement(Tooltip, { text: tooltip, withIcon: true },
|
|
533
533
|
React.createElement(Text, { size: 12, color: titleColor || theme.text.grey, style: { maxWidth: '90%' } }, title)))),
|
|
@@ -3663,7 +3663,7 @@ prismjs/prism.js:
|
|
|
3663
3663
|
*)
|
|
3664
3664
|
*/
|
|
3665
3665
|
|
|
3666
|
-
const Container$
|
|
3666
|
+
const Container$E = styled(FlexRow) `
|
|
3667
3667
|
gap: 0;
|
|
3668
3668
|
`;
|
|
3669
3669
|
const Button$3 = styled.button `
|
|
@@ -3680,7 +3680,7 @@ const Button$3 = styled.button `
|
|
|
3680
3680
|
}
|
|
3681
3681
|
`;
|
|
3682
3682
|
const ToggleCodeComponent = ({ isPrettyMode, setIsPrettyMode }) => {
|
|
3683
|
-
return (React.createElement(Container$
|
|
3683
|
+
return (React.createElement(Container$E, null,
|
|
3684
3684
|
React.createElement(Button$3, { "$position": 'left', "$selected": isPrettyMode, onClick: () => setIsPrettyMode(true) },
|
|
3685
3685
|
React.createElement(ListIcon, null)),
|
|
3686
3686
|
React.createElement(Button$3, { "$position": 'right', "$selected": !isPrettyMode, onClick: () => setIsPrettyMode(false) },
|
|
@@ -3972,18 +3972,18 @@ const FadeLoader = ({ loading = true, color: clr, scale = 1, speedMultiplier = 1
|
|
|
3972
3972
|
} })));
|
|
3973
3973
|
};
|
|
3974
3974
|
|
|
3975
|
-
const Container$
|
|
3975
|
+
const Container$D = styled.div `
|
|
3976
3976
|
margin: ${({ $align }) => ($align === 'right' ? 'auto 6px auto auto' : $align === 'left' ? 'auto auto auto 6px' : 'auto')};
|
|
3977
3977
|
display: flex;
|
|
3978
3978
|
align-items: center;
|
|
3979
3979
|
justify-content: center;
|
|
3980
3980
|
`;
|
|
3981
3981
|
const ExtendArrow = ({ extend, size = 14, align = 'center' }) => {
|
|
3982
|
-
return (React.createElement(Container$
|
|
3982
|
+
return (React.createElement(Container$D, { "$align": align },
|
|
3983
3983
|
React.createElement(ExtendArrowIcon, { size: size, rotate: extend ? 180 : 0 })));
|
|
3984
3984
|
};
|
|
3985
3985
|
|
|
3986
|
-
const Container$
|
|
3986
|
+
const Container$C = styled.div `
|
|
3987
3987
|
border-radius: 24px;
|
|
3988
3988
|
background-color: ${({ theme, $status }) => $status === StatusType.Error
|
|
3989
3989
|
? theme.text.error + Theme.opacity.hex['010']
|
|
@@ -4039,7 +4039,7 @@ const ConditionDetails = ({ conditions: c, headerLabelError = 'Something Failed'
|
|
|
4039
4039
|
const headerSubText = `(${hasErrors ? errors.length : hasWarnings ? warnings.length : conditions.length}/${conditions.length})`;
|
|
4040
4040
|
const headerSubTextColor = hasErrors ? theme.text.error_secondary : hasWarnings ? theme.text.warning_secondary : theme.text.info_secondary;
|
|
4041
4041
|
const toggleExtend = useCallback(() => setExtend((prev) => !prev), []);
|
|
4042
|
-
return (React.createElement(Container$
|
|
4042
|
+
return (React.createElement(Container$C, { onClick: toggleExtend, "$status": overallStatus },
|
|
4043
4043
|
React.createElement(Header$2, null,
|
|
4044
4044
|
loading ? React.createElement(FadeLoader, null) : React.createElement(HeaderIcon, null),
|
|
4045
4045
|
React.createElement(Text, { color: headerTextColor, size: 14 }, headerText),
|
|
@@ -4076,7 +4076,7 @@ const Divider = ({ orientation = 'horizontal', type, thickness = 1, length, marg
|
|
|
4076
4076
|
return React.createElement(StyledDivider, { "$orientation": orientation, "$type": type, "$thickness": thickness, "$length": length, "$margin": margin });
|
|
4077
4077
|
};
|
|
4078
4078
|
|
|
4079
|
-
const Container$
|
|
4079
|
+
const Container$B = styled.div `
|
|
4080
4080
|
display: flex;
|
|
4081
4081
|
align-items: center;
|
|
4082
4082
|
gap: ${({ $size }) => $size / 3}px;
|
|
@@ -4105,7 +4105,7 @@ const Status = ({ title, subtitle, status = StatusType.Default, forceIcon: Force
|
|
|
4105
4105
|
: status === OtherStatus.Loading
|
|
4106
4106
|
? () => React.createElement(FadeLoader, { scale: 0.8 })
|
|
4107
4107
|
: () => getStatusIcon(statusType, theme)?.({ size: size + 2 });
|
|
4108
|
-
return (React.createElement(Container$
|
|
4108
|
+
return (React.createElement(Container$B, { "$status": statusType, "$width": width, "$size": size, "$withIcon": withIcon, "$withBorder": withBorder, "$withBackground": withBackground },
|
|
4109
4109
|
withIcon && (React.createElement(IconWrapper$4, null,
|
|
4110
4110
|
React.createElement(StatusIcon, null))),
|
|
4111
4111
|
(!!title || !!subtitle) && (React.createElement(TextWrapper$1, null,
|
|
@@ -4221,7 +4221,7 @@ const ImageControlled = ({ src = '', alt = '', size = 16 }) => {
|
|
|
4221
4221
|
return React.createElement(ImageErrorIcon, { size: size });
|
|
4222
4222
|
};
|
|
4223
4223
|
|
|
4224
|
-
const Container$
|
|
4224
|
+
const Container$A = styled.div `
|
|
4225
4225
|
display: flex;
|
|
4226
4226
|
align-items: center;
|
|
4227
4227
|
justify-content: center;
|
|
@@ -4234,10 +4234,10 @@ const Container$z = styled.div `
|
|
|
4234
4234
|
}};
|
|
4235
4235
|
`;
|
|
4236
4236
|
const IconWrapped = ({ icon: Icon, src = '', alt = '', status, size = 36 }) => {
|
|
4237
|
-
return (React.createElement(Container$
|
|
4237
|
+
return (React.createElement(Container$A, { "$status": status, "$size": size }, src ? React.createElement(ImageControlled, { src: src, alt: alt, size: size - 12 }) : !!Icon ? React.createElement(Icon, { size: size - 12 }) : React.createElement(ImageErrorIcon, { size: size - 12 })));
|
|
4238
4238
|
};
|
|
4239
4239
|
|
|
4240
|
-
const Container$
|
|
4240
|
+
const Container$z = styled.div `
|
|
4241
4241
|
position: relative;
|
|
4242
4242
|
display: flex;
|
|
4243
4243
|
flex-wrap: wrap;
|
|
@@ -4290,7 +4290,7 @@ const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36, id }) => {
|
|
|
4290
4290
|
return imgSize * 1.15;
|
|
4291
4291
|
return imgSize * 1.15 * 0.5;
|
|
4292
4292
|
};
|
|
4293
|
-
return (React.createElement(Container$
|
|
4293
|
+
return (React.createElement(Container$z, { "$status": status, "$size": size }, icons.map((Icon, idx) => {
|
|
4294
4294
|
if (idx > 2)
|
|
4295
4295
|
return null;
|
|
4296
4296
|
return (React.createElement(IconWrapper$3, { key: `icon-${id}-${idx}`, "$status": status, "$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 },
|
|
@@ -4321,7 +4321,7 @@ const MonitorsIcons = ({ monitors = defaultMonitors, withTooltips, withLabels, s
|
|
|
4321
4321
|
const ControlledVisibility$1 = styled.div `
|
|
4322
4322
|
visibility: hidden;
|
|
4323
4323
|
`;
|
|
4324
|
-
const Container$
|
|
4324
|
+
const Container$y = styled.div `
|
|
4325
4325
|
display: flex;
|
|
4326
4326
|
flex-direction: column;
|
|
4327
4327
|
align-self: stretch;
|
|
@@ -4380,7 +4380,7 @@ const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps
|
|
|
4380
4380
|
setTextMaxWidth(containerWidth - widthOfNonTextContents);
|
|
4381
4381
|
}
|
|
4382
4382
|
}, [withCheckbox]);
|
|
4383
|
-
return (React.createElement(Container$
|
|
4383
|
+
return (React.createElement(Container$y, { ref: containerRef, "$status": status, "$faded": faded, "$bgColor": bgColor, "$bgColorHover": bgColorHover, "$withClick": !!onClick, onClick: onClick, ...props },
|
|
4384
4384
|
React.createElement(FlexRow, { "$gap": 8 },
|
|
4385
4385
|
React.createElement(FlexRow, { "$gap": 16 },
|
|
4386
4386
|
isCheckboxLoading ? React.createElement(FadeLoader, null) : withCheckbox ? React.createElement(Checkbox, { value: isChecked, onChange: onCheckboxChange, disabled: isCheckboxDisabled }) : null,
|
|
@@ -4406,7 +4406,7 @@ const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps
|
|
|
4406
4406
|
renderExtended()))));
|
|
4407
4407
|
};
|
|
4408
4408
|
|
|
4409
|
-
const Container$
|
|
4409
|
+
const Container$x = styled(FlexRow) `
|
|
4410
4410
|
width: 100%;
|
|
4411
4411
|
justify-content: space-between;
|
|
4412
4412
|
`;
|
|
@@ -4429,7 +4429,7 @@ const ValueText = styled(Text) `
|
|
|
4429
4429
|
text-align: right;
|
|
4430
4430
|
`;
|
|
4431
4431
|
const DescribeRow = ({ title, subTitle, tooltip, value }) => {
|
|
4432
|
-
return (React.createElement(Container$
|
|
4432
|
+
return (React.createElement(Container$x, null,
|
|
4433
4433
|
React.createElement(FlexColumn, { "$gap": 4 },
|
|
4434
4434
|
React.createElement(Tooltip, { text: tooltip || '' },
|
|
4435
4435
|
title && React.createElement(Title$b, null, title),
|
|
@@ -16420,7 +16420,7 @@ function ResizeControl({ nodeId, position, variant = ResizeControlVariant.Handle
|
|
|
16420
16420
|
*/
|
|
16421
16421
|
memo(ResizeControl);
|
|
16422
16422
|
|
|
16423
|
-
const Container$
|
|
16423
|
+
const Container$w = styled(FlexColumn) `
|
|
16424
16424
|
align-items: center !important;
|
|
16425
16425
|
justify-content: center;
|
|
16426
16426
|
align-self: stretch;
|
|
@@ -16457,7 +16457,7 @@ const AddNode = memo(({ id: nodeId, data }) => {
|
|
|
16457
16457
|
const { isThisPending } = usePendingStore();
|
|
16458
16458
|
const entity = nodeId.split('-')[0];
|
|
16459
16459
|
const isPending = isThisPending({ entityType: entity });
|
|
16460
|
-
return (React.createElement(Container$
|
|
16460
|
+
return (React.createElement(Container$w, { "$nodeWidth": nodeWidth, className: 'nowheel nodrag' },
|
|
16461
16461
|
isPending ? (React.createElement(Fragment, null,
|
|
16462
16462
|
React.createElement(TitleWrapper$1, null,
|
|
16463
16463
|
React.createElement(FadeLoader, null),
|
|
@@ -16475,7 +16475,7 @@ const AddNode = memo(({ id: nodeId, data }) => {
|
|
|
16475
16475
|
});
|
|
16476
16476
|
AddNode.displayName = AddNode.name;
|
|
16477
16477
|
|
|
16478
|
-
const Container$
|
|
16478
|
+
const Container$v = styled.div `
|
|
16479
16479
|
width: ${({ $nodeWidth }) => `${$nodeWidth}px`};
|
|
16480
16480
|
`;
|
|
16481
16481
|
const BaseNode = memo(({ id: nodeId, data }) => {
|
|
@@ -16508,7 +16508,7 @@ const BaseNode = memo(({ id: nodeId, data }) => {
|
|
|
16508
16508
|
}
|
|
16509
16509
|
setSelectedSources(namespaces);
|
|
16510
16510
|
};
|
|
16511
|
-
return (React.createElement(Container$
|
|
16511
|
+
return (React.createElement(Container$v, { "data-id": nodeId, "$nodeWidth": nodeWidth, className: 'nowheel nodrag' },
|
|
16512
16512
|
React.createElement(DataTab, { title: title, subTitle: subTitle, onClick: () => { }, renderActions: renderActions, iconProps: {
|
|
16513
16513
|
icon: icon,
|
|
16514
16514
|
icons: icons,
|
|
@@ -16529,20 +16529,20 @@ const BaseNode = memo(({ id: nodeId, data }) => {
|
|
|
16529
16529
|
});
|
|
16530
16530
|
BaseNode.displayName = BaseNode.name;
|
|
16531
16531
|
|
|
16532
|
-
const Container$
|
|
16532
|
+
const Container$u = styled.div `
|
|
16533
16533
|
width: ${({ $nodeWidth }) => `${$nodeWidth}px`};
|
|
16534
16534
|
height: ${({ $nodeHeight }) => `${$nodeHeight}px`};
|
|
16535
16535
|
opacity: 0;
|
|
16536
16536
|
`;
|
|
16537
16537
|
const EdgedNode = memo(({ data }) => {
|
|
16538
16538
|
const { nodeWidth, nodeHeight } = data;
|
|
16539
|
-
return (React.createElement(Container$
|
|
16539
|
+
return (React.createElement(Container$u, { "$nodeWidth": nodeWidth, "$nodeHeight": nodeHeight, className: 'nowheel nodrag' },
|
|
16540
16540
|
React.createElement(Handle, { type: 'source', position: Position.Right, style: { visibility: 'hidden' } }),
|
|
16541
16541
|
React.createElement(Handle, { type: 'target', position: Position.Left, style: { visibility: 'hidden' } })));
|
|
16542
16542
|
});
|
|
16543
16543
|
EdgedNode.displayName = EdgedNode.name;
|
|
16544
16544
|
|
|
16545
|
-
const Container$
|
|
16545
|
+
const Container$t = styled.div `
|
|
16546
16546
|
width: ${({ $nodeWidth }) => $nodeWidth}px;
|
|
16547
16547
|
height: ${({ $nodeHeight }) => $nodeHeight}px;
|
|
16548
16548
|
background: transparent;
|
|
@@ -16551,14 +16551,14 @@ const Container$s = styled.div `
|
|
|
16551
16551
|
`;
|
|
16552
16552
|
const FrameNode = memo(({ data }) => {
|
|
16553
16553
|
const { nodeWidth, nodeHeight } = data;
|
|
16554
|
-
return (React.createElement(Container$
|
|
16554
|
+
return (React.createElement(Container$t, { "$nodeWidth": nodeWidth, "$nodeHeight": nodeHeight, className: 'nowheel nodrag' },
|
|
16555
16555
|
React.createElement(Handle, { type: 'source', position: Position.Right, style: { visibility: 'hidden' } }),
|
|
16556
16556
|
React.createElement(Handle, { type: 'target', position: Position.Left, style: { visibility: 'hidden' } })));
|
|
16557
16557
|
});
|
|
16558
16558
|
FrameNode.displayName = FrameNode.name;
|
|
16559
16559
|
|
|
16560
16560
|
const { framePadding } = nodeConfig;
|
|
16561
|
-
const Container$
|
|
16561
|
+
const Container$s = styled.div `
|
|
16562
16562
|
position: relative;
|
|
16563
16563
|
z-index: 1;
|
|
16564
16564
|
width: fit-content;
|
|
@@ -16606,7 +16606,7 @@ const ScrollNode = memo(({ data, ...rest }) => {
|
|
|
16606
16606
|
current?.addEventListener('scroll', handleScroll);
|
|
16607
16607
|
return () => current?.removeEventListener('scroll', handleScroll);
|
|
16608
16608
|
}, [onScroll]);
|
|
16609
|
-
return (React.createElement(Container$
|
|
16609
|
+
return (React.createElement(Container$s, { ref: containerRef, "$nodeHeight": nodeHeight, className: 'nowheel nodrag' },
|
|
16610
16610
|
items.map((item) => (React.createElement(BaseNodeWrapper, { key: item.id, onClick: (e) => {
|
|
16611
16611
|
e.stopPropagation();
|
|
16612
16612
|
// @ts-expect-error - expects an event, but we don't need it, so undefined is fine, also expects full node, we only need the given values
|
|
@@ -16629,7 +16629,7 @@ const IconTitleBadge = ({ icon: Icon, title, badge, badgeTooltip, loading }) =>
|
|
|
16629
16629
|
loading && React.createElement(FadeLoader, null)));
|
|
16630
16630
|
};
|
|
16631
16631
|
|
|
16632
|
-
const Container$
|
|
16632
|
+
const Container$r = styled.div `
|
|
16633
16633
|
position: relative;
|
|
16634
16634
|
width: ${({ $nodeWidth }) => `${$nodeWidth}px`};
|
|
16635
16635
|
padding: 12px 0px 16px 0px;
|
|
@@ -16695,7 +16695,7 @@ const HeaderNode = memo(({ id: nodeId, data }) => {
|
|
|
16695
16695
|
setSelectedSources({});
|
|
16696
16696
|
}
|
|
16697
16697
|
};
|
|
16698
|
-
return (React.createElement(Container$
|
|
16698
|
+
return (React.createElement(Container$r, { "$nodeWidth": nodeWidth, className: 'nowheel nodrag' },
|
|
16699
16699
|
entityType === EntityTypes.Source && (React.createElement(SelectorWrapper, null,
|
|
16700
16700
|
React.createElement(Checkbox, { partiallyChecked: hasSelected && sources?.length !== totalSelectedSources, value: hasSelected && sources?.length === totalSelectedSources, onChange: onSelect, disabled: !sources?.length }))),
|
|
16701
16701
|
React.createElement(IconTitleBadge, { icon: Icon, title: title, badge: isSourceAwaitingInstrumentation ? `${instrumentingPercent}%` : badge, badgeTooltip: badgeTooltip, loading: isFetching && !isSourceAwaitingInstrumentation }),
|
|
@@ -16726,7 +16726,7 @@ const Actions = memo(({ entityType }) => {
|
|
|
16726
16726
|
HeaderNode.displayName = HeaderNode.name;
|
|
16727
16727
|
Actions.displayName = Actions.name;
|
|
16728
16728
|
|
|
16729
|
-
const Container$
|
|
16729
|
+
const Container$q = styled(FlexColumn) `
|
|
16730
16730
|
max-width: 300px;
|
|
16731
16731
|
padding: 12px;
|
|
16732
16732
|
border-radius: 12px;
|
|
@@ -16735,7 +16735,7 @@ const Container$p = styled(FlexColumn) `
|
|
|
16735
16735
|
`;
|
|
16736
16736
|
const NoDataNode = memo(({ id: nodeId, data }) => {
|
|
16737
16737
|
const { title, subTitle } = data;
|
|
16738
|
-
return (React.createElement(Container$
|
|
16738
|
+
return (React.createElement(Container$q, { "data-id": nodeId },
|
|
16739
16739
|
React.createElement(NoDataFound, { title: title, subTitle: subTitle })));
|
|
16740
16740
|
});
|
|
16741
16741
|
NoDataNode.displayName = NoDataNode.name;
|
|
@@ -16775,7 +16775,7 @@ const LabeledEdge = memo(({ id, sourceX, sourceY, targetX, targetY, sourcePositi
|
|
|
16775
16775
|
});
|
|
16776
16776
|
LabeledEdge.displayName = LabeledEdge.name;
|
|
16777
16777
|
|
|
16778
|
-
const Container$
|
|
16778
|
+
const Container$p = styled.div `
|
|
16779
16779
|
padding: 6px;
|
|
16780
16780
|
border-radius: 12px;
|
|
16781
16781
|
background-color: ${({ theme }) => theme.colors.dropdown_bg};
|
|
@@ -16817,7 +16817,7 @@ const MapItemNode = memo(({ id: nodeId, data }) => {
|
|
|
16817
16817
|
React.createElement(Handle, { type: 'source', position: Position.Right, style: { visibility: 'hidden' } }),
|
|
16818
16818
|
React.createElement(Handle, { type: 'target', position: Position.Left, style: { visibility: 'hidden' } }),
|
|
16819
16819
|
React.createElement(Relative$1, { "data-id": nodeId },
|
|
16820
|
-
React.createElement(Container$
|
|
16820
|
+
React.createElement(Container$p, null,
|
|
16821
16821
|
React.createElement(IconGroup, { id: serviceId, icons: icons, status: status })),
|
|
16822
16822
|
React.createElement(AbsoluteTitle, null,
|
|
16823
16823
|
StatusIcon && React.createElement(StatusIcon, null),
|
|
@@ -16836,7 +16836,7 @@ const MapItemNode = memo(({ id: nodeId, data }) => {
|
|
|
16836
16836
|
});
|
|
16837
16837
|
MapItemNode.displayName = MapItemNode.name;
|
|
16838
16838
|
|
|
16839
|
-
const Container$
|
|
16839
|
+
const Container$o = styled.div `
|
|
16840
16840
|
display: flex;
|
|
16841
16841
|
flex-direction: column;
|
|
16842
16842
|
gap: 16px;
|
|
@@ -16868,19 +16868,19 @@ const Line = styled.div `
|
|
|
16868
16868
|
border-radius: 4px;
|
|
16869
16869
|
`;
|
|
16870
16870
|
const SkeletonLoader = ({ size = 5, maxWidth }) => {
|
|
16871
|
-
return (React.createElement(Container$
|
|
16871
|
+
return (React.createElement(Container$o, { "$maxWidth": maxWidth }, [...Array(size)].map((_, index) => (React.createElement(SkeletonItem, { key: index },
|
|
16872
16872
|
React.createElement(Thumbnail, null),
|
|
16873
16873
|
React.createElement(LineWrapper, null,
|
|
16874
16874
|
React.createElement(Line, { "$width": '80%' }),
|
|
16875
16875
|
React.createElement(Line, { "$width": '100%' })))))));
|
|
16876
16876
|
};
|
|
16877
16877
|
|
|
16878
|
-
const Container$
|
|
16878
|
+
const Container$n = styled.div `
|
|
16879
16879
|
width: ${({ $nodeWidth }) => `${$nodeWidth}px`};
|
|
16880
16880
|
`;
|
|
16881
16881
|
const SkeletonNode = memo(({ id: nodeId, data }) => {
|
|
16882
16882
|
const { nodeWidth } = data;
|
|
16883
|
-
return (React.createElement(Container$
|
|
16883
|
+
return (React.createElement(Container$n, { "data-id": nodeId, "$nodeWidth": nodeWidth, className: 'nowheel nodrag' },
|
|
16884
16884
|
React.createElement(SkeletonLoader, { size: 3 })));
|
|
16885
16885
|
});
|
|
16886
16886
|
SkeletonNode.displayName = SkeletonNode.name;
|
|
@@ -17047,7 +17047,7 @@ const TableRow = ({ index, columns, cells, onClick, status, faded }) => {
|
|
|
17047
17047
|
})));
|
|
17048
17048
|
};
|
|
17049
17049
|
|
|
17050
|
-
const Container$
|
|
17050
|
+
const Container$m = styled.div `
|
|
17051
17051
|
width: 100%;
|
|
17052
17052
|
`;
|
|
17053
17053
|
const Table = styled.table `
|
|
@@ -17121,7 +17121,7 @@ const InteractiveTable = ({ columns, rows }) => {
|
|
|
17121
17121
|
})
|
|
17122
17122
|
: 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 }));
|
|
17123
17123
|
}, [columns, rows, sortBy, sortDirection]);
|
|
17124
|
-
return (React.createElement(Container$
|
|
17124
|
+
return (React.createElement(Container$m, null,
|
|
17125
17125
|
React.createElement(Table, null,
|
|
17126
17126
|
React.createElement(TableHead, null,
|
|
17127
17127
|
React.createElement("tr", null, columns.map(({ key, title, sortable }) => (React.createElement(TableTitle, { key: `column-${key}` }, sortable ? (React.createElement(SortClickable, { onClick: () => onSort(key) },
|
|
@@ -17265,7 +17265,7 @@ const DataCard = ({ title = 'Details', titleBadge, description, action: Action,
|
|
|
17265
17265
|
const ControlledVisibility = styled.div `
|
|
17266
17266
|
visibility: hidden;
|
|
17267
17267
|
`;
|
|
17268
|
-
const Container$
|
|
17268
|
+
const Container$l = styled(FlexRow) `
|
|
17269
17269
|
align-self: stretch;
|
|
17270
17270
|
width: calc(100% - 32px);
|
|
17271
17271
|
padding: 16px;
|
|
@@ -17312,7 +17312,7 @@ const DataFinger = ({ title, subTitle, icons, iconSrcs, onClick, renderActions }
|
|
|
17312
17312
|
setTextMaxWidth(containerWidth - widthOfNonTextContents);
|
|
17313
17313
|
}
|
|
17314
17314
|
}, []);
|
|
17315
|
-
return (React.createElement(Container$
|
|
17315
|
+
return (React.createElement(Container$l, { ref: containerRef, "$gap": 8, "$withClick": !!onClick, onClick: onClick },
|
|
17316
17316
|
React.createElement(IconGroup, { id: `${title}-${subTitle}`, icons: icons, iconSrcs: iconSrcs }),
|
|
17317
17317
|
title && React.createElement(ScrollX, { maxWidth: textMaxWidth / 2, text: title, textSize: 14 }),
|
|
17318
17318
|
title && subTitle && React.createElement(SubText, null, "\u2022"),
|
|
@@ -17337,6 +17337,27 @@ const DocsButton = ({ endpoint = '/', variant = 'secondary' }) => {
|
|
|
17337
17337
|
"Docs"));
|
|
17338
17338
|
};
|
|
17339
17339
|
|
|
17340
|
+
const Container$k = styled(FlexRow) `
|
|
17341
|
+
border-bottom: ${({ $hideBorder, theme }) => ($hideBorder ? 'none' : `1px solid ${theme.colors.border}`)};
|
|
17342
|
+
`;
|
|
17343
|
+
const Tab = styled(Text) `
|
|
17344
|
+
padding: 12px;
|
|
17345
|
+
font-size: 14px;
|
|
17346
|
+
color: ${({ theme, $selected }) => ($selected ? theme.text.secondary : theme.text.grey)};
|
|
17347
|
+
border-bottom: 2px solid ${({ theme, $selected }) => ($selected ? theme.colors.majestic_blue : 'transparent')};
|
|
17348
|
+
cursor: pointer;
|
|
17349
|
+
display: flex;
|
|
17350
|
+
align-items: center;
|
|
17351
|
+
gap: 8px;
|
|
17352
|
+
`;
|
|
17353
|
+
const TabList = ({ tabs, hideBorder = false }) => {
|
|
17354
|
+
if (!tabs?.length)
|
|
17355
|
+
return null;
|
|
17356
|
+
return (React.createElement(Container$k, { "$hideBorder": hideBorder }, tabs.map(({ label, icon: Icon, onClick, selected }) => (React.createElement(Tab, { key: `tab-${label}`, onClick: onClick, "$selected": selected },
|
|
17357
|
+
label,
|
|
17358
|
+
Icon && React.createElement(Icon, null))))));
|
|
17359
|
+
};
|
|
17360
|
+
|
|
17340
17361
|
const Container$j = styled.section `
|
|
17341
17362
|
padding: 0px 32px;
|
|
17342
17363
|
border-bottom: 1px solid ${({ theme }) => theme.colors.border};
|
|
@@ -17348,7 +17369,6 @@ const TopRow = styled.div `
|
|
|
17348
17369
|
flex-shrink: 0;
|
|
17349
17370
|
align-self: stretch;
|
|
17350
17371
|
`;
|
|
17351
|
-
const BottomRow = styled(FlexRow) ``;
|
|
17352
17372
|
const SectionItemsWrapper = styled.div `
|
|
17353
17373
|
display: flex;
|
|
17354
17374
|
align-items: center;
|
|
@@ -17366,17 +17386,7 @@ const ActionButton$1 = styled(Button$4) `
|
|
|
17366
17386
|
gap: 8px;
|
|
17367
17387
|
`;
|
|
17368
17388
|
const CloseButton = styled(Button$4) ``;
|
|
17369
|
-
const
|
|
17370
|
-
padding: 12px;
|
|
17371
|
-
font-size: 14px;
|
|
17372
|
-
color: ${({ theme, $selected }) => ($selected ? theme.text.secondary : theme.text.grey)};
|
|
17373
|
-
border-bottom: 2px solid ${({ theme, $selected }) => ($selected ? theme.colors.majestic_blue : 'transparent')};
|
|
17374
|
-
cursor: pointer;
|
|
17375
|
-
display: flex;
|
|
17376
|
-
align-items: center;
|
|
17377
|
-
gap: 8px;
|
|
17378
|
-
`;
|
|
17379
|
-
const DrawerHeader = ({ onClose, icons, iconSrcs, title, titleTooltip, replaceTitleWith: ReplaceTitleWith, actionButtons = [], tabs }) => {
|
|
17389
|
+
const DrawerHeader = ({ onClose, icons, iconSrcs, title, titleTooltip, replaceTitleWith: ReplaceTitleWith, actions, actionButtons = [], tabs }) => {
|
|
17380
17390
|
const renderReplaceTitleWith = () => {
|
|
17381
17391
|
if (typeof ReplaceTitleWith === 'function') {
|
|
17382
17392
|
return React.createElement(ReplaceTitleWith, null);
|
|
@@ -17392,12 +17402,11 @@ const DrawerHeader = ({ onClose, icons, iconSrcs, title, titleTooltip, replaceTi
|
|
|
17392
17402
|
icons?.length || iconSrcs?.length ? React.createElement(IconGroup, { icons: icons, iconSrcs: iconSrcs, id: `drawer-header-${title}` }) : null,
|
|
17393
17403
|
renderReplaceTitleWith() || (React.createElement(Tooltip, { text: titleTooltip, withIcon: true }, title && React.createElement(Title$6, null, title)))),
|
|
17394
17404
|
React.createElement(SectionItemsWrapper, { "$gap": 2 },
|
|
17405
|
+
actions,
|
|
17395
17406
|
actionButtons.map((btn, i) => (React.createElement(ActionButton$1, { key: `header-action-button-${i}`, ...btn }))),
|
|
17396
17407
|
React.createElement(CloseButton, { "data-id": 'drawer-close', variant: 'secondary', onClick: onClose },
|
|
17397
17408
|
React.createElement(XIcon, { size: 12 })))),
|
|
17398
|
-
|
|
17399
|
-
label,
|
|
17400
|
-
Icon && React.createElement(Icon, null))))))));
|
|
17409
|
+
React.createElement(TabList, { tabs: tabs, hideBorder: true })));
|
|
17401
17410
|
};
|
|
17402
17411
|
|
|
17403
17412
|
const Container$i = styled.div `
|
|
@@ -38389,4 +38398,4 @@ const WarningModal = ({ isOpen, noOverlay, title = '', description = '', note, a
|
|
|
38389
38398
|
React.createElement(FooterButton, { "data-id": 'deny', variant: denyButton.variant || 'secondary', onClick: onDeny }, denyButton.text)))));
|
|
38390
38399
|
};
|
|
38391
38400
|
|
|
38392
|
-
export {
|
|
38401
|
+
export { TextArea as $, AutocompleteInput as A, Button$4 as B, Checkbox as C, DataCard as D, ExtendArrow as E, FadeLoader as F, MonitorsIcons as G, Header as H, IconButton as I, NoDataFound as J, KeyValueInputsList as K, NotificationNote as L, Modal as M, NavigationButtons as N, PopupForm as O, Popup as P, SectionTitle as Q, Segment as R, ScrollX as S, ToggleCodeComponent as T, SelectionButton as U, SkeletonLoader as V, Status as W, Stepper as X, TabList as Y, Tag as Z, Text as _, Badge as a, Toggle as a0, Tooltip as a1, TraceLoader as a2, WarningModal as a3, FlexRow as a4, FlexColumn as a5, CenterThis as a6, VerticalScroll as a7, Overlay as a8, ModalBody as a9, TableContainer as aa, TableTitleWrap as ab, TableWrap as ac, nodeConfig as ad, useNodesState as ae, useEdgesState as af, Flow as ag, applyNodeChanges as ah, AddButton$1 as ai, MarkerType as aj, CopyText as ak, PodContainer as al, SourceContainer as am, AddNode as an, BaseNode as ao, EdgedNode as ap, FrameNode as aq, HeaderNode as ar, MapItemNode as as, NoDataNode as at, ScrollNode as au, SkeletonNode as av, LabeledEdge as aw, Code as b, ConditionDetails as c, DataCardFields as d, DataCardFieldTypes as e, DataFinger as f, DataTab as g, DescribeRow as h, Divider as i, DocsButton as j, Drawer as k, DrawerHeader as l, DrawerFooter as m, Dropdown as n, FieldError as o, FieldLabel as p, IconGroup as q, IconTitleBadge as r, IconWrapped as s, IconsNav as t, ImageControlled as u, Input as v, InputList as w, InputTable as x, InteractiveTable as y, MonitorsCheckboxes as z };
|
package/lib/snippets.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as Button,
|
|
2
|
-
export {
|
|
1
|
+
import { B as Button, _ as Text, L as NotificationNote } from './index-eb5688cd.js';
|
|
2
|
+
export { ai as AddButton, an as AddNode, ao as BaseNode, ak as CopyText, ap as EdgedNode, ag as Flow, aq as FrameNode, ar as HeaderNode, aw as LabeledEdge, as as MapItemNode, at as NoDataNode, al as PodContainer, au as ScrollNode, av as SkeletonNode, am as SourceContainer, ad as nodeConfig } from './index-eb5688cd.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { T as Theme, B as BUTTON_TEXTS, b as DISPLAY_TITLES } from './index-e9b26c29.js';
|
|
5
5
|
import { E as EditIcon } from './index-0001f711.js';
|
package/package.json
CHANGED