@odigos/ui-kit 0.0.49 → 0.0.50
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 +12 -0
- package/lib/components/data-card/data-card-fields/index.d.ts +1 -5
- package/lib/components/data-card/data-card.stories.d.ts +4 -4
- package/lib/components/data-finger/data-finger.stories.d.ts +9 -0
- package/lib/components/data-finger/index.d.ts +12 -0
- package/lib/components/icon-button/index.d.ts +2 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/popup/index.d.ts +17 -0
- package/lib/components/popup/popup.stories.d.ts +9 -0
- package/lib/components/popup-form/index.d.ts +18 -0
- package/lib/components/popup-form/popup-form.stories.d.ts +10 -0
- package/lib/components/tag/index.d.ts +8 -0
- package/lib/components/tag/tag.stories.d.ts +13 -0
- package/lib/components.js +8 -8
- package/lib/constants.js +1 -1
- package/lib/containers/service-map/helpers/generate-dag-positions.d.ts +5 -0
- package/lib/containers/service-map/helpers/generate-spiral-grid-position.d.ts +2 -0
- package/lib/containers/service-map/index.d.ts +2 -2
- package/lib/containers/system-overview/describe/index.d.ts +1 -1
- package/lib/containers.js +262 -368
- package/lib/functions/has-unhealthy-instances/index.d.ts +2 -0
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions.js +5 -5
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/usePopup.d.ts +17 -0
- package/lib/hooks.js +3 -3
- package/lib/icons/common/avatar-icon/avatar-icon.stories.d.ts +8 -0
- package/lib/icons/common/avatar-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +2 -0
- package/lib/icons/common/user-group-icon/index.d.ts +2 -0
- package/lib/icons/common/user-group-icon/user-group-icon.stories.d.ts +8 -0
- package/lib/icons/math/index.d.ts +2 -0
- package/lib/icons/math/minus-circled-icon/index.d.ts +2 -0
- package/lib/icons/math/minus-circled-icon/minus-circled-icon.stories.d.ts +8 -0
- package/lib/icons/math/plus-circled-icon/index.d.ts +2 -0
- package/lib/icons/math/plus-circled-icon/plus-circled-icon.stories.d.ts +8 -0
- package/lib/icons.js +35 -7
- package/lib/{index-Bw7RE2T2.js → index-BC03UmY5.js} +8 -1
- package/lib/{index-ZTzxu5fz.js → index-CMsBAVAn.js} +2 -2
- package/lib/{index-w9lkC6fb.js → index-CPMIZB66.js} +12 -4
- package/lib/{index-C1V7D2ey.js → index-CgdNGqvh.js} +2270 -2205
- package/lib/{index-CkTdd3MS.js → index-CyHOJpMl.js} +1 -1
- package/lib/{index-DsEoqSQn.js → index-Dbs7YARA.js} +2 -2
- package/lib/{index-DOU0EdZP.js → index-DnhO-nLH.js} +2 -2
- package/lib/{index-DxR7e2Cq.js → index-H8TwBQHm.js} +1 -1
- package/lib/{index-CeDmxXUE.js → index-LgzkJ05H.js} +2 -2
- package/lib/{index-CeBxw8J4.js → index-r72g3gV5.js} +4 -4
- package/lib/snippets/copy-text/index.d.ts +6 -0
- package/lib/snippets/index.d.ts +5 -2
- package/lib/snippets/pod-container/index.d.ts +5 -0
- package/lib/snippets/source-container/index.d.ts +7 -0
- package/lib/snippets.js +7 -7
- package/lib/store/index.d.ts +1 -0
- package/lib/store/useActiveNodeStore.d.ts +11 -0
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/describe/index.d.ts +2 -2
- package/lib/types/sources/index.d.ts +10 -9
- package/lib/{useSourceSelectionFormData-C5VMfWEf.js → useSourceSelectionFormData-CwggurLH.js} +2 -2
- package/lib/{useTransition-mupXsbop.js → useTransition-DmHfJSEP.js} +38 -6
- package/package.json +1 -1
- package/lib/containers/data-flow-actions-menu/search/recent-searches/index.d.ts +0 -2
- /package/lib/{components/data-card/data-card-fields → snippets/source-container}/override-runtime.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.50](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.49...ui-kit-v0.0.50) (2025-07-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add AvatarIcon & UserGroupIcon, update UserIcon ([#214](https://github.com/odigos-io/ui-kit/issues/214)) ([755e660](https://github.com/odigos-io/ui-kit/commit/755e6601cfa90a8fd8ca9cedddcb33d88883b86d))
|
|
9
|
+
* add DataFinger component ([#212](https://github.com/odigos-io/ui-kit/issues/212)) ([d0f328d](https://github.com/odigos-io/ui-kit/commit/d0f328dd486b0ac0437b1921d88482ddc622c77d))
|
|
10
|
+
* add Tag component ([#213](https://github.com/odigos-io/ui-kit/issues/213)) ([700031e](https://github.com/odigos-io/ui-kit/commit/700031ef09c824377c6f31d5fc207244cb51952b))
|
|
11
|
+
* refactor DataCardFields ([#211](https://github.com/odigos-io/ui-kit/issues/211)) ([9f446b3](https://github.com/odigos-io/ui-kit/commit/9f446b36dac4e008c79eba4ee2177f44b2743fef))
|
|
12
|
+
* refactor popups to be re-used ([#215](https://github.com/odigos-io/ui-kit/issues/215)) ([18e671e](https://github.com/odigos-io/ui-kit/commit/18e671e73b999f35e0ee4fc9e189a0194dcfde01))
|
|
13
|
+
* service map edits ([#216](https://github.com/odigos-io/ui-kit/issues/216)) ([eaa1526](https://github.com/odigos-io/ui-kit/commit/eaa15269ffb562e70ab8e6156c395187f1e121a8))
|
|
14
|
+
|
|
3
15
|
## [0.0.49](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.48...ui-kit-v0.0.49) (2025-07-01)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -8,17 +8,13 @@ declare enum DataCardFieldTypes {
|
|
|
8
8
|
Divider = "divider",
|
|
9
9
|
Monitors = "monitors",
|
|
10
10
|
CopyText = "copy-text",
|
|
11
|
-
|
|
12
|
-
ActiveStatus = "active-status",
|
|
13
|
-
PodContainer = "pod-container",
|
|
14
|
-
SourceContainer = "source-container"
|
|
11
|
+
ActiveStatus = "active-status"
|
|
15
12
|
}
|
|
16
13
|
interface DataCardField {
|
|
17
14
|
type?: DataCardFieldTypes;
|
|
18
15
|
title?: string;
|
|
19
16
|
tooltip?: string;
|
|
20
17
|
value?: string | AnyObj;
|
|
21
|
-
callback?: (payload: any) => void | Promise<void>;
|
|
22
18
|
}
|
|
23
19
|
interface DataCardFieldsProps {
|
|
24
20
|
data?: DataCardField[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StoryObj } from '@storybook/react-webpack5';
|
|
3
2
|
import { type DataCardProps } from '.';
|
|
3
|
+
import { StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.FC<DataCardProps>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
9
|
+
export declare const MixedCard: StoryObj<DataCardProps>;
|
|
10
|
+
export declare const SourceContainers: StoryObj<DataCardProps>;
|
|
11
|
+
export declare const SourceDescribe: StoryObj<DataCardProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DataFingerProps } from '.';
|
|
3
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<DataFingerProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryObj<DataFingerProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
import type { SVG } from '@/types';
|
|
3
|
+
interface DataFingerProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
subTitle?: string;
|
|
6
|
+
icons?: SVG[];
|
|
7
|
+
iconSrcs?: string[];
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
renderActions?: () => ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const DataFinger: FC<DataFingerProps>;
|
|
12
|
+
export { DataFinger, type DataFingerProps };
|
|
@@ -5,6 +5,8 @@ interface IconButtonProps extends PropsWithChildren {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
withPing?: boolean;
|
|
7
7
|
pingColor?: CSSProperties['backgroundColor'];
|
|
8
|
+
withBorder?: boolean;
|
|
9
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
8
10
|
}
|
|
9
11
|
declare const IconButton: FC<IconButtonProps>;
|
|
10
12
|
export { IconButton, type IconButtonProps };
|
|
@@ -6,8 +6,10 @@ export * from './checkbox/index';
|
|
|
6
6
|
export * from './code/index';
|
|
7
7
|
export * from './condition-details/index';
|
|
8
8
|
export * from './data-card/index';
|
|
9
|
+
export * from './data-finger/index';
|
|
9
10
|
export * from './data-tab/index';
|
|
10
11
|
export * from './delete-warning/index';
|
|
12
|
+
export * from './describe-row/index';
|
|
11
13
|
export * from './divider/index';
|
|
12
14
|
export * from './docs-button/index';
|
|
13
15
|
export * from './drawer/index';
|
|
@@ -35,6 +37,8 @@ export * from './monitors-icons/index';
|
|
|
35
37
|
export * from './navigation-buttons/index';
|
|
36
38
|
export * from './no-data-found/index';
|
|
37
39
|
export * from './notification-note/index';
|
|
40
|
+
export * from './popup/index';
|
|
41
|
+
export * from './popup-form/index';
|
|
38
42
|
export * from './scroll-x/index';
|
|
39
43
|
export * from './section-title/index';
|
|
40
44
|
export * from './segment/index';
|
|
@@ -42,6 +46,7 @@ export * from './selection-button/index';
|
|
|
42
46
|
export * from './skeleton-loader/index';
|
|
43
47
|
export * from './status/index';
|
|
44
48
|
export * from './stepper/index';
|
|
49
|
+
export * from './tag/index';
|
|
45
50
|
export * from './text/index';
|
|
46
51
|
export * from './textarea/index';
|
|
47
52
|
export * from './toggle/index';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
interface PopupProps extends PropsWithChildren {
|
|
3
|
+
header?: ReactNode;
|
|
4
|
+
footer?: ReactNode;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
asPortal?: boolean;
|
|
7
|
+
top?: number;
|
|
8
|
+
bottom?: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
right?: number;
|
|
11
|
+
borderRadius?: CSSProperties['borderRadius'];
|
|
12
|
+
padding?: CSSProperties['padding'];
|
|
13
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
14
|
+
width?: CSSProperties['width'];
|
|
15
|
+
}
|
|
16
|
+
declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export { Popup, type PopupProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StoryFn } from '@storybook/react-webpack5';
|
|
3
|
+
import { type PopupProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<PopupProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
interface PopupFormProps {
|
|
3
|
+
clientX?: number;
|
|
4
|
+
flipX?: boolean;
|
|
5
|
+
clientY?: number;
|
|
6
|
+
flipY?: boolean;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onSave: () => void;
|
|
10
|
+
withDelete?: boolean;
|
|
11
|
+
onDelete?: () => void;
|
|
12
|
+
title?: string;
|
|
13
|
+
titleTooltip?: string;
|
|
14
|
+
warning?: string;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare const PopupForm: FC<PopupFormProps>;
|
|
18
|
+
export { PopupForm, type PopupFormProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StoryFn } from '@storybook/react-webpack5';
|
|
3
|
+
import { type PopupFormProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<PopupFormProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const OverrideRuntime: StoryFn<PopupFormProps>;
|
|
10
|
+
export declare const TokenUpdate: StoryFn<PopupFormProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { type TagProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<TagProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryObj<TagProps>;
|
|
10
|
+
export declare const Info: StoryObj<TagProps>;
|
|
11
|
+
export declare const Warning: StoryObj<TagProps>;
|
|
12
|
+
export declare const Error: StoryObj<TagProps>;
|
|
13
|
+
export declare const Success: StoryObj<TagProps>;
|
package/lib/components.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { C as CancelWarning, D as DeleteWarning } from './index-
|
|
1
|
+
import { e as Button } from './index-CgdNGqvh.js';
|
|
2
|
+
export { f as AutocompleteInput, g as Badge, al as CenterThis, h as Checkbox, i as Code, j as ConditionDetails, D as DataCard, l as DataCardFieldTypes, k as DataCardFields, m as DataFinger, o as DataTab, p as DescribeRow, q as Divider, r as DocsButton, s as Drawer, u as DrawerFooter, t as DrawerHeader, v as Dropdown, w as ExtendArrow, x as FadeLoader, y as FieldError, z as FieldLabel, ak as FlexColumn, aj as FlexRow, G as Header, I as IconButton, J as IconGroup, K as IconTitleBadge, O as IconWrapped, Q as IconsNav, R as ImageControlled, U as Input, V as InputList, W as InputTable, X as InteractiveTable, Y as KeyValueInputsList, Z as Modal, ao as ModalBody, _ as MonitorsCheckboxes, $ as MonitorsIcons, a0 as NavigationButtons, a1 as NoDataFound, a2 as NotificationNote, an as Overlay, a3 as Popup, a4 as PopupForm, a5 as ScrollX, a6 as SectionTitle, a7 as Segment, a8 as SelectionButton, a9 as SkeletonLoader, aa as Status, ab as Stepper, ap as TableContainer, aq as TableTitleWrap, ar as TableWrap, ac as Tag, ad as Text, ae as TextArea, af as Toggle, T as ToggleCodeComponent, ag as Tooltip, ah as TraceLoader, am as VerticalScroll, ai as WarningModal } from './index-CgdNGqvh.js';
|
|
3
|
+
export { C as CancelWarning, D as DeleteWarning } from './index-DnhO-nLH.js';
|
|
4
4
|
import React, { Component, createElement, createContext } from 'react';
|
|
5
|
-
import { T as Theme } from './index-
|
|
5
|
+
import { T as Theme } from './index-BC03UmY5.js';
|
|
6
6
|
import './types.js';
|
|
7
|
-
import './index-
|
|
8
|
-
import './index-
|
|
7
|
+
import './index-CyHOJpMl.js';
|
|
8
|
+
import './index-Dbs7YARA.js';
|
|
9
9
|
import 'styled-components';
|
|
10
|
-
import './index-
|
|
10
|
+
import './index-H8TwBQHm.js';
|
|
11
11
|
import './index-BnvrwbRB.js';
|
|
12
|
-
import './useTransition-mupXsbop.js';
|
|
13
12
|
import 'react-dom';
|
|
13
|
+
import './useTransition-DmHfJSEP.js';
|
|
14
14
|
|
|
15
15
|
const ErrorBoundaryContext = createContext(null);
|
|
16
16
|
|
package/lib/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ACTION_OPTIONS, B as BUTTON_TEXTS,
|
|
1
|
+
export { A as ACTION_OPTIONS, B as BUTTON_TEXTS, l as DEFAULT_DATA_STREAM_NAME, D as DISPLAY_LANGUAGES, m as DISPLAY_TITLES, F as FORM_ALERTS, I as INSTRUMENTATION_RULE_OPTIONS, L as LANGUAGE_OPTIONS, M as MONITORS_OPTIONS, S as STORAGE_KEYS } from './index-BC03UmY5.js';
|
|
2
2
|
export { D as DESTINATION_CATEGORIES } from './index-Dqief9td.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './types.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { XYPosition } from '@xyflow/react';
|
|
2
|
+
import type { ServiceMapSources } from '@/types';
|
|
3
|
+
type PositionMap = Map<string, XYPosition>;
|
|
4
|
+
export declare const generateDAGPositions: (serviceMap: ServiceMapSources, containerWidth: number, containerHeight: number) => PositionMap;
|
|
5
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { type CSSProperties } from 'react';
|
|
2
|
+
import type { ServiceMapSources } from '@/types';
|
|
3
3
|
interface ServiceMapProps {
|
|
4
4
|
heightToRemove: CSSProperties['height'];
|
|
5
5
|
serviceMap: ServiceMapSources;
|