@odigos/ui-kit 0.0.14 → 0.0.16
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 +17 -0
- package/lib/components/data-tab/data-tab.stories.d.ts +8 -2
- package/lib/components/data-tab/index.d.ts +21 -7
- package/lib/components/icon-group/index.d.ts +1 -0
- package/lib/components.js +8 -8
- package/lib/constants.js +3 -3
- package/lib/containers/data-flow-actions-menu/filters/index.d.ts +0 -5
- package/lib/containers/data-flow-actions-menu/index.d.ts +0 -3
- package/lib/containers/data-flow-actions-menu/styled.d.ts +3 -1
- package/lib/containers/dropdowns/namespace-dropdown/index.d.ts +0 -3
- package/lib/containers/overview-drawer/index.d.ts +5 -2
- package/lib/containers/overview-drawer/overview-drawer.stories.d.ts +2 -2
- package/lib/containers/source-modal/index.d.ts +1 -3
- package/lib/containers/source-selection-form/fast/list/index.d.ts +0 -1
- package/lib/containers/source-selection-form/index.d.ts +1 -3
- package/lib/containers/source-selection-form/simple/controls/index.d.ts +0 -2
- package/lib/containers/source-selection-form/simple/list/index.d.ts +0 -1
- package/lib/containers/table-cell-conditions/index.d.ts +1 -0
- package/lib/containers.js +168 -103
- package/lib/data/destinations/index.d.ts +1 -1
- package/lib/functions/get-destination-icon/index.d.ts +5 -1
- package/lib/functions.js +7 -17
- package/lib/hooks/useSourceSelectionFormData.d.ts +1 -2
- package/lib/hooks.js +5 -5
- package/lib/icons/destinations/app-dynamics-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-cloudwatch-logo/aws-cloudwatch-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/aws-cloudwatch-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-s3-logo/aws-s3-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/aws-s3-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-xray-logo/aws-xray-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/aws-xray-logo/index.d.ts +2 -0
- package/lib/icons/destinations/axiom-logo/axiom-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/axiom-logo/index.d.ts +2 -0
- package/lib/icons/destinations/better-stack-logo/better-stack-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/better-stack-logo/index.d.ts +2 -0
- package/lib/icons/destinations/blob-storage-logo/blob-storage-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/blob-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/causely-logo/causely-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/causely-logo/index.d.ts +2 -0
- package/lib/icons/destinations/chronosphere-logo/chronosphere-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/chronosphere-logo/index.d.ts +2 -0
- package/lib/icons/destinations/clickhouse-logo/clickhouse-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/clickhouse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/coralogix-logo/coralogix-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/coralogix-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dash0-logo/dash0-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/dash0-logo/index.d.ts +2 -0
- package/lib/icons/destinations/datadog-logo/datadog-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/datadog-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dynatrace-logo/dynatrace-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/dynatrace-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-apm-logo/elastic-apm-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/elastic-apm-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-search-logo/elastic-search-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/elastic-search-logo/index.d.ts +2 -0
- package/lib/icons/destinations/gigapipe-logo/gigapipe-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/gigapipe-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-platform-logo/google-cloud-platform-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/google-cloud-platform-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-storage-logo/google-cloud-storage-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/google-cloud-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/grafana-logo/grafana-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/grafana-logo/index.d.ts +2 -0
- package/lib/icons/destinations/groundcover-logo/groundcover-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/groundcover-logo/index.d.ts +2 -0
- package/lib/icons/destinations/honeycomb-logo/honeycomb-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/honeycomb-logo/index.d.ts +2 -0
- package/lib/icons/destinations/hyperdx-logo/hyperdx-logo.stories.d.ts +8 -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/instana-logo/instana-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/jaeger-logo/index.d.ts +2 -0
- package/lib/icons/destinations/jaeger-logo/jaeger-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/kafka-logo/kafka-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/kloudmate-logo/index.d.ts +2 -0
- package/lib/icons/destinations/kloudmate-logo/kloudmate-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/last9-logo/index.d.ts +2 -0
- package/lib/icons/destinations/last9-logo/last9-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/lightstep-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lightstep-logo/lightstep-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/logzio-logo/index.d.ts +2 -0
- package/lib/icons/destinations/logzio-logo/logzio-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/loki-logo/index.d.ts +2 -0
- package/lib/icons/destinations/loki-logo/loki-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/lumigo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lumigo-logo/lumigo-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/middleware-logo/index.d.ts +2 -0
- package/lib/icons/destinations/middleware-logo/middleware-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/new-relic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/new-relic-logo/new-relic-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/open-telemetry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/open-telemetry-logo/open-telemetry-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/ops-verse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/ops-verse-logo/ops-verse-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/prometheus-logo/index.d.ts +2 -0
- package/lib/icons/destinations/prometheus-logo/prometheus-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/qryn-logo/index.d.ts +2 -0
- package/lib/icons/destinations/qryn-logo/qryn-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/quickwit-logo/index.d.ts +2 -0
- package/lib/icons/destinations/quickwit-logo/quickwit-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/sentry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sentry-logo/sentry-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/signoz-logo/index.d.ts +2 -0
- package/lib/icons/destinations/signoz-logo/signoz-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/splunk-logo/index.d.ts +2 -0
- package/lib/icons/destinations/splunk-logo/splunk-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/sumo-logic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sumo-logic-logo/sumo-logic-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/tempo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/tempo-logo/tempo-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/traceloop-logo/index.d.ts +2 -0
- package/lib/icons/destinations/traceloop-logo/traceloop-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/uptrace-logo/index.d.ts +2 -0
- package/lib/icons/destinations/uptrace-logo/uptrace-logo.stories.d.ts +8 -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/overview/namespaces-icon/namespaces-icon.stories.d.ts +8 -0
- package/lib/icons/programming-languages/index.d.ts +0 -1
- package/lib/icons.js +29 -5
- package/lib/{index-CYn62h8x.js → index-CKtl8KxE.js} +2 -2
- package/lib/{index-Db_ZDrEr.js → index-CLOUNx6Z.js} +1 -1
- package/lib/{index-B5wdZoej.js → index-D6cZdmUs.js} +77 -45
- package/lib/index-DB8Djrsy.js +487 -0
- package/lib/{index-3KUV6Vlt.js → index-DH2zLaey.js} +5 -2
- package/lib/{index-BtuW12KL.js → index-DiEc-llU.js} +68 -5
- package/lib/{index-DYEcdkUF.js → index-IvGLauAo.js} +49 -37
- package/lib/{index-CJKFedQi.js → index-lL1o2K_5.js} +2 -2
- package/lib/store/useEntityStore.d.ts +4 -2
- package/lib/store/useSetupStore.d.ts +2 -3
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/destinations/index.d.ts +50 -3
- package/lib/types.js +53 -1
- package/lib/{useSourceSelectionFormData-BnlRp8m3.js → useSourceSelectionFormData-R_uK7F7W.js} +6 -4
- package/lib/{useTransition-CFmm4scp.js → useTransition-hWYVBuSi.js} +2 -2
- package/package.json +12 -12
- package/lib/index-BjJpYtF1.js +0 -42
- package/lib/containers/data-flow-actions-menu/{data-flow.stories.d.ts → data-flow-actions-menu.stories.d.ts} +0 -0
- package/lib/icons/{programming-languages/kafka-logo/kafka-logo.stories.d.ts → destinations/app-dynamics-logo/app-dynamics-logo.stories.d.ts} +0 -0
- package/lib/icons/{programming-languages → destinations}/kafka-logo/index.d.ts +0 -0
- package/lib/{index-9ObpINp4.js → index-DM8CZWtL.js} +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.16](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.15...ui-kit-v0.0.16) (2025-03-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* destination icons as imported SVGs ([#51](https://github.com/odigos-io/ui-kit/issues/51)) ([9351568](https://github.com/odigos-io/ui-kit/commit/93515684b7fa464f526159092061f63a4b8675fb))
|
|
9
|
+
* kill `crypto.randomUUID` (after killing `useId`) ([#49](https://github.com/odigos-io/ui-kit/issues/49)) ([f668cf7](https://github.com/odigos-io/ui-kit/commit/f668cf719c44ebf267138b6c565c81701f135a86))
|
|
10
|
+
* move namespaces into entity store ([#47](https://github.com/odigos-io/ui-kit/issues/47)) ([4c96c3f](https://github.com/odigos-io/ui-kit/commit/4c96c3f746fcd2192e7b3c7cd69cf0d9c2dc6f6d))
|
|
11
|
+
* refactor data-tab props ([#48](https://github.com/odigos-io/ui-kit/issues/48)) ([d81559a](https://github.com/odigos-io/ui-kit/commit/d81559ae8fc0268c52ab52fd4171fedd63060fb2))
|
|
12
|
+
|
|
13
|
+
## [0.0.15](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.14...ui-kit-v0.0.15) (2025-03-24)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* :bug: react minified 310 error ([#40](https://github.com/odigos-io/ui-kit/issues/40)) ([eb1fa39](https://github.com/odigos-io/ui-kit/commit/eb1fa399a9244f95223b307fc0a2506845283043))
|
|
19
|
+
|
|
3
20
|
## [0.0.14](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.13...ui-kit-v0.0.14) (2025-03-20)
|
|
4
21
|
|
|
5
22
|
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DataTabProps } from '.';
|
|
3
|
-
import type {
|
|
3
|
+
import type { StoryObj } from '@storybook/react';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.FC<DataTabProps>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const NoStatus: StoryObj<DataTabProps>;
|
|
10
|
+
export declare const ForcedBgColor: StoryObj<DataTabProps>;
|
|
11
|
+
export declare const InfoStatus: StoryObj<DataTabProps>;
|
|
12
|
+
export declare const DefaultStatus: StoryObj<DataTabProps>;
|
|
13
|
+
export declare const ErrorStatus: StoryObj<DataTabProps>;
|
|
14
|
+
export declare const WarningStatus: StoryObj<DataTabProps>;
|
|
15
|
+
export declare const SuccessStatus: StoryObj<DataTabProps>;
|
|
@@ -1,28 +1,42 @@
|
|
|
1
|
-
import { type FC, type ReactNode } from 'react';
|
|
1
|
+
import { type CSSProperties, type FC, type ReactNode } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
3
|
import { StatusType, SignalType } from '@/types';
|
|
4
|
-
interface
|
|
5
|
-
title: string;
|
|
6
|
-
subTitle?: string;
|
|
4
|
+
interface IconProps {
|
|
7
5
|
icon?: SVG;
|
|
8
6
|
icons?: SVG[];
|
|
9
7
|
iconSrc?: string;
|
|
10
8
|
iconSrcs?: string[];
|
|
11
|
-
|
|
9
|
+
}
|
|
10
|
+
interface VisualProps {
|
|
12
11
|
status?: StatusType;
|
|
13
12
|
faded?: boolean;
|
|
13
|
+
bgColor?: CSSProperties['backgroundColor'];
|
|
14
|
+
bgColorHover?: CSSProperties['backgroundColor'];
|
|
15
|
+
isActive?: boolean;
|
|
14
16
|
monitors?: SignalType[];
|
|
15
17
|
monitorsWithLabels?: boolean;
|
|
16
|
-
|
|
18
|
+
}
|
|
19
|
+
interface CheckboxProps {
|
|
17
20
|
withCheckbox?: boolean;
|
|
18
21
|
isCheckboxDisabled?: boolean;
|
|
19
22
|
isChecked?: boolean;
|
|
20
23
|
onCheckboxChange?: (value: boolean) => void;
|
|
24
|
+
}
|
|
25
|
+
interface ExtendableProps {
|
|
21
26
|
withExtend?: boolean;
|
|
22
27
|
isExtended?: boolean;
|
|
23
28
|
renderExtended?: () => ReactNode;
|
|
24
|
-
|
|
29
|
+
}
|
|
30
|
+
interface DataTabProps {
|
|
31
|
+
title: string;
|
|
32
|
+
subTitle?: string;
|
|
33
|
+
hoverText?: string;
|
|
25
34
|
onClick?: () => void;
|
|
35
|
+
renderActions?: () => ReactNode;
|
|
36
|
+
iconProps?: IconProps;
|
|
37
|
+
visualProps?: VisualProps;
|
|
38
|
+
checkboxProps?: CheckboxProps;
|
|
39
|
+
extendableProps?: ExtendableProps;
|
|
26
40
|
}
|
|
27
41
|
declare const DataTab: FC<DataTabProps>;
|
|
28
42
|
export { DataTab, type DataTabProps };
|
package/lib/components.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { B as Button } from './index-
|
|
2
|
-
export { A as AutocompleteInput, a as Badge, C as CancelWarning, a0 as CenterThis, b as Checkbox, c as Code, d as ConditionDetails, D as DataCard, f as DataCardFieldTypes, e as DataCardFields, g as DataTab, h as DeleteWarning, 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, $ as FlexColumn, _ 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, a2 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a1 as Overlay, S as SectionTitle, O as Segment, P as SkeletonLoader, Q as Status, R as Stepper, a3 as TableContainer, a4 as TableTitleWrap, a5 as TableWrap, U as Text, V as TextArea, W as Toggle, T as ToggleCodeComponent, X as Tooltip, Y as TraceLoader, Z as WarningModal } from './index-
|
|
1
|
+
import { B as Button } from './index-D6cZdmUs.js';
|
|
2
|
+
export { A as AutocompleteInput, a as Badge, C as CancelWarning, a0 as CenterThis, b as Checkbox, c as Code, d as ConditionDetails, D as DataCard, f as DataCardFieldTypes, e as DataCardFields, g as DataTab, h as DeleteWarning, 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, $ as FlexColumn, _ 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, a2 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a1 as Overlay, S as SectionTitle, O as Segment, P as SkeletonLoader, Q as Status, R as Stepper, a3 as TableContainer, a4 as TableTitleWrap, a5 as TableWrap, U as Text, V as TextArea, W as Toggle, T as ToggleCodeComponent, X as Tooltip, Y as TraceLoader, Z as WarningModal } from './index-D6cZdmUs.js';
|
|
3
3
|
import React, { Component, createElement, createContext } from 'react';
|
|
4
4
|
import Theme from './theme.js';
|
|
5
5
|
import './types.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-IvGLauAo.js';
|
|
7
7
|
import 'styled-components';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CKtl8KxE.js';
|
|
9
9
|
import './index-BGlk5VhF.js';
|
|
10
|
-
import './index-
|
|
10
|
+
import './index-DM8CZWtL.js';
|
|
11
11
|
import './index-BZS1ijMm.js';
|
|
12
12
|
import './index-D_Qn2U89.js';
|
|
13
|
-
import './index-
|
|
14
|
-
import './index-
|
|
15
|
-
import './useTransition-
|
|
13
|
+
import './index-lL1o2K_5.js';
|
|
14
|
+
import './index-CLOUNx6Z.js';
|
|
15
|
+
import './useTransition-hWYVBuSi.js';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import 'babel-runtime/helpers/extends';
|
|
18
18
|
import 'babel-runtime/core-js/object/get-prototype-of';
|
package/lib/constants.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-
|
|
1
|
+
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-lL1o2K_5.js';
|
|
2
2
|
export { D as DISPLAY_TITLES, F as FORM_ALERTS } from './index-C_0J5P9M.js';
|
|
3
3
|
import './types.js';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-CLOUNx6Z.js';
|
|
5
5
|
import './index-BGlk5VhF.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import './theme.js';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-IvGLauAo.js';
|
|
9
9
|
import 'styled-components';
|
|
10
10
|
|
|
11
11
|
const TOKEN_ABOUT_TO_EXPIRE = 604800000; // 7 days in milliseconds
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const RelativeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const AbsoluteContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
2
|
+
export declare const AbsoluteContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$hidden?: boolean;
|
|
4
|
+
}>> & string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type DropdownProps } from '@/components';
|
|
3
3
|
interface NamespaceDropdownProps {
|
|
4
|
-
namespaces: {
|
|
5
|
-
name: string;
|
|
6
|
-
}[];
|
|
7
4
|
title?: string;
|
|
8
5
|
value?: DropdownProps['options'];
|
|
9
6
|
onSelect: (val: DropdownProps['options'][0]) => void;
|
|
@@ -16,5 +16,8 @@ interface OverviewDrawerProps extends PropsWithChildren {
|
|
|
16
16
|
onCancel?: () => void;
|
|
17
17
|
tabs?: DrawerProps['header']['tabs'];
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
interface OverviewDrawerRef {
|
|
20
|
+
closeDrawer: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const OverviewDrawer: React.ForwardRefExoticComponent<OverviewDrawerProps & React.RefAttributes<OverviewDrawerRef>>;
|
|
23
|
+
export { OverviewDrawer, type OverviewDrawerProps, type OverviewDrawerRef };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type OverviewDrawerProps } from '.';
|
|
3
|
+
import { type OverviewDrawerRef, type OverviewDrawerProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.
|
|
6
|
+
component: React.ForwardRefExoticComponent<OverviewDrawerProps & React.RefAttributes<OverviewDrawerRef>>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<OverviewDrawerProps>;
|
|
@@ -3,11 +3,9 @@ import { type Namespace, type PersistSources } from '@/types';
|
|
|
3
3
|
import { type SourceSelectionFormProps } from '../source-selection-form';
|
|
4
4
|
interface SourceModalProps {
|
|
5
5
|
componentType?: SourceSelectionFormProps['componentType'];
|
|
6
|
-
namespaces: Namespace[];
|
|
7
|
-
namespace?: Namespace;
|
|
8
|
-
namespacesLoading: boolean;
|
|
9
6
|
selectedNamespace: string;
|
|
10
7
|
setSelectedNamespace: Dispatch<SetStateAction<string>>;
|
|
8
|
+
namespace?: Namespace;
|
|
11
9
|
persistSources: PersistSources;
|
|
12
10
|
}
|
|
13
11
|
declare const SourceModal: FC<SourceModalProps>;
|
|
@@ -2,7 +2,6 @@ import { type FC } from 'react';
|
|
|
2
2
|
import type { UseSourceSelectionFormData } from '@/hooks';
|
|
3
3
|
interface ListProps extends UseSourceSelectionFormData {
|
|
4
4
|
isModal?: boolean;
|
|
5
|
-
namespacesLoading: boolean;
|
|
6
5
|
selectedNamespace: string;
|
|
7
6
|
onSelectNamespace: (namespace: string) => void;
|
|
8
7
|
}
|
|
@@ -4,11 +4,9 @@ import type { AvailableSourcesByNamespace, NamespaceSelectionFormData, SourceSel
|
|
|
4
4
|
interface SourceSelectionFormProps {
|
|
5
5
|
componentType: 'SIMPLE' | 'FAST';
|
|
6
6
|
isModal?: boolean;
|
|
7
|
-
namespaces: Namespace[];
|
|
8
|
-
namespace?: Namespace;
|
|
9
|
-
namespacesLoading: boolean;
|
|
10
7
|
selectedNamespace: string;
|
|
11
8
|
onSelectNamespace: (namespace: string) => void;
|
|
9
|
+
namespace?: Namespace;
|
|
12
10
|
}
|
|
13
11
|
interface SourceSelectionFormRef {
|
|
14
12
|
getFormValues: () => {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type { Namespace } from '@/types';
|
|
3
2
|
import type { UseSourceSelectionFormData } from '@/hooks';
|
|
4
3
|
interface ControlsProps extends UseSourceSelectionFormData {
|
|
5
4
|
isModal?: boolean;
|
|
6
|
-
namespaces: Namespace[];
|
|
7
5
|
selectedNamespace: string;
|
|
8
6
|
onSelectNamespace: (namespace: string) => void;
|
|
9
7
|
}
|
|
@@ -2,7 +2,6 @@ import { type FC } from 'react';
|
|
|
2
2
|
import type { UseSourceSelectionFormData } from '@/hooks';
|
|
3
3
|
interface ListProps extends UseSourceSelectionFormData {
|
|
4
4
|
isModal?: boolean;
|
|
5
|
-
namespacesLoading: boolean;
|
|
6
5
|
selectedNamespace: string;
|
|
7
6
|
}
|
|
8
7
|
declare const List: FC<ListProps>;
|
|
@@ -2,6 +2,7 @@ import { type FC } from 'react';
|
|
|
2
2
|
import { type Condition } from '@/types';
|
|
3
3
|
interface TableCellConditionsProps {
|
|
4
4
|
conditions: Condition[];
|
|
5
|
+
id: string;
|
|
5
6
|
}
|
|
6
7
|
declare const TableCellConditions: FC<TableCellConditionsProps>;
|
|
7
8
|
export { TableCellConditions, type TableCellConditionsProps };
|