@odigos/ui-kit 0.0.225 → 0.0.227

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 (71) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/chunks/index-B0b5lJH3.js +3 -0
  3. package/lib/chunks/index-C-Z4QHpA.js +149 -0
  4. package/lib/chunks/ui-components-C7i9zbc-.js +2652 -0
  5. package/lib/components/_v2/cards/data-card/index.d.ts +16 -3
  6. package/lib/components/_v2/charts/gauge-chart/index.d.ts +18 -0
  7. package/lib/components/_v2/charts/index.d.ts +1 -0
  8. package/lib/components/_v2/condition/index.d.ts +13 -0
  9. package/lib/components/_v2/conditions/index.d.ts +8 -0
  10. package/lib/components/_v2/drawer/header/index.d.ts +6 -1
  11. package/lib/components/_v2/drop-data/index.d.ts +1 -0
  12. package/lib/components/_v2/icon-button/index.d.ts +1 -0
  13. package/lib/components/_v2/index.d.ts +3 -0
  14. package/lib/components/_v2/tag/index.d.ts +2 -1
  15. package/lib/components/v2.js +1 -1
  16. package/lib/components.js +1 -1
  17. package/lib/constants.js +1 -1
  18. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +1 -1
  19. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +3 -1
  20. package/lib/containers/_v2/_drawers/edit-action-drawer/helpers.d.ts +12 -0
  21. package/lib/containers/_v2/_drawers/edit-action-drawer/index.d.ts +9 -0
  22. package/lib/containers/_v2/_drawers/edit-destination-drawer/helpers.d.ts +11 -0
  23. package/lib/containers/_v2/_drawers/edit-destination-drawer/index.d.ts +11 -0
  24. package/lib/containers/_v2/_drawers/edit-rule-drawer/helpers.d.ts +13 -0
  25. package/lib/containers/_v2/_drawers/edit-rule-drawer/index.d.ts +9 -0
  26. package/lib/containers/_v2/_drawers/index.d.ts +3 -0
  27. package/lib/containers/_v2/_forms/add-action-form/index.d.ts +0 -1
  28. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +8 -4
  29. package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +0 -1
  30. package/lib/containers/_v2/_forms/index.d.ts +0 -1
  31. package/lib/containers/_v2/onboarding/summary/index.d.ts +1 -1
  32. package/lib/containers/_v2/pipeline-collectors/enum.d.ts +4 -0
  33. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-badge.d.ts +1 -1
  34. package/lib/containers/_v2/pipeline-collectors/general-info/helpers/get-general-gauge-cards.d.ts +4 -0
  35. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-status-card.d.ts +1 -1
  36. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-text-cards.d.ts +1 -1
  37. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-title.d.ts +1 -1
  38. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/index.d.ts +2 -1
  39. package/lib/containers/_v2/pipeline-collectors/general-info/index.d.ts +7 -6
  40. package/lib/containers/_v2/pipeline-collectors/index.d.ts +5 -0
  41. package/lib/containers/_v2/pipeline-collectors/toolbar/index.d.ts +1 -11
  42. package/lib/containers/source-drawer/profiling/flamebearer.d.ts +5 -0
  43. package/lib/containers/v2.js +43 -56
  44. package/lib/containers.js +45 -45
  45. package/lib/contexts/action-form-context.d.ts +19 -0
  46. package/lib/{containers/_v2/_forms/add-destination-form/context.d.ts → contexts/destination-form-context.d.ts} +5 -4
  47. package/lib/contexts/index.d.ts +4 -0
  48. package/lib/contexts/rule-form-context.d.ts +19 -0
  49. package/lib/contexts/source-instrument-form-context.d.ts +22 -0
  50. package/lib/contexts.js +1 -1
  51. package/lib/functions/get-status-color/index.d.ts +2 -2
  52. package/lib/functions/get-status-icon/index.d.ts +2 -2
  53. package/lib/functions.js +1 -1
  54. package/lib/hooks.js +1 -1
  55. package/lib/snippets/_v2/yaml-section-card/index.d.ts +2 -0
  56. package/lib/snippets/v2.js +1 -1
  57. package/lib/snippets.js +1 -1
  58. package/lib/store.js +1 -1
  59. package/lib/theme.js +1 -1
  60. package/lib/types/common/index.d.ts +36 -0
  61. package/lib/types.js +1 -1
  62. package/lib/visuals.js +1 -1
  63. package/package.json +1 -1
  64. package/lib/chunks/index-BMJ_MZzY.js +0 -149
  65. package/lib/chunks/index-Dlnglk_e.js +0 -3
  66. package/lib/chunks/ui-components-BqdkaDt2.js +0 -2543
  67. package/lib/components/_v2/cards/section-part-card/index.d.ts +0 -11
  68. package/lib/containers/_v2/_forms/add-action-form/context.d.ts +0 -18
  69. package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +0 -18
  70. package/lib/containers/_v2/_forms/add-source-form/context.d.ts +0 -21
  71. package/lib/containers/_v2/_forms/add-source-form/index.d.ts +0 -1
@@ -1,11 +0,0 @@
1
- import { type ReactNode, type FC } from 'react';
2
- import type { SVG } from '@/types';
3
- import { type BadgeProps } from '../../badge';
4
- export interface SectionPartCardProps {
5
- icon?: SVG;
6
- title: string;
7
- withDropdown?: boolean;
8
- badge?: BadgeProps;
9
- children?: ReactNode;
10
- }
11
- export declare const SectionPartCard: FC<SectionPartCardProps>;
@@ -1,18 +0,0 @@
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,18 +0,0 @@
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,21 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export * from './context';