@odigos/ui-kit 0.0.128 → 0.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/chunks/ui-components-c940a3cc.js +2024 -0
- package/lib/chunks/vendor-55cc654c.js +1 -0
- package/lib/components/_v2/badge/index.d.ts +10 -0
- package/lib/components/_v2/button/index.d.ts +6 -3
- package/lib/components/_v2/cards/data-card/index.d.ts +12 -0
- package/lib/components/_v2/cards/index.d.ts +4 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +24 -0
- package/lib/components/_v2/cards/status-card/index.d.ts +9 -0
- package/lib/components/_v2/cards/text-card/index.d.ts +12 -0
- package/lib/components/_v2/drawer/header/index.d.ts +9 -0
- package/lib/components/_v2/drawer/index.d.ts +9 -0
- package/lib/components/_v2/header/index.d.ts +7 -0
- package/lib/components/_v2/icon-button/index.d.ts +14 -0
- package/lib/components/_v2/index.d.ts +9 -0
- package/lib/components/_v2/navbar/index.d.ts +12 -0
- package/lib/components/_v2/segment/index.d.ts +14 -0
- package/lib/components/_v2/table/index.d.ts +25 -0
- package/lib/components/_v2/tag/index.d.ts +9 -0
- package/lib/components/_v2/typography/index.d.ts +4 -8
- package/lib/components/code/index.d.ts +2 -0
- package/lib/components/styled.d.ts +1 -0
- package/lib/components/tab-list/index.d.ts +2 -2
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/index.d.ts +1 -0
- package/lib/containers/_v2/pipeline-collectors/general-info/index.d.ts +7 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-badge.d.ts +5 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-status-card.d.ts +4 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-text-cards.d.ts +4 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-title.d.ts +2 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/index.d.ts +4 -0
- package/lib/containers/_v2/pipeline-collectors/index.d.ts +11 -0
- package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +9 -0
- package/lib/containers/_v2/pipeline-collectors/pods-info/pod-drawer/index.d.ts +9 -0
- package/lib/containers/_v2/pipeline-collectors/toolbar/index.d.ts +17 -0
- package/lib/containers/v2.js +15 -0
- package/lib/containers.js +105 -105
- package/lib/functions/generate-id/index.d.ts +1 -0
- package/lib/functions/get-status-color/index.d.ts +2 -2
- package/lib/functions/get-status-from-pod-status/index.d.ts +2 -0
- package/lib/functions/get-status-icon/index.d.ts +2 -2
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useInfiniteScroll.d.ts +10 -0
- package/lib/hooks/useTimeAgo.d.ts +4 -3
- package/lib/hooks.js +1 -1
- package/lib/icons/{status/info-icon → common/book-icon}/index.d.ts +1 -1
- package/lib/icons/common/delete-icon/index.d.ts +2 -0
- package/lib/icons/common/dots-horizontal-icon/index.d.ts +2 -0
- package/lib/icons/common/dots-vertical-icon/index.d.ts +2 -0
- package/lib/icons/common/download-icon/index.d.ts +2 -0
- package/lib/icons/common/exclamation-circle-icon/index.d.ts +2 -0
- package/lib/icons/common/exclamation-triangle-icon/index.d.ts +2 -0
- package/lib/icons/common/expand-icon/index.d.ts +2 -0
- package/lib/icons/common/home-icon/index.d.ts +2 -0
- package/lib/icons/common/i-square-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +23 -3
- package/lib/icons/common/{help-icon → question-circle-icon}/index.d.ts +1 -1
- package/lib/icons/common/refresh-icon/index.d.ts +2 -0
- package/lib/icons/common/server-disconnected-icon/index.d.ts +2 -0
- package/lib/icons/common/user-circle-icon/index.d.ts +2 -0
- package/lib/icons/common/v-icon/index.d.ts +2 -0
- package/lib/icons/common/v-square-icon/index.d.ts +2 -0
- package/lib/icons/common/x-square-icon/index.d.ts +2 -0
- package/lib/icons/index.d.ts +0 -2
- package/lib/icons/on-off/index.d.ts +2 -0
- package/lib/icons/on-off/sound-off-icon/index.d.ts +2 -0
- package/lib/icons/on-off/sound-on-icon/index.d.ts +2 -0
- package/lib/icons/overview/action-icon/index.d.ts +2 -0
- package/lib/icons/overview/data-stream-icon/index.d.ts +2 -0
- package/lib/icons/overview/destination-icon/index.d.ts +2 -0
- package/lib/icons/overview/gateway-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +12 -6
- package/lib/icons/overview/instrumentation-rule-icon/index.d.ts +2 -0
- package/lib/icons/overview/log-icon/index.d.ts +2 -0
- package/lib/icons/overview/pipeline-collector-icon/index.d.ts +2 -0
- package/lib/icons/overview/pod-icon/index.d.ts +2 -0
- package/lib/icons/overview/replica-icon/index.d.ts +2 -0
- package/lib/icons/overview/source-icon/index.d.ts +2 -0
- package/lib/icons/overview/yaml-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/mock-data/index.d.ts +1 -0
- package/lib/mock-data/pipeline-collectors/index.d.ts +6 -0
- package/lib/snippets/note-back-to-summary/index.d.ts +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store/useSetupStore.d.ts +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/animations/index.d.ts +4 -0
- package/lib/theme/palletes/index.d.ts +5 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +7 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/pipeline-collectors/index.d.ts +100 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +17 -19
- package/lib/chunks/ui-components-b0804608.js +0 -1741
- package/lib/chunks/vendor-f206ac21.js +0 -1
- package/lib/icons/common/refresh-arrows-icon/index.d.ts +0 -2
- package/lib/icons/math/index.d.ts +0 -4
- package/lib/icons/overview/actions-icon/index.d.ts +0 -2
- package/lib/icons/overview/data-streams-icon/index.d.ts +0 -2
- package/lib/icons/overview/destinations-icon/index.d.ts +0 -2
- package/lib/icons/overview/rules-icon/index.d.ts +0 -2
- package/lib/icons/overview/sources-icon/index.d.ts +0 -2
- package/lib/icons/status/check-circled-icon/index.d.ts +0 -2
- package/lib/icons/status/check-icon/index.d.ts +0 -2
- package/lib/icons/status/cross-circled-icon/index.d.ts +0 -2
- package/lib/icons/status/cross-icon/index.d.ts +0 -2
- package/lib/icons/status/error-round-icon/index.d.ts +0 -2
- package/lib/icons/status/error-triangle-icon/index.d.ts +0 -2
- package/lib/icons/status/index.d.ts +0 -8
- package/lib/icons/status/warning-triangle-icon/index.d.ts +0 -2
- /package/lib/icons/{math → common}/minus-circled-icon/index.d.ts +0 -0
- /package/lib/icons/{math → common}/minus-icon/index.d.ts +0 -0
- /package/lib/icons/{math → common}/plus-circled-icon/index.d.ts +0 -0
- /package/lib/icons/{math → common}/plus-icon/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateId: () => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StatusType } from '@/types';
|
|
2
1
|
import { DefaultTheme } from 'styled-components';
|
|
3
|
-
|
|
2
|
+
import { OtherStatusType, StatusType } from '@/types';
|
|
3
|
+
export declare const getStatusColor: (theme: DefaultTheme, status: StatusType | OtherStatusType, weight: keyof typeof theme.v2.colors.purple | keyof typeof theme.v2.colors.red | keyof typeof theme.v2.colors.yellow | keyof typeof theme.v2.colors.green | keyof typeof theme.v2.colors.silver) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StatusType, type SVG } from '@/types';
|
|
2
1
|
import type { DefaultTheme } from 'styled-components';
|
|
3
|
-
|
|
2
|
+
import { OtherStatusType, StatusType, type SVG } from '@/types';
|
|
3
|
+
export declare const getStatusIcon: (status: StatusType | OtherStatusType, theme: DefaultTheme) => SVG;
|
package/lib/functions/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './filter-sources-by-stream';
|
|
|
10
10
|
export * from './flatten-object-keys';
|
|
11
11
|
export * from './format-bytes';
|
|
12
12
|
export * from './format-duration';
|
|
13
|
+
export * from './generate-id';
|
|
13
14
|
export * from './get-action-icon';
|
|
14
15
|
export * from './get-conditions-booleans';
|
|
15
16
|
export * from './get-containers-counts';
|
|
@@ -29,6 +30,7 @@ export * from './get-programming-language-icon';
|
|
|
29
30
|
export * from './get-recursive-values';
|
|
30
31
|
export * from './get-sse-target-from-id';
|
|
31
32
|
export * from './get-status-color';
|
|
33
|
+
export * from './get-status-from-pod-status';
|
|
32
34
|
export * from './get-status-icon';
|
|
33
35
|
export * from './get-status-type-from-odigos-health';
|
|
34
36
|
export * from './get-value-for-range';
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bn as capitalizeFirstLetter,cm as cleanObjectEmptyStringsValues,bi as compareCondition,bp as deepClone,ar as filterActions,aX as filterDestinations,aY as filterDestinationsByStream,aV as filterSources,aW as filterSourcesByStream,cn as flattenObjectKeys,aM as formatBytes,c1 as formatDuration,g as generateId,a8 as getActionIcon,ak as getConditionsBooleans,aQ as getContainersIcons,bY as getContainersInstrumentedCount,aP as getDestinationIcon,ay as getEntityIcon,aK as getEntityId,at as getEntityLabel,co as getIdFromSseTarget,aO as getInstrumentationRuleIcon,cp as getMainContainerLanguage,bs as getMetricForEntity,cq as getMonitorIcon,cr as getPlatformIcon,cs as getPlatformLabel,bB as getProgrammingLanguageIcon,c3 as getRecursiveValues,ct as getSseTargetFromId,cu as getStatusColor,b as getStatusFromPodStatus,ap as getStatusIcon,bL as getStatusTypeFromOdigosHealth,cv as getValueForRange,bF as getWorkloadId,bm as getYamlFieldsForDestination,bM as hasUnhealthyInstances,E as isEmpty,cw as isLegalK8sLabel,bZ as isOverTime,bQ as isStringABoolean,cx as isTimeElapsed,cy as isValidVersion,am as mapConditions,bh as mapDestinationFieldsForDisplay,aL as mapExportedSignals,cz as numbersOnly,bR as parseBooleanFromString,cA as parseJsonStringToPrettyString,cB as removeEmptyValuesFromObject,bj as safeJsonParse,cC as safeJsonStringify,aE as sleep,b3 as splitCamelString,cD as stringifyNonStringValues}from"./chunks/ui-components-c940a3cc.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"styled-components";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/hooks/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './useCopy';
|
|
|
8
8
|
export * from './useDataStreamFormData';
|
|
9
9
|
export * from './useDestinationFormData';
|
|
10
10
|
export * from './useGenericForm';
|
|
11
|
+
export * from './useInfiniteScroll';
|
|
11
12
|
export * from './useInstrumentationRuleFormData';
|
|
12
13
|
export * from './useKeyDown';
|
|
13
14
|
export * from './useOnClickOutside';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface UseInfiniteScrollParams {
|
|
2
|
+
items: unknown[];
|
|
3
|
+
rowHeight: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const useInfiniteScroll: ({ items, rowHeight }: UseInfiniteScrollParams) => {
|
|
6
|
+
overflowRef: import("react").RefObject<null>;
|
|
7
|
+
listHeight: number;
|
|
8
|
+
listItems: import("@tanstack/virtual-core").VirtualItem[];
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const useTimeAgo: () =>
|
|
3
|
-
|
|
1
|
+
export type FormatTimeAgo = (wen: Date | number | string) => string;
|
|
2
|
+
export declare const useTimeAgo: () => {
|
|
3
|
+
formatTimeAgo: FormatTimeAgo;
|
|
4
|
+
};
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{a6 as useActionFormData,cH as useBodyScroll,aZ as useClickNode,bG as useClickNotification,aS as useConnection,aU as useContainerSize,a as useCopy,b9 as useDataStreamFormData,bl as useDestinationFormData,b_ as useGenericForm,cI as useInfiniteScroll,bC as useInstrumentationRuleFormData,$ as useKeyDown,b2 as useOnClickOutside,a_ as usePopup,b8 as useSessionStorage,bS as useSourceFormData,bW as useSourceSelectionFormData,u as useTimeAgo,bE as useTransition}from"./chunks/ui-components-c940a3cc.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"styled-components";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVG } from '@/types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const BookIcon: SVG;
|
|
@@ -1,32 +1,52 @@
|
|
|
1
1
|
export * from './arrow-icon';
|
|
2
2
|
export * from './avatar-icon';
|
|
3
|
+
export * from './book-icon';
|
|
3
4
|
export * from './code-brackets-icon';
|
|
4
5
|
export * from './code-icon';
|
|
5
6
|
export * from './command-icon';
|
|
6
7
|
export * from './copy-icon';
|
|
8
|
+
export * from './delete-icon';
|
|
7
9
|
export * from './dot-icon';
|
|
10
|
+
export * from './dots-horizontal-icon';
|
|
11
|
+
export * from './dots-vertical-icon';
|
|
12
|
+
export * from './download-icon';
|
|
8
13
|
export * from './edit-icon';
|
|
9
14
|
export * from './edited-icon';
|
|
15
|
+
export * from './exclamation-circle-icon';
|
|
16
|
+
export * from './exclamation-triangle-icon';
|
|
17
|
+
export * from './expand-icon';
|
|
10
18
|
export * from './extend-arrow-icon';
|
|
11
19
|
export * from './filter-icon';
|
|
12
20
|
export * from './folder-icon';
|
|
13
21
|
export * from './gear-icon';
|
|
14
|
-
export * from './
|
|
22
|
+
export * from './question-circle-icon';
|
|
23
|
+
export * from './home-icon';
|
|
24
|
+
export * from './i-square-icon';
|
|
15
25
|
export * from './image-error-icon';
|
|
16
26
|
export * from './key-icon';
|
|
17
27
|
export * from './list-icon';
|
|
28
|
+
export * from './minus-circled-icon';
|
|
29
|
+
export * from './minus-icon';
|
|
18
30
|
export * from './no-data-icon';
|
|
19
31
|
export * from './notebook-icon';
|
|
20
32
|
export * from './notification-icon';
|
|
21
|
-
export * from './
|
|
33
|
+
export * from './plus-circled-icon';
|
|
34
|
+
export * from './plus-icon';
|
|
35
|
+
export * from './question-circle-icon';
|
|
36
|
+
export * from './refresh-icon';
|
|
22
37
|
export * from './refresh-left-arrow-icon';
|
|
23
38
|
export * from './refresh-right-arrow-icon';
|
|
24
39
|
export * from './rotate-arrows-icon';
|
|
25
40
|
export * from './search-icon';
|
|
41
|
+
export * from './server-disconnected-icon';
|
|
26
42
|
export * from './sort-arrows-icon';
|
|
27
43
|
export * from './terminal-icon';
|
|
28
44
|
export * from './trash-icon';
|
|
45
|
+
export * from './user-circle-icon';
|
|
29
46
|
export * from './user-group-icon';
|
|
30
|
-
export * from './user-settings-icon';
|
|
31
47
|
export * from './user-icon';
|
|
48
|
+
export * from './user-settings-icon';
|
|
49
|
+
export * from './v-icon';
|
|
50
|
+
export * from './v-square-icon';
|
|
32
51
|
export * from './x-icon';
|
|
52
|
+
export * from './x-square-icon';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVG } from '@odigos/ui-kit/types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const QuestionCircleIcon: SVG;
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -5,10 +5,8 @@ export * from './common';
|
|
|
5
5
|
export * from './compute-platform';
|
|
6
6
|
export * from './destinations';
|
|
7
7
|
export * from './instrumentation-rules';
|
|
8
|
-
export * from './math';
|
|
9
8
|
export * from './monitors';
|
|
10
9
|
export * from './on-off';
|
|
11
10
|
export * from './overview';
|
|
12
11
|
export * from './programming-languages';
|
|
13
12
|
export * from './social';
|
|
14
|
-
export * from './status';
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
export * from './connections-icon';
|
|
1
2
|
export * from './overview-icon';
|
|
2
3
|
export * from './service-map-icon';
|
|
3
4
|
export * from './trace-view-icon';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
5
|
+
export * from './action-icon';
|
|
6
|
+
export * from './destination-icon';
|
|
7
|
+
export * from './instrumentation-rule-icon';
|
|
8
|
+
export * from './source-icon';
|
|
8
9
|
export * from './namespaces-icon';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './data-stream-icon';
|
|
11
|
+
export * from './gateway-icon';
|
|
12
|
+
export * from './replica-icon';
|
|
13
|
+
export * from './pipeline-collector-icon';
|
|
14
|
+
export * from './pod-icon';
|
|
15
|
+
export * from './log-icon';
|
|
16
|
+
export * from './yaml-icon';
|