@odigos/ui-kit 0.0.212 → 0.0.213

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/chunks/index-Bh2gKc3b.js +3 -0
  3. package/lib/chunks/ui-components-BliHHDta.js +2388 -0
  4. package/lib/components/_v2/badge/index.d.ts +2 -0
  5. package/lib/components/_v2/cards/section-card/index.d.ts +1 -0
  6. package/lib/components/_v2/checkbox/index.d.ts +5 -1
  7. package/lib/components/_v2/field-message/index.d.ts +1 -0
  8. package/lib/components/_v2/field-title/index.d.ts +2 -0
  9. package/lib/components/_v2/input/index.d.ts +4 -3
  10. package/lib/components/_v2/input-list/index.d.ts +5 -3
  11. package/lib/components/_v2/input-table/index.d.ts +5 -3
  12. package/lib/components/_v2/textarea/index.d.ts +4 -3
  13. package/lib/components/_v2/toggle/index.d.ts +5 -1
  14. package/lib/components/styled.d.ts +3 -6
  15. package/lib/components/tooltip/index.d.ts +1 -0
  16. package/lib/components/v2.js +1 -1
  17. package/lib/components.js +1 -1
  18. package/lib/constants.js +1 -1
  19. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +1 -1
  20. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +1 -4
  21. package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/index.d.ts +2 -1
  22. package/lib/containers/_v2/_drawers/add-source-drawer/types.d.ts +3 -0
  23. package/lib/containers/_v2/_drawers/add-source-drawer/workloads-column/index.d.ts +2 -1
  24. package/lib/containers/_v2/_forms/add-action-form/context.d.ts +18 -0
  25. package/lib/containers/_v2/_forms/add-action-form/index.d.ts +2 -6
  26. package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +18 -0
  27. package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +2 -6
  28. package/lib/containers/_v2/_forms/add-source-form/context.d.ts +21 -0
  29. package/lib/containers/_v2/_forms/add-source-form/index.d.ts +1 -0
  30. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  31. package/lib/containers/v2.js +40 -40
  32. package/lib/containers.js +1 -1
  33. package/lib/contexts.js +1 -1
  34. package/lib/functions/deep-values/index.d.ts +2 -0
  35. package/lib/functions/index.d.ts +1 -0
  36. package/lib/functions.js +1 -1
  37. package/lib/hooks/useGenericForm.d.ts +2 -0
  38. package/lib/hooks.js +1 -1
  39. package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +1 -0
  40. package/lib/snippets/_v2/yaml-section-card/index.d.ts +1 -0
  41. package/lib/snippets.js +1 -1
  42. package/lib/store.js +1 -1
  43. package/lib/theme.js +1 -1
  44. package/lib/types/common/index.d.ts +307 -3
  45. package/lib/types.js +1 -1
  46. package/lib/visuals.js +1 -1
  47. package/package.json +10 -10
  48. package/lib/chunks/index-CTFaJvLO.js +0 -3
  49. package/lib/chunks/ui-components-DQ5eBxQh.js +0 -2387
  50. package/lib/containers/_v2/_drawers/add-action-drawer/helpers.d.ts +0 -7
  51. package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +0 -7
@@ -5,6 +5,7 @@ export interface BadgeProps {
5
5
  label?: string | number;
6
6
  leftIcon?: SVG;
7
7
  rightIcon?: SVG;
8
+ tooltip?: string;
8
9
  status?: StatusType | OtherStatusType;
9
10
  useSecondaryTone?: boolean;
10
11
  invertColors?: boolean;
@@ -12,5 +13,6 @@ export interface BadgeProps {
12
13
  textColor?: CSSProperties['color'];
13
14
  backgroundColor?: CSSProperties['backgroundColor'];
14
15
  minWidth?: CSSProperties['minWidth'];
16
+ fullWidth?: boolean;
15
17
  }
16
18
  export declare const Badge: FC<BadgeProps>;
@@ -8,6 +8,7 @@ export declare enum SectionCardSize {
8
8
  }
9
9
  export interface SectionCardProps {
10
10
  size?: SectionCardSize;
11
+ fullHeight?: boolean;
11
12
  richTitle: RichTitleProps;
12
13
  search?: SearchProps;
13
14
  actions?: ActionsProps['actions'];
@@ -1,12 +1,16 @@
1
1
  import { type FC, Dispatch, SetStateAction } from 'react';
2
2
  import { ListDirection } from '@/types';
3
+ import { type BadgeProps } from '../badge';
4
+ import { type FieldMessageProps } from '../field-message';
3
5
  export declare enum CheckboxSize {
4
6
  S = "small",
5
7
  L = "large"
6
8
  }
7
- export interface CheckboxProps {
9
+ export interface CheckboxProps extends FieldMessageProps {
10
+ name?: string;
8
11
  label?: string;
9
12
  tooltip?: string;
13
+ badge?: BadgeProps;
10
14
  size?: CheckboxSize;
11
15
  disabled?: boolean;
12
16
  partiallyChecked?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { type FC } from 'react';
2
2
  export interface FieldMessageProps {
3
3
  errorMessage?: string;
4
+ warnMessage?: string;
4
5
  helpMessage?: string;
5
6
  }
6
7
  export declare const FieldMessage: FC<FieldMessageProps>;
@@ -1,8 +1,10 @@
1
1
  import { type CSSProperties, type FC } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  export interface FieldTitleProps {
3
4
  label?: string;
4
5
  tooltip?: string;
5
6
  required?: boolean;
7
+ badge?: BadgeProps;
6
8
  width?: CSSProperties['width'];
7
9
  smallAndDark?: boolean;
8
10
  }
@@ -1,14 +1,15 @@
1
1
  import { type InputHTMLAttributes, type FC, type CSSProperties } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  import { type SVG } from '@/types';
3
- export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'title'> {
4
+ import { type FieldMessageProps } from '../field-message';
5
+ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'title'>, FieldMessageProps {
4
6
  label?: string;
5
7
  required?: boolean;
6
8
  tooltip?: string;
9
+ badge?: BadgeProps;
7
10
  leftIcon?: SVG;
8
11
  rightIcon?: SVG;
9
12
  hasError?: boolean;
10
- errorMessage?: string;
11
- helpMessage?: string;
12
13
  maxWidth?: CSSProperties['maxWidth'];
13
14
  width?: CSSProperties['width'];
14
15
  small?: boolean;
@@ -1,13 +1,15 @@
1
1
  import { type FC } from 'react';
2
+ import { type BadgeProps } from '../badge';
3
+ import { type FieldMessageProps } from '../field-message';
2
4
  type Row = string;
3
- export interface InputListProps {
5
+ export interface InputListProps extends FieldMessageProps {
4
6
  values: Row[];
5
7
  setValues: (values: Row[]) => void;
8
+ name?: string;
6
9
  label?: string;
7
10
  tooltip?: string;
11
+ badge?: BadgeProps;
8
12
  required?: boolean;
9
- errorMessage?: string;
10
- helpMessage?: string;
11
13
  placeholder?: string;
12
14
  disabled?: boolean;
13
15
  }
@@ -1,16 +1,18 @@
1
1
  import { type FC } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  import type { Column, Row } from './types';
4
+ import { type FieldMessageProps } from '../field-message';
3
5
  export type { Column, Row } from './types';
4
- export interface InputTableProps {
6
+ export interface InputTableProps extends FieldMessageProps {
5
7
  columns: Column[];
6
8
  values: Row[];
7
9
  setValues: (values: Row[]) => void;
10
+ name?: string;
8
11
  label?: string;
9
12
  tooltip?: string;
13
+ badge?: BadgeProps;
10
14
  required?: boolean;
11
15
  disabled?: boolean;
12
- errorMessage?: string;
13
- helpMessage?: string;
14
16
  limitFieldsPerRow?: number;
15
17
  }
16
18
  export declare const InputTable: FC<InputTableProps>;
@@ -1,10 +1,11 @@
1
1
  import { type TextareaHTMLAttributes, type FC, type CSSProperties } from 'react';
2
- export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
2
+ import { type BadgeProps } from '../badge';
3
+ import { type FieldMessageProps } from '../field-message';
4
+ export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FieldMessageProps {
3
5
  label?: string;
4
6
  required?: boolean;
5
7
  tooltip?: string;
6
- errorMessage?: string;
7
- helpMessage?: string;
8
+ badge?: BadgeProps;
8
9
  maxWidth?: CSSProperties['maxWidth'];
9
10
  minHeight?: CSSProperties['minHeight'];
10
11
  }
@@ -1,5 +1,7 @@
1
1
  import { type CSSProperties, type SetStateAction, type FC, type Dispatch } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  import { ListDirection, type SVG } from '@/types';
4
+ import { type FieldMessageProps } from '../field-message';
3
5
  export declare enum ToggleVariant {
4
6
  Default = "default",
5
7
  SuccessError = "successError"
@@ -12,13 +14,15 @@ export declare enum ToggleLabelAlign {
12
14
  Left = "left",
13
15
  Right = "right"
14
16
  }
15
- export interface ToggleProps {
17
+ export interface ToggleProps extends FieldMessageProps {
16
18
  variant?: ToggleVariant;
17
19
  size?: ToggleSize;
20
+ name?: string;
18
21
  label?: string;
19
22
  labelAlign?: ToggleLabelAlign;
20
23
  labelColor?: CSSProperties['color'];
21
24
  tooltip?: string;
25
+ badge?: BadgeProps;
22
26
  value: boolean;
23
27
  onChange: (value: boolean) => void;
24
28
  disabled?: boolean;
@@ -1,7 +1,9 @@
1
1
  import { type HTMLAttributes, type RefAttributes } from 'react';
2
2
  import { type CSSProperties, type IStyledComponent } from 'styled-components';
3
3
  type DivProps<P = object> = P & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>;
4
- export declare const PageContent: IStyledComponent<'web', DivProps>;
4
+ export declare const PageContent: IStyledComponent<'web', DivProps<{
5
+ $heightOffset?: number;
6
+ }>>;
5
7
  export declare const UpgradeRequiredWrapper: IStyledComponent<'web', DivProps>;
6
8
  interface FlexRowProps {
7
9
  $gap?: number;
@@ -50,9 +52,4 @@ interface TableWrapProps {
50
52
  $maxHeight: CSSProperties['maxHeight'];
51
53
  }
52
54
  export declare const TableWrap: IStyledComponent<'web', DivProps<TableWrapProps>>;
53
- interface WhiteSpaceProps {
54
- $width?: CSSProperties['width'];
55
- $height?: CSSProperties['height'];
56
- }
57
- export declare const WhiteSpace: IStyledComponent<'web', DivProps<WhiteSpaceProps>>;
58
55
  export {};
@@ -6,6 +6,7 @@ interface TooltipProps extends PropsWithChildren {
6
6
  title?: string;
7
7
  text?: string;
8
8
  timestamp?: string | number | Date;
9
+ fullWidth?: boolean;
9
10
  }
10
11
  declare const Tooltip: FC<TooltipProps>;
11
12
  export { Tooltip, type TooltipProps };
@@ -1 +1 @@
1
- export{a3 as Badge,B as Button,h as ButtonSize,dZ as ButtonTab,d_ as ButtonTabList,j as ButtonVariants,C as Checkbox,d$ as CheckboxList,e0 as CheckboxSize,aO as CliCommand,aC as DataCard,p as Drawer,az as DropData,aB as DropDataAlignX,aA as DropDataAlignY,E as DropDown,b as FieldMessage,a as FieldTitle,e1 as Header,cC as HoverActions,aa as IconButton,ab as IconButtonSize,I as Input,f as InputList,d as InputTable,aK as Island,L as Loader,e2 as Modal,e3 as Navbar,N as NoData,s as Note,e4 as Radio,e5 as RadioGroup,e6 as RadioSize,r as Search,ax as SectionCard,e7 as SectionCardSize,x as Segment,af as SegmentSize,aR as StatusCard,aL as Stepper,aI as Table,aJ as TableVariant,e8 as Tag,y as TextArea,aS as TextCard,T as Toggle,e as ToggleLabelAlign,e9 as ToggleList,ak as ToggleSize,ea as ToggleVariant,v as Typography,q as TypographySize,al as TypographyVariants,W as WarningModal}from"../chunks/ui-components-DQ5eBxQh.js";import"../icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{a4 as Badge,B as Button,t as ButtonSize,d_ as ButtonTab,d$ as ButtonTabList,j as ButtonVariants,C as Checkbox,e0 as CheckboxList,e1 as CheckboxSize,aO as CliCommand,aC as DataCard,D as Drawer,az as DropData,aB as DropDataAlignX,aA as DropDataAlignY,H as DropDown,c as FieldMessage,a as FieldTitle,e2 as Header,cC as HoverActions,ag as IconButton,ah as IconButtonSize,I as Input,r as InputList,o as InputTable,aK as Island,L as Loader,e3 as Modal,e4 as Navbar,N as NoData,h as Note,e5 as Radio,e6 as RadioGroup,e7 as RadioSize,g as Search,ax as SectionCard,e8 as SectionCardSize,z as Segment,al as SegmentSize,aR as StatusCard,aL as Stepper,aI as Table,aJ as TableVariant,e9 as Tag,E as TextArea,aS as TextCard,p as Toggle,q as ToggleLabelAlign,ea as ToggleList,ao as ToggleSize,eb as ToggleVariant,k as Typography,f as TypographySize,ap as TypographyVariants,W as WarningModal}from"../chunks/ui-components-BliHHDta.js";import"../icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/lib/components.js CHANGED
@@ -1 +1 @@
1
- export{bq as AutocompleteInput,bK as Badge,bM as Button,bd as CancelWarning,o as CenterThis,aX as Checkbox,cT as Code,bh as ConditionDetails,bi as DataCard,aV as DataCardFieldTypes,cj as DataCardFields,dJ as DataFinger,bO as DataTab,bc as DeleteWarning,cA as DescribeRow,D as Divider,b6 as DocsButton,bb as Drawer,dK as DrawerFooter,dL as DrawerHeader,c4 as Dropdown,dM as ErrorBoundary,ca as ExtendArrow,aN as FadeLoader,aY as FieldError,aW as FieldLabel,F as FlexColumn,g as FlexRow,dN as Header,b2 as IconButton,cL as IconGroup,bE as IconTitleBadge,bz as IconWrapped,cw as IconsNav,dO as ImageControlled,aZ as Input,b1 as InputList,a_ as InputTable,bH as InteractiveTable,b0 as KeyValueInputsList,dP as LoadingText,bn as Modal,bo as ModalBody,b7 as MonitorsCheckboxes,bB as MonitorsIcons,br as NavigationButtons,bI as NoDataFound,bp as NotificationNote,dQ as Overlay,aH as PageContent,b$ as Popup,cN as PopupForm,cS as ScrollX,S as ScrollY,b5 as SectionTitle,b4 as Segment,c1 as SelectionButton,bT as SkeletonLoader,bt as Status,ci as Stepper,dR as TabList,bC as TableContainer,bD as TableTitleWrap,bG as TableWrap,cl as Tag,b9 as Text,b8 as TextArea,a$ as Toggle,cQ as ToggleCodeComponent,Y as Tooltip,bJ as TraceLoader,aU as UpgradeRequiredWrapper,c0 as VerticalScroll,co as WarningModal,dS as WhiteSpace,dT as getLinksFromText,dU as getStrongsFromText,dV as renderText}from"./chunks/ui-components-DQ5eBxQh.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{bq as AutocompleteInput,bK as Badge,bM as Button,bd as CancelWarning,e as CenterThis,aX as Checkbox,cT as Code,bh as ConditionDetails,bi as DataCard,aV as DataCardFieldTypes,cj as DataCardFields,dL as DataFinger,bO as DataTab,bc as DeleteWarning,cA as DescribeRow,s as Divider,b6 as DocsButton,bb as Drawer,dM as DrawerFooter,dN as DrawerHeader,c4 as Dropdown,dO as ErrorBoundary,ca as ExtendArrow,aN as FadeLoader,aY as FieldError,aW as FieldLabel,F as FlexColumn,b as FlexRow,dP as Header,b2 as IconButton,cL as IconGroup,bE as IconTitleBadge,bz as IconWrapped,cw as IconsNav,dQ as ImageControlled,aZ as Input,b1 as InputList,a_ as InputTable,bH as InteractiveTable,b0 as KeyValueInputsList,dR as LoadingText,bn as Modal,bo as ModalBody,b7 as MonitorsCheckboxes,bB as MonitorsIcons,br as NavigationButtons,bI as NoDataFound,bp as NotificationNote,dS as Overlay,aH as PageContent,b$ as Popup,cN as PopupForm,cS as ScrollX,S as ScrollY,b5 as SectionTitle,b4 as Segment,c1 as SelectionButton,bT as SkeletonLoader,bt as Status,ci as Stepper,dT as TabList,bC as TableContainer,bD as TableTitleWrap,bG as TableWrap,cl as Tag,b9 as Text,b8 as TextArea,a$ as Toggle,cQ as ToggleCodeComponent,Z as Tooltip,bJ as TraceLoader,aU as UpgradeRequiredWrapper,c0 as VerticalScroll,co as WarningModal,dU as getLinksFromText,dV as getStrongsFromText,dW as renderText}from"./chunks/ui-components-BliHHDta.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{a7 as ACTION_ATTRIBUTE_OPTIONS,bg as ACTION_OPTIONS,a8 as ACTION_SAMPLER_OPTIONS,aG as BUTTON_TEXTS,aq as DEFAULT_CLUSTER_ID,ap as DEFAULT_CLUSTER_NAME,c9 as DEFAULT_DATA_STREAM_NAME,ad as DESTINATION_CATEGORIES,a4 as DISPLAY_LANGUAGES,a9 as DISPLAY_TITLES,w as DOCS_BASE_URL,ac as DestinationCategoryTypes,U as FORM_ALERTS,ag as INSTRUMENTATION_RULE_OPTIONS,dw as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,dx as OTEL_DISTRO_NAME_OPTIONS,c5 as STORAGE_KEYS,dy as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-DQ5eBxQh.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{ad as ACTION_ATTRIBUTE_OPTIONS,bg as ACTION_OPTIONS,ae as ACTION_SAMPLER_OPTIONS,aG as BUTTON_TEXTS,a8 as DEFAULT_CLUSTER_ID,a7 as DEFAULT_CLUSTER_NAME,c9 as DEFAULT_DATA_STREAM_NAME,aj as DESTINATION_CATEGORIES,a5 as DISPLAY_LANGUAGES,af as DISPLAY_TITLES,y as DOCS_BASE_URL,ai as DestinationCategoryTypes,X as FORM_ALERTS,am as INSTRUMENTATION_RULE_OPTIONS,dy as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,dz as OTEL_DISTRO_NAME_OPTIONS,c5 as STORAGE_KEYS,dA as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-BliHHDta.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
@@ -1,6 +1,6 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
+ import type { CreateInstrumentationRuleFunc } from '@/types';
2
3
  import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type CreateInstrumentationRuleFunc } from '@/types';
4
4
  export interface AddRuleDrawerProps {
5
5
  onClose: HeaderProps['onClose'];
6
6
  selectedConnectionIds?: string[];
@@ -1,15 +1,12 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
2
  import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type PersistSourceInput, type PersistSourcesFunc, type GetAllClusterSnapshots, type FetchNamespacesWithWorkloads } from '@/types';
3
+ import { type PersistSourceInput, type PersistSourcesFunc } from '@/types';
4
4
  export interface AddSourceDrawerProps {
5
5
  onClose?: HeaderProps['onClose'];
6
6
  onBack?: (input: PersistSourceInput) => void;
7
7
  onNext?: (input: PersistSourceInput) => void;
8
8
  selectedConnectionIds?: string[];
9
9
  setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
10
- getAllClusterSnapshots?: GetAllClusterSnapshots;
11
- fetchNamespacesWithWorkloads?: FetchNamespacesWithWorkloads;
12
- initialInputs?: PersistSourceInput | null;
13
10
  persistSources: PersistSourcesFunc;
14
11
  }
15
12
  export declare const AddSourceDrawer: FC<AddSourceDrawerProps>;
@@ -9,6 +9,7 @@ export interface NamespacesColumnProps {
9
9
  selectedArea: SelectedArea;
10
10
  setSelectedArea: Dispatch<SetStateAction<SelectedArea>>;
11
11
  searchText: string;
12
+ searchBy: string;
12
13
  filters: Filters;
13
14
  }
14
- export declare const namespacesColumn: ({ isFetching, formData, handleSourceChange, handleSelectAll, selectedArea, setSelectedArea, searchText, filters, }: NamespacesColumnProps) => WideDrawerProps["leftColumn"];
15
+ export declare const namespacesColumn: ({ isFetching, formData, handleSourceChange, handleSelectAll, selectedArea, setSelectedArea, searchText, searchBy, filters, }: NamespacesColumnProps) => WideDrawerProps["leftColumn"];
@@ -12,6 +12,9 @@ export type HandleSelectAllFunc = (opts: {
12
12
  clusterId?: string;
13
13
  namespaceName?: string;
14
14
  boolean: boolean;
15
+ searchText?: string;
16
+ searchBy?: string;
17
+ filters?: Filters;
15
18
  }) => void;
16
19
  export type HandleSourceChangeFunc = (opts: {
17
20
  clusterId: string;
@@ -10,6 +10,7 @@ export interface WorkloadsColumnProps {
10
10
  setValue: Dispatch<SetStateAction<SelectedArea>>;
11
11
  };
12
12
  searchText: string;
13
+ searchBy: string;
13
14
  filters: Filters;
14
15
  }
15
- export declare const workloadsColumn: ({ formData, handleSourceChange, handleSelectAll, selectedArea, searchText, filters }: WorkloadsColumnProps) => WideDrawerProps["rightColumn"];
16
+ export declare const workloadsColumn: ({ formData, handleSourceChange, handleSelectAll, selectedArea, searchText, searchBy, filters }: WorkloadsColumnProps) => WideDrawerProps["rightColumn"];
@@ -0,0 +1,18 @@
1
+ import React, { type FC } from 'react';
2
+ import { type GenericFormResult } from '@/hooks';
3
+ import { type ActionFormData, type ActionOption } from '@/types';
4
+ interface AddActionFormContextType {
5
+ selectedOption: ActionOption | null;
6
+ onSelectOption: (option: ActionOption | null) => void;
7
+ genericForm?: GenericFormResult<ActionFormData>;
8
+ validateFormData: () => {
9
+ errorMessage?: string;
10
+ preparedFormData: ActionFormData;
11
+ };
12
+ errorMessage?: string;
13
+ }
14
+ export declare const AddActionFormContextProvider: FC<{
15
+ children: React.ReactNode;
16
+ }>;
17
+ export declare const useAddActionFormContext: () => AddActionFormContextType;
18
+ export {};
@@ -1,7 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import type { GenericFormResult } from '@/hooks';
3
- import { type ActionFormData, type ActionOption } from '@/types';
4
- export interface AddActionFormProps extends GenericFormResult<ActionFormData> {
5
- option: ActionOption;
6
- }
7
- export declare const AddActionForm: FC<AddActionFormProps>;
2
+ export * from './context';
3
+ export declare const AddActionForm: FC;
@@ -0,0 +1,18 @@
1
+ import React, { type FC } from 'react';
2
+ import { type GenericFormResult } from '@/hooks';
3
+ import { type InstrumentationRuleFormData, type InstrumentationRuleOption } from '@/types';
4
+ interface AddRuleFormContextType {
5
+ selectedOption: InstrumentationRuleOption | null;
6
+ onSelectOption: (option: InstrumentationRuleOption | null) => void;
7
+ genericForm?: GenericFormResult<InstrumentationRuleFormData>;
8
+ validateFormData: () => {
9
+ errorMessage?: string;
10
+ preparedFormData: InstrumentationRuleFormData;
11
+ };
12
+ errorMessage?: string;
13
+ }
14
+ export declare const AddRuleFormContextProvider: FC<{
15
+ children: React.ReactNode;
16
+ }>;
17
+ export declare const useAddRuleFormContext: () => AddRuleFormContextType;
18
+ export {};
@@ -1,7 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import type { GenericFormResult } from '@/hooks';
3
- import { type InstrumentationRuleFormData, type InstrumentationRuleOption } from '@/types';
4
- export interface AddRuleFormProps extends GenericFormResult<InstrumentationRuleFormData> {
5
- option: InstrumentationRuleOption;
6
- }
7
- export declare const AddRuleForm: FC<AddRuleFormProps>;
2
+ export * from './context';
3
+ export declare const AddRuleForm: FC;
@@ -0,0 +1,21 @@
1
+ import React, { type FC } from 'react';
2
+ import type { FormData, HandleSelectAllFunc, HandleSourceChangeFunc } from '../../_drawers/add-source-drawer/types';
3
+ import { type PersistSourceInput, type GetAllClusterSnapshots, type FetchNamespacesWithWorkloads } from '@/types';
4
+ interface AddSourceFormContextType {
5
+ isFetching: boolean;
6
+ formData: FormData;
7
+ handleSourceChange: HandleSourceChangeFunc;
8
+ handleSelectAll: HandleSelectAllFunc;
9
+ formDiff: PersistSourceInput;
10
+ isFormDirty: boolean;
11
+ }
12
+ export interface AddSourceFormContextProviderProps {
13
+ children: React.ReactNode;
14
+ selectedConnectionIds?: string[];
15
+ getAllClusterSnapshots?: GetAllClusterSnapshots;
16
+ fetchNamespacesWithWorkloads?: FetchNamespacesWithWorkloads;
17
+ initialInputs?: PersistSourceInput | null;
18
+ }
19
+ export declare const AddSourceFormContextProvider: FC<AddSourceFormContextProviderProps>;
20
+ export declare const useAddSourceFormContext: () => AddSourceFormContextType;
21
+ export {};
@@ -0,0 +1 @@
1
+ export * from './context';
@@ -1,3 +1,4 @@
1
1
  export * from './add-action-form';
2
2
  export * from './add-destination-form';
3
3
  export * from './add-rule-form';
4
+ export * from './add-source-form';